@ProcessMakerMichelangelo @RestAPI @assignee Feature: Project Properties -Adhoc Assignee Resources Requirements: a workspace with the process 4224292655297723eb98691001100052 ("Test Users-Step-Properties End Point") already loaded there are one group in the task 1 and there are zero users in the task two and workspace with the process 1455892245368ebeb11c1a5001393784 - "Process Complete BPMN" already loaded" already loaded Background: Given that I have a valid access_token Scenario Outline: Get a list of available adhoc users and groups to be assigned to an activity Given I request "project//activity//adhoc-available-assignee" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" And the type is "array" And the response has records And the "ada_uid" property in row 0 equals "" And the "ada_type" property in row 0 equals "" Examples: | test_description | project | activity | records | ada_uid | ada_type | | check if the list of possible users and groups to be assigned is correct, Task 1 of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 80 | 54731929352d56741de9d42002704749 | group | | check if the list of possible users and groups to be assigned is correct, Task 1 of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6274755055368eed1116388064384542 | 83 | 54731929352d56741de9d42002704749 | group | Scenario Outline: Get a list of available adhoc users and groups to be assigned to an activity with filter Given I request "project//activity//adhoc-available-assignee?filter=&start=&limit=" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" And the type is "array" And the response has records And the "ada_uid" property in row 0 equals "" And the "ada_type" property in row 0 equals "" Examples: | test_description | project | activity | filter | start | limit | records | ada_uid | ada_type | | Using filter get available users that match with "fin"-Task 1 of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | fin | 0 | 50 | 2 | 66623507552d56742865613066097298 | group | | Using filter get 1 available user that match with "fin"-Task 1 of process Test Users-Step-Properties End Point| 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | fin | 0 | 1 | 1 | 66623507552d56742865613066097298 | group | | Using filter get available users that match with "fin"-Task 1 of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6274755055368eed1116388064384542 | fin | 0 | 50 | 2 | 66623507552d56742865613066097298 | group | | Using filter get 1 available user that match with "fin"-Task 1 of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6274755055368eed1116388064384542 | fin | 0 | 1 | 1 | 66623507552d56742865613066097298 | group | Scenario Outline: Assign a adhoc user or group to an activity Given POST this data: """ { "ada_uid": "", "ada_type": "" } """ And I request "project//activity//adhoc-assignee" Then the response status code should be 201 And the type is "object" Examples: | test_description | project | activity | ada_uid | ada_type | | Assign a user to the first task of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 73005191052d56727901138030694610 | user | | Assign a user to the first task of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 25286582752d56713231082039265791 | user | | Assign a group to the first task of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 54731929352d56741de9d42002704749 | group | | Assign a group to the second task of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 36775342552d5674146d9c2078497230 | group | | Assign a user to the first task of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6274755055368eed1116388064384542 | 73005191052d56727901138030694610 | user | | Assign a user to the first task of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6274755055368eed1116388064384542 | 25286582752d56713231082039265791 | user | | Assign a group to the first task of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6274755055368eed1116388064384542 | 54731929352d56741de9d42002704749 | group | | Assign a group to the second task of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 4790702485368efad167477011123879 | 36775342552d5674146d9c2078497230 | group | Scenario Outline: List adhoc assignees of an activity Given I request "project//activity//adhoc-assignee" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" And the type is "array" And the response has records And the "ada_uid" property in row 0 equals "" And the "ada_type" property in row 0 equals "" Examples: | test_description | project | activity | records | ada_uid | ada_type | | Verify that the activity has expected quantity of asignees of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 6 | 54731929352d56741de9d42002704749 | group | | Verify that the activity has expected quantity of asignees of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 1 | 36775342552d5674146d9c2078497230 | group | | Verify that the activity has expected quantity of asignees of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6274755055368eed1116388064384542 | 3 | 54731929352d56741de9d42002704749 | group | Scenario Outline: After assignation - List adhoc assignees of an activity with filter Given I request "project//activity//adhoc-assignee?filter=" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" And the type is "array" And the response has 1 record And the "ada_uid" property in row 0 equals "" And the "ada_type" property in row 0 equals "" Examples: | test_description | project | activity | records | ada_uid | ada_type | filter | | Filtered list should return 1 record | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 1 | 73005191052d56727901138030694610 | user | oli | | Filtered list should return 1 record | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 3 | 36775342552d5674146d9c2078497230 | group | emp | Scenario Outline: Get a single adhoc user or group of an activity Given I request "project//activity//adhoc-assignee/" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" And the type is "object" And the "ada_uid" property equals "" And the "ada_name" property equals "" And the "ada_lastname" property equals "" And the "ada_username" property equals "" And the "ada_type" property equals "user" Examples: | test_description | project | activity | ada_uid | ada_type | ada_name | ada_lastname | ada_username | | Obtain details of user assigend to an activity | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 73005191052d56727901138030694610 | user | Olivia | Austin | olivia | Scenario Outline: Remove adhoc assignee from an activity Given that I want to delete a resource with the key "ada_uid" stored in session array And I request "project//activity//adhoc-assignee/" Then the response status code should be 200 Examples: | test_description | project | activity | ada_uid | | Remove a user from activity of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 73005191052d56727901138030694610 | | Remove a user from activity of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 25286582752d56713231082039265791 | | Remove a user from activity of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 54731929352d56741de9d42002704749 | | Remove a user from activity of process Test Users-Step-Properties End Point | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 36775342552d5674146d9c2078497230 | | Remove a user from activity of process of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6274755055368eed1116388064384542 | 73005191052d56727901138030694610 | | Remove a user from activity of process of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6274755055368eed1116388064384542 | 25286582752d56713231082039265791 | | Remove a user from activity of process of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6274755055368eed1116388064384542 | 54731929352d56741de9d42002704749 | | Remove a user from activity of process of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 4790702485368efad167477011123879 | 36775342552d5674146d9c2078497230 | Scenario: List assignees of an activity Given I request "project/4224292655297723eb98691001100052/activity/65496814252977243d57684076211485/adhoc-assignee" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" And the type is "array" And the response has 3 records Scenario: List assignees of an activity Given I request "project/4224292655297723eb98691001100052/activity/65496814252977243d57684076211485/adhoc-assignee/all" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" And the type is "array" #BUG 15041 Inactive Groups are display in list of available groups Accounting Scenario Outline: BUG 15041 Get the list of available groups- Task2 Given I request "project//activity//adhoc-available-assignee?filter=&start=&limit=" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" And the type is "array" And the response has records And the "ada_uid" property in row 0 equals "" And the "ada_type" property in row 0 equals "" Examples: | test_description | project | activity | filter | start | limit | records | ada_uid | ada_type| | "Accounting" group is available | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | Accounting | 0 | 50 | 1 | 54731929352d56741de9d42002704749 | group | Scenario: BUG 15041 Update Group to disable group Given PUT this data: """ { "grp_title": "Accounting", "grp_status": "INACTIVE" } """ And I request "group/54731929352d56741de9d42002704749" And the content type is "application/json" Then the response status code should be 200 And the response charset is "UTF-8" And the type is "object" Scenario Outline: BUG 15041 Get the list of available users and groups to be assigned to an activity using filter Given I request "project//activity//adhoc-available-assignee?filter=&start=&limit=" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" And the type is "array" And the response has records Examples: | test_description | project | activity | filter | start | limit | records | | "Accounting" group is available Task2 | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | Accounting | 0 | 50 | 0 | Scenario: BUG 15041 Update Group to enable group Given PUT this data: """ { "grp_title": "Accounting", "grp_status": "ACTIVE" } """ And I request "group/54731929352d56741de9d42002704749" And the content type is "application/json" Then the response status code should be 200 And the response charset is "UTF-8" And the type is "object"