You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2010/08/25 18:35:47 UTC
svn commit: r989207 -
/tapestry/tapestry5/trunk/tapestry-test/src/main/java/org/apache/tapestry5/test/ErrorReporterImpl.java
Author: hlship
Date: Wed Aug 25 16:35:47 2010
New Revision: 989207
URL: http://svn.apache.org/viewvc?rev=989207&view=rev
Log:
TAP5-1256: Failed Selenium assertions should capture a screenshot (as well as the current page HTML)
Modified:
tapestry/tapestry5/trunk/tapestry-test/src/main/java/org/apache/tapestry5/test/ErrorReporterImpl.java
Modified: tapestry/tapestry5/trunk/tapestry-test/src/main/java/org/apache/tapestry5/test/ErrorReporterImpl.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-test/src/main/java/org/apache/tapestry5/test/ErrorReporterImpl.java?rev=989207&r1=989206&r2=989207&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-test/src/main/java/org/apache/tapestry5/test/ErrorReporterImpl.java (original)
+++ tapestry/tapestry5/trunk/tapestry-test/src/main/java/org/apache/tapestry5/test/ErrorReporterImpl.java Wed Aug 25 16:35:47 2010
@@ -80,6 +80,13 @@ public class ErrorReporterImpl implement
{
// Ignore.
}
+
+ File capture = new File(dir, baseFileName + "-screen-capture.png");
+
+ System.err.println("Writing current page screenshot to: " + capture);
+
+ commandProcessor.doCommand("captureEntirePageScreenshot", new String[]
+ { capture.getAbsolutePath(), "" });
}
}