Borrando carpetas antiguas

This commit is contained in:
Wendy Nestor
2014-01-27 10:23:44 -04:00
parent b84233e3a5
commit fc90c5de0f
48 changed files with 0 additions and 6215 deletions

View File

@@ -1,83 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Case Scheduler Resources
Background:
Given that I have a valid access_token
Scenario: Create a new case scheduler for a project
Given POST this data:
"""
{
"sch_option": "3",
"sch_name": "Test scheduler #1",
"sch_del_user_name": "admin",
"sch_del_user_pass": "admin",
"tas_uid": "46941969352af5be2ab3f39001216717",
"sch_start_time": "18:00",
"sch_start_date": "2014-01-20",
"sch_end_date": "2014-01-20",
"sch_every_days": "",
"sch_week_days": "",
"sch_start_day": "1",
"sch_start_day_opt_1": "2",
"sch_start_day_opt_2": "",
"sch_months": "1|6|12",
"sch_repeat_every": "",
"sch_repeat_until": ""
}
"""
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
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 "sch_uid" in session array as variable "sch_uid"
Scenario: Get a List of case scheduler of a project
Given I request "project/1265557095225ff5c688f46031700471/case-schedulers"
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
Scenario: Get a single case scheduler of a project
Given that I want to get a resource with the key "sch_uid" stored in session array
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
Then the response status code should be 200
And the content type is "application/json"
And the type is "object"
Scenario: Update a case scheduler for a project
Given PUT this data:
"""
{
"sch_name": "Test scheduler #1 modify",
"sch_del_user_name": "admin",
"sch_del_user_pass": "admin",
"tas_uid": "46941969352af5be2ab3f39001216717",
"sch_start_time": "20:00",
"sch_start_date": "2014-02-01",
"sch_end_date": "2014-02-01",
"sch_every_days": "",
"sch_week_days": "",
"sch_start_day": "1",
"sch_start_day_opt_1": "2",
"sch_start_day_opt_2": "",
"sch_months": "1|6|12",
"sch_repeat_every": "",
"sch_repeat_until": ""
}
"""
And that I want to update a resource with the key "sch_uid" stored in session array
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
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: Delete a case scheduler of a project
Given that I want to delete a resource with the key "sch_uid" stored in session array
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
Then the response status code should be 200
And the response charset is "UTF-8"

View File

@@ -1,175 +0,0 @@
@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

@@ -1,176 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: DynaForms Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/dynaforms
# Get a List DynaForms of a Project
Scenario: Get a List DynaForms of a Project
Given that I have a valid access_token
And I request "project/14414793652a5d718b65590036026581/dynaforms"
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}/dynaform
# Create a new DynaForm for a Project
# Creation normal of a DynaForm
Scenario: Create "My DynaForm1" for a Project (Creation normal of a DynaForm)
Given that I have a valid access_token
And POST this data:
"""
{
"dyn_title": "My DynaForm1",
"dyn_description": "My DynaForm1 DESCRIPTION",
"dyn_type": "xmlform"
}
"""
And I request "project/14414793652a5d718b65590036026581/dynaform"
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 "dyn_uid" in session array as variable "dynaForm1"
#POST /api/1.0/{workspace}/project/{prj_uid}/dynaform
# Create a new DynaForm for a Project
# Copy/Import a DynaForm
Scenario: Create "DynaForm Demo" for a Project (Copy/Import a DynaForm)
Given that I have a valid access_token
And POST this data:
"""
{
"dyn_title": "DynaForm Demo",
"dyn_description": "Description",
"dyn_type": "xmlform",
"copy_import":
{
"prj_uid": "42445320652cd534acb3824056962285",
"dyn_uid": "70070685552cd53605650f7062918506"
}
}
"""
And I request "project/14414793652a5d718b65590036026581/dynaform"
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 "dyn_uid" in session array as variable "dynaForm2"
#POST /api/1.0/{workspace}/project/{prj_uid}/dynaform
# Create a new DynaForm for a Project
# Creation of a DynaForm based in a PMTable
Scenario: Create "PMT_DYNAFORM" for a Project (Creation of a DynaForm based in a PMTable)
Given that I have a valid access_token
And POST this data:
"""
{
"dyn_title": "PMT_DYNAFORM",
"dyn_description": "PMT_DYNAFORM DESCRIPTION",
"dyn_type": "xmlform",
"pmtable":
{
"tab_uid": "65193158852cc1a93a5a535084878044",
"fields": [
{
"fld_name": "DYN_UID",
"pro_variable": "@#APPLICATION"
}
]
}
}
"""
And I request "project/14414793652a5d718b65590036026581/dynaform"
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 "dyn_uid" in session array as variable "dynaForm3"
#PUT /api/1.0/{workspace}/project/{prj_uid}/dynaform/{dyn_uid}
# Update a DynaForm for a Project
Scenario: Update a DynaForm for a Project
Given that I have a valid access_token
And PUT this data:
"""
{
"dyn_title": "My DynaForm1 Modified",
"dyn_description": "My DynaForm1 DESCRIPTION Modified",
"dyn_type": "xmlform"
}
"""
And that I want to update a resource with the key "dynaForm1" stored in session array
And I request "project/14414793652a5d718b65590036026581/dynaform"
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 "dyn_title" is set to "My DynaForm1 Modified"
#GET /api/1.0/{workspace}/project/{prj_uid}/dynaforms
# Get a List DynaForms of a Project
Scenario: Get a List DynaForms of a Project
Given that I have a valid access_token
And I request "project/14414793652a5d718b65590036026581/dynaforms"
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 "dyn_title" property in row 0 equals "DynaForm Demo"
And the "dyn_description" property in row 0 equals "Description"
And the "dyn_type" property in row 0 equals "xmlform"
#GET /api/1.0/{workspace}/project/{prj_uid}/dynaform/{dyn_uid}
# Get a single DynaForm of a Project
Scenario: Get a single DynaForm of a Project
Given that I have a valid access_token
And that I want to get a resource with the key "dynaForm3" stored in session array
And I request "project/14414793652a5d718b65590036026581/dynaform"
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 "dyn_title" is set to "PMT_DYNAFORM"
And that "dyn_description" is set to "PMT_DYNAFORM DESCRIPTION"
And that "dyn_type" is set to "xmlform"
#DELETE /api/1.0/{workspace}/project/{prj_uid}/dynaform/{dyn_uid}
# Delete a DynaForm of a Project
Scenario: Delete a previously created DynaForms
Given that I have a valid access_token
And that I want to delete a resource with the key "dynaForm1" stored in session array
And I request "project/14414793652a5d718b65590036026581/dynaform"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
#DELETE /api/1.0/{workspace}/project/{prj_uid}/dynaform/{dyn_uid}
# Delete a DynaForm of a Project
Scenario: Delete a previously created DynaForms
Given that I have a valid access_token
And that I want to delete a resource with the key "dynaForm2" stored in session array
And I request "project/14414793652a5d718b65590036026581/dynaform"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
#DELETE /api/1.0/{workspace}/project/{prj_uid}/dynaform/{dyn_uid}
# Delete a DynaForm of a Project
Scenario: Delete a previously created DynaForms
Given that I have a valid access_token
And that I want to delete a resource with the key "dynaForm3" stored in session array
And I request "project/14414793652a5d718b65590036026581/dynaform"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
#GET /api/1.0/{workspace}/project/{prj_uid}/dynaforms
# Get a List DynaForms of a Project
Scenario: Get a List DynaForms of a Project
Given that I have a valid access_token
And I request "project/14414793652a5d718b65590036026581/dynaforms"
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

View File

@@ -1,96 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Events Resources
@1: TEST FOR GET EVENTS /----------------------------------------------------------------------
Scenario: List all the events (result 0 events)
Given that I have a valid access_token
And I request "project/251815090529619a99a2bf4013294414/events"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record
@2: TEST FOR POST EVENT /----------------------------------------------------------------------
Scenario: Create a new event
Given that I have a valid access_token
And POST this data:
"""
{
"evn_description": "DE BEHAT",
"evn_status": "ACTIVE",
"evn_action": "SEND_MESSAGE",
"evn_related_to": "SINGLE",
"tas_uid": "97192372152a5c78f04a794095806311",
"evn_tas_uid_from": "97192372152a5c78f04a794095806311",
"evn_tas_estimated_duration": 1,
"evn_time_unit": "DAYS",
"evn_when": 1,
"evn_when_occurs": "AFTER_TIME",
"tri_uid": "75916963152cc6ab085a704081670580"
}
"""
And I request "project/251815090529619a99a2bf4013294414/event"
Then the response status code should be 201
And store "evn_uid" in session array
@3: TEST FOR GET EVENTS /----------------------------------------------------------------------
Scenario: List all the events (result 1 event)
Given that I have a valid access_token
And I request "project/251815090529619a99a2bf4013294414/events"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 1 record
@4: TEST FOR PUT EVENT /-----------------------------------------------------------------------
Scenario: Update a event
Given that I have a valid access_token
And PUT this data:
"""
{
"evn_description": "change description",
"evn_status": "ACTIVE",
"evn_action": "SEND_MESSAGE",
"evn_related_to": "SINGLE",
"tas_uid": "97192372152a5c78f04a794095806311",
"evn_tas_uid_from": "97192372152a5c78f04a794095806311",
"evn_tas_estimated_duration": 1,
"evn_time_unit": "DAYS",
"evn_when": 1,
"evn_when_occurs": "AFTER_TIME",
"tri_uid": "75916963152cc6ab085a704081670580"
}
"""
And that I want to update a resource with the key "evn_uid" stored in session array
And I request "project/251815090529619a99a2bf4013294414/event"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
@5: TEST FOR GET EVENT /-----------------------------------------------------------------------
Scenario: Get a event (with change in "evn_description")
Given that I have a valid access_token
And that I want to get a resource with the key "evn_uid" stored in session array
And I request "project/251815090529619a99a2bf4013294414/event"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "evn_description" is set to "change description"
@6: TEST FOR DELETE EVENT /-----------------------------------------------------------------------
Scenario: Delete a event
Given that I have a valid access_token
And that I want to delete a resource with the key "evn_uid" stored in session array
And I request "project/251815090529619a99a2bf4013294414/event"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
@7: TEST FOR GET EVENTS /----------------------------------------------------------------------
Scenario: List all the events (result 0 events)
Given that I have a valid access_token
And I request "project/251815090529619a99a2bf4013294414/events"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record

View File

@@ -1,134 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Input Documents Resources
Background:
Given that I have a valid access_token
#GET /api/1.0/{workspace}/project/{prj_uid}/input-documents
# Get a List Input Documents of a Project
Scenario: Get a List Input Documents of a Project
And I request "project/14414793652a5d718b65590036026581/input-documents"
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}/input-document
# Create a new Input Document for a Project
Scenario: Create "My InputDocument1" for a Project
And POST this data:
"""
{
"inp_doc_title": "My InputDocument1",
"inp_doc_description": "My InputDocument1 DESCRIPTION",
"inp_doc_form_needed": "VIRTUAL",
"inp_doc_original": "ORIGINAL",
"inp_doc_published": "PRIVATE",
"inp_doc_versioning": 1,
"inp_doc_destination_path": "",
"inp_doc_tags": "INPUT"
}
"""
And I request "project/14414793652a5d718b65590036026581/input-document"
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 "inp_doc_uid" in session array as variable "inp_doc_uid1"
#POST /api/1.0/{workspace}/project/{prj_uid}/input-document
# Create a new Input Document for a Project
Scenario: Create "My InputDocument2" for a Project
And POST this data:
"""
{
"inp_doc_title": "My InputDocument2",
"inp_doc_description": "My InputDocument2 DESCRIPTION",
"inp_doc_form_needed": "VIRTUAL",
"inp_doc_original": "ORIGINAL",
"inp_doc_published": "PRIVATE",
"inp_doc_versioning": 1,
"inp_doc_destination_path": "",
"inp_doc_tags": "INPUT"
}
"""
And I request "project/14414793652a5d718b65590036026581/input-document"
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 "inp_doc_uid" in session array as variable "inp_doc_uid2"
#PUT /api/1.0/{workspace}/project/{prj_uid}/input-document/{inp_doc_uid}
# Update an Input Document for a Project
Scenario: Update an Input Document for a Project
And PUT this data:
"""
{
"inp_doc_title": "My InputDocument1 Modified",
"inp_doc_description": "My InputDocument1 DESCRIPTION Modified",
"inp_doc_form_needed": "VIRTUAL",
"inp_doc_original": "ORIGINAL",
"inp_doc_published": "PRIVATE"
}
"""
And that I want to update a resource with the key "inp_doc_uid1" stored in session array
And I request "project/14414793652a5d718b65590036026581/input-document"
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}/input-documents
# Get a List Input Documents of a Project
Scenario: Get a List Input Documents of a Project
And I request "project/14414793652a5d718b65590036026581/input-documents"
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 "inp_doc_title" property in row 0 equals "My InputDocument1 Modified"
And the "inp_doc_description" property in row 0 equals "My InputDocument1 DESCRIPTION Modified"
#GET /api/1.0/{workspace}/project/{prj_uid}/input-document/{inp_doc_uid}
# Get a single Input Document of a Project
Scenario: Get a single Input Document of a Project
And that I want to get a resource with the key "inp_doc_uid1" stored in session array
And I request "project/14414793652a5d718b65590036026581/input-document"
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 "inp_doc_title" is set to "My InputDocument1 Modified"
And that "inp_doc_description" is set to "My InputDocument1 DESCRIPTION Modified"
#DELETE /api/1.0/{workspace}/project/{prj_uid}/input-document/{inp_doc_uid}
# Delete an Input Document of a Project
Scenario: Delete a previously created Input Document
And that I want to delete a resource with the key "inp_doc_uid1" stored in session array
And I request "project/14414793652a5d718b65590036026581/input-document"
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"
#DELETE /api/1.0/{workspace}/project/{prj_uid}/input-document/{inp_doc_uid}
# Delete an Input Document of a Project
Scenario: Delete a previously created Input Document
And that I want to delete a resource with the key "inp_doc_uid2" stored in session array
And I request "project/14414793652a5d718b65590036026581/input-document"
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}/input-documents
# Get a List Input Documents of a Project
Scenario: Get a List Input Documents of a Project
And I request "project/14414793652a5d718b65590036026581/input-documents"
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

View File

@@ -1,134 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Input Documents Resources
Background:
Given that I have a valid access_token
#GET /api/1.0/{workspace}/project/{prj_uid}/input-documents
# Get a List Input Documents of a Project
Scenario: Get a List Input Documents of a Project
And I request "project/14414793652a5d718b65590036026581/input-documents"
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}/input-document
# Create a new Input Document for a Project
Scenario: Create "My InputDocument1" for a Project
And POST this data:
"""
{
"inp_doc_title": "My InputDocument1",
"inp_doc_description": "My InputDocument1 DESCRIPTION",
"inp_doc_form_needed": "VIRTUAL",
"inp_doc_original": "ORIGINAL",
"inp_doc_published": "PRIVATE",
"inp_doc_versioning": 1,
"inp_doc_destination_path": "",
"inp_doc_tags": "INPUT"
}
"""
And I request "project/14414793652a5d718b65590036026581/input-document"
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 "inp_doc_uid" in session array as variable "inp_doc_uid1"
#POST /api/1.0/{workspace}/project/{prj_uid}/input-document
# Create a new Input Document for a Project
Scenario: Create "My InputDocument2" for a Project
And POST this data:
"""
{
"inp_doc_title": "My InputDocument2",
"inp_doc_description": "My InputDocument2 DESCRIPTION",
"inp_doc_form_needed": "VIRTUAL",
"inp_doc_original": "ORIGINAL",
"inp_doc_published": "PRIVATE",
"inp_doc_versioning": 1,
"inp_doc_destination_path": "",
"inp_doc_tags": "INPUT"
}
"""
And I request "project/14414793652a5d718b65590036026581/input-document"
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 "inp_doc_uid" in session array as variable "inp_doc_uid2"
#PUT /api/1.0/{workspace}/project/{prj_uid}/input-document/{inp_doc_uid}
# Update an Input Document for a Project
Scenario: Update an Input Document for a Project
And PUT this data:
"""
{
"inp_doc_title": "My InputDocument1 Modified",
"inp_doc_description": "My InputDocument1 DESCRIPTION Modified",
"inp_doc_form_needed": "VIRTUAL",
"inp_doc_original": "ORIGINAL",
"inp_doc_published": "PRIVATE"
}
"""
And that I want to update a resource with the key "inp_doc_uid1" stored in session array
And I request "project/14414793652a5d718b65590036026581/input-document"
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}/input-documents
# Get a List Input Documents of a Project
Scenario: Get a List Input Documents of a Project
And I request "project/14414793652a5d718b65590036026581/input-documents"
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 "inp_doc_title" property in row 0 equals "My InputDocument1 Modified"
And the "inp_doc_description" property in row 0 equals "My InputDocument1 DESCRIPTION Modified"
#GET /api/1.0/{workspace}/project/{prj_uid}/input-document/{inp_doc_uid}
# Get a single Input Document of a Project
Scenario: Get a single Input Document of a Project
And that I want to get a resource with the key "inp_doc_uid1" stored in session array
And I request "project/14414793652a5d718b65590036026581/input-document"
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 "inp_doc_title" is set to "My InputDocument1 Modified"
And that "inp_doc_description" is set to "My InputDocument1 DESCRIPTION Modified"
#DELETE /api/1.0/{workspace}/project/{prj_uid}/input-document/{inp_doc_uid}
# Delete an Input Document of a Project
Scenario: Delete a previously created Input Document
And that I want to delete a resource with the key "inp_doc_uid1" stored in session array
And I request "project/14414793652a5d718b65590036026581/input-document"
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"
#DELETE /api/1.0/{workspace}/project/{prj_uid}/input-document/{inp_doc_uid}
# Delete an Input Document of a Project
Scenario: Delete a previously created Input Document
And that I want to delete a resource with the key "inp_doc_uid2" stored in session array
And I request "project/14414793652a5d718b65590036026581/input-document"
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}/input-documents
# Get a List Input Documents of a Project
Scenario: Get a List Input Documents of a Project
And I request "project/14414793652a5d718b65590036026581/input-documents"
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

