Author: mgencur(a)redhat.com
Date: 2010-07-22 11:15:29 -0400 (Thu, 22 Jul 2010)
New Revision: 13478
Modified:
branches/enterprise/JBPAPP_5_0/src/test/ftest/examples/remoting/gwt/src/org/jboss/seam/example/remoting/gwt/test/selenium/GwtTest.java
Log:
JBPAPP-4279 fixed functional test
Modified:
branches/enterprise/JBPAPP_5_0/src/test/ftest/examples/remoting/gwt/src/org/jboss/seam/example/remoting/gwt/test/selenium/GwtTest.java
===================================================================
---
branches/enterprise/JBPAPP_5_0/src/test/ftest/examples/remoting/gwt/src/org/jboss/seam/example/remoting/gwt/test/selenium/GwtTest.java 2010-07-22
11:51:52 UTC (rev 13477)
+++
branches/enterprise/JBPAPP_5_0/src/test/ftest/examples/remoting/gwt/src/org/jboss/seam/example/remoting/gwt/test/selenium/GwtTest.java 2010-07-22
15:15:29 UTC (rev 13478)
@@ -71,7 +71,8 @@
@Test(dependsOnMethods = {"simplePageContentTest"})
public void withoutQuestionMarkTest(){
- String result = "";
+ String result = "";
+ waitMillis(TIMEOUT*3);
browser.type(TEXT_FIELD, ENTER_TEXT_WITHOUT);
browser.click(ASK_BUTTON);
waitForAlertPresent(TIMEOUT);
@@ -82,6 +83,7 @@
@Test(dependsOnMethods = {"simplePageContentTest"})
public void withQuestionMarkTest(){
String result = "";
+ waitMillis(TIMEOUT*3);
browser.type(TEXT_FIELD, ENTER_TEXT_WITH);
browser.click(ASK_BUTTON);
waitForAlertPresent(TIMEOUT);
@@ -99,4 +101,16 @@
}
}.wait("Timeout while waiting for alert window.", timeout);
}
+
+ public void waitMillis(long timeout)
+ {
+ try
+ {
+ Thread.sleep(TIMEOUT*3);
+ }
+ catch (InterruptedException e)
+ {
+ }
+ }
+
}
Show replies by date