I've just completed some initial quick tests with the snapshot.

When running the build on Jenkins master it completed without error and successfully parsed the screenshot that was embedded in the JSON. I was able to view this ok by following the embedded link from the test scenario result page. It would be nice if this could be inlined there however if possible to avoid the extra click to see the image. I am using this to capture a browser screenshot on failure of a UI scenario so being able to see it in context of the assertion message would be much easier to work with than having them on 2 different URLs.

When I tested with the job running on a slave however the publish of results failed, here is the stacktrace I received:

21:09:47 [Cucumber Tests] Parsing results.
21:09:47 [Cucumber Tests] parsing report.json
21:09:48 ERROR: Failed to archive cucumber reports
21:09:48 java.io.IOException: remote file operation failed: /tank/jenkins/workspace/Cucumber_Plugin_Test at hudson.remoting.Channel@4538bceb:jenkins-minion-001.vagrant.com: java.io.IOException: Unable to serialize org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResult@58776ea5
21:09:48 at hudson.FilePath.act(FilePath.java:985)
21:09:48 at hudson.FilePath.act(FilePath.java:967)
21:09:48 at org.jenkinsci.plugins.cucumber.jsontestsupport.DefaultTestResultParserImpl.parse(DefaultTestResultParserImpl.java:100)
21:09:48 at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberJSONParser.parse(CucumberJSONParser.java:114)
21:09:48 at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.perform(CucumberTestResultArchiver.java:95)
21:09:48 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
21:09:48 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
21:09:48 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
21:09:48 at hudson.model.Build$BuildExecution.post2(Build.java:183)
21:09:48 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
21:09:48 at hudson.model.Run.execute(Run.java:1766)
21:09:48 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
21:09:48 at hudson.model.ResourceController.execute(ResourceController.java:98)
21:09:48 at hudson.model.Executor.run(Executor.java:374)
21:09:48 Caused by: java.io.IOException: Unable to serialize org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResult@58776ea5
21:09:48 at hudson.remoting.UserRequest.serialize(UserRequest.java:169)
21:09:48 at hudson.remoting.UserRequest.perform(UserRequest.java:129)
21:09:48 at hudson.remoting.UserRequest.perform(UserRequest.java:49)
21:09:48 at hudson.remoting.Request$2.run(Request.java:324)
21:09:48 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
21:09:48 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
21:09:48 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
21:09:48 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
21:09:48 at hudson.remoting.Engine$1$1.run(Engine.java:63)
21:09:48 at java.lang.Thread.run(Thread.java:745)
21:09:48 at ......remote call to jenkins-minion-001.vagrant.com(Native Method)
21:09:48 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1360)
21:09:48 at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
21:09:48 at hudson.remoting.Channel.call(Channel.java:753)
21:09:48 at hudson.FilePath.act(FilePath.java:978)
21:09:48 ... 13 more
21:09:48 Caused by: java.io.NotSerializableException: org.jenkinsci.plugins.cucumber.jsontestsupport.EmbeddedItem
21:09:48 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
21:09:48 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
21:09:48 at java.util.ArrayList.writeObject(ArrayList.java:742)
21:09:48 at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
21:09:48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:09:48 at java.lang.reflect.Method.invoke(Method.java:606)
21:09:48 at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
21:09:48 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1495)
21:09:48 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
21:09:48 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
21:09:48 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
21:09:48 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
21:09:48 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
21:09:48 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
21:09:48 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
21:09:48 at java.util.ArrayList.writeObject(ArrayList.java:742)
21:09:48 at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
21:09:48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:09:48 at java.lang.reflect.Method.invoke(Method.java:606)
21:09:48 at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
21:09:48 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1495)
21:09:48 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
21:09:48 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
21:09:48 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
21:09:48 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
21:09:48 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
21:09:48 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
21:09:48 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
21:09:48 at java.util.ArrayList.writeObject(ArrayList.java:742)
21:09:48 at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
21:09:48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:09:48 at java.lang.reflect.Method.invoke(Method.java:606)
21:09:48 at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
21:09:48 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1495)
21:09:48 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
21:09:48 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
21:09:48 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
21:09:48 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
21:09:48 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
21:09:48 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
21:09:48 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
21:09:48 at hudson.remoting.UserRequest._serialize(UserRequest.java:158)
21:09:48 at hudson.remoting.UserRequest.serialize(UserRequest.java:167)
21:09:48 at hudson.remoting.UserRequest.perform(UserRequest.java:129)
21:09:48 at hudson.remoting.UserRequest.perform(UserRequest.java:49)
21:09:48 at hudson.remoting.Request$2.run(Request.java:324)
21:09:48 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
21:09:48 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
21:09:48 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
21:09:48 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
21:09:48 at hudson.remoting.Engine$1$1.run(Engine.java:63)
21:09:48 at java.lang.Thread.run(Thread.java:745)
21:09:48 Build step 'Publish Cucumber test result report' changed build result to FAILURE
21:09:48 Finished: FAILURE

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to