Java jar file run test3/15/2024 ![]() ![]() Thread ID - 14 - Scenario 1 from scenarios feature file. Thread ID - 13 - Scenario Outline Row 2 from scenario-outlines feature file. Thread ID - 13 - Scenario Outline Row 1 from scenario-outlines feature file. Similarly both the rows of the scenario outline in the file ( scenario-outlines.feature) are executed by thread with ID 13. It is important to note that both the scenarios in the file ( scenarios.feature) are executed by thread with ID 14. You should see a result similar to below. This should run in parallel threaded mode. Use the Maven install or a suitable command to execute the POM.Add the Surefire plugin configuration to the build section to the POM.Given Step from '' in 'scenario-outlines' feature file Given Step from 'Scenario 2' in 'scenarios' feature file ![]() Given Step from 'Scenario 1' in 'scenarios' feature file You can use either Maven Surefire or Failsafe plugin to execute the runners.Ĭreate a Maven project in your favorite IDE using the cucumber-archetype or by adding Cucumber dependencies to the POM as detailed here and Junit dependencies here.Ĭreate a parallel folder (or any other name) in src/test/resources path and add the two feature files ( scenarios.feature and scenario-outlines.feature) inside it. In JUnit the feature files are run in parallel rather than scenarios, which means all the scenarios in a feature file will be executed by the same thread. Cucumber can be executed in parallel using JUnit and Maven test execution plugins. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |