53 lines
3.2 KiB
Gherkin
53 lines
3.2 KiB
Gherkin
|
|
@ProcessMakerMichelangelo @RestAPI
|
||
|
|
Feature: Case Tracker Negative Tests
|
||
|
|
|
||
|
|
|
||
|
|
Background:
|
||
|
|
Given that I have a valid access_token
|
||
|
|
|
||
|
|
Scenario Outline: Update Case Tracker with bad parameters (negative tests)
|
||
|
|
Given PUT this data:
|
||
|
|
"""
|
||
|
|
{
|
||
|
|
"map_type": "<map_type>",
|
||
|
|
"routing_history": "<routing_history>",
|
||
|
|
"message_history": "<message_history>"
|
||
|
|
}
|
||
|
|
"""
|
||
|
|
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/property"
|
||
|
|
And the content type is "application/json"
|
||
|
|
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 | map_type | routing_history | message_history | error_code | error_message |
|
||
|
|
| Invalid map type | 50259961452d82bf57f4f62051572528 | STAGGEES | true | true | 400 | map_type |
|
||
|
|
| Invalid Routing History | 50259961452d82bf57f4f62051572528 | STAGE | trufalse | false | 400 | routing_history |
|
||
|
|
| Invalid Message History | 50259961452d82bf57f4f62051572528 | STAGE | true | faltrue | 400 | message_history |
|
||
|
|
| Field requered project | | STAGE | false | true | 400 | project |
|
||
|
|
|
||
|
|
|
||
|
|
Scenario Outline: Assigning objects to process case tracker with bad parameters (negative tests)
|
||
|
|
Given POST this data:
|
||
|
|
"""
|
||
|
|
{
|
||
|
|
"cto_type_obj": "<cto_type_obj>",
|
||
|
|
"cto_uid_obj": "<cto_uid_obj>",
|
||
|
|
"cto_condition": "<cto_condition>",
|
||
|
|
"cto_position": "<cto_position>"
|
||
|
|
}
|
||
|
|
"""
|
||
|
|
And I request "project/<project>/case-tracker/object"
|
||
|
|
Then the response status code should be 400
|
||
|
|
And the response status message should have the following text "<error_message>"
|
||
|
|
|
||
|
|
|
||
|
|
Examples:
|
||
|
|
|
||
|
|
| test_description | project | cto_type_obj | cto_uid_obj | cto_condition | cto_position | error_code | error_message |
|
||
|
|
| Invalid cto_type_obj | 50259961452d82bf57f4f62051572528 | DYNAFORM | 00001752652d82c592fc100000000051 | | 1 | 400 | DYNAFORM |
|
||
|
|
| Invalid cto_uid_obj | 50259961452d82bf57f4f62051572528 | INPUT_DOCUMENT | 8700000000000006d8c67d1001895377 | | 2 | 400 | INPUT_DOCUMENT |
|
||
|
|
| Invalid cto_position | 50259961452d82bf57f4f62051572528 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | | 3,9999.87 | 400 | cto_position |
|
||
|
|
| Field requered project | | DYNAFORM | 14761752652d82c592fc180020076851 | | 1 | 400 | project |
|
||
|
|
|