A Small Example
This example covers the generation of test data and oracles and the combination of features using states.
Feature: Login
As a user
I would like to authenticate myself
In order to access the application
Scenario: Successful login
Given that I can see the login screen
When I enter with valid credentials
Then I can access the application's main screen
Variant: Login with username and password
Given that I visit the [Login Screen]
When I fill {Username}
And I fill {Password}
And I click on {OK}
Then I see "Welcome"
And I have a ~user logged in~
Table: Users
| username | password |
| bob | 123456 |
| alice | 4l1c3pass |
UI Element: Username
- required
Otherwise I must see "Please inform the username."
- value comes from "SELECT username FROM [Users]"
Otherwise I must see "Invalid username."
UI Element: Password
- required
Otherwise I must see "Please inform the password."
- value comes from "SELECT password FROM [Users] WHERE username = {Username}"
Otherwise I must see "Invalid password."
UI Element: OK
- type is button
Constants:
- "Login Screen" is "/login"


Execution without generation
Output
3. Analyze the results
See also
Last updated