Feature
Booking a Room
Visitor must be able to book a room for available dates by filling up all Mandatory fields with valid values, selecting available date and clicking on Book button.
If any of the Mandatory fields is missing, proper Mandatory Error Message must be displayed.
2.746
Background
Given
User is logged in as Administrator
0.016
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.047
And
Visitor is on the Front Page
2.682
2.277
Scenario
Visitor must NOT be able to book a room without filling up email field
Before
com.levi9.functionaltests.hooks.Hooks.scenarioStart(io.cucumber.java.Scenario)
0.000
Before
com.levi9.functionaltests.hooks.Hooks.setupDriver()
2.519
When
Visitor 'John' 'Doe' with phone number '+44 1632 960018' tries to book a room '1408' without filling up email field
2.161
Then
Visitor will get Booking Mandatory Error Message: 'must not be empty'
0.116
After
com.levi9.functionaltests.hooks.Hooks.scenarioEnd(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.embedScenarioFailedScreenshot(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.cleanUp()
0.123
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
1.304
2.264
Background
Given
User is logged in as Administrator
0.053
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.098
And
Visitor is on the Front Page
2.111
2.955
Scenario
Visitor must be able to book a room for available dates by filling up all Mandatory fields
Before
com.levi9.functionaltests.hooks.Hooks.scenarioStart(io.cucumber.java.Scenario)
0.000
Before
com.levi9.functionaltests.hooks.Hooks.setupDriver()
2.998
When
Visitor 'John' 'Doe' with an email 'john.doe@email.com' and phone number '+44 1632 960018' tries to book a room '1408'
2.936
Then
Visitor will get Booking Successful! Message
0.018
After
com.levi9.functionaltests.hooks.Hooks.scenarioEnd(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.embedScenarioFailedScreenshot(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.cleanUp()
0.094
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.819
2.262
Background
Given
User is logged in as Administrator
0.030
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.041
And
Visitor is on the Front Page
2.190
2.660
Scenario
Visitor must NOT be able to book a room without filling up last name field
Before
com.levi9.functionaltests.hooks.Hooks.scenarioStart(io.cucumber.java.Scenario)
0.000
Before
com.levi9.functionaltests.hooks.Hooks.setupDriver()
3.500
When
Visitor 'John' with an email 'john.doe@email.com' and phone number '+44 1632 960018' tries to book a room '1408' without filling up last name field
2.382
Then
Visitor will get Booking Mandatory Error Message: 'Lastname should not be blank'
0.119
And
Visitor will get Booking Validation Error Message: 'size must be between 3 and 30'
0.158
After
com.levi9.functionaltests.hooks.Hooks.scenarioEnd(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.embedScenarioFailedScreenshot(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.cleanUp()
0.159
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.913
2.336
Background
Given
User is logged in as Administrator
0.012
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.023
And
Visitor is on the Front Page
2.299
1.984
Scenario
Visitor must NOT be able to book a room without filling up phone field
Before
com.levi9.functionaltests.hooks.Hooks.scenarioStart(io.cucumber.java.Scenario)
0.000
Before
com.levi9.functionaltests.hooks.Hooks.setupDriver()
2.475
When
Visitor 'John' 'Doe' with an email 'john.doe@email.com' tries to book a room '1408' without filling up phone field
1.850
Then
Visitor will get Booking Mandatory Error Message: 'must not be empty'
0.069
And
Visitor will get Booking Validation Error Message: 'size must be between 11 and 21'
0.064
After
com.levi9.functionaltests.hooks.Hooks.scenarioEnd(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.embedScenarioFailedScreenshot(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.cleanUp()
0.049
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.735
2.365
Background
Given
User is logged in as Administrator
0.042
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.051
And
Visitor is on the Front Page
2.271
3.081
Scenario
Visitor must NOT be able to book a room without filling up first name field
Before
com.levi9.functionaltests.hooks.Hooks.scenarioStart(io.cucumber.java.Scenario)
0.000
Before
com.levi9.functionaltests.hooks.Hooks.setupDriver()
3.364
When
Visitor 'Doe' with an email 'john.doe@email.com' and phone number '+44 1632 960018' tries to book a room '1408' without filling up first name field
2.802
Then
Visitor will get Booking Mandatory Error Message: 'Firstname should not be blank'
0.145
And
Visitor will get Booking Validation Error Message: 'size must be between 3 and 18'
0.133
After
com.levi9.functionaltests.hooks.Hooks.scenarioEnd(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.embedScenarioFailedScreenshot(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.cleanUp()
0.056
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
1.037
2.139
Background
Given
User is logged in as Administrator
0.029
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.054
And
Visitor is on the Front Page
2.056
1.637
Scenario
Visitor must NOT be able to book a room setting booking dates
Before
com.levi9.functionaltests.hooks.Hooks.scenarioStart(io.cucumber.java.Scenario)
0.000
Before
com.levi9.functionaltests.hooks.Hooks.setupDriver()
2.292
When
Visitor 'John' 'Doe' with an email 'john.doe@email.com' and phone number '+44 1632 960018' tries to book a room '1408' without setting booking dates
1.546
Then
Visitor will get Booking Mandatory Error Message: 'must not be null'
0.091
After
com.levi9.functionaltests.hooks.Hooks.scenarioEnd(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.embedScenarioFailedScreenshot(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.cleanUp()
0.063
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.835