Pass rate: 100.0%
8
Total
8
Passed
0
Failed
0
Errors
0
Skipped
| Status | Test ID | Duration | Calls | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_create_user_flow user | 0.985s | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
874.9 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Kyle Sanders",
"email": "kyle.sanders.774927ed@hotmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1021,
"name": "Kyle Sanders",
"email": "kyle.sanders.774927ed@hotmail.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1021
204
102.3 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=201
actual=201
✅
has_key
key=id
✅
key_equals
key=name
expected=Kyle Sanders
actual=Kyle Sanders
✅
key_equals
key=email
expected=kyle.sanders.774927ed@hotmail.com
actual=kyle.sanders.774927ed@hotmail.com
✅
equals
path=$.status
expected=active
actual=active
✅
key_equals
key=gender
expected=male
actual=male
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.config:config_manager.py:103 Loaded config for env='dev': {'base_url': 'https://gorest.in', 'timeout': 30, 'verify_ssl': True, 'headers': {'Accept': 'application/json', 'Content-Type': 'application/json'}, 'api_retry_total': 3, 'api_retry_backoff_factor': 0.3, 'api_retry_methods': ['GET', 'HEAD', 'OPTIONS']}
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Kyle Sanders', 'email': 'kyle.sanders.774927ed@hotmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:1062 Starting new HTTPS connection (1): gorest.in:443
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 111
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (874.9 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1021,
"name": "Kyle Sanders",
"email": "kyle.sanders.774927ed@hotmail.com",
"gender": "male",
"status": "active"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1021 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1021 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1021 204 (102.3 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_create_user_blocked_token user | 0.298s | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
403
295.5 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Andrew Kelly",
"email": "andrew.kelly.7dd72bc0@hotmail.com",
"gender": "male",
"status": "active"
}
{
"message": "Forbidden. This token does not have permission to access this endpoint."
}
ASSERTIONS
✅
status_is
expected=403
actual=403
✅
has_key
key=message
✅
equals
path=$.message
expected=Forbidden. This token does not have permission to access this endpoint.
actual=Forbidden. This token does not have permission to access this endpoint.
LOGS
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Andrew Kelly', 'email': 'andrew.kelly.7dd72bc0@hotmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:1062 Starting new HTTPS connection (1): gorest.in:443
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 403 85
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 403 (295.5 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"message": "Forbidden. This token does not have permission to access this endpoint."
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_create_user_duplicate_email user | 0.202s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
67.7 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Robert Malone",
"email": "robert.malone.420b20f9@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1022,
"name": "Robert Malone",
"email": "robert.malone.420b20f9@gmail.com",
"gender": "male",
"status": "active"
}
POST
https://gorest.in/public/v2/users
422
61.0 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Robert Malone",
"email": "robert.malone.420b20f9@gmail.com",
"gender": "male",
"status": "active"
}
[
{
"field": "email",
"message": "has already been taken"
}
]
DELETE
https://gorest.in/public/v2/users/1022
204
69.2 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=422
actual=422
✅
equals
path=$[0].field
expected=email
actual=email
✅
equals
path=$[0].message
expected=has already been taken
actual=has already been taken
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Robert Malone', 'email': 'robert.malone.420b20f9@gmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 111
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (67.7 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1022,
"name": "Robert Malone",
"email": "robert.malone.420b20f9@gmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Robert Malone', 'email': 'robert.malone.420b20f9@gmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 422 54
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 422 (61.0 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: [
{
"field": "email",
"message": "has already been taken"
}
]
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1022 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1022 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1022 204 (69.2 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_get_user user | 0.194s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
57.7 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Daniel Duffy",
"email": "daniel.duffy.430c3722@yahoo.com",
"gender": "male",
"status": "active"
}
{
"id": 1023,
"name": "Daniel Duffy",
"email": "daniel.duffy.430c3722@yahoo.com",
"gender": "male",
"status": "active"
}
GET
https://gorest.in/public/v2/users/1023
200
65.1 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
{
"id": 1023,
"name": "Daniel Duffy",
"email": "daniel.duffy.430c3722@yahoo.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1023
204
67.5 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1023
actual=1023
✅
key_equals
key=name
expected=Daniel Duffy
actual=Daniel Duffy
✅
key_equals
key=email
expected=daniel.duffy.430c3722@yahoo.com
actual=daniel.duffy.430c3722@yahoo.com
✅
key_equals
key=gender
expected=male
actual=male
✅
key_equals
key=status
expected=active
actual=active
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Daniel Duffy', 'email': 'daniel.duffy.430c3722@yahoo.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 109
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (57.7 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1023,
"name": "Daniel Duffy",
"email": "daniel.duffy.430c3722@yahoo.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → GET https://gorest.in/public/v2/users/1023 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "GET /public/v2/users/1023 HTTP/1.1" 200 109
INFO pytest_api_core.client:api_client.py:162 ← GET https://gorest.in/public/v2/users/1023 200 (65.1 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1023,
"name": "Daniel Duffy",
"email": "daniel.duffy.430c3722@yahoo.com",
"gender": "male",
"status": "active"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1023 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1023 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1023 204 (67.5 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_update_user user | 0.207s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
63.2 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Jeffrey Morales",
"email": "jeffrey.morales.fe8cfee1@hotmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1024,
"name": "Jeffrey Morales",
"email": "jeffrey.morales.fe8cfee1@hotmail.com",
"gender": "male",
"status": "active"
}
PUT
https://gorest.in/public/v2/users/1024
200
73.9 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"id": 1024,
"name": "Updated Name",
"email": "jeffrey.morales.fe8cfee1@hotmail.com",
"gender": "male",
"status": "inactive"
}
{
"id": 1024,
"name": "Updated Name",
"email": "jeffrey.morales.fe8cfee1@hotmail.com",
"gender": "male",
"status": "inactive"
}
DELETE
https://gorest.in/public/v2/users/1024
204
66.0 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1024
actual=1024
✅
key_equals
key=name
expected=Updated Name
actual=Updated Name
✅
key_equals
key=status
expected=inactive
actual=inactive
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Jeffrey Morales', 'email': 'jeffrey.morales.fe8cfee1@hotmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 117
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (63.2 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1024,
"name": "Jeffrey Morales",
"email": "jeffrey.morales.fe8cfee1@hotmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → PUT https://gorest.in/public/v2/users/1024 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'id': 1024, 'name': 'Updated Name', 'email': 'jeffrey.morales.fe8cfee1@hotmail.com', 'gender': 'male', 'status': 'inactive'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "PUT /public/v2/users/1024 HTTP/1.1" 200 116
INFO pytest_api_core.client:api_client.py:162 ← PUT https://gorest.in/public/v2/users/1024 200 (73.9 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1024,
"name": "Updated Name",
"email": "jeffrey.morales.fe8cfee1@hotmail.com",
"gender": "male",
"status": "inactive"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1024 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1024 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1024 204 (66.0 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_patch_user user | 0.204s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
61.1 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Sean Davis",
"email": "sean.davis.aff86656@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1025,
"name": "Sean Davis",
"email": "sean.davis.aff86656@gmail.com",
"gender": "male",
"status": "active"
}
PATCH
https://gorest.in/public/v2/users/1025
200
65.7 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"status": "inactive"
}
{
"id": 1025,
"name": "Sean Davis",
"email": "sean.davis.aff86656@gmail.com",
"gender": "male",
"status": "inactive"
}
DELETE
https://gorest.in/public/v2/users/1025
204
72.9 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1025
actual=1025
✅
key_equals
key=status
expected=inactive
actual=inactive
✅
key_equals
key=name
expected=Sean Davis
actual=Sean Davis
✅
key_equals
key=email
expected=sean.davis.aff86656@gmail.com
actual=sean.davis.aff86656@gmail.com
✅
key_equals
key=gender
expected=male
actual=male
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Sean Davis', 'email': 'sean.davis.aff86656@gmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 105
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (61.1 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1025,
"name": "Sean Davis",
"email": "sean.davis.aff86656@gmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → PATCH https://gorest.in/public/v2/users/1025 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'status': 'inactive'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "PATCH /public/v2/users/1025 HTTP/1.1" 200 107
INFO pytest_api_core.client:api_client.py:162 ← PATCH https://gorest.in/public/v2/users/1025 200 (65.7 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1025,
"name": "Sean Davis",
"email": "sean.davis.aff86656@gmail.com",
"gender": "male",
"status": "inactive"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1025 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1025 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1025 204 (72.9 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_delete_user user | 0.252s | 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
60.4 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Harry Keith",
"email": "harry.keith.ea649b73@hotmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1026,
"name": "Harry Keith",
"email": "harry.keith.ea649b73@hotmail.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1026
204
64.1 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
—
GET
https://gorest.in/public/v2/users/1026
404
62.3 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
{
"message": "Resource not found"
}
DELETE
https://gorest.in/public/v2/users/1026
404
60.7 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
{
"message": "Resource not found"
}
ASSERTIONS
✅
status_is
expected=204
actual=204
✅
status_is
expected=404
actual=404
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Harry Keith', 'email': 'harry.keith.ea649b73@hotmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 109
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (60.4 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1026,
"name": "Harry Keith",
"email": "harry.keith.ea649b73@hotmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1026 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1026 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1026 204 (64.1 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
DEBUG pytest_api_core.client:api_client.py:147 → GET https://gorest.in/public/v2/users/1026 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "GET /public/v2/users/1026 HTTP/1.1" 404 32
INFO pytest_api_core.client:api_client.py:162 ← GET https://gorest.in/public/v2/users/1026 404 (62.3 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"message": "Resource not found"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1026 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1026 HTTP/1.1" 404 32
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1026 404 (60.7 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"message": "Resource not found"
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_list_users user | 0.115s | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
GET
https://gorest.in/public/v2/users
200
66.2 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
[
{
"id": 1001,
"name": "Aarav Sharma",
"email": "aarav.sharma@example.com",
"gender": "male",
"status": "active"
},
{
"id": 1002,
"name": "Priya Mehta",
"email": "priya.mehta@example.com",
"gender": "female",
"status": "active"
},
{
"id": 1003,
"name": "Rohan Verma",
"email": "rohan.verma@example.com",
"gender": "male",
"status": "inactive"
},
{
"id": 1004,
"name": "Sneha Iyer",
"email": "sneha.iyer@example.com",
"gender": "female",
"status": "active"
},
{
"id": 1005,
"name": "Vikram Nair",
"email": "vikram.nair@example.com",
"gender": "male",
"status": "active"
},
{
"id": 1006,
"name": "Kavya Reddy",
"email": "kavya.reddy@example.com",
"gender": "female",
"status": "inactive"
},
{
"id": 1007,
"name": "Arjun Patel",
"email": "arjun.patel@example.com",
"gender": "male",
"status": "active"
},
{
"id": 1008,
"name": "Nisha Gupta",
"email": "nisha.gupta@example.com",
"gender": "female",
"status": "active"
},
{
"id": 1009,
"name": "Ravi Kumar",
"email": "ravi.kumar@example.com",
"gender": "male",
"status": "inactive"
},
{
"id": 1010,
"name": "Ananya Singh",
"email": "ananya.singh@example.com",
"gender": "female",
"status": "active"
}
]
ASSERTIONS
✅
status_is
expected=200
actual=200
✅
is_json_list
actual=list
✅
matches_schema
LOGS
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → GET https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "GET /public/v2/users HTTP/1.1" 200 None
INFO pytest_api_core.client:api_client.py:162 ← GET https://gorest.in/public/v2/users 200 (66.2 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: [
{
"id": 1001,
"name": "Aarav Sharma",
"email": "aarav.sharma@example.com",
"gender": "male",
"status": "active"
},
{
"id": 1002,
"name": "Priya Mehta",
"email": "priya.mehta@example.com",
"gender": "female",
"status": "active"
},
{
"id": 1003,
"name": "Rohan Verma",
"email": "rohan.verma@example.com",
"gender": "male",
"status": "inactive"
},
{
"id": 1004,
"name": "Sneha Iyer",
"email": "sneha.iyer@example.com",
"gender": "female",
"status": "active"
},
{
"id": 1005,
"name": "Vikram Nair",
"email": "vikram.nair@example.com",
"gender": "male",
"status": "active"
},
{
"id": 1006,
"name": "Kavya Reddy",
"email": "kavya.reddy@example.com",
"gender": "female",
"status": "inactive"
},
{
"id": 1007,
"name": "Arjun Patel",
"email": "arjun.patel@example.com",
"gender": "male",
"status": "active"
},
{
"id": 1008,
"name": "Nisha Gupta",
"email": "nisha.gupta@example.com",
"gender": "female",
"status": "active"
},
{
"id": 1009,
"name": "Ravi Kumar",
"email": "ravi.kumar@example.com",
"gender": "male",
"status": "inactive"
},
{
"id": 1010,
"name": "Ananya Singh",
"email": "ananya.singh@example.com",
"gender": "female",
"status": "active"
}
]
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||