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.
3.117
Background
Given
User is logged in as Administrator
0.050
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.113
And
Visitor is on the Front Page
2.953
2.258
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()
4.301
When
Visitor 'John' 'Doe' with an email 'john.doe@email.com' and phone number '+44 1632 960018' tries to book a room '1408'
2.230
Then
Visitor will get Booking Successful! Message
0.028
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.174
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.686
3.336
Background
Given
User is logged in as Administrator
0.097
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.150
And
Visitor is on the Front Page
3.088
2.816
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.006
Before
com.levi9.functionaltests.hooks.Hooks.setupDriver()
3.272
When
Visitor 'John' 'Doe' with an email 'john.doe@email.com' tries to book a room '1408' without filling up phone field
2.699
Then
Visitor will get Booking Mandatory Error Message: 'must not be empty'
0.061
And
Visitor will get Booking Validation Error Message: 'size must be between 11 and 21'
0.056
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()
0.701
6.978
Background
Given
User is logged in as Administrator
3.290
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.240
And
Visitor is on the Front Page
3.447
2.085
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.013
Before
com.levi9.functionaltests.hooks.Hooks.setupDriver()
22.354
When
Visitor 'John' 'Doe' with phone number '+44 1632 960018' tries to book a room '1408' without filling up email field
1.994
Then
Visitor will get Booking Mandatory Error Message: 'must not be empty'
0.091
After
com.levi9.functionaltests.hooks.Hooks.scenarioEnd(io.cucumber.java.Scenario)
0.003
After
com.levi9.functionaltests.hooks.Hooks.embedScenarioFailedScreenshot(io.cucumber.java.Scenario)
0.000
After
com.levi9.functionaltests.hooks.Hooks.cleanUp()
0.246
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.757
3.381
Background
Given
User is logged in as Administrator
0.133
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.082
And
Visitor is on the Front Page
3.165
2.308
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()
2.829
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.158
Then
Visitor will get Booking Mandatory Error Message: 'Firstname should not be blank'
0.090
And
Visitor will get Booking Validation Error Message: 'size must be between 3 and 18'
0.059
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.117
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
1.002
3.280
Background
Given
User is logged in as Administrator
0.069
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.080
And
Visitor is on the Front Page
3.131
1.357
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.536
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.284
Then
Visitor will get Booking Mandatory Error Message: 'must not be null'
0.073
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.077
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.519
2.521
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.056
And
Visitor is on the Front Page
2.399
1.851
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()
4.204
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.646
Then
Visitor will get Booking Mandatory Error Message: 'Lastname should not be blank'
0.103
And
Visitor will get Booking Validation Error Message: 'size must be between 3 and 30'
0.101
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.093
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.988