0% found this document useful (0 votes)
16 views63 pages

Test Cases - Ultimate - TheTestingAcademy

Uploaded by

ankur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views63 pages

Test Cases - Ultimate - TheTestingAcademy

Uploaded by

ankur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 63

Test Scenario TID

2
3
4
5
6
7
Test Scenario Desciption
PING HEALTH CHECK
Get All Booking
Get Single Booking
Full update of a resource
Partial Update
Delete
Test Case Template for Project
Project Name Restful Booker
Module Name API MODULE
Created By Pramod
Created Date 6/22/2023
Review By
Peer Reviewed Amit
Date 02/03/25

Priority No. of Test cases Linked Document


P0 10 Test Plan Link or FRD Link
P1 10 Test Plan Link or FRD Link
P0 15 Test Plan Link or FRD Link
P1 15 Test Plan Link or FRD Link
P0 10 Test Plan Link or FRD Link
P0 5 Test Plan Link or FRD Link
Executed QA Name Misc (Comments)
Restful Booker
HTTP MEthod ID Auth Payload
GET y x x
POST x x y
PATCH Y Y Y
PUT Y Y Y
DELETE Y Y X
HEAD Y X x
GET All X X X
Restful Booker
Comments
name, age, phone -> name
Few keys Req, all the keys
All Keys
oNLY HEADER INFOR
Status Response Headers
200 All keys
200/201 All keys + ID
200 All keys, GET updation
200 All keys, GET updation
204/200 GET ope, 404
200 200
200 Total Keys, not null
How to write a Better Testcase

Use the keywords Should

Test Case Title


Verify that with the X and Y, Z should work.

e.g Verify that with the Valid username. <<>> and password <<>> , login should work

Expected Result
with the Valid username and password, Login should work

Actual Result
with the valid username and password, Login is working as expected.

Steps to Execute
Navigate to X
Do This Z
Verify this Y

Test Scenario: Testing the login feature of a web application