View File

@@ -1,159 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Input Documents Main Tests
Requirements:
a workspace with the process 14414793652a5d718b65590036026581 already loaded
the process name is "Sample Project #1"
there are zero input documents in the process
Background:
Given that I have a valid access_token
Scenario: Get the Input Documents List when there are exactly zero input documents
Given I request "project/14414793652a5d718b65590036026581/input-documents"
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 response has 0 records
Scenario Outline: Create 13 new Input Documents
Given POST this data:
"""
{
"inp_doc_title": "<inp_doc_title>",
"inp_doc_description": "<inp_doc_description>",
"inp_doc_form_needed": "<inp_doc_form_needed>",
"inp_doc_original": "<inp_doc_original>",
"inp_doc_published": "<inp_doc_published>",
"inp_doc_versioning": "<inp_doc_versioning>",
"inp_doc_destination_path": "<inp_doc_destination_path>",
"inp_doc_tags": "<inp_doc_tags>"
}
"""
And I request "project/<project>/input-document"
Then the response status code should be 201
And the content type is "application/json"
And the response charset is "UTF-8"
And the type is "object"
And store "inp_doc_uid" in session array as variable "inp_doc_uid_<inp_doc_number>"
Examples:
| test_description | 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 |
| Create with virtual with versioning | 14414793652a5d718b65590036026581 | 1 | My InputDocument1 | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with virtual without versioning | 14414793652a5d718b65590036026581 | 2 | My InputDocument2 | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| Create with real with versioning | 14414793652a5d718b65590036026581 | 3 | My InputDocument3 | My InputDocument3 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with vreal with versioning | 14414793652a5d718b65590036026581 | 4 | My InputDocument4 | My InputDocument4 DESCRIPTION | VREAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with virtual, copy and versioning | 14414793652a5d718b65590036026581 | 5 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COPY | PRIVATE | 1 | | INPUT |
| Create with virtual, original and without versioning | 14414793652a5d718b65590036026581 | 6 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| Create with virtual, versioning and destination path | 14414793652a5d718b65590036026581 | 7 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my/path | INPUT |
| Create with virtual, without versioning and destination path | 14414793652a5d718b65590036026581 | 8 | My InputDocument8 | My InputDocument8 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | /my/path | INPUT |
| Create with real, without versioning and destination path | 14414793652a5d718b65590036026581 | 9 | My InputDocument9 | My InputDocument9 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 0 | /my/path | INPUT |
| Create with special characters in inp doc title | 14414793652a5d718b65590036026581 | 10 | My InputDocument10 !@#$%^&*€¤½¼‘¾¡²¤³| My InputDocument10 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with special characters in inp doc description | 14414793652a5d718b65590036026581 | 11 | My InputDocument11 | My InputDocument11 !@#$%^&*€¤½¼‘¾¡²¤³| REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with special characters in inp doc destination path | 14414793652a5d718b65590036026581 | 12 | My InputDocument12 | My InputDocument12 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my#@$#%/path324@$@@ | INPUT |
| Create with special characters in inp doc tags | 14414793652a5d718b65590036026581 | 13 | My InputDocument13 | My InputDocument13 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPU455 @##$$³¤¤ |
Scenario: Get the Input Documents list when there are 13 records
Given I request "project/14414793652a5d718b65590036026581/input-documents"
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 response has 13 records
Scenario Outline: Update the Input Documents and then check if the values had changed
Given PUT this data:
"""
{
"inp_doc_title": "<inp_doc_title>",
"inp_doc_description": "<inp_doc_description>",
"inp_doc_form_needed": "<inp_doc_form_needed>",
"inp_doc_original": "<inp_doc_original>",
"inp_doc_published": "<inp_doc_published>",
"inp_doc_versioning": "<inp_doc_versioning>",
"inp_doc_destination_path": "<inp_doc_destination_path>",
"inp_doc_tags": "<inp_doc_tags>"
}
"""
And that I want to update a resource with the key "inp_doc_uid" stored in session array as variable "inp_doc_uid_<inp_doc_number>"
And I request "project/<project>/input-document"
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:
| test_description | 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 |
| Update inp doc title and inp doc description | 14414793652a5d718b65590036026581 | 1 | My InputDocument1 'UPDATE' | My InputDocument1 DESCRIPTION-update| VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Update inp doc title, inp doc description and inp doc form needed | 14414793652a5d718b65590036026581 | 2 | My InputDocument2 'UPDATE' | My InputDocument2 DESCRIPTION-update| VREAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Update inp doc title, inp doc description and inp doc versioning | 14414793652a5d718b65590036026581 | 3 | My InputDocument3 'UPDATE' | My InputDocument3 DESCRIPTION-update| REAL | ORIGINAL | PRIVATE | 0 | | INPUT |
Scenario Outline: Get a single Input Document to verify that the were updated correctly in previous step
Given that I want to get a resource with the key "inp_doc_uid" stored in session array as variable "inp_doc_uid_<inp_doc_number>"
And I request "project/<project>/input-document"
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 "inp_doc_title" is set to "<inp_doc_title>"
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_versioning" is set to "<inp_doc_versioning>"
Examples:
| project | inp_doc_number | inp_doc_title | inp_doc_description | inp_doc_form_needed | inp_doc_versioning |
| 14414793652a5d718b65590036026581 | 1 | My InputDocument1 'UPDATE' | My InputDocument1 DESCRIPTION-update| VIRTUAL | 1 |
| 14414793652a5d718b65590036026581 | 2 | My InputDocument2 'UPDATE' | My InputDocument2 DESCRIPTION-update| VREAL | 1 |
| 14414793652a5d718b65590036026581 | 3 | My InputDocument3 'UPDATE' | My InputDocument3 DESCRIPTION-update| REAL | 0 |
Scenario Outline: Delete all Input documents created previously in this script
Given that I want to delete a resource with the key "inp_out_uid" stored in session array as variable "inp_doc_uid_<inp_doc_number>"
And I request "project/<project>/input-document"
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:
| project | inp_doc_number |
| 14414793652a5d718b65590036026581 | 1 |
| 14414793652a5d718b65590036026581 | 2 |
| 14414793652a5d718b65590036026581 | 3 |
| 14414793652a5d718b65590036026581 | 4 |
| 14414793652a5d718b65590036026581 | 5 |
| 14414793652a5d718b65590036026581 | 6 |
| 14414793652a5d718b65590036026581 | 7 |
| 14414793652a5d718b65590036026581 | 8 |
| 14414793652a5d718b65590036026581 | 9 |
| 14414793652a5d718b65590036026581 | 10 |
| 14414793652a5d718b65590036026581 | 11 |
| 14414793652a5d718b65590036026581 | 12 |
| 14414793652a5d718b65590036026581 | 13 |
Scenario: Get the Input Documents List when there are exactly zero input documents after of delete all Input documents
Given I request "project/14414793652a5d718b65590036026581/input-documents"
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 response has 0 records

View File

@@ -1,159 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Input Documents Main Tests
Requirements:
a workspace with the process 14414793652a5d718b65590036026581 already loaded
the process name is "Sample Project #1"
there are zero input documents in the process
Background:
Given that I have a valid access_token
Scenario: Get the Input Documents List when there are exactly zero input documents
Given I request "project/14414793652a5d718b65590036026581/input-documents"
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 response has 0 records
Scenario Outline: Create 13 new Input Documents
Given POST this data:
"""
{
"inp_doc_title": "<inp_doc_title>",
"inp_doc_description": "<inp_doc_description>",
"inp_doc_form_needed": "<inp_doc_form_needed>",
"inp_doc_original": "<inp_doc_original>",
"inp_doc_published": "<inp_doc_published>",
"inp_doc_versioning": "<inp_doc_versioning>",
"inp_doc_destination_path": "<inp_doc_destination_path>",
"inp_doc_tags": "<inp_doc_tags>"
}
"""
And I request "project/<project>/input-document"
Then the response status code should be 201
And the content type is "application/json"
And the response charset is "UTF-8"
And the type is "object"
And store "inp_doc_uid" in session array as variable "inp_doc_uid_<inp_doc_number>"
Examples:
| test_description | 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 |
| Create with virtual with versioning | 14414793652a5d718b65590036026581 | 1 | My InputDocument1 | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with virtual without versioning | 14414793652a5d718b65590036026581 | 2 | My InputDocument2 | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| Create with real with versioning | 14414793652a5d718b65590036026581 | 3 | My InputDocument3 | My InputDocument3 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with vreal with versioning | 14414793652a5d718b65590036026581 | 4 | My InputDocument4 | My InputDocument4 DESCRIPTION | VREAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with virtual, copy and versioning | 14414793652a5d718b65590036026581 | 5 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COPY | PRIVATE | 1 | | INPUT |
| Create with virtual, original and without versioning | 14414793652a5d718b65590036026581 | 6 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| Create with virtual, versioning and destination path | 14414793652a5d718b65590036026581 | 7 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my/path | INPUT |
| Create with virtual, without versioning and destination path | 14414793652a5d718b65590036026581 | 8 | My InputDocument8 | My InputDocument8 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | /my/path | INPUT |
| Create with real, without versioning and destination path | 14414793652a5d718b65590036026581 | 9 | My InputDocument9 | My InputDocument9 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 0 | /my/path | INPUT |
| Create with special characters in inp doc title | 14414793652a5d718b65590036026581 | 10 | My InputDocument10 !@#$%^&*€¤½¼‘¾¡²¤³| My InputDocument10 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with special characters in inp doc description | 14414793652a5d718b65590036026581 | 11 | My InputDocument11 | My InputDocument11 !@#$%^&*€¤½¼‘¾¡²¤³| REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with special characters in inp doc destination path | 14414793652a5d718b65590036026581 | 12 | My InputDocument12 | My InputDocument12 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my#@$#%/path324@$@@ | INPUT |
| Create with special characters in inp doc tags | 14414793652a5d718b65590036026581 | 13 | My InputDocument13 | My InputDocument13 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPU455 @##$$³¤¤ |
Scenario: Get the Input Documents list when there are 13 records
Given I request "project/14414793652a5d718b65590036026581/input-documents"
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 response has 13 records
Scenario Outline: Update the Input Documents and then check if the values had changed
Given PUT this data:
"""
{
"inp_doc_title": "<inp_doc_title>",
"inp_doc_description": "<inp_doc_description>",
"inp_doc_form_needed": "<inp_doc_form_needed>",
"inp_doc_original": "<inp_doc_original>",
"inp_doc_published": "<inp_doc_published>",
"inp_doc_versioning": "<inp_doc_versioning>",
"inp_doc_destination_path": "<inp_doc_destination_path>",
"inp_doc_tags": "<inp_doc_tags>"
}
"""
And that I want to update a resource with the key "inp_doc_uid" stored in session array as variable "inp_doc_uid_<inp_doc_number>"
And I request "project/<project>/input-document"
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:
| test_description | 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 |
| Update inp doc title and inp doc description | 14414793652a5d718b65590036026581 | 1 | My InputDocument1 'UPDATE' | My InputDocument1 DESCRIPTION-update| VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Update inp doc title, inp doc description and inp doc form needed | 14414793652a5d718b65590036026581 | 2 | My InputDocument2 'UPDATE' | My InputDocument2 DESCRIPTION-update| VREAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Update inp doc title, inp doc description and inp doc versioning | 14414793652a5d718b65590036026581 | 3 | My InputDocument3 'UPDATE' | My InputDocument3 DESCRIPTION-update| REAL | ORIGINAL | PRIVATE | 0 | | INPUT |
Scenario Outline: Get a single Input Document to verify that the were updated correctly in previous step
Given that I want to get a resource with the key "inp_doc_uid" stored in session array as variable "inp_doc_uid_<inp_doc_number>"
And I request "project/<project>/input-document"
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 "inp_doc_title" is set to "<inp_doc_title>"
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_versioning" is set to "<inp_doc_versioning>"
Examples:
| project | inp_doc_number | inp_doc_title | inp_doc_description | inp_doc_form_needed | inp_doc_versioning |
| 14414793652a5d718b65590036026581 | 1 | My InputDocument1 'UPDATE' | My InputDocument1 DESCRIPTION-update| VIRTUAL | 1 |
| 14414793652a5d718b65590036026581 | 2 | My InputDocument2 'UPDATE' | My InputDocument2 DESCRIPTION-update| VREAL | 1 |
| 14414793652a5d718b65590036026581 | 3 | My InputDocument3 'UPDATE' | My InputDocument3 DESCRIPTION-update| REAL | 0 |
Scenario Outline: Delete all Input documents created previously in this script
Given that I want to delete a resource with the key "inp_out_uid" stored in session array as variable "inp_doc_uid_<inp_doc_number>"
And I request "project/<project>/input-document"
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:
| project | inp_doc_number |
| 14414793652a5d718b65590036026581 | 1 |
| 14414793652a5d718b65590036026581 | 2 |
| 14414793652a5d718b65590036026581 | 3 |
| 14414793652a5d718b65590036026581 | 4 |
| 14414793652a5d718b65590036026581 | 5 |
| 14414793652a5d718b65590036026581 | 6 |
| 14414793652a5d718b65590036026581 | 7 |
| 14414793652a5d718b65590036026581 | 8 |
| 14414793652a5d718b65590036026581 | 9 |
| 14414793652a5d718b65590036026581 | 10 |
| 14414793652a5d718b65590036026581 | 11 |
| 14414793652a5d718b65590036026581 | 12 |
| 14414793652a5d718b65590036026581 | 13 |
Scenario: Get the Input Documents List when there are exactly zero input documents after of delete all Input documents
Given I request "project/14414793652a5d718b65590036026581/input-documents"
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 response has 0 records

View File

@@ -1,39 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Output Documents Negative Tests
Background:
Given that I have a valid access_token
Scenario Outline: Create a new input document for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"inp_doc_title": "<inp_doc_title>",
"inp_doc_description": "<inp_doc_description>",
"inp_doc_form_needed": "<inp_doc_form_needed>",
"inp_doc_original": "<inp_doc_original>",
"inp_doc_published": "<inp_doc_published>",
"inp_doc_versioning": "<inp_doc_versioning>",
"inp_doc_destination_path": "<inp_doc_destination_path>",
"inp_doc_tags": "<inp_doc_tags>"
}
"""
And I request "project/<project>/input-document"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | 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 | error_code | error_message |
| Create with project invalid | 14414793652a5d718b65590036 | My InputDocument1 | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT | 400 | project |
| Invalid inp doc from needed | 14414793652a5d718b65590036026581 | My InputDocument4 | My InputDocument4 DESCRIPTION | VRESAMPLE12334$%#@ | ORIGINAL | PRIVATE | 1 | | INPUT | 400 | inp_doc_form_needed |
| Invalid inp doc original | 14414793652a5d718b65590036026581 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COORIGI 123@#$%$% | PRIVATE | 1 | | INPUT | 400 | inp_doc_original |
| Invalid inp doc published | 14414793652a5d718b65590036026581 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIV123234@##$$%% | 0 | | INPUT | 400 | inp_doc_published |
| Invalid inp doc versioning | 14414793652a5d718b65590036026581 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 87 | | INPUT | 400 | inp_doc_versioning |
| Create without id of project | | My InputDocument10 | My InputDocument10 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT | 400 | project |
| Create without inp doc form needed | 14414793652a5d718b65590036026581 | My InputDocument11 | My InputDocument11 DESCRIPTION | | ORIGINAL | PRIVATE | 1 | | INPUT | 400 | inp_doc_form_needed |
| Create without inp doc original | 14414793652a5d718b65590036026581 | My InputDocument12 | My InputDocument12 DESCRIPTION | REAL | | PRIVATE | 1 | | INPUT | 400 | inp_doc_original |
| Create without inp doc published | 14414793652a5d718b65590036026581 | My InputDocument13 | My InputDocument13 DESCRIPTION | VREAL | ORIGINAL | | 1 | | INPUT | 400 | inp_doc_published |
| Create without inp doc title | 14414793652a5d718b65590036026581 | | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT | 400 | inp_doc_title |

View File

@@ -1,39 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Output Documents Negative Tests
Background:
Given that I have a valid access_token
Scenario Outline: Create a new input document for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"inp_doc_title": "<inp_doc_title>",
"inp_doc_description": "<inp_doc_description>",
"inp_doc_form_needed": "<inp_doc_form_needed>",
"inp_doc_original": "<inp_doc_original>",
"inp_doc_published": "<inp_doc_published>",
"inp_doc_versioning": "<inp_doc_versioning>",
"inp_doc_destination_path": "<inp_doc_destination_path>",
"inp_doc_tags": "<inp_doc_tags>"
}
"""
And I request "project/<project>/input-document"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | 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 | error_code | error_message |
| Create with project invalid | 14414793652a5d718b65590036 | My InputDocument1 | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT | 400 | project |
| Invalid inp doc from needed | 14414793652a5d718b65590036026581 | My InputDocument4 | My InputDocument4 DESCRIPTION | VRESAMPLE12334$%#@ | ORIGINAL | PRIVATE | 1 | | INPUT | 400 | inp_doc_form_needed |
| Invalid inp doc original | 14414793652a5d718b65590036026581 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COORIGI 123@#$%$% | PRIVATE | 1 | | INPUT | 400 | inp_doc_original |
| Invalid inp doc published | 14414793652a5d718b65590036026581 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIV123234@##$$%% | 0 | | INPUT | 400 | inp_doc_published |
| Invalid inp doc versioning | 14414793652a5d718b65590036026581 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 87 | | INPUT | 400 | inp_doc_versioning |
| Create without id of project | | My InputDocument10 | My InputDocument10 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT | 400 | project |
| Create without inp doc form needed | 14414793652a5d718b65590036026581 | My InputDocument11 | My InputDocument11 DESCRIPTION | | ORIGINAL | PRIVATE | 1 | | INPUT | 400 | inp_doc_form_needed |
| Create without inp doc original | 14414793652a5d718b65590036026581 | My InputDocument12 | My InputDocument12 DESCRIPTION | REAL | | PRIVATE | 1 | | INPUT | 400 | inp_doc_original |
| Create without inp doc published | 14414793652a5d718b65590036026581 | My InputDocument13 | My InputDocument13 DESCRIPTION | VREAL | ORIGINAL | | 1 | | INPUT | 400 | inp_doc_published |
| Create without inp doc title | 14414793652a5d718b65590036026581 | | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT | 400 | inp_doc_title |

