Merged in wnestor/processmaker (pull request #395)

Modificaciones en los features category, department, activity, adhoc, assignee, case tracker y process supervisor
This commit is contained in:
Erik Amaru Ortiz
2014-04-14 17:11:57 -04:00
13 changed files with 211 additions and 82 deletions

View File

@@ -9,7 +9,7 @@ Background:
Scenario: Get list of Categories Scenario: Get list of Categories
Given I request "categories" Given I request "project/categories"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -18,7 +18,7 @@ Scenario: Get list of Categories
Scenario: Get a Category specific Scenario: Get a Category specific
Given I request "category/4177095085330818c324501061677193" Given I request "project/category/4177095085330818c324501061677193"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -32,7 +32,7 @@ Scenario: Create a new Categories
"cat_name": "Test new Category" "cat_name": "Test new Category"
} }
""" """
And I request "category" And I request "project/category"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -41,7 +41,7 @@ Scenario: Create a new Categories
Scenario: Get list of Categories Scenario: Get list of Categories
Given I request "categories" Given I request "project/categories"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -57,7 +57,7 @@ Scenario: Update the Category created in this script
} }
""" """
And that I want to update a resource with the key "cat_uid" stored in session array And that I want to update a resource with the key "cat_uid" stored in session array
And I request "category" And I request "project/category"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -65,7 +65,7 @@ Scenario: Update the Category created in this script
Scenario: Delete the Category created previously in this script Scenario: Delete the Category created previously in this script
Given that I want to delete a resource with the key "cat_uid" stored in session array Given that I want to delete a resource with the key "cat_uid" stored in session array
And I request "category" And I request "project/category"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"

View File

@@ -9,7 +9,7 @@ Background:
Scenario: Get list of Categories Scenario: Get list of Categories
Given I request "categories" Given I request "project/categories"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -18,7 +18,7 @@ Scenario: Get list of Categories
Scenario: Get a Category specific Scenario: Get a Category specific
Given I request "category/4177095085330818c324501061677193" Given I request "project/category/4177095085330818c324501061677193"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -35,7 +35,7 @@ Scenario Outline: Create a new Categories
"cat_name": "<cat_name>" "cat_name": "<cat_name>"
} }
""" """
And I request "category" And I request "project/category"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -53,7 +53,7 @@ Scenario Outline: Create a new Categories
Scenario: Get list of Categories Scenario: Get list of Categories
Given I request "categories" Given I request "project/categories"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -68,7 +68,7 @@ Scenario: Create Category with same name
"cat_name": "sample" "cat_name": "sample"
} }
""" """
And I request "category" And I request "project/category"
Then the response status code should be 400 Then the response status code should be 400
And the response status message should have the following text "Duplicate" And the response status message should have the following text "Duplicate"
@@ -80,7 +80,7 @@ Scenario Outline: Update the Category created in this script
"cat_name": "cat_name" "cat_name": "cat_name"
} }
""" """
And I request "category/cat_uid" with the key "cat_uid" stored in session array as variable "cat_uid_<cat_uid_number>" And I request "project/category/cat_uid" with the key "cat_uid" stored in session array as variable "cat_uid_<cat_uid_number>"
And store "cat_uid" in session array as variable "cat_uid_<cat_uid_number>" And store "cat_uid" in session array as variable "cat_uid_<cat_uid_number>"
And the content type is "application/json" And the content type is "application/json"
@@ -96,7 +96,7 @@ Scenario Outline: Update the Category created in this script
Scenario Outline: Get a Category specific Scenario Outline: Get a Category specific
Given I request "category/4177095085330818c324501061677193" Given I request "project/category/cat_uid" with the key "cat_uid" stored in session array as variable "cat_uid_<cat_uid_number>"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -113,7 +113,7 @@ Scenario Outline: Get a Category specific
Scenario Outline: Delete the Category created previously in this script Scenario Outline: Delete the Category created previously in this script
Given that I want to delete a resource with the key "cat_uid" stored in session array as variable "cat_uid_<cat_uid_number>" Given that I want to delete a resource with the key "cat_uid" stored in session array as variable "cat_uid_<cat_uid_number>"
And I request "category" And I request "project/category"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -129,7 +129,7 @@ Scenario Outline: Delete the Category created previously in this script
Scenario: Get a Category specific Scenario: Get a Category specific
Given I request "category/4177095085330818c324501061677193" Given I request "project/category/4177095085330818c324501061677193"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"

