Files
luos/features/backend/projects/project_user/negative_tests_project_user.feature

37 lines
1.9 KiB
Gherkin

@ProcessMakerMichelangelo @RestAPI
Feature: Project User Resources Negative Tests
Background:
Given that I have a valid access_token
Scenario: Get a list of start task of a specific user
Given I request "project/1265557095225ff5c688f46031700471/user/23348978752d567259ea6f3004731611/starting-tasks"
Then the response status code should be 400
And the response charset is "UTF-8"
And the content type is "application/json"
Scenario Outline: Verify if a user can start a task with bad parameters (negative tests)
Given POST this data:
"""
{
"act_uid": "<act_uid>",
"username": "<username>",
"password": "<password>"
}
"""
And I request "project/<project>/ws/user/can-start-task"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | act_uid | username | password | error_code | error_message |
| Invalid act_uid | 1265557095225ff5c688f46031700471 | 00000000009999f5fe54de2005407079 | admin | sample123* | 400 | act_uid |
| Invalid username | 1265557095225ff5c688f46031700471 | 1546168275225ff617b6a34046164891 | ain | admin | 400 | usr_uid |
| Invalid password | 1265557095225ff5c688f46031700471 | 1546168275225ff617b6a34046164891 | erick | sle | 400 | usr_uid |
| Field requered project | | 46941969352af5be2ab3f39001216717 | admin | admin | 400 | prj_uid |
| Field requered act_uid | 1265557095225ff5c688f46031700471 | | admin | admin | 400 | act_uid |