Test Case 1: Verify that the user can successfully log in with valid credentials
Test
In thisCase 2: Verify
example, the that
test the user isisunable
scenario testing to
thelog in with
login an incorrect
feature of a webpassword
Test
application, and the test cases are specific tests that are designed username
Case 3: Verify that the user is unable to log in with an invalid to
validate different aspects of the login process. Test case 1 is designed to
verify that the user can log in with valid credentials, test case 2 is designed
to verify that the user is unable to log in with an incorrect password, and test
case 3 is designed to verify that the user is unable to log in with an invalid
username.
Verify Test Validate Select Check
Scenario TID TestCase Description PreCondition
Verify if you are getting
status
Verifycode
if youofare
201getting
for ping
1 health check
response body string as
Created
Verify iffor
youping
are health
gettingcheck
response as 201 Created
Verify if Response Header has
content type
Verify if Response time is
lessthan
Verify if200ms
User is able to Fetch
All bookings
Verify JSON successfully
Verify Get AllResponse
Booking for
status
Get all
code WhenBooking
allcode
bookings areAll
Verify Status for Get
deleted
bookings when all booking id
is fetched
Verify if Response time is
lessthan
Verify if200ms
User is able to Fetch
Single bookings
.VErify JSON Response for
Get Single
.Verify Booking
status Booking
code When all
bookings are deleted
.Verify Status code for Get
Single booking
Verify if user is able to Create
Verify
New if user Response
Verifyresource
JSON is not ableforto
create
Verify new
the resource using
POST the status
Successful
Verify POSTcode
status
request code
when
of
Request
for
Request
POST request
successful POSTwhen Request
Request is
json bodyRequest
sent with sent hasjson
onlybody
4 out
of 8 fields only 4 out of 8
containing
fields
Verify the Response body for
Successful
Verify PUT request
the Response header
for successful
Verify PUT request
Verify the Status
if the user code
is notfor
able to
successful
do partial PUT
update request
using PUT
Verify the status code that
request
user gets for trying Partial
update using PUT request
Verify the JSON Response
body
Verifyfor
thePATCH
Response request
header
Verify
for if
PATCH user is able
Request to
Verify
perform the status code
PATCH for
request
Verify if user
successful is ableRequest
PATCH to
successfully
perform PATCH without
request by
authorization
providing
Verify is user is getting body
JSON request
as blankerror code for failed
correct
PATCH
.Verify ifrequest
user is able to delete
all bookings
request
request
pm.test("Status
1.Login
3.Enter to POSTMAN
the PingHealth code istool 201", function () {
3.Enter the PingHealth check
pm.response.to.have.status(201); check url url
2.In POSTMAN tool,Navigate to My workspace-->Collection->Click
https://restful-booker.herokuapp.com/ping
https://restful-booker.herokuapp.com/ping and Select GET request andAddnew Click Send
});
request
button
and Select GET request and Click Send button
3.Enter
4.Verify
4.Verify the
if PingHealth
if you
you aregetting
are gettingcheck statusurl code
response bodyof string
201 inasresponse tab
pm.test("Body matches
https://restful-booker.herokuapp.com/ping string", function () { 'Created'
and pm.expect(pm.response.text()).to.include("Created");
Select GET request and Click Send button
Scripting:
Scripting:
1.Login
});
1.Login
4.Verify to
if POSTMAN
to POSTMAN
Response tool
tool
Header has
TestSteps
content type
pm.test("Status
pm.test("Body
2.In POSTMan code,Import
matches is 201",
string", function
function () {() { using
2.In POSTMan tool ,Import the Curl command
tool
pm.response.to.have.status(201);
the Curl command using Raw Raw text
text formal
formal
curl
curl pm.expect(pm.response.text()).to.include("Created");
-i
-i https://restful-booker.herokuapp.com/booking
pm.test("Content-Type is present",
https://restful-booker.herokuapp.com/booking function () {
Scripting:
});
1.Login
}); to POSTMAN tool and Verify if Response time in less than 200ms
3.Click
3.Click send
send request
pm.test("Content-Type request button
pm.response.to.have.header("Content-Type");
button and
is present", Verify the response
function () { body
2.In
1.Login POSTMan
to POSTMAN tooltool ,Import the Curl command using Raw text formal
});
curl pm.response.to.have.header("Content-Type");
-i https://restful-booker.herokuapp.com/booking
1.Login
2.In
Scripting:
1.Login to
to POSTMAN
POSTMan POSTMAN tool ,Import tool
tool andthe Curl command using Raw text formal
Scripting:
});
3.Click
2.In send
POSTMan requesttool button
,Import the Verify the response body() text
curl
1.Login
2.In -i https://restful-booker.herokuapp.com/booking
pm.test("Response
POSTMan
pm.test("Body to POSTMAN tool
matches timetool
,Import the Curl
is less
string", than
Curl command
200ms",
command
function () {
using
using Raw
function { formal
Raw text formal
curl
3.Click
curl -i https://restful-booker.herokuapp.com/booking/x
send request button and
pm.expect(pm.response.responseTime).to.be.below(200);
2.Import -i the curl command using
https://restful-booker.herokuapp.com/booking Verify
raw the
text status
format code when all bookings are
pm.expect(pm.response.text()).to.include("bookingid");
1.Login
Scripting: to POSTMAN tool
deleted
});
curl
3.Click -X PUT
send \request button and Verify the status
1.Login
});
2.Import
1.Login
pm.test("Body
x-->x
1.Login can
to POSTMAN
tothe
to curl
POSTMAN
be your
POSTMAN command
matches
preferred
tool
tool using
string",
tool booking raw
function () { code when all bookings are
idtext format
https://restful-booker.herokuapp.com/booking/1
fetched
2.In
curl
2.In -X successfully
POSTMan
PUT
POSTMan \ tool tool ,Import
,Import the
the Curl
Curl command \ Raw text
using format
pm.expect(pm.response.text()).to.include("bookingid");
1.Login
2.In
pm.test("Status
-H
Scripting
to POSTMAN
POSTMan
'Content-Type: toolcode istool
,Import 404", Curl command
thefunction
application/json'
https://restful-booker.herokuapp.com/booking/:id command
\ () { usingusing Raw Raw text
text format
format
});https://restful-booker.herokuapp.com/booking/1
https://restful-booker.herokuapp.com/booking/:id
2.In
3.Click POSTMan
send requesttool ,Import
button
https://restful-booker.herokuapp.com/booking/:id the
and Curl
Verify command
if Response \ time
using Rawin text
less formal
than 200ms
-Hpm.response.to.have.status(404);
1.Login topreference
'Accept:
pm.test("Status POSTMAN
application/json'
code istool
200",\ function
id=tester
-H -i
id=tester
curl
id=tester 'Content-Type:
preference application/json'
https://restful-booker.herokuapp.com/booking/x
preference \ () {
});
2.In POSTMan tool ,Import
-H
-H
1.Login
Scripting:
curl
'Cookie:
'Accept:
-i
token=abc123'
pm.response.to.have.status(200);
application/json'
to POSTMAN tool the \ \ Curl command using Raw text formal
https://restful-booker.herokuapp.com/booking/x
});-d
curl
-H -X
2.In '{command:
'Cookie:
POSTMan token=abc123'
tool ,Import \ Curl
the command using Raw() text formal
curl
x-->x PUT
can
pm.test("Response
curl -X PUT
"firstname"
be \\your
:
preferred
"James", time is bookingless thanid 200ms", function { format
curl
-d '{-X
-i PUT \
https://restful-booker.herokuapp.com/booking/x
https://restful-booker.herokuapp.com/booking
https://restful-booker.herokuapp.com/booking/1
pm.expect(pm.response.responseTime).to.be.below(200);
https://restful-booker.herokuapp.com/booking/1
x-->x can be your
"lastname" :: "Brown", preferred booking id
https://restful-booker.herokuapp.com/booking/1 \\\
});-H
-H"firstname"
3.Click 'Content-Type:
send request
'Content-Type: "James", application/json'
button and Verify
application/json' \ the response
\ code
-H
x-->x
-H"totalprice"
'Content-Type:
can be your
"lastname"
'Accept: : : "Brown",
111, application/json'
preferred
application/json' booking
\ \
id
Scripting:
-H
3.Click 'Accept: application/json'
send request button and\\ Verify the response body code
//"totalprice"
-H
-H "depositpaid"
'Accept:
'Cookie: : true,
application/json'
: 111,
token=abc123' \\ function () {
pm.test("Status
-H
Scripting:'Cookie: code is 404",
token=abc123'
-H
-d"bookingdates"
3.Click '{'Cookie: token=abc123'
send request :
//pm.response.to.have.status(404);
"depositpaid" {
: true, button and \ Verify the response body code
-d
-d '{
pm.test(""Status
'{ "checkin" : code is 200"", function () {
"2018-01-01",
}); "bookingdates"
Scripting:
"firstname"
"firstname" : :
"Virat",
: "Virat", {
pm.response.to.have.status(200);
1.Login to POSTMAN
});
"checkout"
"firstname"
"checkin"
pm.test(""""Status
"lastname"
"lastname" "Kohli", codetool
:"2018-01-01",
"2019-01-01"
::: "Kohli",
:"James", is 200"""", function () {
2.In }, POSTMan
"lastname"
"checkout" : tool
"Brown",
: ,Import the Curl command using Raw text format
"2019-01-01"
pm.response.to.have.status(200);
"totalprice" : 111,
"totalprice"
"additionalneeds"
"totalprice" :: 111,
https://restful-booker.herokuapp.com/booking
111, : "Breakfast"
1.Login
}); },
1.Login to
"depositpaid"
to
"depositpaid" POSTMAN
POSTMAN :: true,
true, tool
tool and Verify the response code
3.Click
}'
2.In send
"depositpaid"
POSTMan request :
tool true, button
:: {{,Import tool the
"additionalneeds"
1.Login
1.Login
2.In toPOSTMAN
"bookingdates"
to
POSTMan
"bookingdates"
Scripting:
"bookingdates"
POSTMAN tool : "Breakfast"
,Import
: {,Import
tool the CurlCurl command
command using using Raw Raw text
text format
format
https://restful-booker.herokuapp.com/booking
}'
2.Import
1.Login
2.In POSTMan the
"checkin"
to curl
POSTMAN :toolcommand
"2018-01-01",
https://restful-booker.herokuapp.com/booking
"checkin" : "2018-01-01", tool using
the raw
Curl text
command format using Raw text format
pm.test(""""Status
3.Click
3.
curl send
"checkin"
-X PUT
"checkout" \request
: : code
"2018-01-01",
"2019-01-01" is 200"""", iffunction
button.Verify user () { able to successfully
isformat
not update
2.Import the curl command
https://restful-booker.herokuapp.com/booking
3.Click send request
"checkout" using raw
button and Verify the response
:: "2019-01-01" text
the
In pm.response.to.have.status(200);
booking
"checkout"
request
3.Click send body "2019-01-01"
Enterbutton.Verify
only 4 out ofif8 user fieldsis not able\to successfully update
curl
3. },
},
1.Login -X PUT \request
https://restful-booker.herokuapp.com/booking/938
to request
POSTMAN tool
});
Click
the-H}, send
booking
'Content-Type:
"additionalneeds" button and
application/json'
: "Breakfast" Verify \the response code
In https://restful-booker.herokuapp.com/booking/938
requestto body
"additionalneeds"
1.Login
2.Import the POSTMAN
curl Enter
command onlytool4using
:: "Breakfast" out ofraw text format \
8 fields
POSTMAN
-H"additionalneeds"
}'3.Click 'Accept:send Scripting:
'Content-Type:application/json'
request "Breakfast"
button
application/json' \
and Verify
\ the response header
Click
}'3.Click
2.Import
curl -Xsend
PUT
pm.test("Status therequest
send curl request button
command
\token=abc123'
code isbuttonand
400", using Verify
and rawthe
Verify
function text response
() {the status code
format code
}'
POSTMAN
-H
Scripting:'Cookie:
'Accept: Scripting:
application/json' \ \
Scripting:
curl -X PUT
send \request
https://restful-booker.herokuapp.com/booking/938
pm.response.to.have.status(400);
3.Click button and Verify \
pm.test("Status
-d '{'Cookie:
pm.test("Content-Type
-H
pm.test("Status code
token=abc123' is
for400", \ function
issuccessful
codeapplication/json'
https://restful-booker.herokuapp.com/booking/938 present", ()the
function
PUT
response
{request
() { is 200", body
\
and code
function () {
});-H 'Content-Type:
pm.response.to.have.status(400);
""firstname"" : ""QATesterFirstnam"", \
-d
-Hpm.response.to.have.header("Content-Type");
'{
pm.response.to.have.status(200);
'Content-Type:
'Accept: application/json' application/json' \ \
});
});-H""lastname""
"firstname"
'Accept: : : ""QAtesterLastName""
"QATesterFirstnam",
application/json' \
'Cookie: token=abc123'
pm.test("Status
}'-H code name has \ string", function () {
-d"lastname"
'{ : "QAtesterLastName"
'Cookie: token=abc123' \
pm.response.to.have.status("Bad
pm.test("Status
3.Navigate
}'-d"firstname" to code
authorization name has
tab Request");
string",
and make function
sure () {
}); '{ : "QATesterFirstnam",
a)youpm.response.to.have.status("Bad
3.Verify dont
"firstname" provide
if user credentials
is be able to partially update to Request");
authorize theresource
Patch requestbooking 938 successfully
}); "lastname"
b)Leave it as :: "QAtesterLastName"
blank
"QATesterFirstnam",
4.verify
}' the status
"lastname" : "QAtesterLastName" code for successful patch request
4.Click
1.Login
}' send request button
to POSTMAN toolto partially update resource booking 938 successfully
3.Veirfy
5.Verify if
is user isis getting
user be able correct error code for failed PATCH request
POSTMAN
2.Import
3.Navigate
4.verify the
the toSCRIPT:
curl command
authorization
response body ofusing
tab and
patch raw
maketext
request format
sure
6.Provide
pm.test("Successful
curl
a)you-Xdont authorization
DELETE provide\ credentials PATCH and changeRequest", the function
to authorize inputthefield () name
Patch against the requirement
{ request
and send the patch request
pm.expect(pm.response.code).to.be.oneOf([200,
https://restful-booker.herokuapp.com/booking/2952
b)Leave it as blank 200]);
\
{});
-H 'Content-Type:
4.Click send requestapplication/json'button \
"Helloname"
-H 'Cookie:
5.Verify if user : "QA",
token=abc123'
is not able to perform PATCH request
"middlename"
3.Click send request : "QAlast"
}4.Verify if user is able to delete the booking successfully
7.Verify
5.Verify the the status
status code code
1.Successful
1.Successful Login Login Expected Result Actual Result
2.Successful
2.Successful Navigation
Navigation
1.Successful
3.The user Login
3.The
2.Successful user must
must be
be able
Navigation able toto send
send request
request
1.Successful
4.The
4.The Status
ResponseLogin
code in
body the
mustResponse
show tab must
string be 201
as 'Created'
3.The
2.Successful user must be able to send request
Navigation
4.The
3.The Responseuser must body be able must showrequest
to send string as 'Created'
4.The Response header must have a content type
1.Successful Login
2.Successful
1.Successful Navigation
Login
3.Successful
2.Successful action and The Response time must be less than 200ms
1.Successful Navigation
Login
3.The
2.Successful API must fetch all bookings
Navigation
1.Successful Login
3.The Response
2.Successful body must show list of all bookings
1.Successful Navigation
Login
3.The
2.Successful Response
Status code must
Navigationmust bebe 404 for all booking deleted
{1.Successful Login
3.The Status code must be 200 for all booking deleted
2.Successful
"bookingid": Navigation
1,
3.Successful
1.Successful Login and The Response time must be less than 200ms
"booking": action
{
"firstname":
2.Successful
1.Successful "Jim",
Navigation
Login
3.The "lastname":
2.Successful API must "Brown",
fetch the single booking which you requested
Navigation
3.The "totalprice":
Response 111,must be 200
code
1.Successful Login
"depositpaid": body must show the booking requested
true,
and response
2.Successful body
Navigation must be
HTTP/1.1 "bookingdates":
1.Successful 200Login
OK {
3.The
2.Successful Response
"checkin": code
Navigation must be 404
"2018-01-01",
3.The
{1.Successful "checkout":
Response code "2019-01-01"
must be 200
}, Login
1.Sucessful login
"firstname"Navigation
: "James",
2.Successful
"additionalneeds": "Breakfast"
2.Import
Expected request
"lastname" :
Result: successful
"Brown",
3.The } Response code must be 200
3.The
1.Successfuluser must
"totalprice" Login be
: 111, able to do Patch update successfully and response
1.Successful
Expected
}2.Successful
status code Login
Result:
must
"depositpaid"
2.Successful
1.Sucessful
1.Successful : true, OK
be
Navigation
Navigation
login
Login
200
4.The
3.The response body
Response : { must
code must be as below
3.The "bookingdates"
2.Import Response
2.Successful request code must be
successful
Navigation be 200
500
200
and "checkin" : "2018-01-01",
{ response
3.The user
Response
"checkout"
header
must be able
code
:be
must tobe
must
"2019-01-01"
bepresent
do Patch
500 update successfully and response
Scripting:
status code must
"firstname": 200 OK
4.The }, response "QATesterFirstName",
pm.test("Content-Type body must is present",
be as belowfunction () {
"lastname":
"additionalneeds""QATesterLastName",
: "Breakfast"
pm.response.to.have.header("Content-Type");
1.Successful
"totalprice":Login0,
}});
{2.Successful
1.Sucessful Navigation
"depositpaid":
login false,
""firstname"":
3.The Response
"bookingdates": ""QATesterFirstName"",
code{ must be 200
2.Import
1.Sucessful request successful
login""QATesterLastName"",
""lastname"":
3.The "checkin":
2.Import must "2018-01-07",
userrequest not be able to update the resource bookingid
successful
""totalprice"":
"checkout": 0,
"2019-01-07"
and
3.The response statuscode
user must notfalse,
""depositpaid"": be ablemusttobe 400 bad
update the request
resource bookingid
},
and""bookingdates"":
response statuscode must be 400 bad request
"additionalneeds": {"Breakfast,Lunch,Dinner"
} ""checkin"": ""2018-01-07"",
""checkout"":
1.Sucessful login ""2019-01-07""
1.Sucessful
},
2.Import requestloginsuccessful
2.Import request
""additionalneeds"":
3.No authorization successful
""Breakfast,Lunch,Dinner""
provided for the patch request
3.No authorization
}1.Successful
4.Successful login
action provided for the patch request
4.Successful
2.Import
5.The patch action
request
request successful
must fail and status code must be 403
5.The
3.Userpatch
must request
be able must fail and
to perform statusrrequest
SEND code must be 403
6.Patch request must fail
4.The user must be able delete booking id 2952 successfully if it is not
7.Status
previously code must be 400 for incorrect syntax
deleted
5.The status code must be 200
Steps to Execute Expected Result Actual Result
Status Executed QA Name Misc (Comments) Priority
Is Automated
No
Scenario TID
TestCase Description