View File

@@ -13,7 +13,7 @@ Scenario Outline: Create a new Categories (Negative Test)
"cat_name": "<cat_name>" "cat_name": "<cat_name>"
} }
""" """
And I request "category" And I request "project/category"
Then the response status code should be <error_code> Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>" And the response status message should have the following text "<error_message>"

View File

@@ -38,7 +38,7 @@ Background:
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "array" And the type is "array"
And the response has 7 record And the response has 6 record
Scenario: Create a new department in the workspace Scenario: Create a new department in the workspace
@@ -92,7 +92,7 @@ Background:
} }
""" """
And that I want to update a resource with the key "dep_uid" stored in session array And that I want to update a resource with the key "dep_uid" stored in session array
And I request "department/<dep_uid>/assign-user/23085901752d5671483a4c2059274810" And I request "department/<dep_uid>/assign-user/23085901752d5671483a4c2059274810"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -108,7 +108,7 @@ Background:
} }
""" """
And that I want to update a resource with the key "dep_uid" stored in session array And that I want to update a resource with the key "dep_uid" stored in session array
And I request "department/<dep_uid>/set-manager/24768775452d5671dbc1e92021979323" And I request "department/<dep_uid>/set-manager/24768775452d5671dbc1e92021979323"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -125,7 +125,7 @@ Background:
} }
""" """
And that I want to update a resource with the key "dep_uid" stored in session array And that I want to update a resource with the key "dep_uid" stored in session array
And I request "department/<dep_uid>/unassign-user/23085901752d5671483a4c2059274810" And I request "department/<dep_uid>/unassign-user/23085901752d5671483a4c2059274810"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -141,7 +141,7 @@ Background:
} }
""" """
And that I want to update a resource with the key "dep_uid" stored in session array And that I want to update a resource with the key "dep_uid" stored in session array
And I request "department/<dep_uid>/set-manager/38102442252d5671a629009013495090" And I request "department/<dep_uid>/set-manager/38102442252d5671a629009013495090"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"

View File

@@ -146,7 +146,7 @@ Background:
} }
""" """
And that I want to update a resource with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>" And that I want to update a resource with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
And I request "department/<dep_uid>/assign-user/<usr_uid>" And I request "department/<dep_uid>/assign-user/<usr_uid>"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -171,7 +171,7 @@ Background:
} }
""" """
And that I want to update a resource with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>" And that I want to update a resource with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
And I request "department/<dep_uid>/set-manager/<usr_uid>" And I request "department/<dep_uid>/set-manager/<usr_uid>"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -188,7 +188,7 @@ Background:
Scenario Outline: Get a single department of created in this script Scenario Outline: Get a single department of created in this script
Given that I want to get a resource with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>" Given that I want to get a resource with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
And I request "department/<dep_uid>" And I request "department/<dep_uid>"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -214,7 +214,7 @@ Background:
} }
""" """
And that I want to update a resource with the key "dep_uid" stored in session array And that I want to update a resource with the key "dep_uid" stored in session array
And I request "department/<dep_uid>/unassign-user/23085901752d5671483a4c2059274810" And I request "department/<dep_uid>/unassign-user/23085901752d5671483a4c2059274810"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"

View File

@@ -45,7 +45,7 @@ Scenario Outline: Create a new departments in the workspace with bad parameters
| Invalid usr_uid | 56255940652d5674c75bc70062927441 | 23085900000000000000002059274810 | 400 | usr_uid | | Invalid usr_uid | 56255940652d5674c75bc70062927441 | 23085900000000000000002059274810 | 400 | usr_uid |
| Invalid dep_uid | 56255900000000000000000062927441 | 23085901752d5671483a4c2059274810 | 400 | dep_uid | | Invalid dep_uid | 56255900000000000000000062927441 | 23085901752d5671483a4c2059274810 | 400 | dep_uid |
| Field Requered usr_uid | 56255940652d5674c75bc70062927441 | | 404 | Not Found | | Field Requered usr_uid | 56255940652d5674c75bc70062927441 | | 404 | Not Found |
| Field Requered dep_uid | | 25286582752d56713231082039265791 | 404 | Not Found | | Field Requered dep_uid | | 25286582752d56713231082039265791 | 400 | dep_uid |

