0% found this document useful (0 votes)
21 views16 pages

Pet Store API Test Cases

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)
21 views16 pages

Pet Store API Test Cases

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

Environment Test

Web URL [Link]


Token NA

TC_ID BRIEF DESCRIPTION HTTP METHODS

TC_API_PS_PET_01 Verify if user is able to create a pet POST

TC_API_PS_PET_02 Verify if user is able to get a pet GET

TC_API_PS_PET_03 Verify if user is able to update an existing pet PUT


TC_API_PS_PET_04 Verify if user is able to delete an existing pet DELETE

TC_API_PS_PET_05 Verify if we can place an order for a pet POST

TC_API_PS_PET_06 Verify if we can find a pet by id GET

TC_API_PS_PET_07 Verify if we can delete purchase order by id DELETE

TC_API_PS_PET_08 Verify if we can create an user POST

TC_API_PS_PET_09 Verify if we can get a user by username GET

TC_API_PS_PET_10 Verify if we can update a user PUT


TC_API_PS_PET_11 Verify if we can delete a user DELETE
ENDPOINTS(URN) BODY(PAYLOAD) PARAMETER

{
"id": 0,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
/PET } NA

/pet/9223372036854634575 NA pet id=9223372036854634575

{
"id": 0,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
/pet } NA
/pet/9223372036854634575 NA pet id=9223372036854634575

{
"id": 0,
"petId": 0,
"quantity": 0,
"shipDate": "2024-11-
07T13:56:28.023Z",
"status": "placed",
"complete": true
/store/order } NA

/store/order/9223372036 pet id=9223372036


854775807 NA 854775807

/store/order/9223372036 pet id=9223372036


854775807 NA 854775807

{
"id": 0,
"username": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"password": "string",
"phone": "string",
"userStatus": 0
/user } NA

/user/punitha NA username=punitha

{
"id": 0,
"username": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"password": "string",
"phone": "string",
"userStatus": 0
/user/roja } username=roja
/user/punitha NA username=punitha
RESPONSE PARAMETER STATUS

[Link] should be able to create a pet in a store


[Link] code=200
[Link] message=OK
[Link] time=1800ms

[Link] should be able to read a pet in a store


[Link] code=200
[Link] message=OK
[Link] time=1800ms

[Link] should be able to update a pet in a store


[Link] code=200
[Link] message=OK
[Link] time=1800ms
[Link] should be able to delete a pet in a store
[Link] code=200
[Link] message=OK
[Link] time=1800ms

[Link] should be able to order a pet in a store


[Link] code=200
[Link] message=OK
[Link] time=1800ms

[Link] should be able to find a pet by id


[Link] code=200
[Link] message=OK
[Link] time=1800ms

[Link] should be able to delete a pet by id


[Link] code=200
[Link] message=OK
[Link] time=1800ms

[Link] should be able to create a pet in a store


[Link] code=200
[Link] message=OK
[Link] time=1800ms

[Link] should be able to get a pet in a store


[Link] code=200
[Link] message=OK
[Link] time=1800ms

[Link] should be able to update a pet in a store


[Link] code=200
[Link] message=OK
[Link] time=1800ms
[Link] should be able to delete a pet in a store
[Link] code=200
[Link] message=OK
[Link] time=1800ms
Environment Test
Web URL [Link]
Token NA

TC_ID BRIEF DESCRIPTION HTTP METHOD ENDPOINTS(URN)

TC_API_RR_USERS_01 Verify if user is able to get list of users GET /api/users?page=2

TC_API_RR_USERS_02 Verify if user is able to get single user GET /api/users/2

TC_API_RR_USERS_03 Verify if user is not able to get single user GET /api/users/23

TC_API_RR_USERS_04 Verify if user is able to list the user GET /api/unknown

TC_API_RR_USERS_05 Verify if user is able to list single user GET /api/unknown2

TC_API_RR_USERS_06 Verify if user is not able to list singke user GET /api/unknown23

TC_API_RR_USERS_07 Verify if user is able to createa user POST /api/users

