I am trying to create a quizzing style skill drilling site and use Cucumber to drive the testing. As a rough estimate pretend I am presenting the user with two numbers, and asking the user to click a button representing their difference. Two obvious scenarios would be:
Scenario: Difference drill, correct answer
Given I am on the difference drill prompt page
And the first number is X
And the second number is Y
When I press "X-Y"
Then I should see "Correct!"
Scenario: Difference drill, incorrect answer
Given I am on the difference drill prompt page
And the first number is X
And the second number is Y
When I press "X-Y-1"
Then I should see "Incorrect."
I don't think Scenario Outlines are quite the right answer here, is there any way of having Cucumber tests where the data presented to the user is somewhat randomly generated, and the user's actions are contingent upon that data?