View File

@@ -138,10 +138,10 @@ Feature: Activity Resources Main Tests
Examples: Examples:
| activity | tas_title | tas_description | tas_priority_variable | tas_derivation_screen_tpl | tas_assign_type | tas_assign_variable| tas_group_variable | tas_selfservice_timeout | tas_selfservice_time | tas_selfservice_time_unit | tas_transfer_fly | tas_duration | tas_timeunit | tas_type_day | tas_calendar | tas_type | tas_def_title | tas_def_description | tas_def_subject_message | tas_def_message_type | tas_def_message | | activity | tas_title | tas_description | tas_priority_variable | tas_derivation_screen_tpl | tas_assign_type | tas_assign_variable| tas_group_variable | tas_selfservice_timeout | tas_selfservice_time | tas_selfservice_time_unit | tas_selfservice_trigger_uid | tas_transfer_fly | tas_duration | tas_timeunit | tas_type_day | tas_calendar | tas_type | tas_def_title | tas_def_description | tas_def_subject_message | tas_def_message_type | tas_def_message | tas_def_message_template |
| 97192372152a5c78f04a794095806311 | update activity task1 | update description | @@PROCESS | template.html | BALANCED | @@USER_LOGGED | @@GROUP_UID | 0 | 4 | HOURS | TRUE | 4 | HOURS | 1 | | NORMAL | Case Title | Case Description UPDATE | UPDATE Titulo de Notificacion 1 | text | Esta es una Notificacion - UPDATE | | 97192372152a5c78f04a794095806311 | update activity task1 | update description | @@PROCESS | template.html | BALANCED | @@USER_LOGGED | @@GROUP_UID | 0 | 4 | HOURS | | TRUE | 4 | HOURS | 1 | | NORMAL | Case Title | Case Description UPDATE | UPDATE Titulo de Notificacion 1 | text | Esta es una Notificacion - UPDATE | template.html |
| 95655319552a5c790b69a04054667879 | update activity task2 | update description | @@PROCESS | template.html | BALANCED | @@USER_LOGGED | @@GROUP_UID | 0 | 4 | HOURS | TRUE | 4 | HOURS | 1 | | NORMAL | Case Title | Case Description UPDATE | UPDATE Titulo de Notificacion 1 | text | Esta es una Notificacion - UPDATE | | 95655319552a5c790b69a04054667879 | update activity task2 | update description | @@PROCESS | template.html | BALANCED | @@USER_LOGGED | @@GROUP_UID | 0 | 4 | HOURS | | TRUE | 4 | HOURS | 1 | | NORMAL | Case Title | Case Description UPDATE | UPDATE Titulo de Notificacion 1 | text | Esta es una Notificacion - UPDATE | template.html |
| 63843886052a5cc066e4c04056414372 | update activity task3 | update description | @@PROCESS | template.html | BALANCED | @@USER_LOGGED | @@GROUP_UID | 0 | 6 | HOURS | TRUE | 4 | HOURS | 1 | | NORMAL | Case Title | Case Description UPDATE | UPDATE Titulo de Notificacion 1 | text | Esta es una Notificacion - UPDATE | | 63843886052a5cc066e4c04056414372 | update activity task3 | update description | @@PROCESS | template.html | BALANCED | @@USER_LOGGED | @@GROUP_UID | 0 | 6 | HOURS | | TRUE | 4 | HOURS | 1 | | NORMAL | Case Title | Case Description UPDATE | UPDATE Titulo de Notificacion 1 | text | Esta es una Notificacion - UPDATE | template.html |
Scenario Outline: Update the Definition of a Activity and the check if the values had changed Scenario Outline: Update the Definition of a Activity and the check if the values had changed

View File

