Home > Requirements > Registration And Authentication > Registering As A New Frequent Flyer
Report generated 11-05-2021 12:00

Feature: Registering As A New Frequent Flyer

New Frequent Flyer members need to register to book a flight.

Scenarios

Rule: New members need to complete all the mandatory fields and approve the terms & conditions

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:

FieldError Message If Missing
emailPlease enter your email
passwordPlease enter your password
firstNamePlease enter your first name
lastNamePlease enter your last name
addressPlease enter your address
countryPlease 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"

Rule: The unique username should be a valid email address

Given Candy does not have a Frequent Flyer account

When Candy tries to register with an email of "{email}"

Then she should be told "Not a valid email format"

Examples:

email
not-an-email
notemail.com
candy@#.com

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:

EmailMessageReason Rejected
Please enter your emailCannot be empty
not-an-emailNot a valid email formatMissing @ section
wrong.comNot a valid email formatMissing @
wrong@Not a valid email formatMissing domain
wrong@#.comNot a valid email formatInvalid characters

Rule: Customers must register to be able to use the Frequent Flyer members area

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

Rule: Duplicate usernames are not allowed
Trevor is an existing Frequent Flyer member. His wife Candy does not have a Frequent Flyer account

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

Manual Tests

No manual tests were recorded
Serenity BDD version 2.4.24