Given Candy does not have a Frequent Flyer account
When Candy wants to register a new Frequent Flyer account
Then the following information should be mandatory to register:
| Field | Error Message If Missing |
|---|---|
| Please enter your email | |
| password | Please enter your password |
| firstName | Please enter your first name |
| lastName | Please enter your last name |
| address | Please enter your address |
| country | Please enter a valid country |
Given Candy does not have a Frequent Flyer account
When Candy tries to register without approving the terms and conditions
Then she should be told "Please confirm the terms and conditions to continue"
Given Candy does not have a Frequent Flyer account
When Candy wants to register a new Frequent Flyer account
Then the following emails should not be considered valid:
| Message | Reason Rejected | |
|---|---|---|
| Please enter your email | Cannot be empty | |
| not-an-email | Not a valid email format | Missing @ section |
| wrong.com | Not a valid email format | Missing @ |
| wrong@ | Not a valid email format | Missing domain |
| wrong@#.com | Not a valid email format | Invalid characters |
Given Trevor does not have a Frequent Flyer account
When Trevor registers as a Frequent Flyer member
Then he should be able to log on to the Frequent Flyer application
Given Trevor has registered as a Frequent Flyer member
When Candy tries to register with the same email
Then she should be notified that "Email exists, please try another name"
| Scenario Results (including rows of test data) | Automated | |
|---|---|---|
| Passing | 16 | 100% |
| Pending | 0 | |
| Ignored | 0 | |
| Skipped | 0 | |
| Unsuccessful | ||
| Failed | 0 | |
| Broken | 0 | |
| Compromised | 0 | |
| Total | 16 | |
| Execution Time | Clock Time | Fastest Test | Slowest Test | Average Execution Time |
|---|---|---|---|---|
| 3m 40s | 4m 6s | 3s | 48s | 18s |
| Scenario | Steps | Start Time | Duration | Result |
|---|---|---|---|---|
| Trevor registers as a Frequent Flyer member | 3 | |||
| Someone tries to register with an email that is already used | 3 | |||
| Only correctly structured emails should be accepted (3 examples) | 3 | |||
| Email addresses need to be well formed | 3 | |||
| Candy fails to enter to enter a mandatory field | 3 | |||
| Candy forgets to agree to the Terms and Conditions | 3 |