@@ -19,7 +19,7 @@ Requirements:
Examples: Examples:
| test_description | project | activity | records | ada_uid | ada_type | | test_description | project | activity | records | ada_uid | ada_type |
| check if the list of possible users and groups to be assigned is correct | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 82 | 54731929352d56741de9d42002704749 | group | | check if the list of possible users and groups to be assigned is correct | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 80 | 54731929352d56741de9d42002704749 | group |
Scenario Outline: Get a list of available adhoc users and groups to be assigned to an activity with filter Scenario Outline: Get a list of available adhoc users and groups to be assigned to an activity with filter
Given I request "project/<project>/activity/<activity>/adhoc-available-assignee?filter=<filter>&start=<start>&limit=<limit>" Given I request "project/<project>/activity/<activity>/adhoc-available-assignee?filter=<filter>&start=<start>&limit=<limit>"
@@ -69,7 +69,7 @@ Requirements:
Examples: Examples:
| test_description | project | activity | records | ada_uid | ada_type | | test_description | project | activity | records | ada_uid | ada_type |
| Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 4 | 54731929352d56741de9d42002704749 | group | | Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 6 | 54731929352d56741de9d42002704749 | group |
| Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 1 | 36775342552d5674146d9c2078497230 | group | | Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 1 | 36775342552d5674146d9c2078497230 | group |
@@ -122,7 +122,7 @@ Requirements:
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
And the type is "array" And the type is "array"
And the response has 1 records And the response has 3 records
Scenario: List assignees of an activity Scenario: List assignees of an activity
Given I request "project/4224292655297723eb98691001100052/activity/65496814252977243d57684076211485/adhoc-assignee/all" Given I request "project/4224292655297723eb98691001100052/activity/65496814252977243d57684076211485/adhoc-assignee/all"

View File

@@ -54,7 +54,7 @@ Scenario Outline: List assignees of an activity with bad parameters
| high number for start | a | 1000 | 1 | 0 | 200 | array | | high number for start | a | 1000 | 1 | 0 | 200 | array |
| high number for start | a | 1000 | 0 | 0 | 200 | array | | high number for start | a | 1000 | 0 | 0 | 200 | array |
| empty result | xyz | 0 | 0 | 0 | 200 | array | | empty result | xyz | 0 | 0 | 0 | 200 | array |
| empty string | | 0 | 10000 | 82 | 200 | array | | empty string | | 0 | 10000 | 80 | 200 | array |
| empty string | | 1 | 2 | 2 | 200 | array | | empty string | | 1 | 2 | 2 | 200 | array |
| invalid start | a | b | c | 0 | 400 | string| | invalid start | a | b | c | 0 | 400 | string|
| invalid limit | a | 0 | c | 0 | 400 | string| | invalid limit | a | 0 | c | 0 | 400 | string|

View File

@@ -63,7 +63,7 @@ Scenario Outline: Assign a user or group to an activity (Field validation)
| invalid start | a | b | c | 0 | 400 | string | | invalid start | a | b | c | 0 | 400 | string |
| invalid limit | a | 0 | c | 0 | 400 | string | | invalid limit | a | 0 | c | 0 | 400 | string |
| search 0 | 0 | 0 | 0 | 0 | 200 | array | | search 0 | 0 | 0 | 0 | 0 | 200 | array |
| search 0 | 0 | 0 | 100 | 4 | 200 | array | | search 0 | 0 | 0 | 100 | 0 | 200 | array |
| negative numbers | a | -10 | -20 | 0 | 400 | string | | negative numbers | a | -10 | -20 | 0 | 400 | string |
| real numbers | a | 0.0 | 1.0 | 1 | 200 | string | | real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
| real numbers | a | 0.0 | 0.0 | 0 | 200 | string | | real numbers | a | 0.0 | 0.0 | 0 | 200 | string |

View File