View File

@@ -1,203 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Output Documents Main Tests
Requirements:
a workspace with the process 4224292655297723eb98691001100052 ("Test Users-Step-Properties End Point") already loaded
there are two output documents in the process
Background:
Given that I have a valid access_token
Scenario: Get the Output Documents List when there are exactly two output documents
Given I request "project/4224292655297723eb98691001100052/output-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
And the "out_doc_title" property in row 0 equals "Endpoint Old Version (base)"
And the "out_doc_title" property in row 1 equals "Endpoint New Version (base)"
Scenario: Get a single output document of a project
the output document is previously created
Given I request "project/4224292655297723eb98691001100052/output-document/59969646352d6cd3caa0751003892895"
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 "out_doc_title" property equals "Endpoint New Version (base)"
And the "out_doc_filename" property equals "endpointnewversion"
And the "out_doc_report_generator" property equals "TCPDF"
Scenario Outline: Create 17 new Output Documents
Given POST this data:
"""
{
"out_doc_title": "<out_doc_title>",
"out_doc_description": "<out_doc_description>",
"out_doc_filename": "<out_doc_filename>",
"out_doc_template": "<out_doc_template>",
"out_doc_report_generator": "<out_doc_report_generator>",
"out_doc_landscape": "<out_doc_landscape>",
"out_doc_media": "<out_doc_media>",
"out_doc_left_margin": "<out_doc_left_margin>",
"out_doc_right_margin": "<out_doc_right_margin>",
"out_doc_top_margin": "<out_doc_top_margin>",
"out_doc_bottom_margin": "<out_doc_bottom_margin>",
"out_doc_generate": "<out_doc_generate>",
"out_doc_type": "<out_doc_type>",
"out_doc_current_revision": "<out_doc_current_revision>",
"out_doc_field_mapping": "<out_doc_field_mapping>",
"out_doc_versioning": "<out_doc_versioning>",
"out_doc_destination_path": "<out_doc_destination_path>",
"out_doc_tags": "<out_doc_tags>",
"out_doc_pdf_security_enabled": "<out_doc_pdf_security_enabled>",
"out_doc_pdf_security_open_password": "<out_doc_pdf_security_open_password>",
"out_doc_pdf_security_owner_password": "<out_doc_pdf_security_owner_password>",
"out_doc_pdf_security_permissions": "<out_doc_pdf_security_permissions>"
}
"""
And I request "project/<project>/output-document"
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 "out_doc_uid" in session array as variable "out_doc_uid_<out_doc_number>"
Examples:
| test_description | project | out_doc_number | out_doc_title | out_doc_description |out_doc_filename | out_doc_template | out_doc_report_generator | out_doc_landscape | out_doc_media | out_doc_left_margin | out_doc_right_margin | out_doc_top_margin | out_doc_bottom_margin | out_doc_generate | out_doc_type | out_doc_current_revision | out_doc_field_mapping | out_doc_versioning | out_doc_destination_path | out_doc_tags | out_doc_pdf_security_enabled | out_doc_pdf_security_open_password | out_doc_pdf_security_owner_password | out_doc_pdf_security_permissions |
| Create with old version and both | 4224292655297723eb98691001100052 | 1 | Endpoint Old Version | Output Document old version - EndPoint | Output 1 | | HTML2PDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | |
| Craate with old version and pdf security | 4224292655297723eb98691001100052 | 2 | Endpoint Old Version PDF SECURITY | Output Document old version PDF SECURITY | Output 2 | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms |
| Create with old version only doc | 4224292655297723eb98691001100052 | 3 | Endpoint Old Version Doc | Output Document old version solo doc | Output 3 | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | DOC | HTML | 0 | | 1 | | | 0 | | | |
| Create with old version only pdf | 4224292655297723eb98691001100052 | 4 | Endpoint Old Version PDF | Output Document old version solo pdf | Output 4 | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | PDF | HTML | 0 | | 1 | | | 1 | sample | sample | print |
| Create with new version and both | 4224292655297723eb98691001100052 | 5 | Endpoint New Version | Output Document new version - EndPoint | Output 5 | | TCPDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | |
| Create with new version and pdf security | 4224292655297723eb98691001100052 | 6 | Endpoint New Version PDF SECURITY | Output Document new version PDF SECURITY | Output 6 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms |
| Create with new version only doc | 4224292655297723eb98691001100052 | 7 | Endpoint New Version Doc | Output Document new version solo doc | Output 7 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | DOC | HTML | 0 | | 1 | | | 0 | | | |
| Create with new version only pdf | 4224292655297723eb98691001100052 | 8 | Endpoint New Version PDF | Output Document new version solo pdf | Output 8 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | PDF | HTML | 0 | | 1 | | | 1 | sample | sample | print |
| Create with special characters in out doc title | 4224292655297723eb98691001100052 | 9 | test !@#$%^&*€¤¾½²³€¼½¼ | Output Document old version - EndPoint | Output 9 | | HTML2PDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | |
| Create with special characters in out doc description | 4224292655297723eb98691001100052 | 10 | Endpoint Old1 | test %^&*¤¾½²³ | Output 10 | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms |
| Create with special characters in out doc filename | 4224292655297723eb98691001100052 | 11 | Endpoint Old Version Doc 2 | Output Document old version solo doc | Output @#$%^&*€¤ | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | DOC | HTML | 0 | | 1 | | | 0 | | | |
| Create with special characters in out doc template | 4224292655297723eb98691001100052 | 12 | Endpoint Old Version PDF 3 | Output Document old version solo pdf | Output 11 | sample @#$%^&*€¤ | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | PDF | HTML | 0 | | 1 | | | 1 | sample | sample | print |
| Create with special characters in out doc field mapping | 4224292655297723eb98691001100052 | 13 | Endpoint New Version Doc 14 | Output Document new version solo doc | Output 12 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | DOC | HTML | 0 | 324#$%%^^@@ | 1 | | | 0 | | | |
| Create with special characters in out doc destination path | 4224292655297723eb98691001100052 | 14 | Endpoint New Version 16 | Output Document new version - EndPoint | Output 13 | | TCPDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | 23rg@#$% | | 0 | | | |
| Create with special characters in out doc tags | 4224292655297723eb98691001100052 | 15 | Endpoint New Version PDF SECURI17 | Output Document new version PDF SECURITY | Output 14 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | vfv23@$@% | 1 | sample | sample | print\|modify\|copy\|forms |
| Create with special characters in out doc pdf security open password | 4224292655297723eb98691001100052 | 16 | Endpoint New Version PDF 19 | Output Document new version solo pdf | Output 15 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | PDF | HTML | 0 | | 1 | | | 1 | sample432@$#@$¼€¼½ | sample | print |
| Create with special characters in out doc pdf security owner password | 4224292655297723eb98691001100052 | 17 | Endpoint New Version 20 | Output Document new version - EndPoint | Output 16 | | TCPDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | sample432@$#@$¼€¼½ | |
Scenario: Get the Output Documents list when there are 19 records
Given I request "project/4224292655297723eb98691001100052/output-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 19 records
Scenario Outline: Update the Output Documents and then check if the values had changed
Given PUT this data:
"""
{
"out_doc_title": "<out_doc_title>",
"out_doc_description": "<out_doc_description>",
"out_doc_filename": "<out_doc_filename>",
"out_doc_template": "<out_doc_template>",
"out_doc_report_generator": "<out_doc_report_generator>",
"out_doc_landscape": "<out_doc_landscape>",
"out_doc_media": "<out_doc_media>",
"out_doc_left_margin": "<out_doc_left_margin>",
"out_doc_right_margin": "<out_doc_right_margin>",
"out_doc_top_margin": "<out_doc_top_margin>",
"out_doc_bottom_margin": "<out_doc_bottom_margin>",
"out_doc_generate": "<out_doc_generate>",
"out_doc_type": "<out_doc_type>",
"out_doc_current_revision": "<out_doc_current_revision>",
"out_doc_field_mapping": "<out_doc_field_mapping>",
"out_doc_versioning": "<out_doc_versioning>",
"out_doc_destination_path": "<out_doc_destination_path>",
"out_doc_tags": "<out_doc_tags>",
"out_doc_pdf_security_enabled": "<out_doc_pdf_security_enabled>",
"out_doc_pdf_security_open_password": "<out_doc_pdf_security_open_password>",
"out_doc_pdf_security_owner_password": "<out_doc_pdf_security_owner_password>",
"out_doc_pdf_security_permissions": "<out_doc_pdf_security_permissions>"
}
"""
And that I want to update a resource with the key "out_doc_uid" stored in session array as variable "out_doc_uid_<out_doc_number>"
And I request "project/<project>/output-document"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| test_description | project | out_doc_number | out_doc_title | out_doc_description |out_doc_filename | out_doc_template | out_doc_report_generator | out_doc_landscape | out_doc_media | out_doc_left_margin | out_doc_right_margin | out_doc_top_margin | out_doc_bottom_margin | out_doc_generate | out_doc_type | out_doc_current_revision | out_doc_field_mapping | out_doc_versioning | out_doc_destination_path | out_doc_tags | out_doc_pdf_security_enabled | out_doc_pdf_security_open_password | out_doc_pdf_security_owner_password | out_doc_pdf_security_permissions |
| Update out doc title and description | 4224292655297723eb98691001100052 | 1 | Endpoint Old Version UPDATE | Output Document old version - UPDATE | Output 1 | | HTML2PDF | 0 | Letter | 20 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | |
| Update out doc title and out doc generate | 4224292655297723eb98691001100052 | 2 | Endpoint Old Version PDF SECURITY UPDATE | Output UPDATE old version PDF SECURITY | Output 2 | | TCPDF | 1 | Legal | 20 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy |
| Update out doc title and description | 4224292655297723eb98691001100052 | 5 | Endpoint New Version UPDATE | Output UPDATE new version - EndPoint | Output 5 | | TCPDF | 0 | Letter | 30 | 20 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | |
| Update out doc title and out doc generate | 4224292655297723eb98691001100052 | 6 | Endpoint New Version PDF SECURITY UPDATE | Output UPDATE new version PDF SECURITY | Output 6 | | HTML2PDF | 1 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy |
Scenario Outline: Get a single Output Document and check some properties
Given that I want to get a resource with the key "out_doc_uid" stored in session array as variable "out_doc_uid_<out_doc_number>"
And I request "project/<project>/output-document"
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 that "out_doc_title" is set to "<out_doc_title>"
And that "out_doc_description" is set to "<out_doc_description>"
And that "out_doc_filename" is set to "<out_doc_filename>"
Examples:
| project | out_doc_number | out_doc_title | out_doc_description |out_doc_filename |
| 4224292655297723eb98691001100052 | 1 | Endpoint Old Version UPDATE | Output Document old version - UPDATE | Output 1 |
| 4224292655297723eb98691001100052 | 2 | Endpoint Old Version PDF SECURITY UPDATE | Output UPDATE old version PDF SECURITY | Output 2 |
| 4224292655297723eb98691001100052 | 5 | Endpoint New Version UPDATE | Output UPDATE new version - EndPoint | Output 5 |
| 4224292655297723eb98691001100052 | 6 | Endpoint New Version PDF SECURITY UPDATE | Output UPDATE new version PDF SECURITY | Output 6 |
Scenario Outline: Delete all Output documents created previously in this script
Given that I want to delete a resource with the key "out_doc_uid" stored in session array as variable "out_doc_uid_<out_doc_number>"
And I request "project/<project>/output-document"
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:
| project | out_doc_number |
| 4224292655297723eb98691001100052 | 1 |
| 4224292655297723eb98691001100052 | 2 |
| 4224292655297723eb98691001100052 | 3 |
| 4224292655297723eb98691001100052 | 4 |
| 4224292655297723eb98691001100052 | 5 |
| 4224292655297723eb98691001100052 | 6 |
| 4224292655297723eb98691001100052 | 7 |
| 4224292655297723eb98691001100052 | 8 |
| 4224292655297723eb98691001100052 | 9 |
| 4224292655297723eb98691001100052 | 10 |
| 4224292655297723eb98691001100052 | 11 |
| 4224292655297723eb98691001100052 | 12 |
| 4224292655297723eb98691001100052 | 13 |
| 4224292655297723eb98691001100052 | 14 |
| 4224292655297723eb98691001100052 | 15 |
| 4224292655297723eb98691001100052 | 16 |
| 4224292655297723eb98691001100052 | 17 |
Scenario: Get the Output Documents List when should be exactly two output documents
Given I request "project/4224292655297723eb98691001100052/output-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
And the "out_doc_title" property in row 0 equals "Endpoint Old Version (base)"
And the "out_doc_title" property in row 1 equals "Endpoint New Version (base)"

View File

