Sie sind auf Seite 1von 12

Copyrighted Material Sample Test cases for AdactIn Hotel Application

Sample Test Cases for Automation for AdactIn Hotel


Application

TEST
CASE OBJECTIVE STEPS TEST DATA EXPECTED
ID RESULTS
TC- To verify 1. Launch hotel URL:http://adactin. User should
101 valid login reservation application com/HotelApp/ind login to the
details using URL as in test data. ex.php application.
2. Login to the application User:{test
using username and username}
password as in test data. Password:{test
password}

TC - To verify 1. Launch hotel URL: System should


102 whether the reservation application http://adactin.com/ report an error
check-out using URL as in test HotelApp/index.ph message.
date field data. p
accepts a 2. Login to the
User:{test
later date application using
username}
than check- username and
password as in test Password:{test
in date.
data. password}
3. Select location as in Location: Sydney
test data. Hotel: hotel creek
4. Select hotel as in test
Room type:
data.
5. Select room type as in standard
test data. No-of-rooms:1
6. Select no-of-rooms as Check-in-date:
in test data. today + 7 date
7. Enter check-in-date Checkout
later than the check- date:today+5 date
out-date field as in test
data.
8. Verify that system
gives an error saying
‘check-in-date should
not be later than
check-out-date’.

TC - To check if 1. Launch hotel URL: System should


103 error is reservation application http://adactin.com/ report an error
reported if using URL as in test HotelApp/index.ph message ‘Enter
check-out data. p Valid dates’.
date field is 2. Login to the
User:{test
application using

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

in the past username and username}


password as in test Password:{test
data. password}
3. Select location as in
Location: Sydney
test data.
4. Select hotel as in test Hotel: Hotel Creek
data. Room type:
5. Select room type as in standard
test data. No-of-rooms:1
6. Select no-of-rooms as
Check-in-date:
in test data.
today’s -5 date
7. Enter check-out-date
as in test data. Checkout date:
8. Verify that application today’s -3 date
throws error message

TC- To verify 1. Launch hotel URL: Location


104 whether reservation http://adactin.com/ displayed in
locations in application using HotelApp/index.ph Select Hotel
Select Hotel URL as in test data. p should be the
page are 2. Login to the same as
User:{test
displayed application using location
username}
according to username and selected in
password as in test Password:{test
the location search hotel
data. password}
selected in form.
Search 3. Select location as in Location: Sydney
Hotel test data. Hotel: hotel Creek
4. Select hotel as in
Room type:
test data.
standard
5. Select room type as
in test data. No-of-rooms:1
6. Select no-of-rooms Check-in-date:
as in test data. today’s date
7. Enter check-out-date Checkoutdate:tod
as in test data. ay+1 date
8. Select No-of-adults
as in test data. No-of-adults:1
9. Select No-of-children No-of-children: 0
as in test data.
10. Click on Search
button.
11. Verify that hotel
displayed is the
same as selected in
search Hotel form.

TC- To verify 1. Launch hotel URL: Check-in-date


105 whether reservation http://adactin.com/ and check-out-
Check-in application using HotelApp/index.ph date should be

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

date and URL as in test data. p displayed


Check Out 2. Login to the User:{test according to the
date are application using username} data entered in
being username and search hotel
Password:{test
displayed in password as in test form.
password}
Select Hotel data.
page 3. Select location as in Location: Sydney
according to test data. Hotel: hotel Creek
the dates 4. Select hotel as in Room type:
selected in test data. standard
search 5. Select room type as
No-of-rooms:1
Hotel. in test data.
6. Select no-of-rooms Check-in-date:
as in test data. today’s date
7. Enter check-out-date Checkoutdate:tod
as in test data. ay+1 date
8. Select No-of-adults No-of-adults:1
as in test data.
9. Select No-of-children No-of-children:0
as in test data.
10. Click on Search
button.
11. Verify that check-in-
date and check-out-
dates are the same
as selected in search
hotel form.

TC- To verify 1. Launch hotel URL: No-of-rooms


106 whether no. reservation http://adactin.com/ should be
of rooms application using HotelApp/index.ph displayed and
entry in URL as in test data. p match with
Select Hotel 2. Login to the number of
User:{test
page is application using rooms in search
username}
same as the username and hotel page
password as in test Password:{test
Number of
data. password}
rooms
selected in 3. Select location as in Location: Sydney
search hotel test data. Hotel: hotel Creek
page 4. Select hotel as in
Room type:
test data.
standard
5. Select room type as
in test data. No-of-rooms:3
6. Select no-of-rooms Check-in-date:
as in test data. today’s date
7. Enter check-out-date Checkoutdate:tod
as in test data. ay+1 date
8. Select No-of-adults
as in test data. No-of-adults:1
9. Select No-of-children No-of-children: 0
as in test data.

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

10. Click on Search


button.
11. Verify that no-of-
rooms is reflected
according to the
number of rooms
selected in search
hotel page.

TC- To verify 1. Launch hotel URL: Room type


107 whether reservation http://adactin.com/ displayed
Room Type application using HotelApp/index.ph should be the
in Select URL as in test data. p same as
Hotel page 2. Login to the selected in
User:{test
is same as application using search hotel
username}
Room type username and page
password as in test Password:{test
selected in
data. password}
search hotel
page 3. Select location as in Location: Sydney
test data. Hotel: hotel Creek
4. Select hotel as in
Room type:
test data.
Deluxe
5. Select room type as
in test data. No-of-rooms:1
6. Select no-of-rooms Check-in-date:
as in test data. today’s date
7. Enter check-out-date Checkoutdate:tod
as in test data. ay+1 date
8. Select No-of-adults
as in test data. No-of-adults:1
9. Select No-of-children No-of-children:0
as in test data.
10. Click on Search
button.
11. Verify that room type
reflected is the same
as selected in search
hotel page.

TC- To verify 1. Launch hotel URL: Total price


108 whether the reservation http://adactin.com/ =2*1*125=250$
total price application using HotelApp/index.ph
(excl.GST) URL as in test data. p
is calculated 2. Login to the
User:{test
as “price per application using
username}
night * no. of username and
password as in test Password:{test
nights* no of
data. password}
rooms”.
3. Select location as in Location: Sydney
test data. Hotel: hotel Creek

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

4. Select hotel as in Room type:


test data. standard
5. Select room type as
No-of-rooms:2
in test data.
6. Select no-of-rooms Check-in-date:
as in test data. today’s date
7. Enter check-out-date Checkoutdate:tod
as in test data. ay+1 date
8. Select No-of-adults No-of-adults:1
as in test data.
No-of-children: 0
9. Select No-of-children
as in test data.
10. Click on Search
button.
11. Select the hotel and
click on continue
button
12. Verify that total-
price(excl.GST) is
being calculated as
(price-per-night*no-
of-rooms*no-of-days)

TC- To verify 1. Launch hotel URL: User should


109 when reservation http://adactin.com/ logout from the
pressed, application using HotelApp/index.ph application.
logout URL as in test data. p
button logs 2. Login to the
User:{test
out from the application using
username}
application. username and
password as in test Password:{test
data. password}
3. Select location as in Location: Sydney
test data. Hotel: hotel Creek
4. Select hotel as in
Room type:
test data.
5. Select room type as standard
in test data. No-of-rooms:2
6. Select no-of-rooms Check-in-date:
as in test data. today’s date
7. Enter check-out-date Checkoutdate:tod
as in test data. ay+1 date
8. Select No-of-adults
as in test data. No-of-adults:1
9. Select No-of-children No-of-children:0
as in test data.
10. Click on Search
button.
11. Select the hotel and
click on continue
button.

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

12. Enter the details and


click on book now.
13. Check the details,
click on logout and
verify we have been
logged out of the
application.

TC- To check URL: Total-price


