...
Code Block |
---|
Scenario: Valid user login
Given a user exists with a <username> and <password>
|username|password|
|Alexis| 123123|
When the user tries to log in with the correct credentials
Then the user should be successfully logged in |
Or in the “view”
...
In this scenario, in the “View”, the "username" and "password" would come from your data are linked to our centralized data storage.
...
Benefits: This approach ensures consistency and ease of maintenance. If you need to change a piece of data, you only update it in one place, and all your Gherkin files will use the updated data. It's like changing a piece of information at the main desk, and all stories in the library automatically update with this new information.
...