[
http://jira.codehaus.org/browse/CONTINUUM-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=181014#action_181014
]
Jose Morales Martinez commented on CONTINUUM-2268:
--------------------------------------------------
It's good idea.
I am searching information about logs inTestNG and I think we can replace
try/catch in AbstractSeleniumTest for TestNG listeners [1] and then we take
screenshot. What do you think about it?
[1] http://testng.org/doc/documentation-main.html#logging-listeners.
> Continuum Webapp Tests Capture Screenshot for AbstractSeleniumTest.java
> -----------------------------------------------------------------------
>
> Key: CONTINUUM-2268
> URL: http://jira.codehaus.org/browse/CONTINUUM-2268
> Project: Continuum
> Issue Type: Test
> Components: Testing
> Environment: Linux
> Reporter: Bernard Lago
> Attachments: CaptureScreenshotForAbstractSeleniumTest.patch,
> ContinuumTestCaptureAssertionError.patch
>
>
> The attached patch includes the following changes:
> Changed continuum-webapp-tests/pom.xml selenium version from 0.9.2 to 1.0.1
> Added a captureEntirePageScreenshot to AbstractSeleniumTest.java
> Added a catch block for every failed assertion to do a screen capture and
> save them to target/screenshots directory
> Formatted the filename of the captured file as
> "methodName(className.java:lineNumber)-time.png"
> Additional Info:
> Maven version: 2.0.10
> Java version: 1.5.0_16
> OS name: "linux" version: "2.6.27-14-generic" arch: "i386" Family: "unix"
> Patch created at revision 785116.
> Build Results:
> Results :
> Tests run: 167, Failures: 0, Errors: 0, Skipped: 0
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira