Merge branch 'master' of bitbucket.org:colosa/processmaker

This commit is contained in:
Brayan Osmar Pereyra Suxo
2014-01-17 11:03:05 -04:00
7 changed files with 282 additions and 383 deletions

2
.gitignore vendored
View File

@@ -25,3 +25,5 @@ vendor/
workflow/engine/config/schema-transformed.xml
workflow/engine/config/_databases_.php
workflow/public_html/lib/
session.data
behat.yml

View File

@@ -1,207 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Getting started with Behat tests
Scenario: GET projects list
Given that I have a valid access_token
And I request "projects"
Then the response status code should be 200
And the response time should at least be 100 milliseconds
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "array"
And the "prj_uid" property in row 0 equals "31034744752a5d007364d93044509065"
And the "prj_name" property in row 0 equals "Sample Project #1"
And the "prj_create_date" property in row 0 equals "2013-12-09 09:13:27"
Scenario: GET project Sample Project #1 process...
Given that I have a valid access_token
And I request "project/14414793652a5d718b65590036026581"
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 response has a "diagrams" property
And the "lanesets" property in row 0 of property "diagrams" is "array"
And the "lanes" property in row 0 of property "diagrams" is "array"
And the "activities" property in row 0 of property "diagrams" is "array"
And the "events" property in row 0 of property "diagrams" is "array"
And the "gateways" property in row 0 of property "diagrams" is "array"
And the "flows" property in row 0 of property "diagrams" is "array"
And the "artifacts" property in row 0 of property "diagrams" is "array"
Scenario: get an activity from some process
Given that I have a valid access_token
And I request "project/31034744752a5d007364d93044509065/activity/72845150252a5d718be4df5092655350"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the response is equivalent to this json file "task_72845150252a5d718be4df5092655350.json"
Scenario: get an activity from some process
Given that I have a valid access_token
And I request "project/31034744752a5d007364d93044509065/activity/13508932952a5d718ef56f6044945775"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the response is equivalent to this json file "task_13508932952a5d718ef56f6044945775.json"
Scenario: get an activity from some process
Given that I have a valid access_token
And I request "project/31034744752a5d007364d93044509065/activity/58163453252a5d719253ff9069893664"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the response is equivalent to this json file "task_58163453252a5d719253ff9069893664.json"
Scenario: get a list of input documents
Given that I have a valid access_token
And I request "project/14414793652a5d718b65590036026581/input-documents"
Then the response status code should be 200
And the content type is "application/json"
And the json data is an empty array
#there is an error in :
#message": "Bad Request: [wrapped: Cannot fetch TableMap for undefined table: CONTENT]"
#source": "InputDocument.php:51 at call stage",
# Scenario: post a new input documents
# Given that I have a valid access_token
# And POST this data:
#"""
#{
# "inp_doc_title": "Input Doc #1",
# "inp_doc_description": "Input Doc #1 - Desc",
# "out_doc_form_needed": "VIRTUAL",
# "inp_doc_original": "ORIGINAL",
# "inp_doc_published": "PRIVATE",
# "inp_doc_versionning": 0,
# "inp_doc_destination_path": "",
# "inp_doc_tags": "INPUT"
#}
#"""
# And I request "project/14414793652a5d718b65590036026581/input-document"
# Then the response status code should be 201
# Scenario: modify an input document
# Given that I have a valid access_token
# And PUT this data:
#"""
#{
# "inp_doc_title": "Input Doc #1",
# "inp_doc_description": "Input Doc #1 - Desc",
# "out_doc_form_needed": "VIRTUAL",
# "inp_doc_original": "ORIGINAL",
# "inp_doc_published": "PRIVATE",
# "inp_doc_versionning": 0,
# "inp_doc_destination_path": "",
# "inp_doc_tags": "INPUT"
#}
#"""
# And I request "project/14414793652a5d718b65590036026581/input-document/44915038352b08f590a4105021431900"
# Then the response status code should be 200
Scenario: get an empty list of triggers
Given that I have a valid access_token
And I request "project/14414793652a5d718b65590036026581/triggers"
Then the response status code should be 200
And the content type is "application/json"
And the json data is an empty array
Scenario: post a new trigger
Given that I have a valid access_token
And POST this data:
"""
{
"tri_title": "Trigger #1",
"tri_description": "Trigger #1 - Desc",
"tri_type": "SCRIPT",
"tri_webbot": "print 'hello world!!'; ",
"tri_param": "PRIVATE"
}
"""
And I request "project/14414793652a5d718b65590036026581/trigger"
Then the response status code should be 201
And the content type is "application/json"
And the type is "object"
And that "tri_param" is set to "PRIVATE"
And store "tri_uid" in session array
And store "tri_uid" in session array as variable "trigger1"
Scenario: re-post a new trigger, to get an error
Given that I have a valid access_token
And POST this data:
"""
{
"tri_title": "Trigger #1",
"tri_description": "Trigger #1 - Desc",
"tri_type": "SCRIPT",
"tri_webbot": "print 'hello world!!'; ",
"tri_param": "PRIVATE"
}
"""
And I request "project/14414793652a5d718b65590036026581/trigger"
Then the response status code should be 400
And the content type is "application/json"
And the type is "object"
#message: "Bad Request: There is a previously created trigger with the same name in this process"
Scenario: modify a Trigger
Given that I have a valid access_token
And PUT this data:
"""
{
"tri_title": "Trigger #1-modified",
"tri_description": "Trigger #1 - -modified",
"tri_type": "SCRIPT",
"tri_webbot": "print 'hello modified world!!'; ",
"tri_param": "PRIVATE"
}
"""
And that I want to update a resource with the key "tri_uid" stored in session array
And I request "project/14414793652a5d718b65590036026581/trigger"
Then the response status code should be 200
And the content type is "application/json"
And the type is "object"
And that "tri_title" is set to "Trigger #1-modified"
And that "tri_description" is set to "Trigger #1 - -modified"
And that "tri_type" is set to "script"
And that "tri_webbot" is set to "print 'hello modified world!!'; "
And that "tri_param" is set to "private"
Scenario: get a previously created trigger
Given that I have a valid access_token
And that I want to get a resource with the key "tri_uid" stored in session array
And I request "project/14414793652a5d718b65590036026581/trigger"
Then the response status code should be 200
And the content type is "application/json"
And that "tri_title" is set to "Trigger #1-modified"
And that "tri_description" is set to "Trigger #1 - -modified"
And that "tri_type" is set to "script"
And that "tri_webbot" is set to "print 'hello modified world!!'; "
And that "tri_param" is set to "private"
Scenario: get a previously created trigger using alternative variable
Given that I have a valid access_token
And that I want to get a resource with the key "trigger1" stored in session array
And I request "project/14414793652a5d718b65590036026581/trigger"
Then the response status code should be 200
And the content type is "application/json"
And that "tri_title" is set to "Trigger #1-modified"
And that "tri_description" is set to "Trigger #1 - -modified"
And that "tri_type" is set to "script"
And that "tri_webbot" is set to "print 'hello modified world!!'; "
And that "tri_param" is set to "private"
Scenario: delete a previously created trigger
Given that I have a valid access_token
And that I want to delete a resource with the key "tri_uid" stored in session array
And I request "project/14414793652a5d718b65590036026581/trigger"
Then the response status code should be 200
And the content type is "application/json"
Scenario: get the empty list of triggers again!
Given that I have a valid access_token
And I request "project/14414793652a5d718b65590036026581/triggers"
Then the response status code should be 200
And the json data is an empty array

