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.
4.747
Background
Given
User is logged in as Administrator
1.403
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.286
And
Visitor is on the Front Page
3.057
3.563
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()
0.646
When
Visitor 'John' 'Doe' with an email 'john.doe@email.com' and phone number '+44 1632 960018' tries to book a room '1408'
2.920
Then
Visitor will get Booking Successful! Message
0.643
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.111
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.151
2.709
Background
Given
User is logged in as Administrator
0.045
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.618
1.866
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()
0.649
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.684
Then
Visitor will get Booking Mandatory Error Message: 'Lastname should not be blank'
0.101
And
Visitor will get Booking Validation Error Message: 'size must be between 3 and 30'
0.079
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.042
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.132
2.732
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.096
And
Visitor is on the Front Page
2.582
2.178
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()
0.526
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.588
Then
Visitor will get Booking Mandatory Error Message: 'must not be null'
0.590
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.042
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.146
2.747
Background
Given
User is logged in as Administrator
0.043
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.055
And
Visitor is on the Front Page
2.648
2.143
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()
0.567
When
Visitor 'John' 'Doe' with phone number '+44 1632 960018' tries to book a room '1408' without filling up email field
1.960
Then
Visitor will get Booking Mandatory Error Message: 'must not be empty'
0.182
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.099
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.321
2.500
Background
Given
User is logged in as Administrator
0.019
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.034
And
Visitor is on the Front Page
2.446
2.185
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()
0.614
When
Visitor 'John' 'Doe' with an email 'john.doe@email.com' tries to book a room '1408' without filling up phone field
1.877
Then
Visitor will get Booking Mandatory Error Message: 'must not be empty'
0.136
And
Visitor will get Booking Validation Error Message: 'size must be between 11 and 21'
0.171
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.065
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.139
2.316
Background
Given
User is logged in as Administrator
0.018
And
User has created Single type Accessible room '1408' priced at 50 GBP with 'WiFi, TV, Refreshments and Safe'
0.028
And
Visitor is on the Front Page
2.269
2.536
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()
0.390
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
1.860
Then
Visitor will get Booking Mandatory Error Message: 'Firstname should not be blank'
0.601
And
Visitor will get Booking Validation Error Message: 'size must be between 3 and 18'
0.074
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.047
After
com.levi9.functionaltests.hooks.Hooks.tearDownDriver()
0.159