continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r918265 - /continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java
Date Tue, 02 Mar 2010 23:38:52 GMT
Author: brett
Date: Tue Mar  2 23:38:52 2010
New Revision: 918265

URL: http://svn.apache.org/viewvc?rev=918265&view=rev
Log:
always write HTML as it can be easier to cut/paste

Modified:
    continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java

Modified: continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java?rev=918265&r1=918264&r2=918265&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java
(original)
+++ continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java
Tue Mar  2 23:38:52 2010
@@ -86,15 +86,15 @@
         catch ( RuntimeException e )
         {
             System.out.println( "Error when take screenshot for test " + tr.getName() + ":
" + e.getMessage() );
-            try
-            {
-                File fileName = new File( targetPath, fileBaseName + ".html" );
-                FileUtils.writeStringToFile( fileName, selenium.getHtmlSource() );
-            }
-            catch ( IOException ioe )
-            {
-                System.out.println( ioe.getMessage() );
-            }
+        }
+        try
+        {
+            File fileName = new File( targetPath, fileBaseName + ".html" );
+            FileUtils.writeStringToFile( fileName, selenium.getHtmlSource() );
+        }
+        catch ( IOException ioe )
+        {
+            System.out.println( "Error writing HTML of error: " + ioe.getMessage() );
         }
     }
 



Mime
View raw message