Convert Gherkin scenarios to TestDriver prompts
Given
, When
, Then
, and And
to define steps in a test.
Gherkin Keyword | TestDriver Prompt |
---|---|
Given | Describes the initial state or setup. |
When | Describes the user action. |
Then | Describes the expected outcome or result. |
And | Adds additional steps to the same context. |
Given
, When
, Then
, and And
keywords, and focus on the action or expectation.
Gherkin Step | TestDriver Prompt |
---|---|
Given the user is on the login page | the user is on the login page |
When the user enters valid credentials | the user enters valid credentials |
And clicks the "Log In" button | clicks the "Log In" button |
Then the user should see the dashboard | the user should see the dashboard |
prompt
entry.
login_test.yaml
).testdriver/
).testdriver/
) for easy management.