@@ -1,203 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Output Documents Main Tests
Requirements:
a workspace with the process 4224292655297723eb98691001100052 ("Test Users-Step-Properties End Point") already loaded
there are two output documents in the process
Background:
Given that I have a valid access_token
Scenario: Get the Output Documents List when there are exactly two output documents
Given I request "project/4224292655297723eb98691001100052/output-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
And the "out_doc_title" property in row 0 equals "Endpoint Old Version (base)"
And the "out_doc_title" property in row 1 equals "Endpoint New Version (base)"
Scenario: Get a single output document of a project
the output document is previously created
Given I request "project/4224292655297723eb98691001100052/output-document/59969646352d6cd3caa0751003892895"
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 "out_doc_title" property equals "Endpoint New Version (base)"
And the "out_doc_filename" property equals "endpointnewversion"
And the "out_doc_report_generator" property equals "TCPDF"
Scenario Outline: Create 17 new Output Documents
Given POST this data:
"""
{
"out_doc_title": "<out_doc_title>",
"out_doc_description": "<out_doc_description>",
"out_doc_filename": "<out_doc_filename>",
"out_doc_template": "<out_doc_template>",
"out_doc_report_generator": "<out_doc_report_generator>",
"out_doc_landscape": "<out_doc_landscape>",
"out_doc_media": "<out_doc_media>",
"out_doc_left_margin": "<out_doc_left_margin>",
"out_doc_right_margin": "<out_doc_right_margin>",
"out_doc_top_margin": "<out_doc_top_margin>",
"out_doc_bottom_margin": "<out_doc_bottom_margin>",
"out_doc_generate": "<out_doc_generate>",
"out_doc_type": "<out_doc_type>",
"out_doc_current_revision": "<out_doc_current_revision>",
"out_doc_field_mapping": "<out_doc_field_mapping>",
"out_doc_versioning": "<out_doc_versioning>",
"out_doc_destination_path": "<out_doc_destination_path>",
"out_doc_tags": "<out_doc_tags>",
"out_doc_pdf_security_enabled": "<out_doc_pdf_security_enabled>",
"out_doc_pdf_security_open_password": "<out_doc_pdf_security_open_password>",
"out_doc_pdf_security_owner_password": "<out_doc_pdf_security_owner_password>",
"out_doc_pdf_security_permissions": "<out_doc_pdf_security_permissions>"
}
"""
And I request "project/<project>/output-document"
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 "out_doc_uid" in session array as variable "out_doc_uid_<out_doc_number>"
Examples:
| test_description | project | out_doc_number | out_doc_title | out_doc_description |out_doc_filename | out_doc_template | out_doc_report_generator | out_doc_landscape | out_doc_media | out_doc_left_margin | out_doc_right_margin | out_doc_top_margin | out_doc_bottom_margin | out_doc_generate | out_doc_type | out_doc_current_revision | out_doc_field_mapping | out_doc_versioning | out_doc_destination_path | out_doc_tags | out_doc_pdf_security_enabled | out_doc_pdf_security_open_password | out_doc_pdf_security_owner_password | out_doc_pdf_security_permissions |
| Create with old version and both | 4224292655297723eb98691001100052 | 1 | Endpoint Old Version | Output Document old version - EndPoint | Output 1 | | HTML2PDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | |
| Craate with old version and pdf security | 4224292655297723eb98691001100052 | 2 | Endpoint Old Version PDF SECURITY | Output Document old version PDF SECURITY | Output 2 | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms |
| Create with old version only doc | 4224292655297723eb98691001100052 | 3 | Endpoint Old Version Doc | Output Document old version solo doc | Output 3 | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | DOC | HTML | 0 | | 1 | | | 0 | | | |
| Create with old version only pdf | 4224292655297723eb98691001100052 | 4 | Endpoint Old Version PDF | Output Document old version solo pdf | Output 4 | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | PDF | HTML | 0 | | 1 | | | 1 | sample | sample | print |
| Create with new version and both | 4224292655297723eb98691001100052 | 5 | Endpoint New Version | Output Document new version - EndPoint | Output 5 | | TCPDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | |
| Create with new version and pdf security | 4224292655297723eb98691001100052 | 6 | Endpoint New Version PDF SECURITY | Output Document new version PDF SECURITY | Output 6 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms |
| Create with new version only doc | 4224292655297723eb98691001100052 | 7 | Endpoint New Version Doc | Output Document new version solo doc | Output 7 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | DOC | HTML | 0 | | 1 | | | 0 | | | |
| Create with new version only pdf | 4224292655297723eb98691001100052 | 8 | Endpoint New Version PDF | Output Document new version solo pdf | Output 8 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | PDF | HTML | 0 | | 1 | | | 1 | sample | sample | print |
| Create with special characters in out doc title | 4224292655297723eb98691001100052 | 9 | test !@#$%^&*€¤¾½²³€¼½¼ | Output Document old version - EndPoint | Output 9 | | HTML2PDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | |
| Create with special characters in out doc description | 4224292655297723eb98691001100052 | 10 | Endpoint Old1 | test %^&*¤¾½²³ | Output 10 | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms |
| Create with special characters in out doc filename | 4224292655297723eb98691001100052 | 11 | Endpoint Old Version Doc 2 | Output Document old version solo doc | Output @#$%^&*€¤ | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | DOC | HTML | 0 | | 1 | | | 0 | | | |
| Create with special characters in out doc template | 4224292655297723eb98691001100052 | 12 | Endpoint Old Version PDF 3 | Output Document old version solo pdf | Output 11 | sample @#$%^&*€¤ | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | PDF | HTML | 0 | | 1 | | | 1 | sample | sample | print |
| Create with special characters in out doc field mapping | 4224292655297723eb98691001100052 | 13 | Endpoint New Version Doc 14 | Output Document new version solo doc | Output 12 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | DOC | HTML | 0 | 324#$%%^^@@ | 1 | | | 0 | | | |
| Create with special characters in out doc destination path | 4224292655297723eb98691001100052 | 14 | Endpoint New Version 16 | Output Document new version - EndPoint | Output 13 | | TCPDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | 23rg@#$% | | 0 | | | |
| Create with special characters in out doc tags | 4224292655297723eb98691001100052 | 15 | Endpoint New Version PDF SECURI17 | Output Document new version PDF SECURITY | Output 14 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | vfv23@$@% | 1 | sample | sample | print\|modify\|copy\|forms |
| Create with special characters in out doc pdf security open password | 4224292655297723eb98691001100052 | 16 | Endpoint New Version PDF 19 | Output Document new version solo pdf | Output 15 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | PDF | HTML | 0 | | 1 | | | 1 | sample432@$#@$¼€¼½ | sample | print |
| Create with special characters in out doc pdf security owner password | 4224292655297723eb98691001100052 | 17 | Endpoint New Version 20 | Output Document new version - EndPoint | Output 16 | | TCPDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | sample432@$#@$¼€¼½ | |
Scenario: Get the Output Documents list when there are 19 records
Given I request "project/4224292655297723eb98691001100052/output-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 19 records
Scenario Outline: Update the Output Documents and then check if the values had changed
Given PUT this data:
"""
{
"out_doc_title": "<out_doc_title>",
"out_doc_description": "<out_doc_description>",
"out_doc_filename": "<out_doc_filename>",
"out_doc_template": "<out_doc_template>",
"out_doc_report_generator": "<out_doc_report_generator>",
"out_doc_landscape": "<out_doc_landscape>",
"out_doc_media": "<out_doc_media>",
"out_doc_left_margin": "<out_doc_left_margin>",
"out_doc_right_margin": "<out_doc_right_margin>",
"out_doc_top_margin": "<out_doc_top_margin>",
"out_doc_bottom_margin": "<out_doc_bottom_margin>",
"out_doc_generate": "<out_doc_generate>",
"out_doc_type": "<out_doc_type>",
"out_doc_current_revision": "<out_doc_current_revision>",
"out_doc_field_mapping": "<out_doc_field_mapping>",
"out_doc_versioning": "<out_doc_versioning>",
"out_doc_destination_path": "<out_doc_destination_path>",
"out_doc_tags": "<out_doc_tags>",
"out_doc_pdf_security_enabled": "<out_doc_pdf_security_enabled>",
"out_doc_pdf_security_open_password": "<out_doc_pdf_security_open_password>",
"out_doc_pdf_security_owner_password": "<out_doc_pdf_security_owner_password>",
"out_doc_pdf_security_permissions": "<out_doc_pdf_security_permissions>"
}
"""
And that I want to update a resource with the key "out_doc_uid" stored in session array as variable "out_doc_uid_<out_doc_number>"
And I request "project/<project>/output-document"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| test_description | project | out_doc_number | out_doc_title | out_doc_description |out_doc_filename | out_doc_template | out_doc_report_generator | out_doc_landscape | out_doc_media | out_doc_left_margin | out_doc_right_margin | out_doc_top_margin | out_doc_bottom_margin | out_doc_generate | out_doc_type | out_doc_current_revision | out_doc_field_mapping | out_doc_versioning | out_doc_destination_path | out_doc_tags | out_doc_pdf_security_enabled | out_doc_pdf_security_open_password | out_doc_pdf_security_owner_password | out_doc_pdf_security_permissions |
| Update out doc title and description | 4224292655297723eb98691001100052 | 1 | Endpoint Old Version UPDATE | Output Document old version - UPDATE | Output 1 | | HTML2PDF | 0 | Letter | 20 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | |
| Update out doc title and out doc generate | 4224292655297723eb98691001100052 | 2 | Endpoint Old Version PDF SECURITY UPDATE | Output UPDATE old version PDF SECURITY | Output 2 | | TCPDF | 1 | Legal | 20 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy |
| Update out doc title and description | 4224292655297723eb98691001100052 | 5 | Endpoint New Version UPDATE | Output UPDATE new version - EndPoint | Output 5 | | TCPDF | 0 | Letter | 30 | 20 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | |
| Update out doc title and out doc generate | 4224292655297723eb98691001100052 | 6 | Endpoint New Version PDF SECURITY UPDATE | Output UPDATE new version PDF SECURITY | Output 6 | | HTML2PDF | 1 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy |
Scenario Outline: Get a single Output Document and check some properties
Given that I want to get a resource with the key "out_doc_uid" stored in session array as variable "out_doc_uid_<out_doc_number>"
And I request "project/<project>/output-document"
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 that "out_doc_title" is set to "<out_doc_title>"
And that "out_doc_description" is set to "<out_doc_description>"
And that "out_doc_filename" is set to "<out_doc_filename>"
Examples:
| project | out_doc_number | out_doc_title | out_doc_description |out_doc_filename |
| 4224292655297723eb98691001100052 | 1 | Endpoint Old Version UPDATE | Output Document old version - UPDATE | Output 1 |
| 4224292655297723eb98691001100052 | 2 | Endpoint Old Version PDF SECURITY UPDATE | Output UPDATE old version PDF SECURITY | Output 2 |
| 4224292655297723eb98691001100052 | 5 | Endpoint New Version UPDATE | Output UPDATE new version - EndPoint | Output 5 |
| 4224292655297723eb98691001100052 | 6 | Endpoint New Version PDF SECURITY UPDATE | Output UPDATE new version PDF SECURITY | Output 6 |
Scenario Outline: Delete all Output documents created previously in this script
Given that I want to delete a resource with the key "out_doc_uid" stored in session array as variable "out_doc_uid_<out_doc_number>"
And I request "project/<project>/output-document"
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:
| project | out_doc_number |
| 4224292655297723eb98691001100052 | 1 |
| 4224292655297723eb98691001100052 | 2 |
| 4224292655297723eb98691001100052 | 3 |
| 4224292655297723eb98691001100052 | 4 |
| 4224292655297723eb98691001100052 | 5 |
| 4224292655297723eb98691001100052 | 6 |
| 4224292655297723eb98691001100052 | 7 |
| 4224292655297723eb98691001100052 | 8 |
| 4224292655297723eb98691001100052 | 9 |
| 4224292655297723eb98691001100052 | 10 |
| 4224292655297723eb98691001100052 | 11 |
| 4224292655297723eb98691001100052 | 12 |
| 4224292655297723eb98691001100052 | 13 |
| 4224292655297723eb98691001100052 | 14 |
| 4224292655297723eb98691001100052 | 15 |
| 4224292655297723eb98691001100052 | 16 |
| 4224292655297723eb98691001100052 | 17 |
Scenario: Get the Output Documents List when should be exactly two output documents
Given I request "project/4224292655297723eb98691001100052/output-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
And the "out_doc_title" property in row 0 equals "Endpoint Old Version (base)"
And the "out_doc_title" property in row 1 equals "Endpoint New Version (base)"

View File

@@ -1,59 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Output Documents Negative Tests
Background:
Given that I have a valid access_token
Scenario Outline: Create a new output document for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"out_doc_title": "<out_doc_title>",
"out_doc_description": "<out_doc_description>",
"out_doc_filename": "<out_doc_filename>",
"out_doc_template": "<out_doc_template>",
"out_doc_report_generator": "<out_doc_report_generator>",
"out_doc_landscape": "<out_doc_landscape>",
"out_doc_media": "<out_doc_media>",
"out_doc_left_margin": "<out_doc_left_margin>",
"out_doc_right_margin": "<out_doc_right_margin>",
"out_doc_top_margin": "<out_doc_top_margin>",
"out_doc_bottom_margin": "<out_doc_bottom_margin>",
"out_doc_generate": "<out_doc_generate>",
"out_doc_type": "<out_doc_type>",
"out_doc_current_revision": "<out_doc_current_revision>",
"out_doc_field_mapping": "<out_doc_field_mapping>",
"out_doc_versioning": "<out_doc_versioning>",
"out_doc_destination_path": "<out_doc_destination_path>",
"out_doc_tags": "<out_doc_tags>",
"out_doc_pdf_security_enabled": "<out_doc_pdf_security_enabled>",
"out_doc_pdf_security_open_password": "<out_doc_pdf_security_open_password>",
"out_doc_pdf_security_owner_password": "<out_doc_pdf_security_owner_password>",
"out_doc_pdf_security_permissions": "<out_doc_pdf_security_permissions>"
}
"""
And I request "project/<project>/output-document"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | out_doc_title | out_doc_description |out_doc_filename | out_doc_template | out_doc_report_generator | out_doc_landscape | out_doc_media | out_doc_left_margin | out_doc_right_margin | out_doc_top_margin | out_doc_bottom_margin | out_doc_generate | out_doc_type | out_doc_current_revision | out_doc_field_mapping | out_doc_versioning | out_doc_destination_path | out_doc_tags | out_doc_pdf_security_enabled | out_doc_pdf_security_open_password | out_doc_pdf_security_owner_password | out_doc_pdf_security_permissions | error_code | error_message |
| Invalid PDF Generator | 4224292655297723eb98691001100052 | Endpoint New Version 4 | Output Document new version - EndPoint | Output 5 | | @#$%¼¤¾½ | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | | 400 | out_doc_report_generator |
| Invalid landscape | 4224292655297723eb98691001100052 | Endpoint New Version PDF SECURIT5 | Output Document new version PDF SECURITY | Output 6 | | TCPDF | 34 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms | 400 | out_doc_landscape |
| Invalid media type | 4224292655297723eb98691001100052 | Endpoint New Version Doc6 | Output Document new version solo doc | Output 7 | | TCPDF | 0 | Legal!@#$$$%^&| 25 | 25 | 25 | 25 | WORD | HTML | 0 | | 1 | | | 0 | | | | 400 | out_doc_media |
| Invalid document type | 4224292655297723eb98691001100052 | Endpoint New Version PDF7 | Output Document new version solo pdf | Output 8 | | TCPDF | 0 | Legal | 25,56.98 | 25 | 25 | 25 | PDF | HTML | 0 | | 1 | | | 1 | sample | sample | print | 400 | out_doc_left_margin |
| Invalid left margin | 4224292655297723eb98691001100052 | Endpoint New Version8 | Output Document new version - EndPoint | Output 9 | | TCPDF | 1 | Letter | 30 | 30,7.98 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | | 400 | out_doc_right_margin |
| Invalid right margin | 4224292655297723eb98691001100052 | Endpoint New Version PDF SECURIT9 | Output Document new version PDF SECURITY | Output 10 | | TCPDF | 0 | Legal | 25 | 25 | 25,54.98 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms | 400 | out_doc_top_margin |
| Invalid top margin | 4224292655297723eb98691001100052 | Endpoint New Version Doc10 | Output Document new version solo doc | Output 11 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25,34.09 | WORD | HTML | 0 | | 1 | | | 0 | | | | 400 | out_doc_bottom_margin |
| Invalid bottom margin | 4224292655297723eb98691001100052 | Endpoint New Version PDF 11 | Output Document new version solo pdf | Output 12 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | PDtest@#$$ | HTML | 0 | | 1 | | | 1 | sample | sample | print | 400 | out_doc_generate |
| Invalid current revision | 4224292655297723eb98691001100052 | Endpoint New Version PDF SECURI13 | Output Document new version PDF SECURITY | Output 14 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 45,988.566 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms | 400 | out_doc_current_revision |
| Invalid doc versioning | 4224292655297723eb98691001100052 | Endpoint New Version PDF 15 | Output Document new version solo pdf | Output 16 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | PDF | HTML | 0 | | 1,99.98 | | | 1 | sample | sample | print | 400 | out_doc_versioning |
| Invalid doc pdf security enabled | 4224292655297723eb98691001100052 | Endpoint New Version Doc 18 | Output Document new version solo doc | Output 18 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | WORD | HTML | 0 | | 1 | | | 23454 | | | | 400 | out_doc_generate |
| Invalid doc pdf security permissions | 4224292655297723eb98691001100052 | Endpoint New Version PDF SECURI22 | Output Document new version PDF SECURITY | Output 21 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modfy\|cop\|for\|aaa | 400 | out_doc_pdf_security_permissions |
| Field requered out doc title | 4224292655297723eb98691001100052 | | Output Document old version - EndPoint | Output 22 | | HTML2PDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | | 400 | out_doc_title |
| Field required out doc filename | 4224292655297723eb98691001100052 | Endpoint Old Version Doc | Output Document old version solo doc | | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | WORD | HTML | 0 | | 1 | | | 0 | | | | 400 | out_doc_generate |
| Output created with same name | 4224292655297723eb98691001100052 | Endpoint Old Version (base) | Output Document old version solo doc | Output 23 | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 0 | | | | 400 | Output Document with the same name in this process |

View File

@@ -1,59 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Output Documents Negative Tests
Background:
Given that I have a valid access_token
Scenario Outline: Create a new output document for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"out_doc_title": "<out_doc_title>",
"out_doc_description": "<out_doc_description>",
"out_doc_filename": "<out_doc_filename>",
"out_doc_template": "<out_doc_template>",
"out_doc_report_generator": "<out_doc_report_generator>",
"out_doc_landscape": "<out_doc_landscape>",
"out_doc_media": "<out_doc_media>",
"out_doc_left_margin": "<out_doc_left_margin>",
"out_doc_right_margin": "<out_doc_right_margin>",
"out_doc_top_margin": "<out_doc_top_margin>",
"out_doc_bottom_margin": "<out_doc_bottom_margin>",
"out_doc_generate": "<out_doc_generate>",
"out_doc_type": "<out_doc_type>",
"out_doc_current_revision": "<out_doc_current_revision>",
"out_doc_field_mapping": "<out_doc_field_mapping>",
"out_doc_versioning": "<out_doc_versioning>",
"out_doc_destination_path": "<out_doc_destination_path>",
"out_doc_tags": "<out_doc_tags>",
"out_doc_pdf_security_enabled": "<out_doc_pdf_security_enabled>",
"out_doc_pdf_security_open_password": "<out_doc_pdf_security_open_password>",
"out_doc_pdf_security_owner_password": "<out_doc_pdf_security_owner_password>",
"out_doc_pdf_security_permissions": "<out_doc_pdf_security_permissions>"
}
"""
And I request "project/<project>/output-document"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | out_doc_title | out_doc_description |out_doc_filename | out_doc_template | out_doc_report_generator | out_doc_landscape | out_doc_media | out_doc_left_margin | out_doc_right_margin | out_doc_top_margin | out_doc_bottom_margin | out_doc_generate | out_doc_type | out_doc_current_revision | out_doc_field_mapping | out_doc_versioning | out_doc_destination_path | out_doc_tags | out_doc_pdf_security_enabled | out_doc_pdf_security_open_password | out_doc_pdf_security_owner_password | out_doc_pdf_security_permissions | error_code | error_message |
| Invalid PDF Generator | 4224292655297723eb98691001100052 | Endpoint New Version 4 | Output Document new version - EndPoint | Output 5 | | @#$%¼¤¾½ | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | | 400 | out_doc_report_generator |
| Invalid landscape | 4224292655297723eb98691001100052 | Endpoint New Version PDF SECURIT5 | Output Document new version PDF SECURITY | Output 6 | | TCPDF | 34 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms | 400 | out_doc_landscape |
| Invalid media type | 4224292655297723eb98691001100052 | Endpoint New Version Doc6 | Output Document new version solo doc | Output 7 | | TCPDF | 0 | Legal!@#$$$%^&| 25 | 25 | 25 | 25 | WORD | HTML | 0 | | 1 | | | 0 | | | | 400 | out_doc_media |
| Invalid document type | 4224292655297723eb98691001100052 | Endpoint New Version PDF7 | Output Document new version solo pdf | Output 8 | | TCPDF | 0 | Legal | 25,56.98 | 25 | 25 | 25 | PDF | HTML | 0 | | 1 | | | 1 | sample | sample | print | 400 | out_doc_left_margin |
| Invalid left margin | 4224292655297723eb98691001100052 | Endpoint New Version8 | Output Document new version - EndPoint | Output 9 | | TCPDF | 1 | Letter | 30 | 30,7.98 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | | 400 | out_doc_right_margin |
| Invalid right margin | 4224292655297723eb98691001100052 | Endpoint New Version PDF SECURIT9 | Output Document new version PDF SECURITY | Output 10 | | TCPDF | 0 | Legal | 25 | 25 | 25,54.98 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms | 400 | out_doc_top_margin |
| Invalid top margin | 4224292655297723eb98691001100052 | Endpoint New Version Doc10 | Output Document new version solo doc | Output 11 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25,34.09 | WORD | HTML | 0 | | 1 | | | 0 | | | | 400 | out_doc_bottom_margin |
| Invalid bottom margin | 4224292655297723eb98691001100052 | Endpoint New Version PDF 11 | Output Document new version solo pdf | Output 12 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | PDtest@#$$ | HTML | 0 | | 1 | | | 1 | sample | sample | print | 400 | out_doc_generate |
| Invalid current revision | 4224292655297723eb98691001100052 | Endpoint New Version PDF SECURI13 | Output Document new version PDF SECURITY | Output 14 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 45,988.566 | | 1 | | | 1 | sample | sample | print\|modify\|copy\|forms | 400 | out_doc_current_revision |
| Invalid doc versioning | 4224292655297723eb98691001100052 | Endpoint New Version PDF 15 | Output Document new version solo pdf | Output 16 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | PDF | HTML | 0 | | 1,99.98 | | | 1 | sample | sample | print | 400 | out_doc_versioning |
| Invalid doc pdf security enabled | 4224292655297723eb98691001100052 | Endpoint New Version Doc 18 | Output Document new version solo doc | Output 18 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | WORD | HTML | 0 | | 1 | | | 23454 | | | | 400 | out_doc_generate |
| Invalid doc pdf security permissions | 4224292655297723eb98691001100052 | Endpoint New Version PDF SECURI22 | Output Document new version PDF SECURITY | Output 21 | | TCPDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 1 | sample | sample | print\|modfy\|cop\|for\|aaa | 400 | out_doc_pdf_security_permissions |
| Field requered out doc title | 4224292655297723eb98691001100052 | | Output Document old version - EndPoint | Output 22 | | HTML2PDF | 1 | Letter | 30 | 30 | 30 | 30 | BOTH | HTML | 0 | | 0 | | | 0 | | | | 400 | out_doc_title |
| Field required out doc filename | 4224292655297723eb98691001100052 | Endpoint Old Version Doc | Output Document old version solo doc | | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | WORD | HTML | 0 | | 1 | | | 0 | | | | 400 | out_doc_generate |
| Output created with same name | 4224292655297723eb98691001100052 | Endpoint Old Version (base) | Output Document old version solo doc | Output 23 | | HTML2PDF | 0 | Legal | 25 | 25 | 25 | 25 | BOTH | HTML | 0 | | 1 | | | 0 | | | | 400 | Output Document with the same name in this process |