TC_API_RR_USERS_08 Verify if user is able to completely update a user PUT /api/users/2

TC_API_RR_USERS_09 Verify if user is able to partially update a user PATCH /api/users/2

TC_API_RR_USERS_10 Verify if user is able to delete a user DELETE /api/users/2


TC_API_RR_USERS_11 Verify if user is able to register successfully POST /api/register

TC_API_RR_USERS_12 Verify if user is unable to register POST /api/register

TC_API_RR_USERS_13 Verify if user is able to login POST /api/login

TC_API_RR_USERS_14 Verify if user is unable to login POST /api/login

TC_API_RR_USERS_15 Verify if user is able to delayed response GET /users?delay=3


BODY(PAYLOAD) PARAMETER RESPONSE PARAMETER STATUS

[Link] should be able to read list a users


[Link] code=200
[Link] message=OK
NA page=2 [Link] time=1800ms

[Link] should be able to read a users


[Link] code=200
[Link] message=OK
NA NA [Link] time=1800ms

[Link] should be able to read a users


[Link] code=200
[Link] message=OK
NA NA [Link] time=1800ms

[Link] should be able to read a users


[Link] code=200
[Link] message=OK
NA NA [Link] time=1800ms

[Link] should be able to read a users


[Link] code=200
[Link] message=OK
NA NA [Link] time=1800ms

[Link] should be able to read a users


[Link] code=200
[Link] message=OK
NA NA [Link] time=1800ms

{ [Link] should be able to create a users


"name":"punitha", [Link] code=200
"job":"Manager" [Link] message=OK
} NA [Link] time=1800ms

{ [Link] should be able to update a users


"name":"roja", [Link] code=200
"job":"leader" [Link] message=OK
} NA [Link] time=1800ms

{ [Link] should be able to update a users


"name":"roja", [Link] code=200
"job":"zion resident" [Link] message=OK
} NA [Link] time=1800ms

[Link] should be able to delete a users


[Link] code=200
[Link] message=OK
NA NA [Link] time=1800ms
{ [Link] should be able to register a users
"email":"[Link]@[Link]", [Link] code=200
"password":"pistol" [Link] message=OK
} NA [Link] time=1800ms

[Link] should not be able to register a users


{ [Link] code=200
"email":"sydney@fife" [Link] message=OK
} NA [Link] time=1800ms

{ [Link] should be able to login a users


"email":"[Link]@[Link]", [Link] code=200
"password":"cityslicka" [Link] message=OK
} NA [Link] time=1800ms

[Link] should be not able to login a users


{ [Link] code=200
"email":"peter@klaven" [Link] message=OK
} NA [Link] time=1800ms

[Link] should be able to get response delay


[Link] code=200
[Link] message=OK
NA delay=3 [Link] time=1800ms
Environment Test

Web URL [Link]


Token NA

TC_ID BRIEF DESCRIPTION HTTP METHOD END POINTS(URN)

TC_API_GR_USERS_01 Verify if user is able to create a user POST /public/v2/users

TC_API_GR_USERS_02 Verify if user is able to get a user GET /public/v2/users/6942326

TC_API_GR_USERS_03 Verify if user is able to update a user PUT/PATCH /public/v2/users/6942326

TC_API_GR_USERS_04 Verify if user is able to delete a user DELETE /public/v2/users/6942326


BODY(PAYLOAD) PARAMETER RESPONSE PARAMETER

{"name":"punitha", [Link] should be able to create a users


"gender":"male", [Link] code=200
"email":"punitha123@[Link]", [Link] message=OK
"status":"active"} NA [Link] time=1800ms

[Link] should be able to read a users


[Link] code=200
[Link] message=OK
NA user id=7506607 [Link] time=1800ms

[Link] should be able to update a users


{"name":"Allasani Peddana", [Link] code=200
"email":"[Link]@[Link]", [Link] message=OK
"status":"active"} user id=7506607 [Link] time=1800ms

[Link] should be able to delete a users


[Link] code=200
[Link] message=OK
NA user id=7506607 [Link] time=1800ms
STATUS

You might also like