@@ -1,14 +1,44 @@
@ProcessMakerMichelangelo @RestAPI @ProcessMakerMichelangelo @RestAPI
Feature: Step update position Main Tests Feature: Case Tracker update position Main Tests
Scenario: List all the Sub Processs (result 0 Sub Processs) Requirements:
a workspace with the process 337095208534c2cb794a9b5045424275 ("Case Tracker Ordenamiento") already loaded
there are two activities and six object in the process
Scenario: List all objects in this process (result 5 objects)
Given that I have a valid access_token Given that I have a valid access_token
And I request "project/6838258995339cb1474fc94058315158/case-tracker/object/6262239315339cb46efc6e4031561540" And I request "project/337095208534c2cb794a9b5045424275/case-tracker/objects"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "array"
And the response has 5 records
And that "cto_position" is set to "3"
Scenario Outline: List all the objects in this process
Given that I have a valid access_token
And I request "project/337095208534c2cb794a9b5045424275/case-tracker/object/<cto_uid>"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
And that "cto_position" is set to "3" And that "cto_uid" is set to "<cto_uid>"
And that "cto_type_obj" is set to "<cto_type_obj>"
And that "cto_position" is set to "<cto_position>"
And that "obj_title" is set to "<obj_title>"
Scenario: Change order the step
Examples:
| test_description | cto_uid | cto_type_obj | cto_position | obj_title |
| Description form1 | 596781160534c2e048a51b4023771688 | DYNAFORM | 1 | form1 |
| Description form2 | 542952604534c2e084aeeb8075222116 | DYNAFORM | 2 | form2 |
| Description input1 | 779426015534c2e0bef94b6074738223 | INPUT_DOCUMENT | 3 | input1 |
| Description input2 | 958267629534c2e102d5896033309049 | INPUT_DOCUMENT | 4 | input2 |
| Description output1 | 892208902534c2e139f6a01078029070 | OUTPUT_DOCUMENT | 1 | output1 |
Scenario: Change order the object input1 for position one
Given that I have a valid access_token Given that I have a valid access_token
And PUT this data: And PUT this data:
""" """
@@ -16,33 +46,62 @@ Feature: Step update position Main Tests
"cto_position": 1 "cto_position": 1
} }
""" """
And I request "project/6838258995339cb1474fc94058315158/case-tracker/object/6262239315339cb46efc6e4031561540" And I request "project/337095208534c2cb794a9b5045424275/case-tracker/object/779426015534c2e0bef94b6074738223"
Then the response status code should be 200 Then the response status code should be 200
Scenario: List all the Sub Processs (result 0 Sub Processs)
Scenario Outline: List all the objects in this process
Given that I have a valid access_token Given that I have a valid access_token
And I request "project/6838258995339cb1474fc94058315158/case-tracker/object/6262239315339cb46efc6e4031561540 And I request "project/337095208534c2cb794a9b5045424275/case-tracker/object/<cto_uid>"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
And that "step_position" is set to "1" And that "cto_uid" is set to "<cto_uid>"
And that "cto_type_obj" is set to "<cto_type_obj>"
And that "cto_position" is set to "<cto_position>"
And that "obj_title" is set to "<obj_title>"
Scenario: Change order the step
Examples:
| test_description | cto_uid | cto_type_obj | cto_position | obj_title |
| Description form1 | 596781160534c2e048a51b4023771688 | DYNAFORM | 2 | form1 |
| Description form2 | 542952604534c2e084aeeb8075222116 | DYNAFORM | 3 | form2 |
| Description input1 | 779426015534c2e0bef94b6074738223 | INPUT_DOCUMENT | 1 | input1 |
| Description input2 | 958267629534c2e102d5896033309049 | INPUT_DOCUMENT | 4 | input2 |
| Description output1 | 892208902534c2e139f6a01078029070 | OUTPUT_DOCUMENT | 5 | output1 |
Scenario: Change order the object input1 for position three
Given that I have a valid access_token Given that I have a valid access_token
And PUT this data: And PUT this data:
""" """
{ {
"st_type": "BEFORE", "cto_position": 3
"st_position": "3"
} }
""" """
And I request "project/6838258995339cb1474fc94058315158/case-tracker/object/6262239315339cb46efc6e4031561540" And I request "project/337095208534c2cb794a9b5045424275/case-tracker/object/779426015534c2e0bef94b6074738223"
Then the response status code should be 200 Then the response status code should be 200
Scenario: List all the Sub Processs (result 0 Sub Processs)
Scenario Outline: List all the objects in this process
Given that I have a valid access_token Given that I have a valid access_token
And I request "project/6838258995339cb1474fc94058315158/case-tracker/object/6262239315339cb46efc6e4031561540 And I request "project/337095208534c2cb794a9b5045424275/case-tracker/object/<cto_uid>"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
And that "step_position" is set to "3" And that "cto_uid" is set to "<cto_uid>"
And that "cto_type_obj" is set to "<cto_type_obj>"
And that "cto_position" is set to "<cto_position>"
And that "obj_title" is set to "<obj_title>"
Examples:
| test_description | cto_uid | cto_type_obj | cto_position | obj_title |
| Description form1 | 596781160534c2e048a51b4023771688 | DYNAFORM | 1 | form1 |
| Description form2 | 542952604534c2e084aeeb8075222116 | DYNAFORM | 2 | form2 |
| Description input1 | 779426015534c2e0bef94b6074738223 | INPUT_DOCUMENT | 3 | input1 |
| Description input2 | 958267629534c2e102d5896033309049 | INPUT_DOCUMENT | 4 | input2 |
| Description output1 | 892208902534c2e139f6a01078029070 | OUTPUT_DOCUMENT | 5 | output1 |

View File

@@ -28,7 +28,7 @@ Feature: Input Documents Main Tests
"inp_doc_form_needed": "<inp_doc_form_needed>", "inp_doc_form_needed": "<inp_doc_form_needed>",
"inp_doc_original": "<inp_doc_original>", "inp_doc_original": "<inp_doc_original>",
"inp_doc_published": "<inp_doc_published>", "inp_doc_published": "<inp_doc_published>",
"inp_doc_versioning": "<inp_doc_versioning>", "inp_doc_versioning": <inp_doc_versioning>,
"inp_doc_destination_path": "<inp_doc_destination_path>", "inp_doc_destination_path": "<inp_doc_destination_path>",
"inp_doc_tags": "<inp_doc_tags>" "inp_doc_tags": "<inp_doc_tags>"
} }
@@ -67,7 +67,7 @@ Feature: Input Documents Main Tests
"inp_doc_form_needed": "VIRTUAL", "inp_doc_form_needed": "VIRTUAL",
"inp_doc_original": "ORIGINAL", "inp_doc_original": "ORIGINAL",
"inp_doc_published": "PRIVATE", "inp_doc_published": "PRIVATE",
"inp_doc_versioning": "1", "inp_doc_versioning": 1,
"inp_doc_destination_path": "", "inp_doc_destination_path": "",
"inp_doc_tags": "INPUT" "inp_doc_tags": "INPUT"
} }
@@ -96,7 +96,7 @@ Feature: Input Documents Main Tests
"inp_doc_form_needed": "<inp_doc_form_needed>", "inp_doc_form_needed": "<inp_doc_form_needed>",
"inp_doc_original": "<inp_doc_original>", "inp_doc_original": "<inp_doc_original>",
"inp_doc_published": "<inp_doc_published>", "inp_doc_published": "<inp_doc_published>",
"inp_doc_versioning": "<inp_doc_versioning>", "inp_doc_versioning": <inp_doc_versioning>,
"inp_doc_destination_path": "<inp_doc_destination_path>", "inp_doc_destination_path": "<inp_doc_destination_path>",
"inp_doc_tags": "<inp_doc_tags>" "inp_doc_tags": "<inp_doc_tags>"
} }
@@ -128,7 +128,7 @@ Feature: Input Documents Main Tests
And that "inp_doc_title" is set to "<inp_doc_title>" And that "inp_doc_title" is set to "<inp_doc_title>"
And that "inp_doc_description" is set to "<inp_doc_description>" And that "inp_doc_description" is set to "<inp_doc_description>"
And that "inp_doc_form_needed" is set to "<inp_doc_form_needed>" And that "inp_doc_form_needed" is set to "<inp_doc_form_needed>"
And that "inp_doc_versioning" is set to "<inp_doc_versioning>" And that "inp_doc_versioning" is set to <inp_doc_versioning>
Examples: Examples:

View File

