Open RaviG-Newell opened 3 years ago
The cucumber-jvm-parallel-plugin is no longer supported (and Serenity has never supported parallel execution of the scenarios, due to limitations in the Cucumber APIs). You should update to Cucumber 6 to have native support for parallel tests; however Cucumber doesn't support parallel scenario execution in JUnit, so Serenity can only support the parallel execution of feature files.
Hi,
I am using Serenity with cucumber version 4 in our project. I have a feature file with a multiple scenario's in it.. So I'm trying to run scripts in parallel at scenario level (by default Serenity takes feature level parallel execution) to reduce the execution time, but see that parallel execution is not working as expected at scenario level.
I have tried by updating the pom.xml file to run parallel at scenario level by making the below change FEATURE level parallel :
<parallelScheme>FEATURE</parallelScheme>
SCENARIO level parallel :<parallelScheme>SCENARIO</parallelScheme>
After running the scripts with the above changes, I see there are multiple execution for a single scenario Ex: I have 5 parallel thread, 5 Scenario's to run then I see each scenario is running 5 times. ie., I see 25 test runs instead of 5.
It would be of great help I could get a solution to run the scripts parallel at scenario.
POM.XML changes
`
Regards Ravi