View File

@@ -1,64 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Project Properties Assignee Resources
Background:
Given that I have a valid acess_token
Scenario: Get a list of available users and groups to be assigned to an activity
Given that I have a valid access_token
And I request "project/4224292655297723eb98691001100052/activity/65496814252977243d57684076211485/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"
Scenario: List assignees of an activity
Given that I have a valid access_token
And I request "project/14414793652a5d718b65590036026581/activity/13508932952a5d718ef56f6044945775/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 "aas_uid" property in row 0 equals "00000000000000000000000000000001"
And the "aas_name" property in row 0 equals "Administrator"
And the "aas_lastname" property in row 0 equals "Admin"
And the "aas_username" property in row 0 equals "admin"
And the "aas_type" property in row 0 equals "user"
Scenario: Get a single user or group of an activity
Given that I have a valid access_token
And I request "project/14414793652a5d718b65590036026581/activity/13508932952a5d718ef56f6044945775/assignee/00000000000000000000000000000001"
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 "aas_uid" property equals "00000000000000000000000000000001"
And the "aas_name" property equals "Administrator"
And the "aas_lastname" property equals "Admin"
And the "aas_username" property equals "admin"
And the "aas_type" property equals "user"
# Scenario: Unassign a user or group to an activity
# Given that I have a valid access_token
# And that I want to delete a resource with the key "aas_uid" stored in session array
# And I request "project/14414793652a5d718b65590036026581/activity/13508932952a5d718ef56f6044945775/assignee/42713393551f2a8aae1fde2096962777"
# Then the response status code should be 200
# And the content type is "application/json"
Scenario: List assignees of an activity with filter
Given that I have a valid access_token
And I request "project/14414793652a5d718b65590036026581/activity/13508932952a5d718ef56f6044945775/assignee?filter=adm"
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 "aas_uid" property in row 0 equals "42713393551f2a8aae1fde2096962777"
And the "aas_name" property in row 0 equals "AdministratorOnly (0 Users)"
And the "aas_lastname" property in row 0 equals ""
And the "aas_username" property in row 0 equals ""
And the "aas_type" property in row 0 equals "group"

View File

@@ -0,0 +1,175 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Case Tracker
Background:
Given that I have a valid access_token
#CASE TRACKER
#GET /api/1.0/{workspace}/project/{prj_uid}/case-tracker/property
# Get Case Tracker data of a Project
Scenario: Get Case Tracker data of a Project
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/property"
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"
#PUT /api/1.0/{workspace}/project/{prj_uid}/case-tracker/property
# Update Case Tracker data of a Project
Scenario: Update Case Tracker data of a Project
And PUT this data:
"""
{
"map_type": "NONE",
"routing_history": true,
"message_history": false
}
"""
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/property"
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"
#GET /api/1.0/{workspace}/project/{prj_uid}/case-tracker/property
# Get Case Tracker data of a Project
Scenario: Get Case Tracker data of a Project
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/property"
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"
And that "map_type" is set to "NONE"
And that "routing_history" is set to "true"
And that "message_history" is set to "false"
#CASE TRACKER OBJECT
#GET /api/1.0/{workspace}/project/{prj_uid}/case-tracker/objects
# Get list Case Tracker Objects of a Project
Scenario: Get list Case Tracker Objects of a Project
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/objects"
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 "array"
And the json data is an empty array
#POST /api/1.0/{workspace}/project/{prj_uid}/case-tracker/object
# Assign an Object to a Project
Scenario Outline: Assign an Object to a Project
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/50259961452d82bf57f4f62051572528/case-tracker/object"
And the content type is "application/json"
Then the response status code should be 201
And the response charset is "UTF-8"
And the type is "object"
And store "cto_uid" in session array as variable "cto_uid<i>"
Examples:
| i | cto_type_obj | cto_uid_obj | cto_condition | cto_position |
| 0 | DYNAFORM | 14761752652d82c592fc180020076851 | | 1 |
| 1 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | | 2 |
#PUT /api/1.0/{workspace}/project/{prj_uid}/case-tracker/object/{cto_uid}
# Update a Case Tracker Object for a Project
Scenario Outline: Update a Case Tracker Object for a Project
Given PUT this data:
"""
{
"cto_condition": "<cto_condition>"
}
"""
And that I want to update a resource with the key "cto_uid" stored in session array as variable "cto_uid<i>"
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/object"
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"
Examples:
| i | cto_condition |
| 0 | @@YEAR == 2011 |
| 1 | @@YEAR == 2012 |
#GET /api/1.0/{workspace}/project/{prj_uid}/case-tracker/objects
# Get list Case Tracker Objects of a Project
Scenario Outline: Get list Case Tracker Objects of a Project
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/objects"
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 "array"
And the "cto_type_obj" property in row <i> equals "<cto_type_obj>"
And the "cto_uid_obj" property in row <i> equals "<cto_uid_obj>"
And the "cto_condition" property in row <i> equals "<cto_condition>"
And the "cto_position" property in row <i> equals "<cto_position>"
And the "obj_title" property in row <i> equals "<obj_title>"
And the "obj_description" property in row <i> equals "<obj_description>"
Examples:
| i | cto_type_obj | cto_uid_obj | cto_condition | cto_position | obj_title | obj_description |
| 0 | DYNAFORM | 14761752652d82c592fc180020076851 | @@YEAR == 2011 | 1 | DynaForm Demo | Description |
| 1 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | @@YEAR == 2012 | 2 | InputDocument Demo | Description |
#GET /api/1.0/{workspace}/project/{prj_uid}/case-tracker/available-objects
# Get list available Case Tracker Objects of a Project
Scenario Outline: Get list available Case Tracker Objects of a Project
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/available-objects"
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 "array"
And the "obj_uid" property in row <i> equals "<obj_uid>"
And the "obj_title" property in row <i> equals "<obj_title>"
And the "obj_description" property in row <i> equals "<obj_description>"
And the "obj_type" property in row <i> equals "<obj_type>"
Examples:
| i | obj_uid | obj_title | obj_description | obj_type |
| 0 | 76247354052d82ca9d04509043789234 | OutputDocument Demo | Description | OUTPUT_DOCUMENT |
#GET /api/1.0/{workspace}/project/{prj_uid}/case-tracker/object/{cto_uid}
# Get a single Case Tracker Object of a Project
Scenario Outline: Get a single Case Tracker Object of a Project
Given that I want to get a resource with the key "cto_uid" stored in session array as variable "cto_uid<i>"
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/object"
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"
And that "cto_type_obj" is set to "<cto_type_obj>"
And that "cto_uid_obj" is set to "<cto_uid_obj>"
And that "cto_condition" is set to "<cto_condition>"
And that "cto_position" is set to "<cto_position>"
And that "obj_title" is set to "<obj_title>"
And that "obj_description" is set to "<obj_description>"
Examples:
| i | cto_type_obj | cto_uid_obj | cto_condition | cto_position | obj_title | obj_description |
| 0 | DYNAFORM | 14761752652d82c592fc180020076851 | @@YEAR == 2011 | 1 | DynaForm Demo | Description |
| 1 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | @@YEAR == 2012 | 2 | InputDocument Demo | Description |
#DELETE /api/1.0/{workspace}/project/{prj_uid}/case-tracker/object/{cto_uid}
# Delete a Case Tracker Object of a Project
Scenario Outline: Delete a Case Tracker Object of a Project
Given that I want to delete a resource with the key "cto_uid" stored in session array as variable "cto_uid<i>"
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/object"
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"
Examples:
| i |
| 0 |
| 1 |