1. Create booking with valid Data. -> Create booking with invalid firstName
2. Invalid Check in and Check out date ->
3. Invalid JSON
4. Invalid Total Price
5. Empty Values of all fields
6. Invalid mandatory
7. Min and Max values for all - Total - 1100000000000000000
8. Invalid URL -
9. Deposit false
10. Long name - dasdasdasdasdasdase2eeedasdasdad
11. Arabic Names - , Chinese Name
12. Special Char
13. Different date format - 31/2/23
14. Response Time

first name
future dates
last is req
data format
no last
addtional key removed
addtional key as []
past dates booking
no checkin
negative deposit
null
empty
check out. > check in
with current
date format
Response Booking ID, shoun;t null
Statude code
first ER == first AR
20 Test case
PreCondition TestSteps
Expected Result Actual Result
Steps to Execute Expected Result Actual Result
Status Executed QA Name Misc (Comments) Priority
Is Automated
No
Scenario TID Test Data

1 URL - https://www.dataaccess.com/webservicesserver/NumberConversion.wsoData - <NumberT


2 URL - https://www.dataaccess.com/webservicesserver/NumberConversion.wsoData - <NumberT
URL - https://www.dataaccess.com/webservicesserver/NumberConversion.wsoData - No BodyHe

Requirement
-1
pramod
pramod123
!@#$%^%$
123pramod
0
blank
null
98765432345678987654345678
%%%pramod%%
12.34
0x0876567
PRAMOD
‫وتتحّمل والكوري ف‬
𡨸漢
TestCase Description
Verify that when we use the URL and Data from the Test Data section, We get a Response wth Number
is converted
Verify to String
that when we useandthe
Status
URL code 200 from the Test Data section, We get a Response wth Number
and Data
is converted
Verify to String
that when we use the URL and Data from the Test Data section, We get a Response wth Number
is converted to String

