Given update user with valid ID and request body
When send request patch user
Then should return status code 200
And validate json schema update user
Given update user with valid ID and request body
When send request patch user
Then should return status code 400
Given update user with "1" as ID and "valid" request body
When send request patch user
Then should return status code 404
Given update user with "#@" as ID and "valid" request body
When send request patch user
Then should return status code 400
Given update user with "#@" as ID and "invalid" request body
When send request patch user
Then should return status code 400
Given update user without token
When send request patch user
Then should return status code 401
And response body message should be "Authentication failed"
And validate json schema response error
Given update user with "" as ID and "valid" request body
When send request patch user
Then should return status code 404
Scenario Results (including rows of test data) | Automated | |
---|---|---|
Passing | 4 | 57% |
Pending | 0 | |
Ignored | 0 | |
Skipped | 0 | |
Unsuccessful | ||
Failed | 3 | 43% |
Broken | 0 | |
Compromised | 0 | |
Total | 7 |
Execution Time | Clock Time | Fastest Test | Slowest Test | Average Execution Time |
---|---|---|---|---|
8s | 8s | 359ms | 3s | 1s |
Scenario | Steps | Started | Duration | Result |
---|---|---|---|---|
Update user with valid ID and valid request body | 4 | 11:38:57 | 1s 073ms | |
Update user with valid ID and invalid request body | 3 | 11:38:58 | 1s 585ms | |
Update user with unregistered ID and valid request body | 3 | 11:39:00 | 359ms | |
Update user with invalid ID and valid request body | 3 | 11:39:00 | 542ms | |
Update user with invalid ID and invalid request body | 3 | 11:39:01 | 444ms | |
Update user without token | 5 | 11:39:01 | 3s 980ms | |
Update user without ID | 3 | 11:39:05 | 591ms |