Given Tracy has logged onto the Frequent Flyer application as a new member
When she books the following flights
From | To | Travel Class | Trip Type | Notes |
---|---|---|---|---|
London | New York | Business | Return | |
London | Los Angeles | Business | Return | Gets to BRONZE |
Sydney | Hong Kong | Economy | Single | Earns 25% extra |
Then her booking history should contain:
Departure | Destination | Points Earned |
---|---|---|
London | New York | 250 |
New York | London | 250 |
London | Los Angeles | 250 |
Los Angeles | London | 250 |
Sydney | Hong Kong | 125 |
And her account status should become:
Point Balance | Status Level |
---|---|
1125 | BRONZE |
Given Trevor is a new Frequent Flyer Member
When he has completed the following flight
From | To | Travel Class | Trip Date |
---|---|---|---|
{From} | {To} | Economy | 2021-03-01 |
Then his point balance should be {Points Earned} points
Given Trevor is a Frequent Flyer Member with status {Status}
When he has completed the following flight
From | To | Travel Class | Trip Date |
---|---|---|---|
Sydney | Hong Kong | Economy | 2021-03-01 |
Then he should have earned {Points Earned} points
Given Tracy is a new Frequent Flyer Member
When she has completed the following flight
From | To | Travel Class | Trip Date |
---|---|---|---|
Sydney | Hong Kong | {Travel Class} | 2021-03-01 |
Then her point balance should be {Points Earned} points
Given Stan has logged onto the Frequent Flyer application as a new member
When Stan books a single Economy flight from London to Sydney
Then his point balance should be 250 points
When Stan books a return Economy flight from London to Sydney
Then his point balance should be 500 points
Scenario Results (including rows of test data) | Automated | |
---|---|---|
Passing | 46 | 100% |
Pending | 0 | |
Ignored | 0 | |
Skipped | 0 | |
Unsuccessful | ||
Failed | 0 | |
Broken | 0 | |
Compromised | 0 | |
Total | 46 |
Execution Time | Clock Time | Fastest Test | Slowest Test | Average Execution Time |
---|---|---|---|---|
3m 46s | 4m 2s | 226ms | 1m 14s | 14s |
Scenario | Steps | Start Time | Duration | Result |
---|---|---|---|---|
Tracy goes from Standard to Bronze after she makes several trips | 4 | |||
Earning status levels from points earned for status level |
3 | |||
The region for <City> should be <Region> (5 examples) | 2 | |||
Stan books a single economy flight from London to Sydney | 2 | |||
Stan books a return economy flight from London to Sydney | 2 | |||
Flights within the <Region> region earn |
3 | |||
Travellers with <Status> level should earn <Bonus> bonus points (4 examples) | 3 | |||
Travellers travelling in |
3 |
- Europe
- Americas
- Australia/New Zealand (ANZ)
- Asia