Cucumber - Data driven testing - multiple similar steps in same scenario
问题 I am writing a feature which deals with adding multiple items to shopping cart like a typical e-commerce application. It is something like this - Scenario: Promotion is applied Given I select "Bacon" worth "$1" Given I select "Lettuce" worth "$2" Given I select "Diet Coke" worth "$5" Given I select "Bread" worth "$2" Then "$0.5" promotion should be applied for "Bacon" Then "$0.0" promotion should be applied for "Lettuce" Then "$0.5" promotion should be applied for "Diet Coke" Then "$1.0"