reportportal / agent-java-cucumber4

Cucumber JVM version [4.0.0; 5.0.0) adapter
Apache License 2.0
6 stars 9 forks source link

RP agent throws an exception and stuck if there are several ScenarioOutline with the identical name in the feature #58

Closed jurteg closed 4 years ago

jurteg commented 4 years ago

RP agent throws an exception and stuck if there are several scenario outlines with the same name in the feature Agent can't diffirentiate them by name and throws an exception.

Jun 25, 2020 5:15:41 PM cucumber.runtime.Runtime run
SEVERE: Exception while executing pickle
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: No outline iteration number found for scenario /D:/PATH_TO_FEATURE/FEATURE.feature:54 # A customer can use tabs to view product information
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at cucumber.runtime.Runtime.run(Runtime.java:114)
at io.cucumber.core.cli.Main.run(Main.java:43)
at io.cucumber.core.cli.Main.main(Main.java:14)
Caused by: java.lang.IllegalStateException: No outline iteration number found for scenario /D:/PATH_TO_FEATURE/FEATURE.feature:54 # A customer can use tabs to vi ew product information
at com.epam.reportportal.cucumber.RunningContext$ScenarioContext.lambda$processScenarioOutline$4(RunningContext.java:216)
at java.util.OptionalInt.orElseThrow(OptionalInt.java:189)
at com.epam.reportportal.cucumber.RunningContext$ScenarioContext.processScenarioOutline(RunningContext.java:216)
at com.epam.reportportal.cucumber.RunningContext$FeatureContext.getScenarioContext(RunningContext.java:84)
at com.epam.reportportal.cucumber.AbstractReporter.handleStartOfTestCase(AbstractReporter.java:416)
at com.epam.reportportal.cucumber.AbstractReporter$4.receive(AbstractReporter.java:337)
at com.epam.reportportal.cucumber.AbstractReporter$4.receive(AbstractReporter.java:334)
at cucumber.runner.AbstractEventPublisher.send(AbstractEventPublisher.java:45)
at cucumber.runner.AbstractEventBus.send(AbstractEventBus.java:9)
at cucumber.runner.TimeServiceEventBus.send(TimeServiceEventBus.java:3)
at cucumber.runner.TestCase.run(TestCase.java:38)
at cucumber.runner.Runner.runPickle(Runner.java:50)
at cucumber.runtime.Runtime$1.run(Runtime.java:104)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at cucumber.runtime.Runtime$SameThreadExecutorService.execute(Runtime.java:258)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at cucumber.runtime.Runtime.run(Runtime.java:101)
... 2 more