TestCases - API
TestCases - API
6
Scenario
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
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"
},
{
"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