Je suis nouveau dans Visual Studio. J'utilise Visual Studio 2015 avec SpecFlow. Ci-dessous le fichier d'entité:Génération d'étape SpecFlow pour le contour du scénario Génération de méthodes incorrectes
@mytag
Scenario Outline: Successful Authentication
Given I am a user of type <user>
When I hit the application URL
And I provide <email>
And I click on Log In Button
Then I will be landed to the Home Page
And I will be able to see <name> on the Home Page
Examples:
| user | email | name |
| admin | [email protected] | alpha |
| non-admin | [email protected] | beta |
Quand je produis les définitions étape je requièrent des paramètres en place des variables, au lieu de la méthode est générée comme suit:
[Given(@"I am a user of type admin")]
public void GivenIAmAUserOfTypeAdmin()
{
ScenarioContext.Current.Pending();
}
je place attendais méthode comme:
[Given(@"I am a user of type '(.*)'")]
public void GivenIAmAUserOfType(string p0)
{
ScenarioContext.Current.Pending();
}
Que manque-t-il?
merci Daniel. Oui, cela résout le problème. –