[
https://issues.jboss.org/browse/ARQAJO-120?page=com.atlassian.jira.plugin...
]
Juraj Huska edited comment on ARQAJO-120 at 1/13/12 8:25 AM:
-------------------------------------------------------------
I have tried capturing screenshot in Ajocado tests, and it *does not throw error*, so the
problem can be in the application and Ajocado dependencies, need to investigate further.
was (Author: jhuska):
I have tried capturing screenshot in Ajocado, and it does not throw error, so the
problem can be in the application and Ajocado dependencies, need to investigate further.
capturing screenshot fails with error
-------------------------------------
Key: ARQAJO-120
URL:
https://issues.jboss.org/browse/ARQAJO-120
Project: Arquillian Ajocado
Issue Type: Bug
Components: core
Affects Versions: 1.0.0.CR3
Reporter: Juraj Huska
*Capturing screenshot*, either by calling captureEntirePageScreenshot or
captureScreenshot methods, *throws error*:
{code}
java.lang.NoSuchMethodError:
org.apache.commons.codec.binary.Base64.decodeBase64(Ljava/lang/String;)[B
RemoteTestNG finishing: -1326453926882 ms
at
org.jboss.arquillian.ajocado.framework.TypedSeleniumImpl.decodeBase64Screenshot(TypedSeleniumImpl.java:800)
at
org.jboss.arquillian.ajocado.framework.TypedSeleniumImpl.captureEntirePageScreenshot(TypedSeleniumImpl.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.arquillian.ajocado.framework.AjaxSeleniumContext.invoke(AjaxSeleniumContext.java:113)
at $Proxy4.captureEntirePageScreenshot(Unknown Source)
at
org.jboss.test.selenium.listener.FailureLoggingTestListener.onFailure(FailureLoggingTestListener.java:126)
at
org.richfaces.tests.metamer.ftest.MetamerFailureLoggingTestListener.onFailure(MetamerFailureLoggingTestListener.java:56)
at
org.jboss.test.selenium.listener.FailureLoggingTestListener.onTestFailure(FailureLoggingTestListener.java:77)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1823)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1807)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1226)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.runWorkers(TestRunner.java:1183)
at org.testng.TestRunner.privateRun(TestRunner.java:762)
at org.testng.TestRunner.run(TestRunner.java:613)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:335)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
at org.testng.SuiteRunner.run(SuiteRunner.java:241)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1165)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1090)
at org.testng.TestNG.run(TestNG.java:1002)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:107)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:199)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:170)
{code}
Capturing screenshots *is essential* in implementation of failure testng listeners, when
after each failure the screenshot of the page is taken.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira