[seam-commits] Seam SVN: r11556 - branches/enterprise/JBPAPP_5_0/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:50 EDT 2009


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

Modified:
   branches/enterprise/JBPAPP_5_0/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/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/utils/SeleniumTestListener.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/utils/SeleniumTestListener.java	2009-10-07 14:45:08 UTC (rev 11555)
+++ branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/utils/SeleniumTestListener.java	2009-10-07 14:45:50 UTC (rev 11556)
@@ -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