I have the following test, using Specflow, Selenium WebDriver and C#:
Scenario Outline: Verify query result
Given I'm logged in
When I enter "<query>"
Then I should see the correct result
Examples:
| query |
| Query1 |
| Query2 |
| Query3 |
After each scenario I save a screenshot to a file which is named based on the ScenarioContext.Current.ScenarioInfo.Title. However, I can't find a good way to differentiate between the iterations, so the screenshots get overwritten. I could add a column in the Examples table, but I want a more generic solution...
Is there a way to know which iteration is being executed?