Number to Large
Bug - We will add this bug to environment

Verrify that the POST Request with thepayload p1 and is workinf fine, We have number converted to words
example 500 -> Five hundred
-1
Invalid URL
NULL
a
#
ARABIC LANG
3.14
ABC123
1235678076543212345689
0
BLANK
TRUE
FALSE
!@#RFDWR
22/7
ASDF
sa
PreCondition TestSteps
Postman, URL, Domain,
Endpoint, Data or
Payload, Headers 1. From the API Documentation "https://www.dataaccess.com/webservicesserver/NumberConversi
Expected Result Actual Result

Verify
Verify that
that Status
requestcode
gives200 forerror
your Positive
whenTestcase
you don;t enter the headers, 200
it shuld give 415 method error 415
Steps to Execute Expected Result Actual Result
Status Executed QA Name Misc (Comments) Priority

Passed
Is Automated
No
Scenario TID
TestCase Description

1. Create booking with valid Data. -> Create booking with invalid firstName
2. Invalid Check in and Check out date ->
3. Invalid JSON
4. Invalid Total Price
5. Empty Values of all fields
6. Invalid mandatory
7. Min and Max values for all - Total - 1100000000000000000
8. Invalid URL -
9. Deposit false
10. Long name - dasdasdasdasdasdase2eeedasdasdad
11. Arabic Names - , Chinese Name
12. Special Char
13. Different date format - 31/2/23
14. Response Time
PreCondition TestSteps
Expected Result Actual Result
Steps to Execute Expected Result Actual Result
Status Executed QA Name Misc (Comments) Priority
Is Automated
No
Scenario TID
TestCase Description
Verify that Payload is 500, 501, SOAP API works and give ou
converted value
Verify that with Wrong URL, SOAP API should not work
NO headers
String Payload - Pramod
$$$ Payload
-1
0
1E+020
Blank Space
12.34
No payload
Null
Pramod@123
TRUE
1,500
oo5
3+8i
[email protected]
[]
Method to GET -
Postman,
PreCondition TestSteps
Payload, URL, 1. Open Postman. 2. Enter URL, Payload and Header and
Header, API Doc Click on the Submit or Send Button
Expected Result Conversion
Actual Result
It should convert to Words e.g Five hundred for happended
the input 500 succfully

