0% found this document useful (0 votes)
5 views7 pages

TestCases - API

The document outlines test scenarios for managing user profile details in a system, including retrieving, adding, updating, and deleting user information. Each scenario includes a description, preconditions, test case names, steps, expected results, and actual outcomes. The results indicate that most tests passed, while two delete operations failed.

Uploaded by

pravin21
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)
5 views7 pages

TestCases - API

The document outlines test scenarios for managing user profile details in a system, including retrieving, adding, updating, and deleting user information. Each scenario includes a description, preconditions, test case names, steps, expected results, and actual outcomes. The results indicate that most tests passed, while two delete operations failed.

Uploaded by

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

Feature ID Feature Name Scenario ID

12345 Users profile Details

6
Scenario

Gorest_1_Verify Customer getting profile details for single user

Gorest_2_Verify Customer getting profile details for all user

Gorest_3_Verify Customer adds his own profile details

Gorest_4_Verify Customer update his own profile details

Gorest_5_Verify Customer delete his own profile details

Gorest_6_Verify Customer delete all users details


Scenario Description

After hitting the url customer is able to to get his basic personal details for single user

After hitting the url customer is able to to get his basic personal details for all user

Customer is able to add his own profile details in Gorest

Customer is able to update his own profile details in Gorest

Customer is able to delete his details

Customer is able to delete all users details


Precondition Test Case Name Steps

1.Run GET to get single users details


2.validate users name
3.validate users email
Existing Customer Test Rest Api GET single
4.validate users gender
5.validate users status

1.Run GET to get all users details


2.validate users name
Existing Customers Test Rest Api GET all 3.validate users email
4.validate users gender
5.validate users status

1.Run POST to add single users details


2.post users name
3.post users email
New Customer Test Rest Api POST
4.post users gender
5.post users status

1.Run PUT to update users details


Existing Customer Test Rest Api PUT
2.update users email id

Existing Customer Test Rest Api DELETE Run DELETE to delete users details

Existing Customer Test Rest Api DELETE Run DELETE to delete all users data
Target URL validation point/Expected Result

"name": "Robert",
https://gorest.co.in/public/v1/users/123 "email": "[email protected]",
"gender": "male",
"status": "active"
},

https://gorest.co.in/public/v1/users

{
"name": "Sunita Khedkar",
"email": "[email protected]",
https://gorest.co.in/public/v1/users
"gender": "Female",
"status": "Active"
}

{
"name": "Sunita Khedkar",
"email": "[email protected]",
https://gorest.co.in/public/v1/users/123
"gender": "Female",
"status": "Active"
}

https://gorest.co.in/public/v1/users/123

https://gorest.co.in/public/v1/users/123
Actual Result Expected Status code Actual status Code Actual Response Time

{
"id": 2318,
"name": "Robert",
"email": "[email protected]", 200 200 779 ms
"gender": "male",
"status": "active"
},

200 200 765ms

{
"name": "Sunita Khedkar",
"email": "[email protected]",
201 201 200ms
"gender": "Female",
"status": "Active"
}

{
"name": "Sunita Khedkar",
"email":
"[email protected]", 200 300ms
"gender": "Female",
"status": "Active"
}

200

200
Pass/Fail

Pass

pass

pass

pass

fail

fail

You might also like