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.165
Background
Given
User is logged in as Administrator
0.065
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.049
And
Visitor is on the Front Page
2.050
2.519
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.001
Before
com.levi9.functionaltests.hooks.Hooks.setupDriver()
2.802
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.321
Then
Visitor will get Booking Mandatory Error Message: 'Firstname should not be blank'
0.086
And
Visitor will get Booking Validation Error Message: 'size must be between 3 and 18'
0.111
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.085
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
1.173
2.169
Background
Given
User is logged in as Administrator
0.038
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.072
And
Visitor is on the Front Page
2.058
2.549
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.739
When
Visitor 'John' 'Doe' with phone number '+44 1632 960018' tries to book a room '1408' without filling up email field
2.380
Then
Visitor will get Booking Mandatory Error Message: 'must not be empty'
0.168
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.088
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.999
2.431
Background
Given
User is logged in as Administrator
0.085
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.123
And
Visitor is on the Front Page
2.222
2.165
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.528
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
1.933
Then
Visitor will get Booking Mandatory Error Message: 'Lastname should not be blank'
0.149
And
Visitor will get Booking Validation Error Message: 'size must be between 3 and 30'
0.083
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.106
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
1.356
2.044
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.098
And
Visitor is on the Front Page
1.903
1.433
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()
3.454
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.366
Then
Visitor will get Booking Mandatory Error Message: 'must not be null'
0.067
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.071
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
1.301
2.582
Background
Given
User is logged in as Administrator
0.079
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.077
And
Visitor is on the Front Page
2.425
2.048
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.916
When
Visitor 'John' 'Doe' with an email 'john.doe@email.com' and phone number '+44 1632 960018' tries to book a room '1408'
2.029
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.139
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
1.072
2.164
Background
Given
User is logged in as Administrator
0.021
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.045
And
Visitor is on the Front Page
2.096
1.864
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.786
When
Visitor 'John' 'Doe' with an email 'john.doe@email.com' tries to book a room '1408' without filling up phone field
1.741
Then
Visitor will get Booking Mandatory Error Message: 'must not be empty'
0.074
And
Visitor will get Booking Validation Error Message: 'size must be between 11 and 21'
0.048
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.073
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
1.105