I am trying to write a scenario using specflow where I am downloading a file and checking if the file with specific name is getting downloaded.
Scenario Outline: Download excel files
Given I am on the Shipping
When I download a <downloadfile> file
Then I should be able to download the file.
Examples:
| downloadfile |
| xyz |
| abc |
When i generate the step file the following gets generated in my steps.cs file:
[When(@"I download a xyz file\.")]
public void WhenIDownloadAXyzFile_()
{
ScenarioContext.Current.Pending();
}
Can anybody tell me why I am not getting (.*) in step definition? It is showing first example content in step definition.
| downloadfile |line) and then it seems to work properly. Add the data back in after you generate step definitions. - tnw