View File

@@ -1,90 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: ProcessPermissions Resources
@1: TEST FOR GET PROCESS PERMISSIONS /----------------------------------------------------------------------
Scenario: List all the process permissions (result 0 process permissions)
Given that I have a valid access_token
And I request "project/251815090529619a99a2bf4013294414/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record
@2: TEST FOR POST PROCESS PERMISSION /----------------------------------------------------------------------
Scenario: Create a new process permission
Given that I have a valid access_token
And POST this data:
"""
{
"tas_uid": "",
"usr_uid": "00000000000000000000000000000001",
"op_user_relation": "1",
"op_obj_type": "ANY",
"op_task_source" : "",
"op_participate": "0",
"op_action": "BLOCK",
"op_case_status": "DRAFT"
}
"""
And I request "project/251815090529619a99a2bf4013294414/process-permission"
Then the response status code should be 201
And store "op_uid" in session array
@3: TEST FOR GET PROCESS PERMISSIONS /----------------------------------------------------------------------
Scenario: List all the process permissions (result 1 process permission)
Given that I have a valid access_token
And I request "project/251815090529619a99a2bf4013294414/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 1 record
@4: TEST FOR PUT PROCESS PERMISSION /-----------------------------------------------------------------------
Scenario: Update a process permission
Given that I have a valid access_token
And PUT this data:
"""
{
"tas_uid": "",
"usr_uid": "00000000000000000000000000000001",
"op_user_relation": "1",
"op_obj_type": "ANY",
"op_task_source" : "",
"op_participate": "0",
"op_action": "VIEW",
"op_case_status": "TO_DO"
}
"""
And that I want to update a resource with the key "op_uid" stored in session array
And I request "project/251815090529619a99a2bf4013294414/process-permission"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
@5: TEST FOR GET PROCESS PERMISSION /-----------------------------------------------------------------------
Scenario: Get a process permission (with change in "op_action" and "op_case_status")
Given that I have a valid access_token
And that I want to get a resource with the key "op_uid" stored in session array
And I request "project/251815090529619a99a2bf4013294414/process-permission"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "op_action" is set to "VIEW"
And that "op_case_status" is set to "TO_DO"
@6: TEST FOR DELETE PROCESS PERMISSION /-----------------------------------------------------------------------
Scenario: Delete a process permission
Given that I have a valid access_token
And that I want to delete a resource with the key "op_uid" stored in session array
And I request "project/251815090529619a99a2bf4013294414/process-permission"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
@7: TEST FOR GET PROCESS PERMISSIONS /----------------------------------------------------------------------
Scenario: List all the process permissions (result 0 process permissions)
Given that I have a valid access_token
And I request "project/251815090529619a99a2bf4013294414/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record

View File

@@ -1,90 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: ProcessPermissions Resources
@1: TEST FOR GET PROCESS PERMISSIONS /----------------------------------------------------------------------
Scenario: List all the process permissions (result 0 process permissions)
Given that I have a valid access_token
And I request "project/251815090529619a99a2bf4013294414/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record
@2: TEST FOR POST PROCESS PERMISSION /----------------------------------------------------------------------
Scenario: Create a new process permission
Given that I have a valid access_token
And POST this data:
"""
{
"tas_uid": "",
"usr_uid": "00000000000000000000000000000001",
"op_user_relation": "1",
"op_obj_type": "ANY",
"op_task_source" : "",
"op_participate": "0",
"op_action": "BLOCK",
"op_case_status": "DRAFT"
}
"""
And I request "project/251815090529619a99a2bf4013294414/process-permission"
Then the response status code should be 201
And store "op_uid" in session array
@3: TEST FOR GET PROCESS PERMISSIONS /----------------------------------------------------------------------
Scenario: List all the process permissions (result 1 process permission)
Given that I have a valid access_token
And I request "project/251815090529619a99a2bf4013294414/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 1 record
@4: TEST FOR PUT PROCESS PERMISSION /-----------------------------------------------------------------------
Scenario: Update a process permission
Given that I have a valid access_token
And PUT this data:
"""
{
"tas_uid": "",
"usr_uid": "00000000000000000000000000000001",
"op_user_relation": "1",
"op_obj_type": "ANY",
"op_task_source" : "",
"op_participate": "0",
"op_action": "VIEW",
"op_case_status": "TO_DO"
}
"""
And that I want to update a resource with the key "op_uid" stored in session array
And I request "project/251815090529619a99a2bf4013294414/process-permission"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
@5: TEST FOR GET PROCESS PERMISSION /-----------------------------------------------------------------------
Scenario: Get a process permission (with change in "op_action" and "op_case_status")
Given that I have a valid access_token
And that I want to get a resource with the key "op_uid" stored in session array
And I request "project/251815090529619a99a2bf4013294414/process-permission"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "op_action" is set to "VIEW"
And that "op_case_status" is set to "TO_DO"
@6: TEST FOR DELETE PROCESS PERMISSION /-----------------------------------------------------------------------
Scenario: Delete a process permission
Given that I have a valid access_token
And that I want to delete a resource with the key "op_uid" stored in session array
And I request "project/251815090529619a99a2bf4013294414/process-permission"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
@7: TEST FOR GET PROCESS PERMISSIONS /----------------------------------------------------------------------
Scenario: List all the process permissions (result 0 process permissions)
Given that I have a valid access_token
And I request "project/251815090529619a99a2bf4013294414/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record

View File

@@ -1,239 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Process Permissions Resources Tests
Requirements:
a workspace with the process 67021149152e27240dc54d2095572343 ("Test Process Permissions") already loaded
there are zero Process Permissions in the process
Background:
Given that I have a valid access_token
Scenario: Get a List of current Process Permissions of a project
Given I request "project/67021149152e27240dc54d2095572343/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record
Scenario Outline: Create a new Process permission
Given POST this data:
"""
{
"op_case_status": "<op_case_status>",
"tas_uid": "<tas_uid>",
"op_user_relation": "<op_user_relation>",
"usr_uid": "<usr_uid>",
"op_task_source" : "<op_task_source>",
"op_participate": "<op_participate>",
"op_obj_type": "<op_obj_type>",
"dynaforms" : "<dynaforms>",
"inputs" : "<inputs>",
"outputs" : "<outputs>",
"op_action": "<op_action>"
}
"""
And I request "project/67021149152e27240dc54d2095572343/process-permission"
Then the response status code should be 201
And store "op_uid" in session array
And the response charset is "UTF-8"
And the content type is "application/json"
And store "op_uid" in session array as variable "op_uid_<op_number>"
Examples:
| test_description | op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | dynaforms | inputs | outputs | op_action |
| Create with Status Case All and type All in task 1 | 1 | ALL | | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case All and type Dynaform in task 1 | 2 | ALL | | 1 | 25286582752d56713231082039265791 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case All and type Input in task 1 | 3 | ALL | | 2 | 54731929352d56741de9d42002704749 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case All and type Output in task 1 | 4 | ALL | | 1 | 32444503652d5671778fd20059078570 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case All and type Case Note in task 1 | 5 | ALL | | 1 | 16333273052d567284e6766029512960 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case All and type Messages in task 1 | 6 | ALL | | 1 | 34289569752d5673d310e82094574281 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Draft and type All in task 2 | 7 | DRAFT | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case Draft and type Dynaform in task 2 | 8 | DRAFT | 55416900252e272492318b9024750146 | 1 | 11206717452d5673913aa69053050085 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case Draft and type Input in task 2 | 9 | DRAFT | 55416900252e272492318b9024750146 | 2 | 53254668952d56744764b08079100881 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case Draft and type Output in task 2 | 10 | DRAFT | 55416900252e272492318b9024750146 | 1 | 14093514252d56720bff5b4038518272 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case Draft and type Case Note in task 2 | 11 | DRAFT | 55416900252e272492318b9024750146 | 1 | 19834612352d5673c73ea89076646062 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Draft and type Messages in task 2 | 12 | DRAFT | 55416900252e272492318b9024750146 | 2 | 89064231952d567452ea008014804965 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case To Do and type All in task 1 | 13 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case To Do and type Dynaform in task 1 | 14 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 36116269152d56733b20e86062657385 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case To Do and type Input in task 1 | 15 | TO_DO | 36792129552e27247a483f6069605623 | 2 | 97026620152d5673fe945e9005039411 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case To Do and type Output in task 1 | 16 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 38102442252d5671a629009013495090 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case To Do and type Case Note in task 1 | 17 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44114647252d567264eb9e4061647705 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case To Do and type Messages in task 1 | 18 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44811996752d567110634a1013636964 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Paused and type All in task 2 | 19 | PAUSED | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case Paused and type Dynaform in task 2 | 20 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50011635952d5673246a575079973262 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 51960945752e280ce802ce7007126361 | | | BLOCK |
| Create with Status Case Paused and type Input in task 2 | 21 | PAUSED | 55416900252e272492318b9024750146 | 2 | 65379765252d56743ca1a22048946834 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 61273332352e28125254f97072882826 | | BLOCK |
| Create with Status Case Paused and type Output in task 2 | 22 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50562411252d5671e788c02016273245 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56977080352e281696ead88064880692 | BLOCK |
| Create with Status Case Paused and type Case Note in task 2 | 23 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50912153352d5673b0b7e42000221953 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Paused and type Messages in task 2 | 24 | PAUSED | 55416900252e272492318b9024750146 | 2 | 81090718052d567492e1852081697260 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Completed and type All in task 3 | 25 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 00000000000000000000000000000001 | 55416900252e272492318b9024750146 | 1 | ANY | | | | VIEW |
| Create with Status Case Completed and type Dynaform in task 3 | 26 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 62511352152d5673bba9cd4062743508 | 55416900252e272492318b9024750146 | 1 | DYNAFORM | 51960945752e280ce802ce7007126361 | | | BLOCK |
| Create with Status Case Completed and type Input in task 3 | 27 | COMPLETED | 64296230152e2724a8b3589070508795 | 2 | 47593815252d5673e93e048007155938 | 55416900252e272492318b9024750146 | 0 | INPUT | | 61273332352e28125254f97072882826 | | BLOCK |
| Create with Status Case Completed and type Output in task 3 | 28 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 69125570352d56720061f83026430750 | 55416900252e272492318b9024750146 | 1 | OUTPUT | | | 56977080352e281696ead88064880692 | BLOCK |
| Create with Status Case Completed and type Case Note in task 3 | 29 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 69578334752d5672aabb946025792134 | 55416900252e272492318b9024750146 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Completed and type Messages in task 3 | 30 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 73005191052d56727901138030694610 | 55416900252e272492318b9024750146 | 0 | MSGS_HISTORY | | | | BLOCK |
Scenario: Get a List of current Process Permissions of a project when there are exactly xxxxxx Process Permissions
Given I request "project/67021149152e27240dc54d2095572343/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 30 records
Scenario Outline: Get a Single Process Permissions of a project when the Process Permissions is previously created
Given that I want to get a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>"
And I request "project/67021149152e27240dc54d2095572343/process-permission"
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 "USR_UID" property equals "<usr_uid>"
And the "OP_USER_RELATION" property equals "<op_user_relation>"
And the "OP_OBJ_TYPE" property equals "<op_obj_type>"
Examples:
| test_description | op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | dynaforms | inputs | outputs | op_action |
| Create with Status Case All and type All in task 1 | 1 | ALL | | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case All and type Dynaform in task 1 | 2 | ALL | | 1 | 25286582752d56713231082039265791 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case All and type Input in task 1 | 3 | ALL | | 2 | 54731929352d56741de9d42002704749 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case All and type Output in task 1 | 4 | ALL | | 1 | 32444503652d5671778fd20059078570 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case All and type Case Note in task 1 | 5 | ALL | | 1 | 16333273052d567284e6766029512960 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case All and type Messages in task 1 | 6 | ALL | | 1 | 34289569752d5673d310e82094574281 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Draft and type All in task 2 | 7 | DRAFT | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case Draft and type Dynaform in task 2 | 8 | DRAFT | 55416900252e272492318b9024750146 | 1 | 11206717452d5673913aa69053050085 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case Draft and type Input in task 2 | 9 | DRAFT | 55416900252e272492318b9024750146 | 2 | 53254668952d56744764b08079100881 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case Draft and type Output in task 2 | 10 | DRAFT | 55416900252e272492318b9024750146 | 1 | 14093514252d56720bff5b4038518272 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case Draft and type Case Note in task 2 | 11 | DRAFT | 55416900252e272492318b9024750146 | 1 | 19834612352d5673c73ea89076646062 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Draft and type Messages in task 2 | 12 | DRAFT | 55416900252e272492318b9024750146 | 2 | 89064231952d567452ea008014804965 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case To Do and type All in task 1 | 13 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case To Do and type Dynaform in task 1 | 14 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 36116269152d56733b20e86062657385 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case To Do and type Input in task 1 | 15 | TO_DO | 36792129552e27247a483f6069605623 | 2 | 97026620152d5673fe945e9005039411 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case To Do and type Output in task 1 | 16 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 38102442252d5671a629009013495090 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case To Do and type Case Note in task 1 | 17 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44114647252d567264eb9e4061647705 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case To Do and type Messages in task 1 | 18 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44811996752d567110634a1013636964 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Paused and type All in task 2 | 19 | PAUSED | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case Paused and type Dynaform in task 2 | 20 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50011635952d5673246a575079973262 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 51960945752e280ce802ce7007126361 | | | BLOCK |
| Create with Status Case Paused and type Input in task 2 | 21 | PAUSED | 55416900252e272492318b9024750146 | 2 | 65379765252d56743ca1a22048946834 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 61273332352e28125254f97072882826 | | BLOCK |
| Create with Status Case Paused and type Output in task 2 | 22 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50562411252d5671e788c02016273245 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56977080352e281696ead88064880692 | BLOCK |
| Create with Status Case Paused and type Case Note in task 2 | 23 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50912153352d5673b0b7e42000221953 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Paused and type Messages in task 2 | 24 | PAUSED | 55416900252e272492318b9024750146 | 2 | 81090718052d567492e1852081697260 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Completed and type All in task 3 | 25 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 00000000000000000000000000000001 | 55416900252e272492318b9024750146 | 1 | ANY | | | | VIEW |
| Create with Status Case Completed and type Dynaform in task 3 | 26 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 62511352152d5673bba9cd4062743508 | 55416900252e272492318b9024750146 | 1 | DYNAFORM | 51960945752e280ce802ce7007126361 | | | BLOCK |
| Create with Status Case Completed and type Input in task 3 | 27 | COMPLETED | 64296230152e2724a8b3589070508795 | 2 | 47593815252d5673e93e048007155938 | 55416900252e272492318b9024750146 | 0 | INPUT | | 61273332352e28125254f97072882826 | | BLOCK |
| Create with Status Case Completed and type Output in task 3 | 28 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 69125570352d56720061f83026430750 | 55416900252e272492318b9024750146 | 1 | OUTPUT | | | 56977080352e281696ead88064880692 | BLOCK |
| Create with Status Case Completed and type Case Note in task 3 | 29 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 69578334752d5672aabb946025792134 | 55416900252e272492318b9024750146 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Completed and type Messages in task 3 | 30 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 73005191052d56727901138030694610 | 55416900252e272492318b9024750146 | 0 | MSGS_HISTORY | | | | BLOCK |
Scenario Outline: Update the Process Permission and then check if the values had changed
Given PUT this data:
"""
{
"tas_uid": "<tas_uid>",
"usr_uid": "<usr_uid>",
"op_user_relation": "<op_user_relation>",
"op_obj_type": "<op_obj_type>",
"op_task_source" : "<op_task_source>",
"op_participate": "<op_participate>",
"op_action": "<op_action>",
"op_case_status": "<op_case_status>"
}
"""
And that I want to update a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>"
And I request "project/67021149152e27240dc54d2095572343/process-permission"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| test_description | op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | op_action |
| Update Status Case Completed and type All in task 3 | 6 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 00000000000000000000000000000001 | 55416900252e272492318b9024750146 | 1 | ANY | VIEW |
| Update Status Case Paused and type Messages in task 2 | 7 | PAUSED | 55416900252e272492318b9024750146 | 2 | 81090718052d567492e1852081697260 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | BLOCK |
| Update Status Case Paused and type All in task 2 | 12 | PAUSED | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | VIEW |
| Update Status Case To Do and type Messages in task 1 | 13 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44811996752d567110634a1013636964 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | BLOCK |
Scenario Outline: Get a Single Process Permissions and check some properties
Given that I want to get a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>"
And I request "project/67021149152e27240dc54d2095572343/process-permission"
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 "OP_CASE_STATUS" property equals "<op_case_status>"
And the "TAS_UID" property equals "<tas_uid>"
And the "OP_USER_RELATION" property equals "<op_user_relation>"
And the "USR_UID" property equals "<usr_uid>"
And the "OP_TASK_SOURCE" property equals "<op_task_source>"
And the "OP_PARTICIPATE" property equals "<op_participate>"
And the "OP_OBJ_TYPE" property equals "<op_obj_type>"
And the "OP_ACTION" property equals "<op_action>"
Examples:
| test_description | op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | op_action |
| Update Status Case Completed and type All in task 3 | 6 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 00000000000000000000000000000001 | 55416900252e272492318b9024750146 | 1 | ANY | VIEW |
| Update Status Case Paused and type Messages in task 2 | 7 | PAUSED | 55416900252e272492318b9024750146 | 2 | 81090718052d567492e1852081697260 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | BLOCK |
| Update Status Case Paused and type All in task 2 | 12 | PAUSED | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | VIEW |
| Update Status Case To Do and type Messages in task 1 | 13 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44811996752d567110634a1013636964 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | BLOCK |
Scenario Outline: Delete all Process Supervisor created previously in this script
Given that I want to delete a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>"
And I request "project/67021149152e27240dc54d2095572343/process-permission"
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:
| op_number |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
| 11 |
| 12 |
| 13 |
| 14 |
| 15 |
| 16 |
| 17 |
| 18 |
| 19 |
| 20 |
| 21 |
| 22 |
| 23 |
| 24 |
| 25 |
| 26 |
| 27 |
| 28 |
| 29 |
| 30 |
Scenario: Get a List of current Process Permissions of a project
Given I request "project/67021149152e27240dc54d2095572343/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record

