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.242s | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
170.2 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Patrick Guerrero",
"email": "patrick.guerrero.f7c32302@hotmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1045,
"name": "Patrick Guerrero",
"email": "patrick.guerrero.f7c32302@hotmail.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1045
204
65.8 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=Patrick Guerrero
actual=Patrick Guerrero
✅
key_equals
key=email
expected=patrick.guerrero.f7c32302@hotmail.com
actual=patrick.guerrero.f7c32302@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': 'Patrick Guerrero', 'email': 'patrick.guerrero.f7c32302@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 119
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (170.2 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1045,
"name": "Patrick Guerrero",
"email": "patrick.guerrero.f7c32302@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/1045 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/1045 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1045 204 (65.8 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.143s | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
403
140.6 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Robert Foster",
"email": "robert.foster.adef16bd@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': 'Robert Foster', 'email': 'robert.foster.adef16bd@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 (140.6 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.238s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
55.4 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Roy Lopez",
"email": "roy.lopez.78e2bf8b@hotmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1046,
"name": "Roy Lopez",
"email": "roy.lopez.78e2bf8b@hotmail.com",
"gender": "male",
"status": "active"
}
POST
https://gorest.in/public/v2/users
422
82.4 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Roy Lopez",
"email": "roy.lopez.78e2bf8b@hotmail.com",
"gender": "male",
"status": "active"
}
[
{
"field": "email",
"message": "has already been taken"
}
]
DELETE
https://gorest.in/public/v2/users/1046
204
96.6 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': 'Roy Lopez', 'email': 'roy.lopez.78e2bf8b@hotmail.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 (55.4 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1046,
"name": "Roy Lopez",
"email": "roy.lopez.78e2bf8b@hotmail.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': 'Roy Lopez', 'email': 'roy.lopez.78e2bf8b@hotmail.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 (82.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/1046 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/1046 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1046 204 (96.6 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_get_user user | 0.161s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
53.1 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "David Nichols",
"email": "david.nichols.a2c5dc6f@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1047,
"name": "David Nichols",
"email": "david.nichols.a2c5dc6f@gmail.com",
"gender": "male",
"status": "active"
}
GET
https://gorest.in/public/v2/users/1047
200
50.8 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
{
"id": 1047,
"name": "David Nichols",
"email": "david.nichols.a2c5dc6f@gmail.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1047
204
53.7 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1047
actual=1047
✅
key_equals
key=name
expected=David Nichols
actual=David Nichols
✅
key_equals
key=email
expected=david.nichols.a2c5dc6f@gmail.com
actual=david.nichols.a2c5dc6f@gmail.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': 'David Nichols', 'email': 'david.nichols.a2c5dc6f@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 (53.1 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1047,
"name": "David Nichols",
"email": "david.nichols.a2c5dc6f@gmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → GET https://gorest.in/public/v2/users/1047 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/1047 HTTP/1.1" 200 111
INFO pytest_api_core.client:api_client.py:162 ← GET https://gorest.in/public/v2/users/1047 200 (50.8 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1047,
"name": "David Nichols",
"email": "david.nichols.a2c5dc6f@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/1047 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/1047 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1047 204 (53.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.170s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
62.2 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Ricky Wagner",
"email": "ricky.wagner.1702ba20@yahoo.com",
"gender": "male",
"status": "active"
}
{
"id": 1048,
"name": "Ricky Wagner",
"email": "ricky.wagner.1702ba20@yahoo.com",
"gender": "male",
"status": "active"
}
PUT
https://gorest.in/public/v2/users/1048
200
59.9 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"id": 1048,
"name": "Updated Name",
"email": "ricky.wagner.1702ba20@yahoo.com",
"gender": "male",
"status": "inactive"
}
{
"id": 1048,
"name": "Updated Name",
"email": "ricky.wagner.1702ba20@yahoo.com",
"gender": "male",
"status": "inactive"
}
DELETE
https://gorest.in/public/v2/users/1048
204
44.5 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1048
actual=1048
✅
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': 'Ricky Wagner', 'email': 'ricky.wagner.1702ba20@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 (62.2 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1048,
"name": "Ricky Wagner",
"email": "ricky.wagner.1702ba20@yahoo.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → PUT https://gorest.in/public/v2/users/1048 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'id': 1048, 'name': 'Updated Name', 'email': 'ricky.wagner.1702ba20@yahoo.com', 'gender': 'male', 'status': 'inactive'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "PUT /public/v2/users/1048 HTTP/1.1" 200 111
INFO pytest_api_core.client:api_client.py:162 ← PUT https://gorest.in/public/v2/users/1048 200 (59.9 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1048,
"name": "Updated Name",
"email": "ricky.wagner.1702ba20@yahoo.com",
"gender": "male",
"status": "inactive"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1048 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/1048 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1048 204 (44.5 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_patch_user user | 0.148s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
44.7 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Maurice Kennedy",
"email": "maurice.kennedy.ddc86781@yahoo.com",
"gender": "male",
"status": "active"
}
{
"id": 1049,
"name": "Maurice Kennedy",
"email": "maurice.kennedy.ddc86781@yahoo.com",
"gender": "male",
"status": "active"
}
PATCH
https://gorest.in/public/v2/users/1049
200
50.1 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"status": "inactive"
}
{
"id": 1049,
"name": "Maurice Kennedy",
"email": "maurice.kennedy.ddc86781@yahoo.com",
"gender": "male",
"status": "inactive"
}
DELETE
https://gorest.in/public/v2/users/1049
204
50.5 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1049
actual=1049
✅
key_equals
key=status
expected=inactive
actual=inactive
✅
key_equals
key=name
expected=Maurice Kennedy
actual=Maurice Kennedy
✅
key_equals
key=email
expected=maurice.kennedy.ddc86781@yahoo.com
actual=maurice.kennedy.ddc86781@yahoo.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': 'Maurice Kennedy', 'email': 'maurice.kennedy.ddc86781@yahoo.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 115
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (44.7 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1049,
"name": "Maurice Kennedy",
"email": "maurice.kennedy.ddc86781@yahoo.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → PATCH https://gorest.in/public/v2/users/1049 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/1049 HTTP/1.1" 200 117
INFO pytest_api_core.client:api_client.py:162 ← PATCH https://gorest.in/public/v2/users/1049 200 (50.1 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1049,
"name": "Maurice Kennedy",
"email": "maurice.kennedy.ddc86781@yahoo.com",
"gender": "male",
"status": "inactive"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1049 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/1049 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1049 204 (50.5 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_delete_user user | 0.223s | 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
55.9 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Terry Peterson",
"email": "terry.peterson.e27bda3c@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1050,
"name": "Terry Peterson",
"email": "terry.peterson.e27bda3c@gmail.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1050
204
50.2 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
—
GET
https://gorest.in/public/v2/users/1050
404
59.2 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
{
"message": "Resource not found"
}
DELETE
https://gorest.in/public/v2/users/1050
404
53.9 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': 'Terry Peterson', 'email': 'terry.peterson.e27bda3c@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 (55.9 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1050,
"name": "Terry Peterson",
"email": "terry.peterson.e27bda3c@gmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1050 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/1050 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1050 204 (50.2 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/1050 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/1050 HTTP/1.1" 404 32
INFO pytest_api_core.client:api_client.py:162 ← GET https://gorest.in/public/v2/users/1050 404 (59.2 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/1050 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/1050 HTTP/1.1" 404 32
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1050 404 (53.9 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"message": "Resource not found"
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||