Error
Error
Steps to Execute Expected Result Actual Result
Status Executed QA Name Misc (Comments) Priority
Is Automated
No
Scenario TID TestCase Description

Verify that with the Valid Booking, Booking ID should be generated (bookingid)
Verify that If firstname is not given , Booking ID will not be generated and error is displayed
Verify that If last_name is not given , Booking ID will not be generated and error is displayed
firstname = $$$
firstname = 123
firstname = Empty Blank
PreCondition TestSteps

ror is displayed
rror is displayed
Expected Result Actual Result

Booking id will be generated, error message is displayed


Booking id will Not be generated, error message is displayed
Booking id will be Not generated, error message is displayed
Booking id will be Not generated, error message is displayed
Booking id will be Not generated, error message is displayed
Steps to Execute Expected Result Actual Result
StatusExecuted QA Misc
Name(Comments)Priority Is Automated
Scenario TID TestCase Description

Verify that with the Valid Booking, Booking ID should be generated (bookingid)
Verify that If firstname is not given , Booking ID will not be generated and error is displayed
Verify that If last_name is not given , Booking ID will not be generated and error is displayed
firstname = $$$
firstname = 123
firstname = Empty Blank
PreCondition TestSteps

ror is displayed
rror is displayed
Expected Result Actual Result

