I do not believe that SpecFlow has direct support for this. However, with a little effort you can achieve the desired result.
Change your script definition as follows:
Background: Given parameters <filter> and <params> Scenario Outline: name of scenario Given I am on the proper page When I apply <filter> with <params> And I click filter Then the data should be filtered Examples: | filter | params | | Date | Today | | Name | Some Name |
and complete the step definition corresponding to the Given parameters etc. step .
Alternatively, if all you need is a way to distinguish between examples, i.e. it doesn’t matter to you that it is “Date” and “Today,” you just want to know what exactly this row is, and not the other, you can add another column to your examples:
Scenario Outline: name of scenario Given I am on the proper page And I am working example number <example number> When I apply <filter> with <params> And I click filter Then the data should be filtered Examples: | filter | params | example number | | Date | Today | 1 | | Name | Some Name | 2 |
source share