I want to test an app using Cucumber and Gherkin. Now I have the login part and then I have a form. Now I want to test this form for validation, but there ara many combinations taht I can do with valid and invalid data there and so a big number of tests.
Is there a way to reuse the feature of login so I do not have to insert the code in each new feature of validation?? I read this enter link description here, but it doesnt work for me.
I do it like this:
Scenario: Test1
Given I have already logged in
step login
step put username
step put password
When I put validation data
Then ...
Aucun commentaire:
Enregistrer un commentaire