You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.
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.
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: