| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Test Case ID | Test Scenario | Test Case | Base URL | Endpoint | Query Parameters | Headers | Environment | Method Type | Pre-request Script | Request Body | Expected response Body | Actual response Body | Expected Status Code | Actual Status Code | Pass/Fail | ||||||
2 | CREATE Token Module | |||||||||||||||||||||
3 | TC_CreateToken_001 | Create Token by sending a POST Request | Verify the request method is POST | https://restful-booker.herokuapp.com | /auth | N/A | Content-Type = application/json | Booking environment | POST | N/A | { "username" : "admin", "password" : "password123" } | Creates a new auth token to use for access to the PUT and DELETE /booking | { "token": "Any valid value" } | 200 | 200 | pass | ||||||
4 | TC_CreateToken_002 | Verify the API Response status code is 200 OK | pass | |||||||||||||||||||
5 | TC_CreateToken_003 | Verify respons body contain token | pass | |||||||||||||||||||
6 | TC_CreateToken_004 | Verify the API response is JSON Format | pass | |||||||||||||||||||
7 | TC_CreateToken_005 | Verify the API response time is within accepted. | pass | |||||||||||||||||||
8 | CREATE Booking Module | |||||||||||||||||||||
9 | TC_CreateBooking_006 | Creates a new booking in the API by sending POST Request. | Verify the request method is POST | https://restful-booker.herokuapp.com | /booking | N/A | 1-Content-Type = application/json 2-Accept=application/json | Booking environment | POST | Random Data | { "firstname": "{{firstname}}", "lastname": "{{lastname}}", "totalprice": {{totalprice}}, "depositpaid": {{depositpaid}}, "bookingdates": { "checkin": "{{checkin}}", "checkout": "{{checkout}}" }, "additionalneeds": "{{additionalneeds}}" } | Create new booking using random data in the pre-request. | { "firstname": "{{random data in the pre-request}}", "lastname": "{{random data in the pre-request}}", "totalprice": {{random data in the pre-request}}, "depositpaid": {{random data in the pre-request}}, "bookingdates": { "checkin": "{{random data in the pre-request}}", "checkout": "{{random data in the pre-request}}" }, "additionalneeds": "{{random data in the pre-request}}" } | 200 | 200 | pass | ||||||
10 | TC_CreateBooking_007 | Verify the API Response status code is 200 OK | pass | |||||||||||||||||||
11 | TC_CreateBooking_008 | Verify the API response is JSON Format | pass | |||||||||||||||||||
12 | TC_CreateBooking_009 | Verify the API response time is within accepted | pass | |||||||||||||||||||
13 | TC_CreateBooking_010 | Verify the values for fields in the body is correct | pass | |||||||||||||||||||
14 | TC_CreateBooking_011 | Verify the API response contains all valid fields | pass | |||||||||||||||||||
15 | TC_CreateBooking_012 | Verify there is no field in the API response equal null | pass | |||||||||||||||||||
16 | TC_CreateBooking_013 | Verify the data type of any fields is correct | pass | |||||||||||||||||||
17 | TC_CreateBooking_014 | Creates a new booking in the API by sending POST Request and using null data | Verify the response is fail when you use a null data | https://restful-booker.herokuapp.com | /booking | N/A | 1-Content-Type = application/json 2-Accept=application/json | Booking environment | POST | Random Data | { "firstname": null, "lastname": null, "totalprice": {{totalprice}}, "depositpaid": {{depositpaid}}, "bookingdates": { "checkin": "{{checkin}}", "checkout": "{{checkout}}" }, "additionalneeds": "{{additionalneeds}}" } | Internal Server Error | Internal Server Error | 500 | 500 | pass | ||||||
18 | GET ALL Booking ID Module | |||||||||||||||||||||
19 | TC_GET ALL Booking ID_015 | Get a All Booking IDs by Sending GET request | Verify the request method is GET | https://restful-booker.herokuapp.com | /booking | N/A | N/A | Booking environment | GET | N/A | N/A | Return all Booking ID | Return all Booking ID | 200 | 200 | pass | ||||||
20 | TC_GET ALL Booking ID_016 | Verify the API Response status code is 200 OK | pass | |||||||||||||||||||
21 | TC_GET ALL Booking ID_017 | Verify the API response is JSON Format | pass | |||||||||||||||||||
22 | TC_GET ALL Booking ID_018 | Verify the API response time is within accepted | pass | |||||||||||||||||||
23 | GET Details For Booking ID Module | |||||||||||||||||||||
24 | TC_GET Details For Booking ID_019 | Get a specified Booking ID by Sending GET request and retrurn a valid data for the ID | Verify the request method is GET | https://restful-booker.herokuapp.com | booking/{{bookingid}} | N/A | Accept = application/json | Booking environment | GET | N/A | N/A | Return a valid data for specified booking ID | Return a valid data for specified booking ID | 200 | 200 | pass | ||||||
25 | TC_GET Details For Booking ID_020 | Verify the API Response status code is 200 OK | pass | |||||||||||||||||||
26 | TC_GET Details For Booking ID_021 | Verify the API response is JSON Format | pass | |||||||||||||||||||
27 | TC_GET Details For Booking ID_022 | Verify the API response time is within accepted | pass | |||||||||||||||||||
28 | TC_GET Details For Booking ID_023 | Verify the values for fields in the body is correct | pass | |||||||||||||||||||
29 | TC_GET Details For Booking ID_024 | Verify the API response contains all valid fields | pass | |||||||||||||||||||
30 | TC_GET Details For Booking ID_025 | Verify there is no field in the API response equal null | pass | |||||||||||||||||||
31 | TC_GET Details For Booking ID_026 | Verify the data type of any fields is correct | pass | |||||||||||||||||||
32 | UPDATE Booking Module | |||||||||||||||||||||
33 | TC_UPDATE Booking _027 | UPDATE all details for Booking ID by sending PUT request and return a random data in the pre-request | Verify the request method is PUT | https://restful-booker.herokuapp.com | booking/{{bookingid}} | N/A | 1-Content-Type = application/json 2-Accept=application/json 3-Cookie=token={{token}} | Booking environment | PUT | Random Data | { "firstname": "{{firstname}}", "lastname": "{{lastname}}", "totalprice": {{totalprice}}, "depositpaid": {{depositpaid}}, "bookingdates": { "checkin": "{{checkin}}", "checkout": "{{checkout}}" }, "additionalneeds": "{{additionalneeds}}" } | UPDATE all data for the specified ID | UPDATE data for the specified ID | 200 | 200 | pass | ||||||
34 | TC_UPDATE Booking _028 | Verify the API Response status code is 200 OK | pass | |||||||||||||||||||
35 | TC_UPDATE Booking _029 | Verify the API response is JSON Format | pass | |||||||||||||||||||
36 | TC_UPDATE Booking _030 | Verify the API response time is within accepted | pass | |||||||||||||||||||
37 | TC_UPDATE Booking _031 | Verify the values for fields in the body is correct | pass | |||||||||||||||||||
38 | TC_UPDATE Booking _032 | Verify the API response contains all valid fields | pass | |||||||||||||||||||
39 | TC_UPDATE Booking _033 | Verify there is no field in the API response equal null | pass | |||||||||||||||||||
40 | TC_UPDATE Booking _034 | Verify the data type of any fields is correct | pass | |||||||||||||||||||
41 | PARTIAL UPDATE Booking Module | |||||||||||||||||||||
42 | TC_PARTIAL UPDATE Booking _035 | UPDATE some details for Booking ID by sending PATCH request and return a random data in the pre-request | Verify the request method is PATCH | https://restful-booker.herokuapp.com | booking/{{bookingid}} | N/A | 1-Content-Type = application/json 2-Accept=application/json 3-Cookie=token={{token}} | Booking environment | PATCH | Random Data | { "bookingdates": { "checkin": "{{checkin}}", "checkout": "{{checkout}}" }, "additionalneeds": "{{additionalneeds}}" } | UPDATE some data for the specified ID | UPDATE some data for the specified ID | 200 | 200 | pass | ||||||
43 | TC_PARTIAL UPDATE Booking _036 | Verify the API Response status code is 200 OK | pass | |||||||||||||||||||
44 | TC_PARTIAL UPDATE Booking _037 | Verify the API response is JSON Format | pass | |||||||||||||||||||
45 | TC_PARTIAL UPDATE Booking _038 | Verify the API response time is within accepted | pass | |||||||||||||||||||
46 | TC_PARTIAL UPDATE Booking _039 | Verify the values for fields in the body is correct | pass | |||||||||||||||||||
47 | TC_PARTIAL UPDATE Booking _040 | Verify the API response contains all valid fields | pass | |||||||||||||||||||
48 | TC_PARTIAL UPDATE Booking _041 | Verify there is no field in the API response equal null | pass | |||||||||||||||||||
49 | TC_PARTIAL UPDATE Booking _042 | Verify the data type of any fields is correct | pass | |||||||||||||||||||
50 | DELETE Booking Module | |||||||||||||||||||||
51 | TC_DELETE Booking _043 | DELETE a specified booking ID by sending a DLETE request | Verify the request method is DELETE | https://restful-booker.herokuapp.com | booking/{{bookingid}} | N/A | 1-Content-Type = application/json 2-Cookie=token={{token}} | Booking environment | DELETE | N/A | N/A | Return a messege "Created" and delete the specified ID | Return a messege "Created" and delete the specified ID | 201 | 201 | pass | ||||||
52 | TC_DELETE Booking _044 | Verify the API Response status code is 201 OK | pass | |||||||||||||||||||
53 | TC_DELETE Booking _045 | Verify the API response is Text format | pass | |||||||||||||||||||
54 | TC_DELETE Booking _046 | Verify the API response time is within accepted | pass | |||||||||||||||||||
55 | HealthCheck Module | |||||||||||||||||||||
56 | TC_DELETE Booking _047 | Send a GET request to confirm whether the API is up and running | Verify the request method is GET | https://restful-booker.herokuapp.com | /ping | N/A | N/A | Booking environment | GET | N/A | N/A | Return a messege "Created" | Return a messege "Created" | 201 | 201 | pass | ||||||
57 | TC_DELETE Booking _048 | Verify the API Response status code is 201 OK | pass | |||||||||||||||||||
58 | TC_DELETE Booking _049 | Verify the API response is Text format. | pass | |||||||||||||||||||
59 | TC_DELETE Booking _050 | Verify the API response time is within accepted | pass | |||||||||||||||||||
60 | ||||||||||||||||||||||
61 | ||||||||||||||||||||||
62 | ||||||||||||||||||||||
63 | ||||||||||||||||||||||
64 | ||||||||||||||||||||||
65 | ||||||||||||||||||||||
66 | ||||||||||||||||||||||
67 | ||||||||||||||||||||||
68 | ||||||||||||||||||||||
69 | ||||||||||||||||||||||
70 | ||||||||||||||||||||||
71 | ||||||||||||||||||||||
72 | ||||||||||||||||||||||
73 | ||||||||||||||||||||||
74 | ||||||||||||||||||||||
75 | ||||||||||||||||||||||
76 | ||||||||||||||||||||||
77 | ||||||||||||||||||||||
78 | ||||||||||||||||||||||
79 | ||||||||||||||||||||||
80 | ||||||||||||||||||||||
81 | ||||||||||||||||||||||
82 | ||||||||||||||||||||||
83 | ||||||||||||||||||||||
84 | ||||||||||||||||||||||
85 | ||||||||||||||||||||||
86 | ||||||||||||||||||||||
87 | ||||||||||||||||||||||
88 | ||||||||||||||||||||||
89 | ||||||||||||||||||||||
90 | ||||||||||||||||||||||
91 | ||||||||||||||||||||||
92 | ||||||||||||||||||||||
93 | ||||||||||||||||||||||
94 | ||||||||||||||||||||||
95 | ||||||||||||||||||||||
96 | ||||||||||||||||||||||
97 | ||||||||||||||||||||||
98 | ||||||||||||||||||||||
99 | ||||||||||||||||||||||
100 | ||||||||||||||||||||||