110 correct total 1. Launch hotel http://adactin.com/ should be
price is reservation HotelApp/index.ph calculated as
being application using p (price-per-
calculated URL as in test data. User:{test night*no-of-
as “price per 2. Login to the username} rooms*no-of-
night*no of application using days
Password:{test
days*no of username and Total Price=
password}
rooms in password as in test 125*2*1 = 250$
Book a hotel data. Location:
Melbourne In book a hotel
page 3. Select location as in
page
test data. Hotel: hotel Creek
4. Select hotel as in Room type:
test data. standard
5. Select room type as
No-of-rooms:2
in test data.
6. Select no-of-rooms Check-in-date:
as in test data. today’s date
7. Enter check-out-date Checkoutdate:tod
as in test data. ay+1 date
8. Select No-of-adults No-of-adults:1
as in test data.
9. Select No-of-children No-of-children:0
as in test data.
10. Click on Search
button.
11. Select the hotel and
click on continue
button
12. Verify that total-price
is being calculated
as (price-per-
night*no-of-
rooms*no-of-days +
10% GST”)
TC- To check URL: Data should be
111 Hotel name, 1. Launch hotel http://adactin.com/ same as
Location, reservation HotelApp/index.ph selected in
room type, application using p previous screen
Total Day, URL as in test data. User:{test
price per 2. Login to the username}

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

night are application using Password:{test


same in username and password}
Booking password as in test
Location: Sydney
confirmation data.
page as they 3. Select location as in Hotel: hotel Creek
were test data. Room type:
selected in 4. Select Hotel as in standard
previous test data. No-of-rooms:2
screen 5. Select room type as
Check-in-date:
in test data.
today’s date
6. Select no-of-rooms
as in test data. Checkoutdate:tod
7. Enter check-out-date ay+1 date
as in test data. No-of-adults:1
8. Select No-of-adults No-of-children:0
as in test data.
9. Select No-of-children
as in test data.
10. Click on Search
button.
11. Select the hotel and
click on continue
button
12. Verify that total-price
is being
calculated as (price-
per- night*no-of-
rooms*no-of-days
TC- To check URL: Final billed
112 correct Final 1. Launch hotel http://adactin.com/ Price=125+12.5
billed price reservation HotelApp/index.ph =137.5 in Book
is Total application using p a Hotel page
Price + 10% URL as in test data. User:{test
Total price in 2. Login to the username}
Book a Hotel application using
Password:{test
page username and
password}
password as in test
data. Location: Sydney
3. Select location as in Hotel: hotel Creek
test data. Select Room type:
Hotel as in test data. standard
4. Select room type as
in test data. No-of-rooms:2
5. Select no-of-rooms Check-in-date:
as in test data. today’s date
6. Enter check-out-date Checkoutdate:tod
as in test data. ay+1 date
7. Select No-of-adults No-of-adults:1
as in test data.
8. Select No-of-children No-of-children:0
as in test data.

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

9. Click on Search
button.
10. Select the hotel and
click on continue
button
11. Verify that total-price
is being calculated
as (price-per-
night*no-of-
rooms*no-of-days
TC- To verify 1. Launch hotel URL: Hotel: hotel
113 whether the reservation http://adactin.com/ Creek
data application using HotelApp/index.ph Room type:
displayed is URL as in test data. p Standard
same as the 2. Login to the
User:{test No-of-rooms:2
selected application using
username}
data in Book username and Check-in-
password as in test Password:{test date:27/07/2012
hotel page
data. password}
Checkoutdate:2
3. Select location as in Location: Sydney 8/07/2012
test data. Hotel: hotel Creek No-of-adults:1
4. Select Hotel as in
Room type: No-of-children:
test data.
standard 0
5. Select room type as
in test data. No-of-rooms:2
6. Select no-of-rooms Check-in-date:
as in test data. today’s date
7. Enter check-out-date Checkoutdate:tod
as in test data. ay+1 date
8. Select No-of-adults
as in test data. No-of-adults:1
9. Select No-of-children No-of-children: 0
as in test data.
10. Click on Search
button.
11. Select the hotel and
click on continue
button
12. Verify that total-price
is being
calculated as (price-
per-night*no-of-
rooms*no-of-days
TC- Verify Order 1. Launch hotel URL: ORDER no
114 number is reservation http://adactin.com/ should be
generated in application using HotelApp/index.ph generated
booking URL as in test data. p
confirmation 2. Login to the
User:{test
page application using
username}
username and
password as in test Password:{test

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

data. password}
3. Select location as in Location: Sydney
test data.
Hotel: hotel Creek
4. Select hotel as in
test data. Room type:
5. Select room type as standard
in test data. No-of-rooms:2
6. Select no-of-rooms Check-in-date:
as in test data. today’s date
7. Enter check-out-date
Checkoutdate:tod
as in test data.
ay+1 date
8. Select No-of-adults
as in test data. No-of-adults:1
9. Select No-of-children No-of-children: 0
as in test data.
10. Click on Search
button.
11. Select the hotel and
click on continue
button
12. Verify that total-price
is being calculated
as (price-per-
night*no-of-
rooms*no-of-days

1. Launch hotel
TC- To verify http://adactin.com/ Details once
reservation
115 whether the HotelApp/index.ph accepted
application using
booked p should not be
URL as in test data.
itinerary User:{test editable
2. Login to the
details are username}
application using
not editable.
username and Password:{test
password as in test password}
data. Location: Adelaide
3. Select location as in
test data. Hotel: hotel
4. Select Hotel as in Cornice
test data. Room type:
5. Select room type as standard
in test data. No-of-rooms:2
6. Select no-of-rooms Check-in-date:
as in test data. today’s date
7. Enter check-out-date
as in test data. Checkoutdate:tod
8. Select No-of-adults ay+1 date
as in test data. No-of-adults:1
9. Select No-of-children No-of-children: 0
as in test data.
10. Click on Search
button.

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

11. Select the hotel and


click on continue
button
12. Fill the form and click
on Book now button.
13. Click on My itinerary
button
14. Verify that the details
are not editable

TC- To check http://adactin.com/ Itinerary should


116 whether the 1. Launch hotel HotelApp/index.ph reflect the
booked reservation p correct
itinerary application using information in
User:{test
reflects the URL as in test data. line with the
username}
correct 2. Login to the booking.
application using Password:{test
information
username and password}
in line with
the booking. password as in test Location: Sydney
data. Hotel: hotel Creek
3. Select location as in
Room type:
test data.
standard
4. Select hotel as in
test data. No-of-rooms:2
5. Select room type as Check-in-date:
in test data. today’s date
6. Select no-of-rooms Checkoutdate:tod
as in test data. ay+1 date
7. Enter check-out-date
as in test data. No-of-adults:1
8. Select No-of-adults No-of-children: 0
as in test data.
9. Select No-of-children
as in test data.
10. Click on Search
button.
11. Select the hotel and
click on continue
button
12. Fill the form and click
on Book now button.
13. Click on My itinerary
button
14. Verify that the details
are reflected
correctly as per the
booking

TC- To check 1. Launch hotel http://adactin.com/ Search Order


117 whether reservation HotelApp/index.ph ID query should
application using

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

“search URL as in test data. p display the


order id” 2. Login to the User:{test relevant details
query is application using username} for Order ID
working and username and
Password:{test
displaying password as in test
password}
the relevant data.
details. 3. Click on booked
itinerary button. Order id :pick
4. Enter the order id. existing order id
5. Verify that the
relevant details are
displayed
TC- Verify that 1. Launch hotel http://adactin.com/ All the details in
118 all the reservation HotelApp/index.ph booked itinerary
details of application using p page should be
newly URL as in test data. same as those
User:{test
generated 2. Login to the entered during
username}
order application using booking
username and Password:{test
number in
password as in test password}
booked
itinerary data. Location: Sydney
page are 3. Book an order as in Hotel: hotel Creek
correct and previous test cases
Room type:
match with 4. Click on booked
standard
data during itinerary button
booking. 5. Search for Order No-of-rooms:2
number Check-in-date:
6. Verify all the details today’s date
of order number are Checkoutdate:tod
correct as entered ay+1 date
during saving order
No-of-adults:1
No-of-children: 0

TC- To verify 1. Launch hotel http://adactin.com/ Order number


119 that the reservation HotelApp/index.ph should not
order gets application using p longer be
cancelled URL as in test data. present in
User:{test
after click on 2. Login to the booked itinerary
username}
Cancel order application using page after
username and Password:{test
number link cancellation
password as in test password}
data.
3. Book the Hotel as in
previous test cases.
Keep a note of order
number generated
4. Click on Booked

www.adactin.com
Copyrighted Material Sample Test cases for AdactIn Hotel Application

Itinerary
5. Search for order
number booked
6. Click on Cancel
<Order Number>
7. Click Yes on pop-up
which asks where to
cancel order or not
8. Verify that order
number is cancelled
and now longer
exists in Booked
Itinerary page

TC- To Verify 1. Launch hotel http://adactin.com/ Title of each


120 Title of every reservation HotelApp/index.ph page should
Page application using p reflect its
reflects what URL as in test data. objective and
User:{test
the page 2. Login to the the buttons
username}
objective is. application using should redirect
username and Password:{test
For example as specified, to
password as in test password}
Title of the relevant
Search data. page.
Hotel page 3. Verify that title of
should have each page is the
“Search same as the page
Hotel” objective
4. Click on Search hotel
option and verify
whether application
directs to search
hotel form
5. Click on booked
itinerary button and
verify that application
directs to booked
itinerary form

www.adactin.com

Das könnte Ihnen auch gefallen