View File

@@ -40,16 +40,20 @@ Feature: Input Documents Resources
Examples:
| project | inp_doc_number | inp_doc_title | inp_doc_description | inp_doc_form_needed | inp_doc_original | inp_doc_published | inp_doc_versioning | inp_doc_destination_path | inp_doc_tags": "INPUT |
| 14414793652a5d718b65590036026581 | 1 | My InputDocument1 | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 2 | My InputDocument2 | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 3 | My InputDocument3 | My InputDocument3 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 4 | My InputDocument4 | My InputDocument4 DESCRIPTION | VREAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 5 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COPY | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 6 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| 14414793652a5d718b65590036026581 | 7 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my/path | INPUT |
| 14414793652a5d718b65590036026581 | 8 | My InputDocument8 | My InputDocument8 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 9 | My InputDocument9 | My InputDocument9 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| project | inp_doc_number | inp_doc_title | inp_doc_description | inp_doc_form_needed | inp_doc_original | inp_doc_published | inp_doc_versioning | inp_doc_destination_path | inp_doc_tags |
| 14414793652a5d718b65590036026581 | 1 | My InputDocument1 | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 2 | My InputDocument2 | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 3 | My InputDocument3 | My InputDocument3 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 4 | My InputDocument4 | My InputDocument4 DESCRIPTION | VREAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 5 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COPY | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 6 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| 14414793652a5d718b65590036026581 | 7 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my/path | INPUT |
| 14414793652a5d718b65590036026581 | 8 | My InputDocument8 | My InputDocument8 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 9 | My InputDocument9 | My InputDocument9 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 10 | My InputDocument10 !@#$%^&*€¤½¼‘¾¡²¤³ | My InputDocument10 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 11 | My InputDocument11 | My InputDocument11 !@#$%^&*€¤½¼‘¾¡²¤³| REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 12 | My InputDocument12 | My InputDocument12 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my#@$#%/path324@$@@ | INPUT |
| 14414793652a5d718b65590036026581 | 13 | My InputDocument13 | My InputDocument13 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPU455 @##$$³¤¤ |
@@ -62,7 +66,7 @@ Feature: Input Documents Resources
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "array"
And the response has 9 records
And the response has 13 records
@@ -154,7 +158,11 @@ Feature: Input Documents Resources
| 14414793652a5d718b65590036026581 | 6 |
| 14414793652a5d718b65590036026581 | 7 |
| 14414793652a5d718b65590036026581 | 8 |
| 14414793652a5d718b65590036026581 | 9 |
| 14414793652a5d718b65590036026581 | 9 |
| 14414793652a5d718b65590036026581 | 10 |
| 14414793652a5d718b65590036026581 | 11 |
| 14414793652a5d718b65590036026581 | 12 |
| 14414793652a5d718b65590036026581 | 13 |
@@ -194,15 +202,11 @@ Feature: Input Documents Resources
Examples:
| project | inp_doc_title | inp_doc_description | inp_doc_form_needed | inp_doc_original | inp_doc_published | inp_doc_versioning | inp_doc_destination_path | inp_doc_tags |
| 14414793652a5d718b65590036 | My InputDocument1 | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument2 !@#$%^&*€¤½¼‘¾¡²¤³ | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument3 | My InputDocument3 !@#$%^&*€¤½¼‘¾¡²¤³| REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036 | My InputDocument1 | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument4 | My InputDocument4 DESCRIPTION | VRESAMPLE12334$%#@ | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COORIGI 123@#$%$% | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIV123234@##$$%% | 0 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 87 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument8 | My InputDocument8 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my#@$#%/path324@$@@ | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument9 | My InputDocument9 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPU455 @##$$³¤¤ |
| | My InputDocument10 | My InputDocument10 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument11 | My InputDocument11 DESCRIPTION | | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument12 | My InputDocument12 DESCRIPTION | REAL | | PRIVATE | 1 | | INPUT |

