Serenity BDD Report
Home > Requirements > Contact list management
Report generated 02-04-2024 13:25

Feature: Contact list management

Scenarios

Given I am on the contact list page

When I click on the "Add a New Contact" button

And I fill in the following contact details:

First NameLast NameDate of BirthEmailPhoneStreet Address 1Street Address 2CityState or ProvincePostal CodeCountry
{firstName}{lastName}{dob}{email}{phone}{address1}{address2}{city}{stateOrProvince}{postalCode}{country}

And I click on the "Submit" button to add a contact

Then I should see added contact in the contact list

Examples:

firstNamelastNamedobemailphoneaddress1address2citystateOrProvincepostalCodecountry
JohnDoe1990-05-15johndoe@email.com34367899090123 Main St AustinTexas73301United States
WilliamBatista1986-08-26WilliamMBatista@jourrapide.com907-568-3918

Given I am on the contact list page

When I click on the "Add a New Contact" button

And I fill in the following contact details:

First NameLast NameDate of BirthEmailPhoneStreet Address 1Street Address 2CityState or ProvincePostal CodeCountry
1990-05-15johndoe@email.com

And I click on the "Submit" button to add a contact

Then I should see the error message: "Contact validation failed: firstName: Path firstName is required., lastName: Path lastName is required."

Given my contact list contains one contact with the following details:

First NameLast NameDate of BirthEmailPhoneStreet Address 1Street Address 2CityState or ProvincePostal CodeCountry
DeborahWilliams1983-08-13DeborahEWilliams@jourrapide.com580-251-43382582 Luke Lane DuncanOK73533United States

And I am on the contact list page

When I click on the contact row

And I click on the "Edit Contact" button

And I change the contact details to the following:

First NameLast NameDate of BirthEmailPhoneStreet Address 1Street Address 2CityState or ProvincePostal CodeCountry
DeborahWilliams1983-08-13DeborahEWilliams@jourrapide.com 3744 Station StreetApartment 2COaklandCalifornia94612United States

And I click on the "Submit" button to edit a contact

Then I should see updated contact details on the page

Given my contact list contains one contact with the following details:

First NameLast NameDate of BirthEmailPhoneStreet Address 1Street Address 2CityState or ProvincePostal CodeCountry
GertrudeRobinson1966-08-22GertrudeBRobinson@teleworm.us303-669-13421476 Clearview Drive DenverCO80216United States

And I am on the contact list page

When I click on the contact row

And I click on the "Edit Contact" button

And I change the contact details to the following:

First NameLast NameDate of BirthEmailPhoneStreet Address 1Street Address 2CityState or ProvincePostal CodeCountry
1966-08-22GertrudeBRobinson@teleworm.us303-669-13421476 Clearview Drive DenverCO80216United States

And I click on the "Submit" button to edit a contact

Then I should see the error message: "Validation failed: lastName: Path lastName is required., firstName: Path firstName is required."

Given my contact list contains one contact with the following details:

First NameLast NameDate of BirthEmailPhoneStreet Address 1Street Address 2CityState or ProvincePostal CodeCountry
JoshuaSmith1939-01-30JoshuaSSmith@dayrep.com917-712-58081642 Hanover Street New YorkNY10016United States

And I am on the contact list page

When I click on the contact row

And I click on the "Delete Contact" button

And I accept the confirmation dialog

Then I should return to a Contact List page

And I should not see the deleted contact in my contact list

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 5 Total Duration 16s
Total Number of Test Cases 6 Fastest Test 2s
Number of Manual Test Cases 0 Slowest Test 6s
Tests Started Apr 02, 2024 13:25:27 Average Execution Time 5s
Tests Finished Apr 02, 2024 13:25:43 Total Execution Time 31s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Contact list management Add new contact to the contact list
2 passing test cases
Chrome,Mac OS X 5 13:25:34 8s 046ms SUCCESS
Contact list management Try to add new contact with empty first and last name to the contact list Chrome,Mac OS X 5 13:25:34 4s 910ms SUCCESS
Contact list management Edit existing contact from the contact list Chrome,Mac OS X 7 13:25:36 6s 569ms SUCCESS
Contact list management Try to set empty first and last name to the existing contact Chrome,Mac OS X 7 13:25:33 5s 076ms SUCCESS
Contact list management Delete a contact from the contact list Chrome,Mac OS X 7 13:25:27 6s 550ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.1.4