View File

@@ -1,239 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Process Permissions Resources Tests
Requirements:
a workspace with the process 67021149152e27240dc54d2095572343 ("Test Process Permissions") already loaded
there are zero Process Permissions in the process
Background:
Given that I have a valid access_token
Scenario: Get a List of current Process Permissions of a project
Given I request "project/67021149152e27240dc54d2095572343/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record
Scenario Outline: Create a new Process permission
Given POST this data:
"""
{
"op_case_status": "<op_case_status>",
"tas_uid": "<tas_uid>",
"op_user_relation": "<op_user_relation>",
"usr_uid": "<usr_uid>",
"op_task_source" : "<op_task_source>",
"op_participate": "<op_participate>",
"op_obj_type": "<op_obj_type>",
"dynaforms" : "<dynaforms>",
"inputs" : "<inputs>",
"outputs" : "<outputs>",
"op_action": "<op_action>"
}
"""
And I request "project/67021149152e27240dc54d2095572343/process-permission"
Then the response status code should be 201
And store "op_uid" in session array
And the response charset is "UTF-8"
And the content type is "application/json"
And store "op_uid" in session array as variable "op_uid_<op_number>"
Examples:
| test_description | op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | dynaforms | inputs | outputs | op_action |
| Create with Status Case All and type All in task 1 | 1 | ALL | | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case All and type Dynaform in task 1 | 2 | ALL | | 1 | 25286582752d56713231082039265791 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case All and type Input in task 1 | 3 | ALL | | 2 | 54731929352d56741de9d42002704749 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case All and type Output in task 1 | 4 | ALL | | 1 | 32444503652d5671778fd20059078570 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case All and type Case Note in task 1 | 5 | ALL | | 1 | 16333273052d567284e6766029512960 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case All and type Messages in task 1 | 6 | ALL | | 1 | 34289569752d5673d310e82094574281 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Draft and type All in task 2 | 7 | DRAFT | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case Draft and type Dynaform in task 2 | 8 | DRAFT | 55416900252e272492318b9024750146 | 1 | 11206717452d5673913aa69053050085 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case Draft and type Input in task 2 | 9 | DRAFT | 55416900252e272492318b9024750146 | 2 | 53254668952d56744764b08079100881 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case Draft and type Output in task 2 | 10 | DRAFT | 55416900252e272492318b9024750146 | 1 | 14093514252d56720bff5b4038518272 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case Draft and type Case Note in task 2 | 11 | DRAFT | 55416900252e272492318b9024750146 | 1 | 19834612352d5673c73ea89076646062 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Draft and type Messages in task 2 | 12 | DRAFT | 55416900252e272492318b9024750146 | 2 | 89064231952d567452ea008014804965 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case To Do and type All in task 1 | 13 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case To Do and type Dynaform in task 1 | 14 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 36116269152d56733b20e86062657385 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case To Do and type Input in task 1 | 15 | TO_DO | 36792129552e27247a483f6069605623 | 2 | 97026620152d5673fe945e9005039411 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case To Do and type Output in task 1 | 16 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 38102442252d5671a629009013495090 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case To Do and type Case Note in task 1 | 17 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44114647252d567264eb9e4061647705 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case To Do and type Messages in task 1 | 18 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44811996752d567110634a1013636964 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Paused and type All in task 2 | 19 | PAUSED | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case Paused and type Dynaform in task 2 | 20 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50011635952d5673246a575079973262 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 51960945752e280ce802ce7007126361 | | | BLOCK |
| Create with Status Case Paused and type Input in task 2 | 21 | PAUSED | 55416900252e272492318b9024750146 | 2 | 65379765252d56743ca1a22048946834 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 61273332352e28125254f97072882826 | | BLOCK |
| Create with Status Case Paused and type Output in task 2 | 22 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50562411252d5671e788c02016273245 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56977080352e281696ead88064880692 | BLOCK |
| Create with Status Case Paused and type Case Note in task 2 | 23 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50912153352d5673b0b7e42000221953 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Paused and type Messages in task 2 | 24 | PAUSED | 55416900252e272492318b9024750146 | 2 | 81090718052d567492e1852081697260 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Completed and type All in task 3 | 25 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 00000000000000000000000000000001 | 55416900252e272492318b9024750146 | 1 | ANY | | | | VIEW |
| Create with Status Case Completed and type Dynaform in task 3 | 26 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 62511352152d5673bba9cd4062743508 | 55416900252e272492318b9024750146 | 1 | DYNAFORM | 51960945752e280ce802ce7007126361 | | | BLOCK |
| Create with Status Case Completed and type Input in task 3 | 27 | COMPLETED | 64296230152e2724a8b3589070508795 | 2 | 47593815252d5673e93e048007155938 | 55416900252e272492318b9024750146 | 0 | INPUT | | 61273332352e28125254f97072882826 | | BLOCK |
| Create with Status Case Completed and type Output in task 3 | 28 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 69125570352d56720061f83026430750 | 55416900252e272492318b9024750146 | 1 | OUTPUT | | | 56977080352e281696ead88064880692 | BLOCK |
| Create with Status Case Completed and type Case Note in task 3 | 29 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 69578334752d5672aabb946025792134 | 55416900252e272492318b9024750146 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Completed and type Messages in task 3 | 30 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 73005191052d56727901138030694610 | 55416900252e272492318b9024750146 | 0 | MSGS_HISTORY | | | | BLOCK |
Scenario: Get a List of current Process Permissions of a project when there are exactly xxxxxx Process Permissions
Given I request "project/67021149152e27240dc54d2095572343/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 30 records
Scenario Outline: Get a Single Process Permissions of a project when the Process Permissions is previously created
Given that I want to get a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>"
And I request "project/67021149152e27240dc54d2095572343/process-permission"
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 "USR_UID" property equals "<usr_uid>"
And the "OP_USER_RELATION" property equals "<op_user_relation>"
And the "OP_OBJ_TYPE" property equals "<op_obj_type>"
Examples:
| test_description | op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | dynaforms | inputs | outputs | op_action |
| Create with Status Case All and type All in task 1 | 1 | ALL | | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case All and type Dynaform in task 1 | 2 | ALL | | 1 | 25286582752d56713231082039265791 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case All and type Input in task 1 | 3 | ALL | | 2 | 54731929352d56741de9d42002704749 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case All and type Output in task 1 | 4 | ALL | | 1 | 32444503652d5671778fd20059078570 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case All and type Case Note in task 1 | 5 | ALL | | 1 | 16333273052d567284e6766029512960 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case All and type Messages in task 1 | 6 | ALL | | 1 | 34289569752d5673d310e82094574281 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Draft and type All in task 2 | 7 | DRAFT | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case Draft and type Dynaform in task 2 | 8 | DRAFT | 55416900252e272492318b9024750146 | 1 | 11206717452d5673913aa69053050085 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case Draft and type Input in task 2 | 9 | DRAFT | 55416900252e272492318b9024750146 | 2 | 53254668952d56744764b08079100881 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case Draft and type Output in task 2 | 10 | DRAFT | 55416900252e272492318b9024750146 | 1 | 14093514252d56720bff5b4038518272 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case Draft and type Case Note in task 2 | 11 | DRAFT | 55416900252e272492318b9024750146 | 1 | 19834612352d5673c73ea89076646062 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Draft and type Messages in task 2 | 12 | DRAFT | 55416900252e272492318b9024750146 | 2 | 89064231952d567452ea008014804965 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case To Do and type All in task 1 | 13 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case To Do and type Dynaform in task 1 | 14 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 36116269152d56733b20e86062657385 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | BLOCK |
| Create with Status Case To Do and type Input in task 1 | 15 | TO_DO | 36792129552e27247a483f6069605623 | 2 | 97026620152d5673fe945e9005039411 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 52547398752e28118ab06a3068272571 | | BLOCK |
| Create with Status Case To Do and type Output in task 1 | 16 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 38102442252d5671a629009013495090 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56569355852e28145a16ec7038754814 | BLOCK |
| Create with Status Case To Do and type Case Note in task 1 | 17 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44114647252d567264eb9e4061647705 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case To Do and type Messages in task 1 | 18 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44811996752d567110634a1013636964 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Paused and type All in task 2 | 19 | PAUSED | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW |
| Create with Status Case Paused and type Dynaform in task 2 | 20 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50011635952d5673246a575079973262 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 51960945752e280ce802ce7007126361 | | | BLOCK |
| Create with Status Case Paused and type Input in task 2 | 21 | PAUSED | 55416900252e272492318b9024750146 | 2 | 65379765252d56743ca1a22048946834 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 61273332352e28125254f97072882826 | | BLOCK |
| Create with Status Case Paused and type Output in task 2 | 22 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50562411252d5671e788c02016273245 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 56977080352e281696ead88064880692 | BLOCK |
| Create with Status Case Paused and type Case Note in task 2 | 23 | PAUSED | 55416900252e272492318b9024750146 | 1 | 50912153352d5673b0b7e42000221953 | 36792129552e27247a483f6069605623 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Paused and type Messages in task 2 | 24 | PAUSED | 55416900252e272492318b9024750146 | 2 | 81090718052d567492e1852081697260 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK |
| Create with Status Case Completed and type All in task 3 | 25 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 00000000000000000000000000000001 | 55416900252e272492318b9024750146 | 1 | ANY | | | | VIEW |
| Create with Status Case Completed and type Dynaform in task 3 | 26 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 62511352152d5673bba9cd4062743508 | 55416900252e272492318b9024750146 | 1 | DYNAFORM | 51960945752e280ce802ce7007126361 | | | BLOCK |
| Create with Status Case Completed and type Input in task 3 | 27 | COMPLETED | 64296230152e2724a8b3589070508795 | 2 | 47593815252d5673e93e048007155938 | 55416900252e272492318b9024750146 | 0 | INPUT | | 61273332352e28125254f97072882826 | | BLOCK |
| Create with Status Case Completed and type Output in task 3 | 28 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 69125570352d56720061f83026430750 | 55416900252e272492318b9024750146 | 1 | OUTPUT | | | 56977080352e281696ead88064880692 | BLOCK |
| Create with Status Case Completed and type Case Note in task 3 | 29 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 69578334752d5672aabb946025792134 | 55416900252e272492318b9024750146 | 0 | CASES_NOTES | | | | BLOCK |
| Create with Status Case Completed and type Messages in task 3 | 30 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 73005191052d56727901138030694610 | 55416900252e272492318b9024750146 | 0 | MSGS_HISTORY | | | | BLOCK |
Scenario Outline: Update the Process Permission and then check if the values had changed
Given PUT this data:
"""
{
"tas_uid": "<tas_uid>",
"usr_uid": "<usr_uid>",
"op_user_relation": "<op_user_relation>",
"op_obj_type": "<op_obj_type>",
"op_task_source" : "<op_task_source>",
"op_participate": "<op_participate>",
"op_action": "<op_action>",
"op_case_status": "<op_case_status>"
}
"""
And that I want to update a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>"
And I request "project/67021149152e27240dc54d2095572343/process-permission"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| test_description | op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | op_action |
| Update Status Case Completed and type All in task 3 | 6 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 00000000000000000000000000000001 | 55416900252e272492318b9024750146 | 1 | ANY | VIEW |
| Update Status Case Paused and type Messages in task 2 | 7 | PAUSED | 55416900252e272492318b9024750146 | 2 | 81090718052d567492e1852081697260 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | BLOCK |
| Update Status Case Paused and type All in task 2 | 12 | PAUSED | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | VIEW |
| Update Status Case To Do and type Messages in task 1 | 13 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44811996752d567110634a1013636964 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | BLOCK |
Scenario Outline: Get a Single Process Permissions and check some properties
Given that I want to get a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>"
And I request "project/67021149152e27240dc54d2095572343/process-permission"
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 "OP_CASE_STATUS" property equals "<op_case_status>"
And the "TAS_UID" property equals "<tas_uid>"
And the "OP_USER_RELATION" property equals "<op_user_relation>"
And the "USR_UID" property equals "<usr_uid>"
And the "OP_TASK_SOURCE" property equals "<op_task_source>"
And the "OP_PARTICIPATE" property equals "<op_participate>"
And the "OP_OBJ_TYPE" property equals "<op_obj_type>"
And the "OP_ACTION" property equals "<op_action>"
Examples:
| test_description | op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | op_action |
| Update Status Case Completed and type All in task 3 | 6 | COMPLETED | 64296230152e2724a8b3589070508795 | 1 | 00000000000000000000000000000001 | 55416900252e272492318b9024750146 | 1 | ANY | VIEW |
| Update Status Case Paused and type Messages in task 2 | 7 | PAUSED | 55416900252e272492318b9024750146 | 2 | 81090718052d567492e1852081697260 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | BLOCK |
| Update Status Case Paused and type All in task 2 | 12 | PAUSED | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | VIEW |
| Update Status Case To Do and type Messages in task 1 | 13 | TO_DO | 36792129552e27247a483f6069605623 | 1 | 44811996752d567110634a1013636964 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | BLOCK |
Scenario Outline: Delete all Process Supervisor created previously in this script
Given that I want to delete a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>"
And I request "project/67021149152e27240dc54d2095572343/process-permission"
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:
| op_number |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
| 11 |
| 12 |
| 13 |
| 14 |
| 15 |
| 16 |
| 17 |
| 18 |
| 19 |
| 20 |
| 21 |
| 22 |
| 23 |
| 24 |
| 25 |
| 26 |
| 27 |
| 28 |
| 29 |
| 30 |
Scenario: Get a List of current Process Permissions of a project
Given I request "project/67021149152e27240dc54d2095572343/process-permissions"
Then the response status code should be 200
And the response charset is "UTF-8"
And the response has 0 record

