New answers tagged cucumber
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 ...
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,...
Top 50 recent answers are included
Related Tags
cucumber × 220selenium-webdriver × 90
automated-testing × 85
java × 71
bdd × 42
test-automation-framework × 16
junit × 15
gherkin × 15
ruby × 14
maven × 14
testng × 13
protractor × 13
javascript × 10
appium × 8
page-objects × 7
specflow × 7
browser-automation × 5
step-definitions × 5
page-factory × 4
pom × 4
extent × 4
intellij × 4
test-management × 3
selenium2 × 3
python × 3