@@ -1,7 +1,7 @@
@ProcessMakerMichelangelo @RestAPI @ProcessMakerMichelangelo @RestAPI
Feature: Reorder Process Supervisor - Dynaform and Input Feature: Reorder Process Supervisor - Dynaform and Input
Requirements: Requirements:
a workspace with the process 7557786515322022952dcc8014985410 ("Ordenamiento") already loaded a workspace with the process 857888611534814982bc651033834642 ("Ordenamiento Main") already loaded
there are two activities and eight steps in the process there are two activities and eight steps in the process
Background: Background:
@@ -9,7 +9,7 @@ Requirements:
Scenario Outline: obtain the position of dynaform in process supervisor Scenario Outline: obtain the position of dynaform in process supervisor
Given I request "project/7557786515322022952dcc8014985410/process-supervisors" Given I request "project/857888611534814982bc651033834642/process-supervisor/dynaform/step_uid"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
@@ -18,10 +18,10 @@ Requirements:
Examples: Examples:
| test_description | step_uid | pud_position | | test_description | step_uid | pud_position |
| Position-dynaform1 | 8257746325322026c0e45e3047837732 | 1 | | Position-dynaform1 | 674032139534bd91f9331a5032066933 | 1 |
| Position-dynaform2 | 30547852753220293960227013371359 | 2 | | Position-dynaform2 | 583050735534bd923984f24007464958 | 2 |
| Position-dynaform3 | 840380819532202d132fb91020992676 | 3 | | Position-dynaform3 | 114660532534bd926817991070085867 | 3 |
| Position-dynaform4 | 663853222532202eec8a913042063689 | 4 | | Position-dynaform4 | 105517492534bd929a58c15055718131 | 4 |
Scenario: Change order the dynaform of "dynaform3" by position one Scenario: Change order the dynaform of "dynaform3" by position one
@@ -31,12 +31,12 @@ Requirements:
"pud_position": "1" "pud_position": "1"
} }
""" """
And I request "project/7557786515322022952dcc8014985410/activity/7976552835322023005e069088446535/step/840380819532202d132fb91020992676" And I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/114660532534bd926817991070085867"
Then the response status code should be 200 Then the response status code should be 200
Scenario Outline: Obtain the position of the steps after changing position Scenario Outline: Obtain the position of the steps after changing position
Given I request "project/7557786515322022952dcc8014985410/activity/7976552835322023005e069088446535/step/<step_uid>" Given I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/<step_uid>"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
@@ -45,10 +45,10 @@ Requirements:
Examples: Examples:
| test_description | step_uid | step_position | | test_description | step_uid | step_position |
| Position-dynaform1 | 8257746325322026c0e45e3047837732 | 2 | | Position-dynaform1 | 674032139534bd91f9331a5032066933 | 2 |
| Position-dynaform2 | 30547852753220293960227013371359 | 3 | | Position-dynaform2 | 583050735534bd923984f24007464958 | 3 |
| Position-dynaform3 | 840380819532202d132fb91020992676 | 1 | | Position-dynaform3 | 114660532534bd926817991070085867 | 1 |
| Position-dynaform4 | 663853222532202eec8a913042063689 | 4 | | Position-dynaform4 | 105517492534bd929a58c15055718131 | 4 |
@@ -59,7 +59,7 @@ Requirements:
"dyn_uid": "<dyn_uid>" "dyn_uid": "<dyn_uid>"
} }
""" """
And I request "project/7557786515322022952dcc8014985410/process-supervisor/dynaform" And I request "project/857888611534814982bc651033834642/process-supervisor/dynaform"
Then the response status code should be 201 Then the response status code should be 201
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -69,11 +69,11 @@ Requirements:
Examples: Examples:
| test_description | pud_number | dyn_uid | | test_description | pud_number | dyn_uid |
| Assign a dynaform5 for Supervisor | 1 | 240449806532203ef307192024451548 | | Assign a dynaform5 for Supervisor | 1 | 856447360534bdeab3c4a72086906269 |
Scenario Outline: Obtain the position of the steps after add new dynaform Scenario Outline: Obtain the position of the steps after add new dynaform
Given I request "project/7557786515322022952dcc8014985410/activity/7976552835322023005e069088446535/step/<step_uid>" Given I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/<step_uid>"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
@@ -86,7 +86,7 @@ Requirements:
| Position-dynaform2 | 30547852753220293960227013371359 | 3 | | Position-dynaform2 | 30547852753220293960227013371359 | 3 |
| Position-dynaform3 | 840380819532202d132fb91020992676 | 1 | | Position-dynaform3 | 840380819532202d132fb91020992676 | 1 |
| Position-dynaform4 | 663853222532202eec8a913042063689 | 4 | | Position-dynaform4 | 663853222532202eec8a913042063689 | 4 |
| Position-dynaform5 | 240449806532203ef307192024451548 | 5 | | Position-dynaform5 | 925775829534bdee3ef85a0017515754 | 5 |
Scenario Outline: Delete an dynaform5 to a process supervisor Scenario Outline: Delete an dynaform5 to a process supervisor
@@ -98,23 +98,51 @@ Requirements:
Examples: Examples:
| test_description | project | pud_number | | test_description | project | pud_number |
| Delete dynaform5 for Supervisor | 7557786515322022952dcc8014985410 | 1 | | Delete dynaform5 for Supervisor | 925775829534bdee3ef85a0017515754 | 1 |
Scenario: Change order the dynaform of "dynaform3" by position three
Given PUT this data:
"""
{
"pud_position": "3"
}
"""
And I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/114660532534bd926817991070085867"
Then the response status code should be 200
Scenario Outline: Obtain the position of the steps after changing position
Given I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/<step_uid>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "step_position" is set to "<step_position>"
Examples:
| test_description | step_uid | step_position |
| Position-dynaform1 | 674032139534bd91f9331a5032066933 | 1 |
| Position-dynaform2 | 583050735534bd923984f24007464958 | 2 |
| Position-dynaform3 | 114660532534bd926817991070085867 | 3 |
| Position-dynaform4 | 105517492534bd929a58c15055718131 | 4 |
Scenario Outline: obtain the position of Input Documents in process supervisor Scenario Outline: obtain the position of Input Documents in process supervisor
Given I request "project/7557786515322022952dcc8014985410/process-supervisors" Given I request "project/857888611534814982bc651033834642/process-supervisors"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "array"
And that "pui_position" is set to "<pui_position>" And that "pui_position" is set to "<pui_position>"
Examples: Examples:
| test_description | step_uid | pud_position | | test_description | step_uid | pud_position |
| Position-Input1 | 853418037532209018ab711041079957 | 1 | | Position-Input1 | 152101193534bdfdb530c96029300152 | 1 |
| Position-Input2 | 5384383215322090e71aef1047228013 | 2 | | Position-Input2 | 370888112534bdfde887e79055241597 | 2 |
| Position-Input3 | 17499504253220917664c33090176996 | 3 | | Position-Input3 | 392695739534bdfe1542bb4007328326 | 3 |
@@ -125,12 +153,12 @@ Scenario Outline: obtain the position of Input Documents in process supervisor
"pud_position": "1" "pud_position": "1"
} }
""" """
And I request "project/7557786515322022952dcc8014985410/activity/7976552835322023005e069088446535/step/17499504253220917664c33090176996" And I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/392695739534bdfe1542bb4007328326"
Then the response status code should be 200 Then the response status code should be 200
Scenario Outline: Obtain the position of the steps after changing position Scenario Outline: Obtain the position of the steps after changing position
Given I request "project/7557786515322022952dcc8014985410/process-supervisors" Given I request "project/857888611534814982bc651033834642/process-supervisors"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
@@ -139,6 +167,48 @@ Scenario Outline: obtain the position of Input Documents in process supervisor
Examples: Examples:
| test_description | step_uid | pud_position | | test_description | step_uid | pud_position |
| Position-Input1 | 853418037532209018ab711041079957 | 2 | | Position-Input1 | 152101193534bdfdb530c96029300152 | 2 |
| Position-Input2 | 5384383215322090e71aef1047228013 | 3 | | Position-Input2 | 370888112534bdfde887e79055241597 | 3 |
| Position-Input3 | 17499504253220917664c33090176996 | 1 | | Position-Input3 | 392695739534bdfe1542bb4007328326 | 1 |
Scenario Outline: obtain the position of Input Documents in process supervisor
Given I request "project/857888611534814982bc651033834642/process-supervisors"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "pui_position" is set to "<pui_position>"
Examples:
| test_description | step_uid | pud_position |
| Position-Input1 | 152101193534bdfdb530c96029300152 | 1 |
| Position-Input2 | 370888112534bdfde887e79055241597 | 2 |
| Position-Input3 | 392695739534bdfe1542bb4007328326 | 3 |
Scenario: Change order the Input document of "Input3" by position three
Given PUT this data:
"""
{
"pud_position": "3"
}
"""
And I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/392695739534bdfe1542bb4007328326"
Then the response status code should be 200
Scenario Outline: Obtain the position of the steps after changing position
Given I request "project/857888611534814982bc651033834642/process-supervisors"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "pui_position" is set to "<pui_position>"
Examples:
| test_description | step_uid | pud_position |
| Position-Input1 | 152101193534bdfdb530c96029300152 | 1 |
| Position-Input2 | 370888112534bdfde887e79055241597 | 2 |
| Position-Input3 | 392695739534bdfe1542bb4007328326 | 3 |