View File

@@ -1,247 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Process supervisor Resources
Background:
Given that I have a valid access_token
Scenario Outline: Get a List of current process supervisors of a project
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| List current unique process supervisor | 85794888452ceeef3675164057928956 | 0 |
Scenario Outline: Get a specific process supervisor details of a project
Given I request "project/<project>/process-supervisor/<pu_uid>"
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"
Examples:
| test_description | project | pu_uid |
| Get the supervisor details | 85794888452ceeef3675164057928956 | 70662784652cef0878516f7085532841 |
Scenario Outline: Get a List of available process supervisor of a project
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| List users and groups available to be supervisors | 85794888452ceeef3675164057928956 | 24 |
Scenario Outline: Get a List of available groups process supervisor of a project
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| List the 23 groups available to be supervisors | 85794888452ceeef3675164057928956 | 23 |
Scenario Outline: Get a List of available users elegible as process supervisor
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| List the unique admin user available to be supervisor | 85794888452ceeef3675164057928956 | 1 |
Scenario Outline: Get a List of dynaforms assigned to a process supervisor
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| List the 2 pre-assigned dynaforms #1 & #2 | 85794888452ceeef3675164057928956 | 2 |
Scenario Outline: Get a specific dynaform detail assigned to a process supervisor
Given I request "project/<project>/process-supervisor/dynaform/<pud_uid>"
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"
Examples:
| test_description | project | pud_uid |
| Get details of the first assigend dynaform | 85794888452ceeef3675164057928956 | 56779160652cef174108c76074755720 |
Scenario Outline: Get a List of available dynaforms to be assigned to a process supervisor
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| Get a list of available dynaforms to be assigned | 85794888452ceeef3675164057928956 | 1 |
Scenario Outline: Get a List of assigend input-documents to a process supervisor
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| Get a list of pre-assigned input doucments | 85794888452ceeef3675164057928956 | 2 |
Scenario Outline: Get a List of available input-documents to be assigned to a process supervisor
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| Get a list of 1 record of available input documents | 85794888452ceeef3675164057928956 | 1 |
Scenario Outline: Get a specific input document assigned to a process supervisor
Given I request "project/<project>/process-supervisor/input-document/<pui_uid>"
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"
Examples:
| test_description | project | pui_uid |
| Get details of assigend input document | 85794888452ceeef3675164057928956 | 64558052052d8a715de8936029381436 |
Scenario Outline: Assign a user and a group as process supervisors
Given POST this data:
"""
{
"pu_type": "<pu_type>",
"usr_uid": "<usr_uid>"
}
"""
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 "pu_uid_<pu_number>"
Examples:
| test_description | project | pu_number | pu_type | usr_uid |
| Assign a group as Supervisor | 85794888452ceeef3675164057928956 | 1 | GROUP_SUPERVISOR | 54731929352d56741de9d42002704749 |
| Assign a user as Supervisor | 85794888452ceeef3675164057928956 | 2 | SUPERVISOR | 00000000000000000000000000000001 |
Scenario Outline: Assign a dynaform to a process supervisor
Given POST this data:
"""
{
"dyn_uid": "<dyn_uid>"
}
"""
And I request "project/<project>/process-supervisor/dynaform"
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 "pud_uid" in session array as variable "pud_uid_<pud_number>"
Examples:
| test_description | project | pud_number | dyn_uid |
| Assign a dynaform # 3 for Supervisor | 85794888452ceeef3675164057928956 | 1 | 92562207752ceef36c7d874048012431 |
Scenario Outline: Assign an input document to a process supervisor
Given POST this data:
"""
{
"inp_doc_uid": "<inp_doc_uid>"
}
"""
And I request "project/<project>/process-supervisor/input-document"
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 "pui_uid" in session array as variable "pui_inpdoc_uid_<dps_number>"
Examples:
| test_description | project | dps_number | inp_doc_uid |
| Assign an Input document for Supervisor | 85794888452ceeef3675164057928956 | 1 | 30053187052ddfa4e1fdca4001721051 |
Scenario Outline: Delete a process supervisor
Given that I want to delete a resource with the key "pu_uid" stored in session array as variable "pu_uid_<pu_number>"
And I request "project/<project>/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:
| test_description | project | pu_number |
| Remove first assigned supervisor | 85794888452ceeef3675164057928956 | 1 |
| Remove second assigned supervisor | 85794888452ceeef3675164057928956 | 2 |
Scenario Outline: Delete a input-document process supervisor of a project
Given that I want to delete a resource with the key "pui_uid" stored in session array as variable "pui_inpdoc_uid_<dps_number>"
And I request "project/85794888452ceeef3675164057928956/process-supervisor/input-document"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| test_description | project | dps_number |
| Assign an Input document for Supervisor | 85794888452ceeef3675164057928956 | 1 |
Scenario Outline: Delete an dynaform to a process supervisor
Given that I want to delete a resource with the key "pui_uid" stored in session array as variable "pud_uid_<pud_number>"
And I request "project/<project>/process-supervisor/dynaform"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| test_description | project | pud_number |
| Delete dynaform # 3 for Supervisor | 85794888452ceeef3675164057928956 | 1 |

View File

@@ -1,63 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Process Supervisor Negative tests
Background:
Given that I have a valid access_token
Scenario Outline: Assign a user and a group to a process supervisor for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"pu_type": "<pu_type>",
"usr_uid": "<usr_uid>"
}
"""
And I request "project/<project>/process-supervisor"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | pu_type | usr_uid | error_code | error_message |
| Invalid pu_type | 85794888452ceeef3675164057928956 | GROUP_USER_DEPARTAMENT | 46138556052cda43a051110007756836 | 400 | pu_type |
| Invalid usr_uid | 85794888452ceeef3675164057928956 | SUPERVISOR | 0000000000000gtr@#$0000000000001 | 400 | id |
| Field requered project | | SUPERVISOR | 00000000000000000000000000000001 | 400 | prjUid |
| Field requered pu_type | 85794888452ceeef3675164057928956 | | 00000000000000000000000000000001 | 400 | pu_type |
| Field requered urs_uid | 85794888452ceeef3675164057928956 | SUPERVISOR | | 400 | usr_uid |
Scenario Outline: Assign a dynaform to a process supervisor for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"dyn_uid": "<dyn_uid>"
}
"""
And I request "project/<project>/process-supervisor/dynaform"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | dyn_uid | error_code | error_message |
| Invalid dyn_uid | 85794888452ceeef3675164057928956 | 2ceeef36751640grgrtgrg#$%#%# | 400 | dyn_uid |
| Field requered project | | 78212661352ceef2dc4e987081647602 | 400 | prjUid |
| Field requered dyn_uid | 85794888452ceeef3675164057928956 | 78212661352ceef2dc4e987081640002 | 400 | dyn_uid |
Scenario Outline: Assign a Input Document to a process supervisor for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"dyn_uid": "<inp_doc_uid>"
}
"""
And I request "project/<project>/process-supervisor/input-document"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | inp_doc_uid | error_code | error_message |
| Invalid inp_doc_uid | 85794888452ceeef3675164057928956 | 25205290452ceef5@#$41c3067266323 | 400 | inp_doc_uid |
| Field requered project | | 25205290452ceef570741c3067266323 | 400 | prjUid |
| Field requered inp_doc_uid | 85794888452ceeef3675164057928956 | | 400 | inp_doc_uid |

View File

@@ -1,63 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Process Supervisor Negative tests
Background:
Given that I have a valid access_token
Scenario Outline: Assign a user and a group to a process supervisor for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"pu_type": "<pu_type>",
"usr_uid": "<usr_uid>"
}
"""
And I request "project/<project>/process-supervisor"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | pu_type | usr_uid | error_code | error_message |
| Invalid pu_type | 85794888452ceeef3675164057928956 | GROUP_USER_DEPARTAMENT | 46138556052cda43a051110007756836 | 400 | pu_type |
| Invalid usr_uid | 85794888452ceeef3675164057928956 | SUPERVISOR | 0000000000000gtr@#$0000000000001 | 400 | id |
| Field requered project | | SUPERVISOR | 00000000000000000000000000000001 | 400 | prjUid |
| Field requered pu_type | 85794888452ceeef3675164057928956 | | 00000000000000000000000000000001 | 400 | pu_type |
| Field requered urs_uid | 85794888452ceeef3675164057928956 | SUPERVISOR | | 400 | usr_uid |
Scenario Outline: Assign a dynaform to a process supervisor for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"dyn_uid": "<dyn_uid>"
}
"""
And I request "project/<project>/process-supervisor/dynaform"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | dyn_uid | error_code | error_message |
| Invalid dyn_uid | 85794888452ceeef3675164057928956 | 2ceeef36751640grgrtgrg#$%#%# | 400 | dyn_uid |
| Field requered project | | 78212661352ceef2dc4e987081647602 | 400 | prjUid |
| Field requered dyn_uid | 85794888452ceeef3675164057928956 | 78212661352ceef2dc4e987081640002 | 400 | dyn_uid |
Scenario Outline: Assign a Input Document to a process supervisor for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"dyn_uid": "<inp_doc_uid>"
}
"""
And I request "project/<project>/process-supervisor/input-document"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | inp_doc_uid | error_code | error_message |
| Invalid inp_doc_uid | 85794888452ceeef3675164057928956 | 25205290452ceef5@#$41c3067266323 | 400 | inp_doc_uid |
| Field requered project | | 25205290452ceef570741c3067266323 | 400 | prjUid |
| Field requered inp_doc_uid | 85794888452ceeef3675164057928956 | | 400 | inp_doc_uid |

View File

@@ -1,247 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Process supervisor Resources
Background:
Given that I have a valid access_token
Scenario Outline: Get a List of current process supervisors of a project
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| List current unique process supervisor | 85794888452ceeef3675164057928956 | 0 |
Scenario Outline: Get a specific process supervisor details of a project
Given I request "project/<project>/process-supervisor/<pu_uid>"
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"
Examples:
| test_description | project | pu_uid |
| Get the supervisor details | 85794888452ceeef3675164057928956 | 70662784652cef0878516f7085532841 |
Scenario Outline: Get a List of available process supervisor of a project
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| List users and groups available to be supervisors | 85794888452ceeef3675164057928956 | 24 |
Scenario Outline: Get a List of available groups process supervisor of a project
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| List the 23 groups available to be supervisors | 85794888452ceeef3675164057928956 | 23 |
Scenario Outline: Get a List of available users elegible as process supervisor
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| List the unique admin user available to be supervisor | 85794888452ceeef3675164057928956 | 1 |
Scenario Outline: Get a List of dynaforms assigned to a process supervisor
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| List the 2 pre-assigned dynaforms #1 & #2 | 85794888452ceeef3675164057928956 | 2 |
Scenario Outline: Get a specific dynaform detail assigned to a process supervisor
Given I request "project/<project>/process-supervisor/dynaform/<pud_uid>"
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"
Examples:
| test_description | project | pud_uid |
| Get details of the first assigend dynaform | 85794888452ceeef3675164057928956 | 56779160652cef174108c76074755720 |
Scenario Outline: Get a List of available dynaforms to be assigned to a process supervisor
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| Get a list of available dynaforms to be assigned | 85794888452ceeef3675164057928956 | 1 |
Scenario Outline: Get a List of assigend input-documents to a process supervisor
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| Get a list of pre-assigned input doucments | 85794888452ceeef3675164057928956 | 2 |
Scenario Outline: Get a List of available input-documents to be assigned to a process supervisor
Given I request "project/<project>/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 <records> records
Examples:
| test_description | project | records |
| Get a list of 1 record of available input documents | 85794888452ceeef3675164057928956 | 1 |
Scenario Outline: Get a specific input document assigned to a process supervisor
Given I request "project/<project>/process-supervisor/input-document/<pui_uid>"
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"
Examples:
| test_description | project | pui_uid |
| Get details of assigend input document | 85794888452ceeef3675164057928956 | 64558052052d8a715de8936029381436 |
Scenario Outline: Assign a user and a group as process supervisors
Given POST this data:
"""
{
"pu_type": "<pu_type>",
"usr_uid": "<usr_uid>"
}
"""
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 "pu_uid_<pu_number>"
Examples:
| test_description | project | pu_number | pu_type | usr_uid |
| Assign a group as Supervisor | 85794888452ceeef3675164057928956 | 1 | GROUP_SUPERVISOR | 54731929352d56741de9d42002704749 |
| Assign a user as Supervisor | 85794888452ceeef3675164057928956 | 2 | SUPERVISOR | 00000000000000000000000000000001 |
Scenario Outline: Assign a dynaform to a process supervisor
Given POST this data:
"""
{
"dyn_uid": "<dyn_uid>"
}
"""
And I request "project/<project>/process-supervisor/dynaform"
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 "pud_uid" in session array as variable "pud_uid_<pud_number>"
Examples:
| test_description | project | pud_number | dyn_uid |
| Assign a dynaform # 3 for Supervisor | 85794888452ceeef3675164057928956 | 1 | 92562207752ceef36c7d874048012431 |
Scenario Outline: Assign an input document to a process supervisor
Given POST this data:
"""
{
"inp_doc_uid": "<inp_doc_uid>"
}
"""
And I request "project/<project>/process-supervisor/input-document"
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 "pui_uid" in session array as variable "pui_inpdoc_uid_<dps_number>"
Examples:
| test_description | project | dps_number | inp_doc_uid |
| Assign an Input document for Supervisor | 85794888452ceeef3675164057928956 | 1 | 30053187052ddfa4e1fdca4001721051 |
Scenario Outline: Delete a process supervisor
Given that I want to delete a resource with the key "pu_uid" stored in session array as variable "pu_uid_<pu_number>"
And I request "project/<project>/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:
| test_description | project | pu_number |
| Remove first assigned supervisor | 85794888452ceeef3675164057928956 | 1 |
| Remove second assigned supervisor | 85794888452ceeef3675164057928956 | 2 |
Scenario Outline: Delete a input-document process supervisor of a project
Given that I want to delete a resource with the key "pui_uid" stored in session array as variable "pui_inpdoc_uid_<dps_number>"
And I request "project/85794888452ceeef3675164057928956/process-supervisor/input-document"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| test_description | project | dps_number |
| Assign an Input document for Supervisor | 85794888452ceeef3675164057928956 | 1 |
Scenario Outline: Delete an dynaform to a process supervisor
Given that I want to delete a resource with the key "pui_uid" stored in session array as variable "pud_uid_<pud_number>"
And I request "project/<project>/process-supervisor/dynaform"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| test_description | project | pud_number |
| Delete dynaform # 3 for Supervisor | 85794888452ceeef3675164057928956 | 1 |

View File