View File

@@ -4,10 +4,10 @@ Feature: Process supervisor Resources
Background:
Given that I have a valid access_token
@1: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisors
Scenario: Get a List of process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisors"
@1: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of process supervisor of a project
Given I request "project/85794888452ceeef3675164057928956/process-supervisors"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -15,146 +15,140 @@ Feature: Process supervisor Resources
And the response has 1 records
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/{pu_uid}
@2: TEST FOR GET A SPECIFIC PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/{pu_uid}
Scenario: Get a specific process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/70662784652cef0878516f7085532841"
Scenario: Get a specific process supervisor of a project
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/70662784652cef0878516f7085532841"
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"
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/available-process-supervisors
Scenario: Get a List of available process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/available-process-supervisors"
@3: TEST FOR GET USERS AND GROUP SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of available process supervisor of a project
Given I request "project/85794888452ceeef3675164057928956/available-process-supervisors"
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 86 records
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/available-process-supervisors
Scenario: Get a List of available groups process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/available-process-supervisors?obj_type=group"
@4: TEST FOR GET GROUP SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of available groups process supervisor of a project
Given I request "project/85794888452ceeef3675164057928956/available-process-supervisors?obj_type=group"
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 23 records
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/available-process-supervisors
Scenario: Get a List of available users process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/available-process-supervisors?obj_type=user"
@5: TEST FOR GET USERS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of available users process supervisor of a project
Given I request "project/85794888452ceeef3675164057928956/available-process-supervisors?obj_type=user"
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 63 records
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/dynaforms
Scenario: Get a List of dynaforms process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaforms"
@6: TEST FOR DYNAFORM PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of dynaforms process supervisor of a project
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaforms"
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
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/dynaform/{pu_uid}
Scenario: Get a specific process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaform/78069721352ceef1fd61878075214306"
@7: TEST FOR GET A SPECIFIC PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a specific process supervisor of a project
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaform/78069721352ceef1fd61878075214306"
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"
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/available-dynaforms
Scenario: Get a List of available dynaforms process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/available-dynaforms"
@8: TEST FOR GET AVAILABLE DYNAFORM PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of available dynaforms process supervisor of a project
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/available-dynaforms"
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 2 records
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/input-documents
@9: TEST FOR GET INPUT DOCUMENT PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of input-documents process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/input-documents"
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/input-documents"
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 records
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/available-input-documents
@10: TEST FOR GET LIST INPUT DOCUMENTS - PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of input-documents process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/available-input-documents"
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/available-input-documents"
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 2 records
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/input-document/{pu_uid}
@11: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a specific process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/input-document/37709187452ceef4f601dd3045365506"
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/input-document/37709187452ceef4f601dd3045365506"
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"
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#POST /api/1.0/{workspace}/project/{prj_uid}/process-supervisor
Scenario: Assign a group process supervisor of a project
Given that I POST this data:
@12: TEST FOR POST PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario Outline: Assign a user and group process supervisor of a project
Given POST this data:
"""
{
"pu_type": "GROUP_SUPERVISOR",
"usr_uid": "46138556052cda43a051110007756836"
"pu_type": "pu_type",
"usr_uid": "usr_uid"
}
"""
And I request "project/85794888452ceeef3675164057928956/process-supervisor"
And I request "project/<project>/process-supervisor"
Then the response status code should be 201
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "pu_uid" in session array as variable "pug_uid"
And store "pu_uid" in session array as variable "pug_uid_<ps_number>"
Examples:
| project | ps_number | pu_type | usr_uid |
| 85794888452ceeef3675164057928956 | 1 | GROUP_SUPERVISOR | 46138556052cda43a051110007756836 |
| 85794888452ceeef3675164057928956 | 2 | SUPERVISOR | 00000000000000000000000000000001 |
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#POST /api/1.0/{workspace}/project/{prj_uid}/process-supervisor
Scenario: Assign a user process supervisor of a project
Given that I POST this data:
"""
{
"pu_type": "SUPERVISOR",
"usr_uid": "00000000000000000000000000000001"
}
"""
And I request "project/85794888452ceeef3675164057928956/process-supervisor"
Then the response status code should be 201
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "pu_uid" in session array as variable "puu_uid"
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#POST /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/dynaform
Scenario: Assign a dynaform process supervisor of a project
Given that I POST this data:
@13: TEST FOR POST DYNAFORM PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario Outline: Assign a dynaform process supervisor of a project
Given POST this data:
"""
{
"dyn_uid": "78212661352ceef2dc4e987081647602"
@@ -165,16 +159,22 @@ Feature: Process supervisor Resources
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "pud_uid" in session array as variable "pud_uid"
And store "pud_uid" in session array as variable "pud_uid_<dps_number>"
Examples:
| project | dps_number | dyn_uid |
| 85794888452ceeef3675164057928956 | 1 | 78212661352ceef2dc4e987081647602 |
| 85794888452ceeef3675164057928956 | 1 | |
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#POST /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/input-document
Scenario: Assign a dynaform process supervisor of a project
Given that I POST this data:
@14: TEST FOR POST INPUT DOCUMENT - PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario Outline: Assign a dynaform process supervisor of a project
Given POST this data:
"""
{
"inp_doc_uid": "25205290452ceef570741c3067266323"
"inp_doc_uid": "<inp_doc_uid>"
}
"""
And I request "project/85794888452ceeef3675164057928956/process-supervisor/input-document"
@@ -182,21 +182,33 @@ Feature: Process supervisor Resources
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "pui_uid" in session array as variable "pui_uid"
And store "pui_uid" in session array as variable "pui_inpdoc_uid_<>"
Examples:
| project | dps_number | inp_doc_uid |
| 85794888452ceeef3675164057928956 | 1 | 25205290452ceef570741c3067266323 |
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#DELETE /api/1.0/{workspace}/project/{prj_uid}/process-supervisor
Scenario: Delete a user process supervisor of a project
@15: TEST FOR DELETE PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario Outline: Delete a user process supervisor of a project
Given that I want to delete a resource with the key "pug_uid" stored in session array
And I request "project/85794888452ceeef3675164057928956/process-supervisor"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| project | ps_number |
| 85794888452ceeef3675164057928956 | 1 |
| 85794888452ceeef3675164057928956 | 2 |
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#DELETE /api/1.0/{workspace}/project/{prj_uid}/process-supervisor
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Delete a user process supervisor of a project
Given that I want to delete a resource with the key "puu_uid" stored in session array
And I request "project/85794888452ceeef3675164057928956/process-supervisor"
@@ -205,8 +217,8 @@ Feature: Process supervisor Resources
And the response charset is "UTF-8"
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#DELETE /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/dynaform
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Delete a dynaform process supervisor of a project
Given that I want to delete a resource with the key "pud_uid" stored in session array
And I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaform"
@@ -215,10 +227,10 @@ Feature: Process supervisor Resources
And the response charset is "UTF-8"
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
#DELETE /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/input-document
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Delete a input-document process supervisor of a project
Given that want to delete a resource with the key "pui_uid" stored in session array
Given that I want to delete a resource with the key "pui_uid" stored in session array
And I request "project/85794888452ceeef3675164057928956/process-supervisor/input-document"
And the content type is "application/json"
Then the response status code should be 200

View File

@@ -1,23 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Project Properties - Assignee Resources
Background:
Given that I have a valid access_token
Scenario Outline: Get a list of available users and groups to be assigned to an activity with filter
Given that I want to make a new "test"
And his "name" is "<name>"
And his "lastname" is "<lastname>"
When I request "test"
Then the response status code should be 200
And the response should be JSON
#And that "id" is set to "<id>"
And the "id" property equals "<id>"
Examples:
| name | lastname | age | id |
| erik | sample1 | 7 | 2 |
| wendy | sample2 | 15 | 3 |
| wendy2 | sample22 | 15 | 4 |
| wendy3 | sample23 | 15 | 5 |