[seam-commits] Seam SVN: r11555 - branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/utils.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Oct 7 10:45:09 EDT 2009


Author: jharting
Date: 2009-10-07 10:45:08 -0400 (Wed, 07 Oct 2009)
New Revision: 11555

Modified:
   branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/utils/SeleniumTestListener.java
Log:
screenshot capturing in seam-gen tests fixed

Modified: branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/utils/SeleniumTestListener.java
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/utils/SeleniumTestListener.java	2009-10-07 14:37:23 UTC (rev 11554)
+++ branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/utils/SeleniumTestListener.java	2009-10-07 14:45:08 UTC (rev 11555)
@@ -52,9 +52,13 @@
    public void onTestFailure(ITestResult arg0)
    {
       String logPath = OUTPUT_DIR + APP_NAME + "/" + arg0.getName();
-      browser.captureScreenshot(logPath + ".png");
-      browser.logHTMLContext(logPath + ".html");
-      stopBrowser();
+      try {
+         browser.logHTMLContext(logPath + ".html");
+         browser.captureScreenshot(logPath + ".png");
+      } catch (Exception e) {         
+      } finally {
+         stopBrowser();   
+      }  
    }
 
    public void onTestSkipped(ITestResult arg0)



More information about the seam-commits mailing list