Author: maschmid
Date: 2012-05-29 06:29:47 -0400 (Tue, 29 May 2012)
New Revision: 14804
Modified:
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/booking/selenium/SeleniumBookingTest.java
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/selenium/SeamSeleniumTest.java
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/selenium/SeleniumFunctionalTestListener.java
Log:
functional tests, fix calling stopBrowser after @AfterMethod
Modified:
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/booking/selenium/SeleniumBookingTest.java
===================================================================
---
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/booking/selenium/SeleniumBookingTest.java 2012-05-29
08:29:14 UTC (rev 14803)
+++
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/booking/selenium/SeleniumBookingTest.java 2012-05-29
10:29:47 UTC (rev 14804)
@@ -51,7 +51,7 @@
@Override
@AfterMethod
public void tearDown() {
-// logout();
+ logout();
super.tearDown();
}
Modified:
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/selenium/SeamSeleniumTest.java
===================================================================
---
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/selenium/SeamSeleniumTest.java 2012-05-29
08:29:14 UTC (rev 14803)
+++
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/selenium/SeamSeleniumTest.java 2012-05-29
10:29:47 UTC (rev 14804)
@@ -88,7 +88,7 @@
@AfterMethod
public void tearDown() {
/*browser is being closed from SeleniumFunctionalTestListener class*/
- //stopBrowser();
+ stopBrowser();
}
public SeamSelenium startBrowser() {
Modified:
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/selenium/SeleniumFunctionalTestListener.java
===================================================================
---
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/selenium/SeleniumFunctionalTestListener.java 2012-05-29
08:29:14 UTC (rev 14803)
+++
branches/community/Seam_2_3/functional-tests/src/main/java/org/jboss/seam/example/common/test/selenium/SeleniumFunctionalTestListener.java 2012-05-29
10:29:47 UTC (rev 14804)
@@ -55,13 +55,13 @@
SeamSeleniumTest.browser.logHTMLContext(logPath + ".html");
} catch (Exception e) {
} finally {
- stopBrowser();
+ // stopBrowser();
}
}
public void onTestSkipped(ITestResult arg0)
{
- stopBrowser();
+ //stopBrowser();
}
public void onTestStart(ITestResult arg0)
@@ -70,6 +70,6 @@
public void onTestSuccess(ITestResult arg0)
{
- stopBrowser();
+ //stopBrowser();
}
}
Show replies by date