@@ -1,167 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Activity Resources Main Tests
Requirements:
a workspace with the process 251815090529619a99a2bf4013294414 already loaded
the process name is "Test (Triggers, Activity)"
there are three Activity Resources in the process
Background:
Given that I have a valid access_token
Scenario Outline: Get the Properties and Definition of 3 Activities
Given I request "project/<project>/activity/<activity>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the "definition" property type is "array"
And the "properties" property type is "object"
And that "tas_title" is set to "<tas_title>"
Examples:
| project | activity | tas_title |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095806311 | Task 1 |
| 251815090529619a99a2bf4013294414 | 95655319552a5c790b69a04054667879 | Task 2 |
| 251815090529619a99a2bf4013294414 | 63843886052a5cc066e4c04056414372 | Task 3 |
Scenario Outline: Get the Properties of a Activity are exactly three activity
Given I request "project/<project>/activity/<activity>?filter=properties"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the response has not a "definition" property
Examples:
| project | activity | tas_title |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095806311 | Task 1 |
| 251815090529619a99a2bf4013294414 | 95655319552a5c790b69a04054667879 | Task 2 |
| 251815090529619a99a2bf4013294414 | 63843886052a5cc066e4c04056414372 | Task 3 |
Scenario Outline: Get the Definition of a Activity are exactly three activity
Given I request "project/<project>/activity/<activity>?filter=definition"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the response has not a "properties" property
Examples:
| project | activity | tas_title |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095806311 | Task 1 |
| 251815090529619a99a2bf4013294414 | 95655319552a5c790b69a04054667879 | Task 2 |
| 251815090529619a99a2bf4013294414 | 63843886052a5cc066e4c04056414372 | Task 3 |
Scenario Outline: Update the Definition of a Activity and the check if the values had changed
Given PUT this data:
"""
{
"definition": {},
"properties":
{
"tas_title": "<tas_title>",
"tas_description": "<tas_description>",
"tas_priority_variable": "<tas_priority_variable>",
"tas_derivation_screen_tpl": "<tas_derivation_screen_tpl>",
"tas_start": "<tas_start>",
"tas_assign_type" : "<tas_assign_type>",
"tas_assign_variable": "<tas_assign_variable>",
"tas_group_variable": "<tas_group_variable>",
"tas_selfservice_timeout": "<tas_selfservice_timeout>",
"tas_selfservice_time": "<tas_selfservice_time>",
"tas_selfservice_time_unit" : "<tas_selfservice_time_unit>",
"tas_selfservice_trigger_uid" : "<tas_selfservice_trigger_uid>",
"tas_transfer_fly": "<tas_transfer_fly>",
"tas_duration" : "<tas_duration>",
"tas_timeunit" : "<tas_timeunit>",
"tas_type_day": "<tas_type_day>",
"tas_calendar": "<tas_calendar>",
"tas_type": "<tas_type>",
"tas_def_title": "<tas_def_title>",
"tas_def_description": "<tas_def_description>",
"tas_send_last_email": "<tas_send_last_email>",
"tas_def_subject_message": "<tas_def_subject_message>",
"tas_def_message_type": "<tas_def_message_type>",
"tas_def_message": "<tas_def_message>",
"tas_def_message_template": "<tas_def_message_template>"
}
}
"""
And I request "project/<project>/activity/<activity>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
Examples:
| test_description | project | activity | tas_title | tas_description | tas_priority_variable | tas_derivation_screen_tpl | tas_start | 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_send_last_email | tas_def_subject_message | tas_def_message_type | tas_def_message | tas_def_message_template |
| Update (tas_title, tas_description), tas_assign_type=BALANCED, tas_selfservice_timeout=1, tas_selfservice_time_unit=DAYS | 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095806311 | update activity task1 | update description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 2 | | ADHOC | Case Title | Case Description | FALSE | Titulo de Notificacion 1| template | Esta es una Notificacion | template.html |
| | 251815090529619a99a2bf4013294414 | 95655319552a5c790b69a04054667879 | update activity task2 | update description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 2 | | ADHOC | Case Title | Case Description | FALSE | Titulo de Notificacion 1| template | Esta es una Notificacion | template.html |
| | 251815090529619a99a2bf4013294414 | 63843886052a5cc066e4c04056414372 | update activity task3 | update description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 2 | | ADHOC | Case Title | Case Description | FALSE | Titulo de Notificacion 1| template | Esta es una Notificacion | template.html |
@5: TEST FOR GET ACTIVITY /-----------------------------------------------------------------------
Scenario Outline: Get a activity
Given I request "project/<project>/activity/<activity>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "tas_title" is set to "<tas_title>"
Examples:
| project | activity | tas_title |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095806311 | Task Edit |
@6: TEST FOR GET PROPERTIES & DEFINITION OF A ACTIVITY /-----------------------------------------------------------------------
Scenario Outline: Get an activity
Given I request "project/<project>/activity/<activity>"
Then the response status code should be <error_code>
And the response charset is "UTF-8"
And the type is "object"
Examples:
| project | activity | tas_title | error_code |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095845000 | Task 1 | 400 |
| 251815090529619a99a2bf4013294414 | | Task 1 | 404 |
| | 97192372152a5c78f04a794095806311 | Task 1 | 400 |
@7: TEST FOR GET PROPERTIES ACTIVITY /---------------------------------------------------------
Scenario Outline: Get properties of activity
Given I request "project/<project>/activity/<activity>?filter=properties"
Then the response status code should be <error_code>
And the response charset is "UTF-8"
And the type is "object"
Examples:
| project | activity | error_code |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095801000 | 400 |
| 251815090529619a99a2bf4013294414 | | 404 |
| | 97192372152a5c78f04a794095806311 | 400 |
@8: TEST FOR GET DEFINITION ACTIVITY /---------------------------------------------------------
Scenario Outline: Get definition of activity
Given I request "project/<project>/activity/<activity>?filter=definition"
Then the response status code should be <error_code>
And the response charset is "UTF-8"
And the type is "object"
Examples:
| project | activity | error_code |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095200000 | 400 |
| 251815090529619a99a2bf4013294414 | | 404 |
| | 97192372152a5c78f04a794095806311 | 400 |

View File

@@ -1,167 +0,0 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Activity Resources Main Tests
Requirements:
a workspace with the process 251815090529619a99a2bf4013294414 already loaded
the process name is "Test (Triggers, Activity)"
there are three Activity Resources in the process
Background:
Given that I have a valid access_token
Scenario Outline: Get the Properties and Definition of 3 Activities
Given I request "project/<project>/activity/<activity>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the "definition" property type is "array"
And the "properties" property type is "object"
And that "tas_title" is set to "<tas_title>"
Examples:
| project | activity | tas_title |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095806311 | Task 1 |
| 251815090529619a99a2bf4013294414 | 95655319552a5c790b69a04054667879 | Task 2 |
| 251815090529619a99a2bf4013294414 | 63843886052a5cc066e4c04056414372 | Task 3 |
Scenario Outline: Get the Properties of a Activity are exactly three activity
Given I request "project/<project>/activity/<activity>?filter=properties"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the response has not a "definition" property
Examples:
| project | activity | tas_title |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095806311 | Task 1 |
| 251815090529619a99a2bf4013294414 | 95655319552a5c790b69a04054667879 | Task 2 |
| 251815090529619a99a2bf4013294414 | 63843886052a5cc066e4c04056414372 | Task 3 |
Scenario Outline: Get the Definition of a Activity are exactly three activity
Given I request "project/<project>/activity/<activity>?filter=definition"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the response has not a "properties" property
Examples:
| project | activity | tas_title |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095806311 | Task 1 |
| 251815090529619a99a2bf4013294414 | 95655319552a5c790b69a04054667879 | Task 2 |
| 251815090529619a99a2bf4013294414 | 63843886052a5cc066e4c04056414372 | Task 3 |
Scenario Outline: Update the Definition of a Activity and the check if the values had changed
Given PUT this data:
"""
{
"definition": {},
"properties":
{
"tas_title": "<tas_title>",
"tas_description": "<tas_description>",
"tas_priority_variable": "<tas_priority_variable>",
"tas_derivation_screen_tpl": "<tas_derivation_screen_tpl>",
"tas_start": "<tas_start>",
"tas_assign_type" : "<tas_assign_type>",
"tas_assign_variable": "<tas_assign_variable>",
"tas_group_variable": "<tas_group_variable>",
"tas_selfservice_timeout": "<tas_selfservice_timeout>",
"tas_selfservice_time": "<tas_selfservice_time>",
"tas_selfservice_time_unit" : "<tas_selfservice_time_unit>",
"tas_selfservice_trigger_uid" : "<tas_selfservice_trigger_uid>",
"tas_transfer_fly": "<tas_transfer_fly>",
"tas_duration" : "<tas_duration>",
"tas_timeunit" : "<tas_timeunit>",
"tas_type_day": "<tas_type_day>",
"tas_calendar": "<tas_calendar>",
"tas_type": "<tas_type>",
"tas_def_title": "<tas_def_title>",
"tas_def_description": "<tas_def_description>",
"tas_send_last_email": "<tas_send_last_email>",
"tas_def_subject_message": "<tas_def_subject_message>",
"tas_def_message_type": "<tas_def_message_type>",
"tas_def_message": "<tas_def_message>",
"tas_def_message_template": "<tas_def_message_template>"
}
}
"""
And I request "project/<project>/activity/<activity>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
Examples:
| test_description | project | activity | tas_title | tas_description | tas_priority_variable | tas_derivation_screen_tpl | tas_start | 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_send_last_email | tas_def_subject_message | tas_def_message_type | tas_def_message | tas_def_message_template |
| Update (tas_title, tas_description), tas_assign_type=BALANCED, tas_selfservice_timeout=1, tas_selfservice_time_unit=DAYS | 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095806311 | update activity task1 | update description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 2 | | ADHOC | Case Title | Case Description | FALSE | Titulo de Notificacion 1| template | Esta es una Notificacion | template.html |
| | 251815090529619a99a2bf4013294414 | 95655319552a5c790b69a04054667879 | update activity task2 | update description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 2 | | ADHOC | Case Title | Case Description | FALSE | Titulo de Notificacion 1| template | Esta es una Notificacion | template.html |
| | 251815090529619a99a2bf4013294414 | 63843886052a5cc066e4c04056414372 | update activity task3 | update description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 2 | | ADHOC | Case Title | Case Description | FALSE | Titulo de Notificacion 1| template | Esta es una Notificacion | template.html |
@5: TEST FOR GET ACTIVITY /-----------------------------------------------------------------------
Scenario Outline: Get a activity
Given I request "project/<project>/activity/<activity>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "tas_title" is set to "<tas_title>"
Examples:
| project | activity | tas_title |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095806311 | Task Edit |
@6: TEST FOR GET PROPERTIES & DEFINITION OF A ACTIVITY /-----------------------------------------------------------------------
Scenario Outline: Get an activity
Given I request "project/<project>/activity/<activity>"
Then the response status code should be <error_code>
And the response charset is "UTF-8"
And the type is "object"
Examples:
| project | activity | tas_title | error_code |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095845000 | Task 1 | 400 |
| 251815090529619a99a2bf4013294414 | | Task 1 | 404 |
| | 97192372152a5c78f04a794095806311 | Task 1 | 400 |
@7: TEST FOR GET PROPERTIES ACTIVITY /---------------------------------------------------------
Scenario Outline: Get properties of activity
Given I request "project/<project>/activity/<activity>?filter=properties"
Then the response status code should be <error_code>
And the response charset is "UTF-8"
And the type is "object"
Examples:
| project | activity | error_code |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095801000 | 400 |
| 251815090529619a99a2bf4013294414 | | 404 |
| | 97192372152a5c78f04a794095806311 | 400 |
@8: TEST FOR GET DEFINITION ACTIVITY /---------------------------------------------------------
Scenario Outline: Get definition of activity
Given I request "project/<project>/activity/<activity>?filter=definition"
Then the response status code should be <error_code>
And the response charset is "UTF-8"
And the type is "object"
Examples:
| project | activity | error_code |
| 251815090529619a99a2bf4013294414 | 97192372152a5c78f04a794095200000 | 400 |
| 251815090529619a99a2bf4013294414 | | 404 |
| | 97192372152a5c78f04a794095806311 | 400 |

View File

@@ -1,126 +0,0 @@
@ProcessMakerMichelangelo @RestAPI @assignee
Feature: Project Properties -Adhoc Assignee Resources
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/<project>/activity/<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> records
And the "ada_uid" property in row 0 equals "<ada_uid>"
And the "ada_type" property in row 0 equals "<ada_type>"
Examples:
| 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 | 84 | 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/<project>/activity/<activity>/adhoc-available-assignee?filter=<filter>&start=<start>&limit=<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> records
And the "ada_uid" property in row 0 equals "<ada_uid>"
And the "ada_type" property in row 0 equals "<ada_type>"
Examples:
| test_description | project | activity | filter | start | limit | records | ada_uid | ada_type |
| Using filter get available users that match with "fin" | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | fin | 0 | 50 | 2 | 66623507552d56742865613066097298 | group |
| Using filter get 1 available user that match with "fin" | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | fin | 0 | 1 | 1 | 66623507552d56742865613066097298 | group |
Scenario Outline: Assign a adhoc user or group to an activity
Given POST this data:
"""
{
"ada_uid": "<ada_uid>",
"ada_type": "<ada_type>"
}
"""
And I request "project/<project>/activity/<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 | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 73005191052d56727901138030694610 | user |
| assign a user to the first task | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 25286582752d56713231082039265791 | user |
| assign a group to the first task | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 54731929352d56741de9d42002704749 | group |
| assign a group to the second task | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 36775342552d5674146d9c2078497230 | group |
Scenario Outline: List adhoc assignees of an activity
Given I request "project/<project>/activity/<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> records
And the "ada_uid" property in row 0 equals "<ada_uid>"
And the "ada_type" property in row 0 equals "<ada_type>"
Examples:
| test_description | project | activity | records | ada_uid | ada_type |
| Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 5 | 54731929352d56741de9d42002704749 | group |
| Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 1 | 36775342552d5674146d9c2078497230 | group |
Scenario Outline: After assignation - List adhoc assignees of an activity with filter
Given I request "project/<project>/activity/<activity>/adhoc-assignee?filter=<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 "<ada_uid>"
And the "ada_type" property in row 0 equals "<ada_type>"
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 | 1 | 36775342552d5674146d9c2078497230 | group | emp |
Scenario Outline: Get a single adhoc user or group of an activity
Given I request "project/<project>/activity/<activity>/adhoc-assignee/<ada_uid>"
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 "<ada_uid>"
And the "ada_name" property equals "<ada_name>"
And the "ada_lastname" property equals "<ada_lastname>"
And the "ada_username" property equals "<ada_username>"
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/<project>/activity/<activity>/adhoc-assignee/<ada_uid>"
Then the response status code should be 200
Examples:
| test_description | project | activity | ada_uid |
| Remove a user from activity | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 73005191052d56727901138030694610 |
| Remove a user from activity | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 25286582752d56713231082039265791 |
| Remove a user from activity | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 54731929352d56741de9d42002704749 |
| Remove a user from activity | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 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 2 records

View File

@@ -1,126 +0,0 @@
@ProcessMakerMichelangelo @RestAPI @assignee
Feature: Project Properties -Adhoc Assignee Resources
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/<project>/activity/<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> records
And the "ada_uid" property in row 0 equals "<ada_uid>"
And the "ada_type" property in row 0 equals "<ada_type>"
Examples:
| 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 | 84 | 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/<project>/activity/<activity>/adhoc-available-assignee?filter=<filter>&start=<start>&limit=<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> records
And the "ada_uid" property in row 0 equals "<ada_uid>"
And the "ada_type" property in row 0 equals "<ada_type>"
Examples:
| test_description | project | activity | filter | start | limit | records | ada_uid | ada_type |
| Using filter get available users that match with "fin" | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | fin | 0 | 50 | 2 | 66623507552d56742865613066097298 | group |
| Using filter get 1 available user that match with "fin" | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | fin | 0 | 1 | 1 | 66623507552d56742865613066097298 | group |
Scenario Outline: Assign a adhoc user or group to an activity
Given POST this data:
"""
{
"ada_uid": "<ada_uid>",
"ada_type": "<ada_type>"
}
"""
And I request "project/<project>/activity/<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 | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 73005191052d56727901138030694610 | user |
| assign a user to the first task | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 25286582752d56713231082039265791 | user |
| assign a group to the first task | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 54731929352d56741de9d42002704749 | group |
| assign a group to the second task | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 36775342552d5674146d9c2078497230 | group |
Scenario Outline: List adhoc assignees of an activity
Given I request "project/<project>/activity/<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> records
And the "ada_uid" property in row 0 equals "<ada_uid>"
And the "ada_type" property in row 0 equals "<ada_type>"
Examples:
| test_description | project | activity | records | ada_uid | ada_type |
| Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 5 | 54731929352d56741de9d42002704749 | group |
| Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 1 | 36775342552d5674146d9c2078497230 | group |
Scenario Outline: After assignation - List adhoc assignees of an activity with filter
Given I request "project/<project>/activity/<activity>/adhoc-assignee?filter=<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 "<ada_uid>"
And the "ada_type" property in row 0 equals "<ada_type>"
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 | 1 | 36775342552d5674146d9c2078497230 | group | emp |
Scenario Outline: Get a single adhoc user or group of an activity
Given I request "project/<project>/activity/<activity>/adhoc-assignee/<ada_uid>"
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 "<ada_uid>"
And the "ada_name" property equals "<ada_name>"
And the "ada_lastname" property equals "<ada_lastname>"
And the "ada_username" property equals "<ada_username>"
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/<project>/activity/<activity>/adhoc-assignee/<ada_uid>"
Then the response status code should be 200
Examples:
| test_description | project | activity | ada_uid |
| Remove a user from activity | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 73005191052d56727901138030694610 |
| Remove a user from activity | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 25286582752d56713231082039265791 |
| Remove a user from activity | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 54731929352d56741de9d42002704749 |
| Remove a user from activity | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 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 2 records

Some files were not shown because too many files have changed in this diff Show More