Pass rate: 100.0%
7
Total
7
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.203s | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
159.4 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "John White",
"email": "john.white.e1dada9f@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1027,
"name": "John White",
"email": "john.white.e1dada9f@gmail.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1027
204
35.6 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=John White
actual=John White
✅
key_equals
key=email
expected=john.white.e1dada9f@gmail.com
actual=john.white.e1dada9f@gmail.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': 'John White', 'email': 'john.white.e1dada9f@gmail.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 105
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (159.4 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1027,
"name": "John White",
"email": "john.white.e1dada9f@gmail.com",
"gender": "male",
"status": "active"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1027 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/1027 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1027 204 (35.6 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.141s | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
403
139.0 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Richard Miller",
"email": "richard.miller.bd55f116@gmail.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': 'Richard Miller', 'email': 'richard.miller.bd55f116@gmail.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 (139.0 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.114s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
26.4 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Mathew Johnson",
"email": "mathew.johnson.c6cf1c82@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1028,
"name": "Mathew Johnson",
"email": "mathew.johnson.c6cf1c82@gmail.com",
"gender": "male",
"status": "active"
}
POST
https://gorest.in/public/v2/users
422
39.4 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Mathew Johnson",
"email": "mathew.johnson.c6cf1c82@gmail.com",
"gender": "male",
"status": "active"
}
[
{
"field": "email",
"message": "has already been taken"
}
]
DELETE
https://gorest.in/public/v2/users/1028
204
44.5 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': 'Mathew Johnson', 'email': 'mathew.johnson.c6cf1c82@gmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 113
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (26.4 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1028,
"name": "Mathew Johnson",
"email": "mathew.johnson.c6cf1c82@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': 'Mathew Johnson', 'email': 'mathew.johnson.c6cf1c82@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 (39.4 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/1028 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/1028 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1028 204 (44.5 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_get_user user | 0.095s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
43.8 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Samuel Pierce",
"email": "samuel.pierce.5db0c048@hotmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1029,
"name": "Samuel Pierce",
"email": "samuel.pierce.5db0c048@hotmail.com",
"gender": "male",
"status": "active"
}
GET
https://gorest.in/public/v2/users/1029
200
20.3 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
{
"id": 1029,
"name": "Samuel Pierce",
"email": "samuel.pierce.5db0c048@hotmail.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1029
204
26.7 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1029
actual=1029
✅
key_equals
key=name
expected=Samuel Pierce
actual=Samuel Pierce
✅
key_equals
key=email
expected=samuel.pierce.5db0c048@hotmail.com
actual=samuel.pierce.5db0c048@hotmail.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': 'Samuel Pierce', 'email': 'samuel.pierce.5db0c048@hotmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 113
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (43.8 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1029,
"name": "Samuel Pierce",
"email": "samuel.pierce.5db0c048@hotmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → GET https://gorest.in/public/v2/users/1029 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/1029 HTTP/1.1" 200 113
INFO pytest_api_core.client:api_client.py:162 ← GET https://gorest.in/public/v2/users/1029 200 (20.3 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1029,
"name": "Samuel Pierce",
"email": "samuel.pierce.5db0c048@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/1029 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/1029 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1029 204 (26.7 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_update_user user | 0.088s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
25.6 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Douglas Smith",
"email": "douglas.smith.8e33347a@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1030,
"name": "Douglas Smith",
"email": "douglas.smith.8e33347a@gmail.com",
"gender": "male",
"status": "active"
}
PUT
https://gorest.in/public/v2/users/1030
200
30.1 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"id": 1030,
"name": "Updated Name",
"email": "douglas.smith.8e33347a@gmail.com",
"gender": "male",
"status": "inactive"
}
{
"id": 1030,
"name": "Updated Name",
"email": "douglas.smith.8e33347a@gmail.com",
"gender": "male",
"status": "inactive"
}
DELETE
https://gorest.in/public/v2/users/1030
204
28.1 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1030
actual=1030
✅
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': 'Douglas Smith', 'email': 'douglas.smith.8e33347a@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 (25.6 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1030,
"name": "Douglas Smith",
"email": "douglas.smith.8e33347a@gmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → PUT https://gorest.in/public/v2/users/1030 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'id': 1030, 'name': 'Updated Name', 'email': 'douglas.smith.8e33347a@gmail.com', 'gender': 'male', 'status': 'inactive'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "PUT /public/v2/users/1030 HTTP/1.1" 200 112
INFO pytest_api_core.client:api_client.py:162 ← PUT https://gorest.in/public/v2/users/1030 200 (30.1 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1030,
"name": "Updated Name",
"email": "douglas.smith.8e33347a@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/1030 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/1030 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1030 204 (28.1 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_patch_user user | 0.090s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
22.3 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Nathan Garcia",
"email": "nathan.garcia.1d8bbf12@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1031,
"name": "Nathan Garcia",
"email": "nathan.garcia.1d8bbf12@gmail.com",
"gender": "male",
"status": "active"
}
PATCH
https://gorest.in/public/v2/users/1031
200
37.0 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"status": "inactive"
}
{
"id": 1031,
"name": "Nathan Garcia",
"email": "nathan.garcia.1d8bbf12@gmail.com",
"gender": "male",
"status": "inactive"
}
DELETE
https://gorest.in/public/v2/users/1031
204
26.2 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1031
actual=1031
✅
key_equals
key=status
expected=inactive
actual=inactive
✅
key_equals
key=name
expected=Nathan Garcia
actual=Nathan Garcia
✅
key_equals
key=email
expected=nathan.garcia.1d8bbf12@gmail.com
actual=nathan.garcia.1d8bbf12@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': 'Nathan Garcia', 'email': 'nathan.garcia.1d8bbf12@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 (22.3 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1031,
"name": "Nathan Garcia",
"email": "nathan.garcia.1d8bbf12@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/1031 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/1031 HTTP/1.1" 200 113
INFO pytest_api_core.client:api_client.py:162 ← PATCH https://gorest.in/public/v2/users/1031 200 (37.0 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1031,
"name": "Nathan Garcia",
"email": "nathan.garcia.1d8bbf12@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/1031 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/1031 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1031 204 (26.2 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_delete_user user | 0.101s | 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
21.6 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Michael Johnson",
"email": "michael.johnson.1431346a@hotmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1032,
"name": "Michael Johnson",
"email": "michael.johnson.1431346a@hotmail.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1032
204
25.4 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
—
GET
https://gorest.in/public/v2/users/1032
404
29.9 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
{
"message": "Resource not found"
}
DELETE
https://gorest.in/public/v2/users/1032
404
19.3 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': 'Michael Johnson', 'email': 'michael.johnson.1431346a@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 (21.6 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1032,
"name": "Michael Johnson",
"email": "michael.johnson.1431346a@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/1032 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/1032 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1032 204 (25.4 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/1032 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/1032 HTTP/1.1" 404 32
INFO pytest_api_core.client:api_client.py:162 ← GET https://gorest.in/public/v2/users/1032 404 (29.9 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/1032 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/1032 HTTP/1.1" 404 32
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1032 404 (19.3 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"message": "Resource not found"
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||