0% found this document useful (0 votes)
9 views

API Project Testcase

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)
9 views

API Project Testcase

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/ 16

Environment Test

Web URL https://petstore.swagger.io/v2/swagger.json


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

1.User should be able to create a pet in a store


2.Status code=200
3.Status message=OK
4.Response time=1800ms

1.User should be able to read a pet in a store


2.Status code=200
3.Status message=OK
4.Response time=1800ms

1.User should be able to update a pet in a store


2.Status code=200
3.Status message=OK
4.Response time=1800ms
1.User should be able to delete a pet in a store
2.Status code=200
3.Status message=OK
4.Response time=1800ms

1.User should be able to order a pet in a store


2.Status code=200
3.Status message=OK
4.Response time=1800ms

1.User should be able to find a pet by id


2.Status code=200
3.Status message=OK
4.Response time=1800ms

1.User should be able to delete a pet by id


2.Status code=200
3.Status message=OK
4.Response time=1800ms

1.User should be able to create a pet in a store


2.Status code=200
3.Status message=OK
4.Response time=1800ms

1.User should be able to get a pet in a store


2.Status code=200
3.Status message=OK
4.Response time=1800ms

1.User should be able to update a pet in a store


2.Status code=200
3.Status message=OK
4.Response time=1800ms
1.User should be able to delete a pet in a store
2.Status code=200
3.Status message=OK
4.Response time=1800ms
Environment Test
Web URL https://reqres.in/
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

1.User should be able to read list a users


2.Status code=200
3.Status message=OK
NA page=2 4.Response time=1800ms

1.User should be able to read a users


2.Status code=200
3.Status message=OK
NA NA 4.Response time=1800ms

1.User should be able to read a users


2.Status code=200
3.Status message=OK
NA NA 4.Response time=1800ms

1.User should be able to read a users


2.Status code=200
3.Status message=OK
NA NA 4.Response time=1800ms

1.User should be able to read a users


2.Status code=200
3.Status message=OK
NA NA 4.Response time=1800ms

1.User should be able to read a users


2.Status code=200
3.Status message=OK
NA NA 4.Response time=1800ms

{ 1.User should be able to create a users


"name":"punitha", 2.Status code=200
"job":"Manager" 3.Status message=OK
} NA 4.Response time=1800ms

{ 1.User should be able to update a users


"name":"roja", 2.Status code=200
"job":"leader" 3.Status message=OK
} NA 4.Response time=1800ms

{ 1.User should be able to update a users


"name":"roja", 2.Status code=200
"job":"zion resident" 3.Status message=OK
} NA 4.Response time=1800ms

1.User should be able to delete a users


2.Status code=200
3.Status message=OK
NA NA 4.Response time=1800ms
{ 1.User should be able to register a users
"email":"eve.holt@reqres.in", 2.Status code=200
"password":"pistol" 3.Status message=OK
} NA 4.Response time=1800ms

1.User should not be able to register a users


{ 2.Status code=200
"email":"sydney@fife" 3.Status message=OK
} NA 4.Response time=1800ms

{ 1.User should be able to login a users


"email":"eve.holt@reqres.in", 2.Status code=200
"password":"cityslicka" 3.Status message=OK
} NA 4.Response time=1800ms

1.User should be not able to login a users


{ 2.Status code=200
"email":"peter@klaven" 3.Status message=OK
} NA 4.Response time=1800ms

1.User should be able to get response delay


2.Status code=200
3.Status message=OK
NA delay=3 4.Response time=1800ms
Environment Test

Web URL https://gorest.co.in/


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", 1.User should be able to create a users


"gender":"male", 2.Status code=200
"email":"punitha123@15ce.com", 3.Status message=OK
"status":"active"} NA 4.Response time=1800ms

1.User should be able to read a users


2.Status code=200
3.Status message=OK
NA user id=7506607 4.Response time=1800ms

1.User should be able to update a users


{"name":"Allasani Peddana", 2.Status code=200
"email":"Allasani.peddana@15ce.com", 3.Status message=OK
"status":"active"} user id=7506607 4.Response time=1800ms

1.User should be able to delete a users


2.Status code=200
3.Status message=OK
NA user id=7506607 4.Response time=1800ms
STATUS

You might also like