New answers tagged

1 vote

How to run the same scenario multiple times in Selenium Cucumber?

In case your objective is to run your scenario multiple times over different data items, you can simply write a Scenario Outline in your gherkin feature file, Example, Feature: Sample Feature I want ...
user avatar
1 vote

How to run the same scenario multiple times in Selenium Cucumber?

Cucumber doesn't have re-run features, but you can simply re-execute the (bash) command to run the tests: for i in {1..10}; do cucumber --tags @rerun; done If you use Maven, Gradle, or something else,...
user avatar
  • 9,949

Top 50 recent answers are included