[seam-commits] Seam SVN: r11512 - branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Sep 24 08:33:22 EDT 2009


Author: mgencur at redhat.com
Date: 2009-09-24 08:33:21 -0400 (Thu, 24 Sep 2009)
New Revision: 11512

Modified:
   branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeleniumFunctionalTestListener.java
Log:
JBSEAM-4423 Modified listener

Modified: branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeleniumFunctionalTestListener.java
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeleniumFunctionalTestListener.java	2009-09-24 12:10:40 UTC (rev 11511)
+++ branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeleniumFunctionalTestListener.java	2009-09-24 12:33:21 UTC (rev 11512)
@@ -50,9 +50,13 @@
    public void onTestFailure(ITestResult arg0)
    {
       String logPath = OUTPUT_DIR + APP_NAME + "/" + arg0.getName();
-      SeamSeleniumTest.browser.captureScreenshot(logPath + ".png");
-      SeamSeleniumTest.browser.logHTMLContext(logPath + ".html");
-      stopBrowser();
+      try {
+         SeamSeleniumTest.browser.captureScreenshot(logPath + ".png");
+         SeamSeleniumTest.browser.logHTMLContext(logPath + ".html");
+      } catch (Exception e) {         
+      } finally {
+         stopBrowser();   
+      }      
    }
    
    public void onTestSkipped(ITestResult arg0)



More information about the seam-commits mailing list