serenity-bdd/serenity-core
Do you want to work on this issue?
You can request for a bounty in order to promote it!
Failed to generate configuration report Remote execution #3161
RobertoPegoraro posted onGitHub
I'm using jenkins to run my tests using RemoteWebDriver and when Serenity tries to generate the report, it fails with the following error:
P166RunCucumber > executionError FAILED
net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate configuration report
at app//net.thucydides.core.reports.ReportService.waitForReportGenerationToFinish(ReportService.java:211)
at app//net.thucydides.core.reports.ReportService.generateReportsFor(ReportService.java:188)
at app//net.thucydides.core.reports.ReportService.generateReportsFor(ReportService.java:134)
at app//io.cucumber.core.plugin.SerenityReporter.generateReports(SerenityReporter.java:993)
at app//io.cucumber.core.plugin.SerenityReporter.handleTestRunFinished(SerenityReporter.java:377)
at app//io.cucumber.core.eventbus.AbstractEventPublisher.send(AbstractEventPublisher.java:51)
at app//io.cucumber.core.eventbus.AbstractEventBus.send(AbstractEventBus.java:12)
at app//io.cucumber.core.runtime.SynchronizedEventBus.send(SynchronizedEventBus.java:47)
at app//io.cucumber.core.runtime.CucumberExecutionContext.emitTestRunFinished(CucumberExecutionContext.java:111)
at app//io.cucumber.core.runtime.CucumberExecutionContext.finishTestRun(CucumberExecutionContext.java:98)
at app//io.cucumber.junit.CucumberSerenityRunner$RunCucumber.evaluate(CucumberSerenityRunner.java:291)
at app//org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at app//org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at app//org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at app//org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at app//org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:43)
at java.base@11/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base@11/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base@11/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base@11/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.base@11/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base@11/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base@11/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base@11/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base@11/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base@11/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at app//org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:82)
at app//org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:73)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:99)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:79)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:75)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
at java.base@11/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base@11/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base@11/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base@11/java.lang.reflect.Method.invoke(Method.java:566)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
at com.sun.proxy.$Proxy2.stop(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:133)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:71)
at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by:
java.util.concurrent.ExecutionException: net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate reports using net.thucydides.core.reports.json.JSONTestOutcomeReporter@b514ef9
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at net.thucydides.core.reports.ReportService.waitForReportGenerationToFinish(ReportService.java:208)
... 56 more
Caused by:
net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate reports using net.thucydides.core.reports.json.JSONTestOutcomeReporter@b514ef9
at app//net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:248)
at app//net.thucydides.core.reports.ReportService.lambda$generateReportsFor$0(ReportService.java:184)
at java.base@11/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base@11/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base@11/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base@11/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base@11/java.lang.Thread.run(Thread.java:834)
Caused by:
java.nio.file.NoSuchFileException: target/site/serenity/0f5667a375e739bac2b387d32961b2edba7e2ced691a58f68aa0071588f778f2.jsonbc9ee6fe-bc1f-4406-a5a5-4dcf649671f4 -> target/site/serenity/0f5667a375e739bac2b387d32961b2edba7e2ced691a58f68aa0071588f778f2.json
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:417)
at java.base/sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:263)
at java.base/java.nio.file.Files.move(Files.java:1421)
at net.thucydides.core.reports.io.SafelyMoveFiles.to(SafelyMoveFiles.java:30)
at net.thucydides.core.reports.io.SafelyMoveFiles.to(SafelyMoveFiles.java:39)
at net.thucydides.core.reports.io.SafelyMoveFiles.to(SafelyMoveFiles.java:39)
at net.thucydides.core.reports.io.SafelyMoveFiles.to(SafelyMoveFiles.java:39)
at net.thucydides.core.reports.json.JSONTestOutcomeReporter.generateReportFor(JSONTestOutcomeReporter.java:64)
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:246)
... 6 more
522888 [Thread-3] INFO c.c.s.d.DisposablesRegistry - Run cleanup: size=1