Given create user with valid request body
When send request post user
Then should return status code 201
And validate json schema create user
Given create user with invalid request body
When send request post user
Then should return status code 400
Given create user without request body
When send request post user
Then should return status code 400
Given create user without name on request body
When send request post user
Then should return status code 400
And response body message should be "can't be blank"
Given create user without token
When send request post user
Then should return status code 401
And response body message should be "Authentication failed"
And validate json schema response error
When send request post user
Then should return status code 401
And response body message should be "Authentication failed"
And validate json schema response error
Scenario Results (including rows of test data) | Automated | |
---|---|---|
Passing | 3 | 50% |
Pending | 0 | |
Ignored | 0 | |
Skipped | 0 | |
Unsuccessful | ||
Failed | 3 | 50% |
Broken | 0 | |
Compromised | 0 | |
Total | 6 |
Execution Time | Clock Time | Fastest Test | Slowest Test | Average Execution Time |
---|---|---|---|---|
2s | 2s | 356ms | 778ms | 487ms |
Scenario | Steps | Started | Duration | Result |
---|---|---|---|---|
Create user with valid request body | 4 | 11:39:06 | 778ms | |
Create user with invalid request body | 3 | 11:39:06 | 469ms | |
Create user without request body | 3 | 11:39:07 | 436ms | |
Create user without name on request body | 4 | 11:39:07 | 399ms | |
Create user without token | 5 | 11:39:08 | 486ms | |
Create user without token and without request body | 4 | 11:39:08 | 356ms |