Booking id will be generated, error message is displayed


Booking id will Not be generated, error message is displayed
Booking id will be Not generated, error message is displayed
Booking id will be Not generated, error message is displayed
Booking id will be Not generated, error message is displayed
Steps to Execute Expected Result Actual Result
StatusExecuted QA Misc
Name(Comments)Priority Is Automated
Scenario TID Test Data TestCase
postivie Description
test case, it should give PreCondition
Postman Installed,
1 500 PAYLOAD WITH VALUE 200 status coce URL
Actual
Expected Result Result Steps
2. Enter the URL to Execute
and Payload with 500
200 should as Status Code 200 , verfied 3. Hit the URL and verify the Statud code
Status Executed QA Misc
Name(Comments)Priority Is Automated
Passed Pramod
Automated
Scenario TID
Test Scenario

Create a Booking, Update the Booking Name, Get the Booking by Id and verify.
Create a Booking, Delete the Booking with Id and Verify using GET request that it should not exist.
Get an Existing Booking from Get All Bookings Ids , Update a Booking and Verify using GET by id.
Create a BOOKING, Delete It
Invalid Creation - enter a wrong payload or Wrong JSON.
Trying to Update on a Delete Id -> 404
Test Case Id Test Case Title Pre Condition

uld not exist.


g GET by id.
Steps to Execute Expected Result Actual Result
Status Executed QA Name Misc (Comments)
Pramod

You might also like