Report generated 11-05-2021 12:00
Frequent Flyers earn status points each time they fly.
As they earn more points, their status level increases and they get more benefits.

Scenarios

Given Tracy has logged onto the Frequent Flyer application as a new member

When she books the following flights

FromToTravel ClassTrip TypeNotes
LondonNew YorkBusinessReturn
LondonLos AngelesBusinessReturnGets to BRONZE
SydneyHong KongEconomySingleEarns 25% extra

Then her booking history should contain:

DepartureDestinationPoints Earned
LondonNew York250
New YorkLondon250
LondonLos Angeles250
Los AngelesLondon250
SydneyHong Kong125

And her account status should become:

Point BalanceStatus Level
1125BRONZE

Rule: Flights within the same region earn a fixed number of points based on the region

Given Trevor is a new Frequent Flyer Member

When he has completed the following flight

FromToTravel ClassTrip Date
{From}{To}Economy2021-03-01

Then his point balance should be {Points Earned} points

Examples:

RegionFromToPoints Earned
EuropeLondonParis20
ANZSydneyWellington25
AmericaLos AngelesNew York35
AsiaHong KongSeoul50

Rule: Members achieve new status levels when they earn sufficient points

Given Stan is a new Frequent Flyer Member

When he earns between {Min Points} and {Max Points} points

Then his status should become {Status Level}

Examples:

Min PointsMax PointsStatus Level
0999STANDARD
10001999BRONZE
20004999SILVER
5000GOLD

Rule: Travellers with higher status earn more points
A flight from Sydney to Hong Kong normally earns 100 points

Given Trevor is a Frequent Flyer Member with status {Status}

When he has completed the following flight

FromToTravel ClassTrip Date
SydneyHong KongEconomy2021-03-01

Then he should have earned {Points Earned} points

Examples:

StatusPoints EarnedBonus
STANDARD1000
BRONZE12525%
SILVER15050%
GOLD200100%

Rule: Cities are located in one of four regions for the purposes of point calculations
The four regions are:
- Europe
- Americas
- Australia/New Zealand (ANZ)
- Asia

When points are calculated for a flight to or from {City}

Then the city should be considered to be part of the {Region Code} region

Examples:

CityRegionRegion Code
LondonEuropeEUR
SydneyAustralia/New ZealandANZ
Los AngelesAmericaAMERICA
Buenos AiresAmericaAMERICA
SeoulAsiaASIA

Rule: Travellers earn more depending on the cabin class they fly in
A flight from Sydney to Hong Kong normally earns 100 points

Given Tracy is a new Frequent Flyer Member

When she has completed the following flight

FromToTravel ClassTrip Date
SydneyHong Kong{Travel Class}2021-03-01

Then her point balance should be {Points Earned} points

Examples:

Travel ClassPoints EarnedBonus
Economy1000
Premium Economy15050%
Business200100%

Rule: Return trips should be counted as two single trips
Background:

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

Manual Tests

No manual tests were recorded
Serenity BDD version 2.4.24