Adicion de nuevos escenarios para pruebas con .pmx, en los features case tracker, database connections, dynaform, events, file manager y input document

This commit is contained in:
Wendy Nestor
2014-09-08 16:38:17 -04:00
parent 82511065c3
commit 08cf33b765
6 changed files with 482 additions and 243 deletions

View File

@@ -3,17 +3,26 @@ Feature: Case Tracker Main Tests
Requirements: Requirements:
a workspace with the process 50259961452d82bf57f4f62051572528 ("Sample Project #4 (Case Tracker)") already loaded a workspace with the process 50259961452d82bf57f4f62051572528 ("Sample Project #4 (Case Tracker)") already loaded
there are one Output Documents in the process and one Input Document there are one Output Documents in the process and one Input Document
and workspace with the process 1455892245368ebeb11c1a5001393784 - "Process Complete BPMN" already loaded" already loaded
Background: Background:
Given that I have a valid access_token Given that I have a valid access_token
Scenario Outline: Get Case Tracker data of a Project
Scenario: Get Case Tracker data of a Project And I request "project/<project>/case-tracker/property"
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/property"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
And the "map_type" property equals "<map_type>"
And the "routing_history" property equals "<routing_history>"
And the "message_history" property equals "<message_history>"
Examples:
| test_description | project | map_type | routing_history | message_history |
| Get of process Sample Project #4 (Case Tracker) | 50259961452d82bf57f4f62051572528 | PROCESSMAP | 1 | 1 |
| Get of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | PROCESSMAP | 1 | 1 |
Scenario Outline: Update Case Tracker data of a Project and then check if the values has changed Scenario Outline: Update Case Tracker data of a Project and then check if the values has changed
@@ -25,7 +34,7 @@ Feature: Case Tracker Main Tests
"message_history": <message_history> "message_history": <message_history>
} }
""" """
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/property" And I request "project/<project>/case-tracker/property"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -33,30 +42,45 @@ Feature: Case Tracker Main Tests
Examples: Examples:
| test_description | map_type | routing_history | message_history | | test_description | project | map_type | routing_history | message_history |
| Update map_type = STAGE, Routing=true, message=true | STAGES | 1 | 1 | | Update map_type = STAGE, Routing=true, message=true .pm | 50259961452d82bf57f4f62051572528 | STAGES | 1 | 1 |
| Update map_type = STAGE, Routing=false, message=false | STAGES | 0 | 0 | | Update map_type = STAGE, Routing=false, message=false .pm | 50259961452d82bf57f4f62051572528 | STAGES | 0 | 0 |
| Update map_type = STAGE, Routing=true, message=false | STAGES | 1 | 0 | | Update map_type = STAGE, Routing=true, message=false .pm | 50259961452d82bf57f4f62051572528 | STAGES | 1 | 0 |
| Update map_type = STAGE, Routing=false, message=true | STAGES | 0 | 1 | | Update map_type = STAGE, Routing=false, message=true .pm | 50259961452d82bf57f4f62051572528 | STAGES | 0 | 1 |
| Update map_type = NONE, Routing=yes, message=true | STAGES | 1 | 1 | | Update map_type = NONE, Routing=yes, message=true .pm | 50259961452d82bf57f4f62051572528 | STAGES | 1 | 1 |
| Update map_type = PROCESS MAP, Routing=false, message=true | PROCESSMAP | 0 | 1 | | Update map_type = PROCESS MAP, Routing=false, message=true .pm | 50259961452d82bf57f4f62051572528 | PROCESSMAP | 0 | 1 |
| Update map_type = PROCESS MAP, Routing=false, message=false | PROCESSMAP | 0 | 0 | | Update map_type = PROCESS MAP, Routing=false, message=false .pm | 50259961452d82bf57f4f62051572528 | PROCESSMAP | 0 | 0 |
| Update map_type = PROCESS MAP, Routing=true, message=false | PROCESSMAP | 1 | 0 | | Update map_type = PROCESS MAP, Routing=true, message=false .pm | 50259961452d82bf57f4f62051572528 | PROCESSMAP | 1 | 0 |
| Update map_type = PROCESS MAP, Routing=true, message=true | PROCESSMAP | 1 | 1 | | Update map_type = PROCESS MAP, Routing=true, message=true .pm | 50259961452d82bf57f4f62051572528 | PROCESSMAP | 1 | 1 |
| Update map_type = STAGE, Routing=true, message=true .pmx | 1455892245368ebeb11c1a5001393784 | STAGES | 1 | 1 |
| Update map_type = STAGE, Routing=false, message=false .pmx | 1455892245368ebeb11c1a5001393784 | STAGES | 0 | 0 |
| Update map_type = STAGE, Routing=true, message=false .pmx | 1455892245368ebeb11c1a5001393784 | STAGES | 1 | 0 |
| Update map_type = STAGE, Routing=false, message=true .pmx | 1455892245368ebeb11c1a5001393784 | STAGES | 0 | 1 |
| Update map_type = NONE, Routing=yes, message=true .pmx | 1455892245368ebeb11c1a5001393784 | STAGES | 1 | 1 |
| Update map_type = PROCESS MAP, Routing=false, message=true .pmx | 1455892245368ebeb11c1a5001393784 | PROCESSMAP | 0 | 1 |
| Update map_type = PROCESS MAP, Routing=false, message=false .pmx | 1455892245368ebeb11c1a5001393784 | PROCESSMAP | 0 | 0 |
| Update map_type = PROCESS MAP, Routing=true, message=false .pmx | 1455892245368ebeb11c1a5001393784 | PROCESSMAP | 1 | 0 |
| Update map_type = PROCESS MAP, Routing=true, message=true .pmx | 1455892245368ebeb11c1a5001393784 | PROCESSMAP | 1 | 1 |
Scenario: Get Case Tracker data of a Project Scenario Outline: Get Case Tracker data of a Project
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/property" And I request "project/<project>/case-tracker/property"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
And that "map_type" is set to "PROCESSMAP" And that "map_type" is set to "<map_type>"
And that "routing_history" is set to "true" And that "routing_history" is set to "<routing_history>"
And that "message_history" is set to "true" And that "message_history" is set to "<message_history>"
Examples:
| test_description | project | map_type | routing_history | message_history |
| Get of process Sample Project #4 (Case Tracker) | 50259961452d82bf57f4f62051572528 | PROCESSMAP | true | true |
| Get of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | PROCESSMAP | true | true |
Scenario: Get the Case Trackers Objects of a Project when there are exactly zero objects Scenario: Get the Case Trackers Objects of a Project when there are exactly zero objects in the process .pm
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/objects" And I request "project/50259961452d82bf57f4f62051572528/case-tracker/objects"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
@@ -65,13 +89,28 @@ Feature: Case Tracker Main Tests
And the json data is an empty array And the json data is an empty array
Scenario: Get list available Case Tracker Objects of a Project when there are exactly 3 objects (one dynaform, one input document and 1 output document) Scenario: Get the Case Trackers Objects of a Project when there are exactly one objects in the process .pmx
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/available-objects" And I request "project/1455892245368ebeb11c1a5001393784/case-tracker/objects"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "array" And the type is "array"
And the response has 3 records And the response has 1 record
Scenario Outline: Get list available Case Tracker Objects of a Project
And I request "project/<project>/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 response has <records> records
Examples:
| test_description | project | records |
| Available objects of a project .pm | 50259961452d82bf57f4f62051572528 | 3 |
| Available objects of a project .pmx | 1455892245368ebeb11c1a5001393784 | 19 |
Scenario Outline: Assigning objects to process case tracker Scenario Outline: Assigning objects to process case tracker
@@ -84,7 +123,7 @@ Feature: Case Tracker Main Tests
"cto_position": <cto_position> "cto_position": <cto_position>
} }
""" """
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/object" And I request "project/<project>/case-tracker/object"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 201 Then the response status code should be 201
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -93,20 +132,28 @@ Feature: Case Tracker Main Tests
Examples: Examples:
| test_description | i | cto_type_obj | cto_uid_obj | cto_condition | cto_position | | test_description | i | project | cto_type_obj | cto_uid_obj | cto_condition | cto_position |
| Assign dynaform | 1 | DYNAFORM | 14761752652d82c592fc180020076851 | | 1 | | Assign dynaform of a project .pm | 1 | 50259961452d82bf57f4f62051572528 | DYNAFORM | 14761752652d82c592fc180020076851 | | 1 |
| Assign Input Document | 2 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | | 2 | | Assign Input Document of a project .pm | 2 | 50259961452d82bf57f4f62051572528 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | | 2 |
| Assign Output Document | 3 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | | 3 | | Assign Output Document of a project .pm | 3 | 50259961452d82bf57f4f62051572528 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | | 3 |
| Assign dynaform of a project .pmx | 4 | 1455892245368ebeb11c1a5001393784 | DYNAFORM | 216663520536be3024555e8038205940 | | 2 |
| Assign Input Document of a project .pmx | 5 | 1455892245368ebeb11c1a5001393784 | INPUT_DOCUMENT | 880391746536be961e594e7014524130 | | 3 |
| Assign Output Document of a project .pmx | 6 | 1455892245368ebeb11c1a5001393784 | OUTPUT_DOCUMENT | 218529141536be955f0b646092366402 | | 4 |
Scenario: Get list available Case Tracker Objects of a Project when there are exactly 0 objects Scenario Outline: Get list available Case Tracker Objects of a Project when there are exactly 0 objects
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/available-objects" And I request "project/<project>/case-tracker/available-objects"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "array" And the type is "array"
And the response has 0 records And the response has <records> records
Examples:
| test_description | project | records |
| Available objects of a project .pm | 50259961452d82bf57f4f62051572528 | 0 |
| Available objects of a project .pmx | 1455892245368ebeb11c1a5001393784 | 16 |
Scenario Outline: Update a Case Tracker object of a Project and then check if the values has changed Scenario Outline: Update a Case Tracker object of a Project and then check if the values has changed
@@ -117,7 +164,7 @@ Feature: Case Tracker Main Tests
} }
""" """
And that I want to update a resource with the key "cto_uid" stored in session array as variable "cto_uid<i>" 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 I request "project/<project>/case-tracker/object"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -125,15 +172,18 @@ Feature: Case Tracker Main Tests
Examples: Examples:
| test_description | i | cto_condition | | test_description | i | project | cto_condition |
| Update dynaform, field cto_condition | 1 | @@YEAR == 2011 | | Update dynaform, field cto_condition .pm | 1 | 50259961452d82bf57f4f62051572528 | @@YEAR == 2011 |
| Update input document, field cto_condition | 2 | @@YEAR == 2012 | | Update input document, field cto_condition .pm | 2 | 50259961452d82bf57f4f62051572528 | @@YEAR == 2012 |
| Update output document, field cto_condition | 3 | @@YEAR == 2013 | | Update output document, field cto_condition .pm | 3 | 50259961452d82bf57f4f62051572528 | @@YEAR == 2013 |
| Update dynaform, field cto_condition .pmx | 4 | 1455892245368ebeb11c1a5001393784 | @@YEAR == 2011 |
| Update input document, field cto_condition .pmx | 5 | 1455892245368ebeb11c1a5001393784 | @@YEAR == 2012 |
| Update output document, field cto_condition .pmx | 6 | 1455892245368ebeb11c1a5001393784 | @@YEAR == 2013 |
Scenario Outline: Get a single Case Tracker Object of a Project to verify the update Scenario Outline: Get a single Case Tracker Object of a Project to verify the update
Given that I want to get a resource with the key "cto_uid" stored in session array as variable "cto_uid<i>" 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 I request "project/<project>/case-tracker/object"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -146,20 +196,28 @@ Feature: Case Tracker Main Tests
And that "obj_description" is set to "<obj_description>" And that "obj_description" is set to "<obj_description>"
Examples: Examples:
| i | cto_type_obj | cto_uid_obj | cto_condition | cto_position | obj_title | obj_description | | test_description | i | project | cto_type_obj | cto_uid_obj | cto_condition | cto_position | obj_title | obj_description |
| 1 | DYNAFORM | 14761752652d82c592fc180020076851 | @@YEAR == 2011 | 1 | DynaForm Demo | Description | | Get after update of process .pm | 1 | 50259961452d82bf57f4f62051572528 | DYNAFORM | 14761752652d82c592fc180020076851 | @@YEAR == 2011 | 1 | DynaForm Demo | Description |
| 2 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | @@YEAR == 2012 | 2 | InputDocument Demo | Description | | Get after update of process .pm | 2 | 50259961452d82bf57f4f62051572528 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | @@YEAR == 2012 | 2 | InputDocument Demo | Description |
| 3 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | @@YEAR == 2013 | 3 | OutputDocument Demo | Description | | Get after update of process .pm | 3 | 50259961452d82bf57f4f62051572528 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | @@YEAR == 2013 | 3 | OutputDocument Demo | Description |
| Get after update of process .pmx | 4 | 1455892245368ebeb11c1a5001393784 | DYNAFORM | 216663520536be3024555e8038205940 | @@YEAR == 2011 | 2 | DynaForm Demo | Description |
| Get after update of process .pmx | 5 | 1455892245368ebeb11c1a5001393784 | INPUT_DOCUMENT | 880391746536be961e594e7014524130 | @@YEAR == 2012 | 3 | InputDocument Demo | Description |
| Get after update of process .pmx | 6 | 1455892245368ebeb11c1a5001393784 | OUTPUT_DOCUMENT | 218529141536be955f0b646092366402 | @@YEAR == 2013 | 4 | OutputDocument Demo | Description |
Scenario: Get the Case Trackers Objects of a Project when there are exactly three objects Scenario Outline: Get the Case Trackers Objects of a Project when there are exactly three objects
And I request "project/50259961452d82bf57f4f62051572528/case-tracker/objects" And I request "project/<project>/case-tracker/objects"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "array" And the type is "array"
And the response has 3 records And the response has <records> records
Examples:
| test_description | project | records |
| Available objects of a project .pm | 50259961452d82bf57f4f62051572528 | 3 |
| Available objects of a project .pmx | 1455892245368ebeb11c1a5001393784 | 4 |
Scenario Outline: Delete all Case Tracker Objects of a Project created previously in this script Scenario Outline: Delete all Case Tracker Objects of a Project created previously in this script
@@ -175,4 +233,6 @@ Feature: Case Tracker Main Tests
| 1 | | 1 |
| 2 | | 2 |
| 3 | | 3 |
| 4 |
| 5 |
| 6 |

View File

@@ -36,7 +36,7 @@ Feature: DataBase Connections Main Tests MySQL
} }
""" """
And I request "project/<project>/database-connection/test" And I request "project/<project>/database-connection/test"
Then if database-connection is active continue Then if database-connection with id "<dbs_uid_number>" is active
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -49,7 +49,8 @@ Feature: DataBase Connections Main Tests MySQL
Scenario Outline: Create a new database connection Scenario Outline: Create a new database connection
Given POST this data: Given database-connection with id "<dbs_uid_number>" is active
And POST this data:
""" """
{ {
"dbs_type": "<dbs_type>", "dbs_type": "<dbs_type>",
@@ -77,21 +78,23 @@ Feature: DataBase Connections Main Tests MySQL
Scenario Outline: Get the DataBase Connections List when there are exactly one DataBase Connections in each process Scenario Outline: Get the DataBase Connections List when there are exactly one DataBase Connections in each process
Given I request "project/<project>/database-connections" Given database-connection with id "<dbs_uid_number>" is active
And I request "project/<project>/database-connections"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the response has <record> record And the response has <record> record
Examples: Examples:
| test_description | project | record | | test_description | project | record | dbs_uid_number |
| List DB in the process Data Base Connenctions .pm | 74737540052e1641ab88249082085472 | 1 | | List DB in the process Data Base Connenctions .pm | 74737540052e1641ab88249082085472 | 1 | 1 |
| List DB in the process testExecutionOfDerivationScreen .pmx | 87648819953a85c0abc01d3080475981 | 1 | | List DB in the process testExecutionOfDerivationScreen .pmx | 87648819953a85c0abc01d3080475981 | 1 | 2 |
Scenario Outline: Update a database connection Scenario Outline: Update a database connection
Given PUT this data: Given database-connection with id "<dbs_uid_number>" is active
And PUT this data:
""" """
{ {
"dbs_type": "<dbs_type>", "dbs_type": "<dbs_type>",
@@ -118,7 +121,8 @@ Feature: DataBase Connections Main Tests MySQL
Scenario Outline: Get a single database connection and check some properties Scenario Outline: Get a single database connection and check some properties
Given that I want to get a resource with the key "dbs_uid" stored in session array as variable "dbs_uid_<dbs_uid_number>" Given database-connection with id "<dbs_uid_number>" is active
And that I want to get a resource with the key "dbs_uid" stored in session array as variable "dbs_uid_<dbs_uid_number>"
And I request "project/<project>/database-connection" And I request "project/<project>/database-connection"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -140,7 +144,8 @@ Feature: DataBase Connections Main Tests MySQL
Scenario Outline: Delete all Database Connection created previously in this script Scenario Outline: Delete all Database Connection created previously in this script
Given that I want to delete a resource with the key "dbs_uid" stored in session array as variable "dbs_uid_<dbs_uid_number>" Given database-connection with id "<dbs_uid_number>" is active
And that I want to delete a resource with the key "dbs_uid" stored in session array as variable "dbs_uid_<dbs_uid_number>"
And I request "project/<project>/database-connection" And I request "project/<project>/database-connection"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -154,13 +159,14 @@ Feature: DataBase Connections Main Tests MySQL
Scenario Outline: Get the DataBase Connections List when there are exactly zero DataBase Connections Scenario Outline: Get the DataBase Connections List when there are exactly zero DataBase Connections
Given I request "project/<project>/database-connections" Given database-connection with id "<dbs_uid_number>" is active
And I request "project/<project>/database-connections"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the response has <record> record And the response has <record> record
Examples: Examples:
| test_description | project | record | | test_description | project | record | dbs_uid_number |
| List DB in the process Data Base Connenctions .pm | 74737540052e1641ab88249082085472 | 0 | | List DB in the process Data Base Connenctions .pm | 74737540052e1641ab88249082085472 | 0 | 1 |
| List DB in the process testExecutionOfDerivationScreen .pmx | 87648819953a85c0abc01d3080475981 | 0 | | List DB in the process testExecutionOfDerivationScreen .pmx | 87648819953a85c0abc01d3080475981 | 0 | 2 |

View File

@@ -5,8 +5,9 @@ Feature: Dynaform Main Tests
there are three activities in the process there are three activities in the process
and a workspace with the process 42445320652cd534acb3824056962285 ("Sample Project #2 (DynaForms Resources)") already loaded, this process will be used for the import of Dynaform and a workspace with the process 42445320652cd534acb3824056962285 ("Sample Project #2 (DynaForms Resources)") already loaded, this process will be used for the import of Dynaform
there are one dynaform in the process there are one dynaform in the process
and workspace with the process 1455892245368ebeb11c1a5001393784 - "Process Complete BPMN" already loaded" already loaded
Background: Background:
Given that I have a valid access_token Given that I have a valid access_token
@@ -18,11 +19,12 @@ Feature: Dynaform Main Tests
And the type is "array" And the type is "array"
And the response has <records> records And the response has <records> records
Examples: Examples:
| project | records | | Description | project | records |
| 14414793652a5d718b65590036026581 | 0 | | Get for the amount dynaform of process Sample Project #1 | 14414793652a5d718b65590036026581 | 0 |
| 42445320652cd534acb3824056962285 | 1 | | Get for the amount dynaform of process Sample Project #2 | 42445320652cd534acb3824056962285 | 1 |
| Get for the amount dynaform of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 26 |
Scenario Outline: Normal Dynaform creation Scenario Outline: Normal Dynaform creation
@@ -45,15 +47,16 @@ Feature: Dynaform Main Tests
And store "dyn_uid" in session array as variable "dyn_uid_<dyn_uid_number>" And store "dyn_uid" in session array as variable "dyn_uid_<dyn_uid_number>"
Examples: Examples:
| test_description | project | dyn_title | dyn_description | dyn_type | dyn_content | dyn_uid_number | | test_description | project | dyn_title | dyn_description | dyn_type | dyn_content | dyn_uid_number |
| create dynaform xmlform P1 | 14414793652a5d718b65590036026581 | Dynaform - Normal | dyn normal P1 | xmlform | sample content 1 | 1 | | Create dynaform xmlform P1 of process Sample Project #1 | 14414793652a5d718b65590036026581 | Dynaform - Normal | dyn normal P1 | xmlform | sample content 1 | 1 |
| create dynaform grid P1 | 14414793652a5d718b65590036026581 | Dynaform - Grid | dyn grid P1 | grid | sample content 2 | 2 | | Create dynaform grid P1 of process Sample Project #1 | 14414793652a5d718b65590036026581 | Dynaform - Grid | dyn grid P1 | grid | sample content 2 | 2 |
| create dynaform xmlform P2 | 42445320652cd534acb3824056962285 | Dynaform - Normal | dyn normal P2 | xmlform | | 3 | | Create dynaform xmlform P2 of process Sample Project #2 | 42445320652cd534acb3824056962285 | Dynaform - Normal | dyn normal P2 | xmlform | | 3 |
| create dynaform grid P2 | 42445320652cd534acb3824056962285 | Dynaform - Grid | dyn grid P2 | grid | sample content 4 | 4 | | Create dynaform grid P2 of process Sample Project #2 | 42445320652cd534acb3824056962285 | Dynaform - Grid | dyn grid P2 | grid | sample content 4 | 4 |
| Create dynaform xmlform P1 of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | Dynaform - Normal | dyn normal P1 | xmlform | sample content 1 | 9 |
| Create dynaform grid P1 of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | Dynaform - Grid | dyn grid P1 | grid | sample content 2 | 10 |
Scenario Outline: Get a single dynaform and check some properties
Scenario Outline: Get a single dynaform and check some properties
Given that I want to get a resource with the key "dyn_uid" stored in session array as variable "dyn_uid_<dyn_uid_number>" Given that I want to get a resource with the key "dyn_uid" stored in session array as variable "dyn_uid_<dyn_uid_number>"
And I request "project/<project>/dynaform" And I request "project/<project>/dynaform"
And the content type is "application/json" And the content type is "application/json"
@@ -67,12 +70,13 @@ Feature: Dynaform Main Tests
And that "dyn_version" is set to 1 And that "dyn_version" is set to 1
Examples: Examples:
| test_description | project | dyn_title | dyn_description | dyn_type | dyn_content | dyn_uid_number | | test_description | project | dyn_title | dyn_description | dyn_type | dyn_content | dyn_uid_number |
| create dynaform xmlform P1 | 14414793652a5d718b65590036026581 | Dynaform - Normal | dyn normal P1 | xmlform | sample content 1 | 1 | | Create dynaform xmlform P1 of process Sample Project #1 | 14414793652a5d718b65590036026581 | Dynaform - Normal | dyn normal P1 | xmlform | sample content 1 | 1 |
| create dynaform grid P1 | 14414793652a5d718b65590036026581 | Dynaform - Grid | dyn grid P1 | grid | sample content 2 | 2 | | Create dynaform grid P1 of process Sample Project #1 | 14414793652a5d718b65590036026581 | Dynaform - Grid | dyn grid P1 | grid | sample content 2 | 2 |
| create dynaform xmlform P2 | 42445320652cd534acb3824056962285 | Dynaform - Normal | dyn normal P2 | xmlform | | 3 | | Create dynaform xmlform P2 of process Sample Project #2 | 42445320652cd534acb3824056962285 | Dynaform - Normal | dyn normal P2 | xmlform | | 3 |
| create dynaform grid P2 | 42445320652cd534acb3824056962285 | Dynaform - Grid | dyn grid P2 | grid | sample content 4 | 4 | | Create dynaform grid P2 of process Sample Project #2 | 42445320652cd534acb3824056962285 | Dynaform - Grid | dyn grid P2 | grid | sample content 4 | 4 |
| Create dynaform xmlform P1 of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | Dynaform - Normal | dyn normal P1 | xmlform | sample content 1 | 9 |
| Create dynaform grid P1 of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | Dynaform - Grid | dyn grid P1 | grid | sample content 2 | 10 |
Scenario: Create dynaform with same name Scenario: Create dynaform with same name
@@ -114,10 +118,10 @@ Feature: Dynaform Main Tests
Examples: Examples:
| test_description | project | dyn_title | dyn_description | dyn_type | dyn_uid_number | copy_prj_uid | copy_dyn_uid | | test_description | project | dyn_title | dyn_description | dyn_type | dyn_uid_number | copy_prj_uid | copy_dyn_uid |
| create dynaform copy 1 | 14414793652a5d718b65590036026581 | Dynaform - Copy 1 | dyn copy | xmlform | 5 | 42445320652cd534acb3824056962285 | 70070685552cd53605650f7062918506 | | create dynaform copy 1 of process Sample Project #1 | 14414793652a5d718b65590036026581 | Dynaform - Copy 1 | dyn copy | xmlform | 5 | 42445320652cd534acb3824056962285 | 70070685552cd53605650f7062918506 |
| create dynaform copy 2 | 42445320652cd534acb3824056962285 | Dynaform - Copy 2 | dyn copy | xmlform | 6 | 42445320652cd534acb3824056962285 | 70070685552cd53605650f7062918506 | | create dynaform copy 2 of process Sample Project #2 | 42445320652cd534acb3824056962285 | Dynaform - Copy 2 | dyn copy | xmlform | 6 | 42445320652cd534acb3824056962285 | 70070685552cd53605650f7062918506 |
| create dynaform copy 1 of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | Dynaform - Copy 1 | dyn copy | xmlform | 11 | 42445320652cd534acb3824056962285 | 70070685552cd53605650f7062918506 |
Scenario: Create a Dynaform using the Copy/Import with same name Scenario: Create a Dynaform using the Copy/Import with same name
@@ -167,9 +171,10 @@ Feature: Dynaform Main Tests
Examples: Examples:
| test_description | project | dyn_title | dyn_description | dyn_type | dyn_uid_number | tab_uid | fld_name_01 | pro_variable_01 | | test_description | project | dyn_title | dyn_description | dyn_type | dyn_uid_number | tab_uid | fld_name_01 | pro_variable_01 |
| create dynaform pmtable 1 | 14414793652a5d718b65590036026581 | Dynaform - pmtable 1 | dyn from pmtable1 | xmlform | 7 | 65193158852cc1a93a5a535084878044 | DYN_UID | @#APPLICATION | | create dynaform pmtable 1 of process Sample Project #1 | 14414793652a5d718b65590036026581 | Dynaform - pmtable 1 | dyn from pmtable1 | xmlform | 7 | 65193158852cc1a93a5a535084878044 | DYN_UID | @#APPLICATION |
| create dynaform pmtable 2 | 42445320652cd534acb3824056962285 | Dynaform - pmtable2 | dyn from pmtable2 | xmlform | 8 | 65193158852cc1a93a5a535084878044 | DYN_UID | @#APPLICATION | | create dynaform pmtable 2 of process Sample Project #2 | 42445320652cd534acb3824056962285 | Dynaform - pmtable2 | dyn from pmtable2 | xmlform | 8 | 65193158852cc1a93a5a535084878044 | DYN_UID | @#APPLICATION |
| create dynaform pmtable 1 of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | Dynaform - pmtable 1 | dyn from pmtable1 | xmlform | 12 | 65193158852cc1a93a5a535084878044 | DYN_UID | @#APPLICATION |
Scenario: Create dynaform based on a PMTable with same name Scenario: Create dynaform based on a PMTable with same name
@@ -232,13 +237,13 @@ Feature: Dynaform Main Tests
And the type is "object" And the type is "object"
Examples: Examples:
| test_description | project | dyn_title | dyn_description | dyn_type | dyn_content | dyn_uid_number | | test_description | project | dyn_title | dyn_description | dyn_type | dyn_content | dyn_uid_number |
| Update dynaform xmlform P1 | 14414793652a5d718b65590036026581 | My DynaForm1 Modified | My DynaForm1 DESCRIPTION Modified | grid | update sample content 1 | 1 | | Update dynaform xmlform P1 | 14414793652a5d718b65590036026581 | My DynaForm1 Modified | My DynaForm1 DESCRIPTION Modified | grid | update sample content 1 | 1 |
| Update dynaform grid P1 | 14414793652a5d718b65590036026581 | Dynaform - Grid Modified | dyn grid P1 DESCRIPTION Modified | xmlform | update sample content 2 | 2 | | Update dynaform grid P1 | 14414793652a5d718b65590036026581 | Dynaform - Grid Modified | dyn grid P1 DESCRIPTION Modified | xmlform | update sample content 2 | 2 |
| Update dynaform xmlform P2 | 42445320652cd534acb3824056962285 | Dynaform - Normal Modified | dyn normal P2 DESCRIPTION Modified | grid | sample | 3 | | Update dynaform xmlform P2 | 42445320652cd534acb3824056962285 | Dynaform - Normal Modified | dyn normal P2 DESCRIPTION Modified | grid | sample | 3 |
| Update dynaform grid P2 | 42445320652cd534acb3824056962285 | Dynaform - Grid Modified | dyn grid P2 DESCRIPTION Modified | xmlform | sample content 4 | 4 | | Update dynaform grid P2 | 42445320652cd534acb3824056962285 | Dynaform - Grid Modified | dyn grid P2 DESCRIPTION Modified | xmlform | sample content 4 | 4 |
| Update of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | Dynaform - Normal Modified | dyn normal P1 DESCRIPTION Modified | xmlform | update sample content 1 | 9 |
Scenario Outline: Get a single dynaform and check some properties Scenario Outline: Get a single dynaform and check some properties
@@ -255,12 +260,12 @@ Feature: Dynaform Main Tests
And that "dyn_version" is set to 1 And that "dyn_version" is set to 1
Examples: Examples:
| test_description | project | dyn_title | dyn_description | dyn_type | dyn_content | dyn_uid_number | | test_description | project | dyn_title | dyn_description | dyn_type | dyn_content | dyn_uid_number |
| Update dynaform xmlform P1 | 14414793652a5d718b65590036026581 | My DynaForm1 Modified | My DynaForm1 DESCRIPTION Modified | grid | update sample content 1 | 1 | | Update dynaform xmlform P1 | 14414793652a5d718b65590036026581 | My DynaForm1 Modified | My DynaForm1 DESCRIPTION Modified | grid | update sample content 1 | 1 |
| Update dynaform grid P1 | 14414793652a5d718b65590036026581 | Dynaform - Grid Modified | dyn grid P1 DESCRIPTION Modified | xmlform | update sample content 2 | 2 | | Update dynaform grid P1 | 14414793652a5d718b65590036026581 | Dynaform - Grid Modified | dyn grid P1 DESCRIPTION Modified | xmlform | update sample content 2 | 2 |
| Update dynaform xmlform P2 | 42445320652cd534acb3824056962285 | Dynaform - Normal Modified | dyn normal P2 DESCRIPTION Modified | grid | sample | 3 | | Update dynaform xmlform P2 | 42445320652cd534acb3824056962285 | Dynaform - Normal Modified | dyn normal P2 DESCRIPTION Modified | grid | sample | 3 |
| Update dynaform grid P2 | 42445320652cd534acb3824056962285 | Dynaform - Grid Modified | dyn grid P2 DESCRIPTION Modified | xmlform | sample content 4 | 4 | | Update dynaform grid P2 | 42445320652cd534acb3824056962285 | Dynaform - Grid Modified | dyn grid P2 DESCRIPTION Modified | xmlform | sample content 4 | 4 |
| Update of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | Dynaform - Normal Modified | dyn normal P1 DESCRIPTION Modified | xmlform | update sample content 1 | 9 |
Scenario Outline: Delete all Dynaform created previously in this script Scenario Outline: Delete all Dynaform created previously in this script
@@ -283,6 +288,10 @@ Feature: Dynaform Main Tests
| 42445320652cd534acb3824056962285 | 6 | | 42445320652cd534acb3824056962285 | 6 |
| 14414793652a5d718b65590036026581 | 7 | | 14414793652a5d718b65590036026581 | 7 |
| 42445320652cd534acb3824056962285 | 8 | | 42445320652cd534acb3824056962285 | 8 |
| 1455892245368ebeb11c1a5001393784 | 9 |
| 1455892245368ebeb11c1a5001393784 | 10 |
| 1455892245368ebeb11c1a5001393784 | 11 |
| 1455892245368ebeb11c1a5001393784 | 12 |
Scenario Outline: Get a List DynaForms of a Project Scenario Outline: Get a List DynaForms of a Project
@@ -298,3 +307,4 @@ Feature: Dynaform Main Tests
| project | records | | project | records |
| 14414793652a5d718b65590036026581 | 0 | | 14414793652a5d718b65590036026581 | 0 |
| 42445320652cd534acb3824056962285 | 1 | | 42445320652cd534acb3824056962285 | 1 |
| 1455892245368ebeb11c1a5001393784 | 26 |

View File

@@ -3,18 +3,26 @@ Feature: Events Resources Main Tests
Requirements: Requirements:
a workspace with the process 251815090529619a99a2bf4013294414 ("Test(Triggers, Activity") already loaded a workspace with the process 251815090529619a99a2bf4013294414 ("Test(Triggers, Activity") already loaded
there are zero Events in the process there are zero Events in the process
and workspace with the process 1455892245368ebeb11c1a5001393784 - "Process Complete BPMN" already loaded" already loaded
Background: Background:
Given that I have a valid access_token Given that I have a valid access_token
Scenario: Get List all the events in the process when there are exactly zero events Scenario Outline: Get List all the events in the process when there are exactly zero events
Given I request "project/251815090529619a99a2bf4013294414/events" Given I request "project/<project>/events"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the response has 0 record And the response has <record> record
Scenario Outline: Create 18 new Event of the project Examples:
| test_description | project | record |
| Get list event of the process Test(Triggers, Activity | 251815090529619a99a2bf4013294414 | 0 |
| Get list event of the process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 0 |
Scenario Outline: Create 18 new Event of the project
Given POST this data: Given POST this data:
""" """
{ {
@@ -32,7 +40,7 @@ Feature: Events Resources Main Tests
"tri_uid": "<tri_uid>" "tri_uid": "<tri_uid>"
} }
""" """
And I request "project/251815090529619a99a2bf4013294414/event" And I request "project/<project>/event"
Then the response status code should be 201 Then the response status code should be 201
And the content type is "application/json" And the content type is "application/json"
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -41,51 +49,95 @@ Feature: Events Resources Main Tests
Examples: Examples:
| test_description | evn_uid_number | evn_action | evn_description | evn_status | evn_related_to | tas_uid | evn_tas_uid_from | evn_tas_uid_to | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs | tri_uid | | test_description | evn_uid_number | project | evn_action | evn_description | evn_status | evn_related_to | tas_uid | evn_tas_uid_from | evn_tas_uid_to | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs | tri_uid |
| Create Event Message with single task, duration=days and Execution AFTER_TIME | 1 | SEND_MESSAGE | Event Message, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Message with single task, duration=days and Execution AFTER_TIME .pm | 1 | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Message with single task, duration=hours and Execution AFTER_TIME | 2 | SEND_MESSAGE | Event Message, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Message with single task, duration=hours and Execution AFTER_TIME .pm | 2 | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Message with single task, duration=days and Execution TASK_STARTED | 3 | SEND_MESSAGE | Event Message, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Create Event Message with single task, duration=days and Execution TASK_STARTED .pm | 3 | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| Create Event Message with multiple task, duration=days and Execution AFTER_TIME | 4 | SEND_MESSAGE | Event Message, Multiple 4 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Message with multiple task, duration=days and Execution AFTER_TIME .pm | 4 | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Multiple 4 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Message with multiple task, duration=hours and Execution AFTER_TIME | 5 | SEND_MESSAGE | Event Message, Multiple 5 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Message with multiple task, duration=hours and Execution AFTER_TIME .pm | 5 | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Multiple 5 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Message with multiple task, duration=days and Execution TASK_STARTED | 6 | SEND_MESSAGE | Event Message, Multiple 6 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Create Event Message with multiple task, duration=days and Execution TASK_STARTED .pm | 6 | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Multiple 6 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| Create Event Conditional with single task, duration=days and Execution AFTER_TIME | 7 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Conditional with single task, duration=days and Execution AFTER_TIME .pm | 7 | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Conditional with single task, duration=hours and Execution AFTER_TIME | 8 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Conditional with single task, duration=hours and Execution AFTER_TIME .pm | 8 | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Conditional with single task, duration=days and Execution TASK_STARTED | 9 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Create Event Conditional with single task, duration=days and Execution TASK_STARTED .pm | 9 | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| Create Event Conditional with multiple task, duration=days and Execution AFTER_TIME | 10 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 4 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Conditional with multiple task, duration=days and Execution AFTER_TIME .pm | 10 | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 4 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Conditional with multiple task, duration=hours and Execution AFTER_TIME | 11 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 5 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Conditional with multiple task, duration=hours and Execution AFTER_TIME.pm | 11 | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 5 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Conditional with multiple task, duration=days and Execution TASK_STARTED | 12 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 6 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Create Event Conditional multiple task, duration=days and Execution TASK_STARTED .pm | 12 | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 6 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| Create Event Timer with single task, duration=days and Execution AFTER_TIME | 13 | EXECUTE_TRIGGER | Event Timer, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Timer with single task, duration=days and Execution AFTER_TIME .pm | 13 | 251815090529619a99a2bf4013294414 | EXECUTE_TRIGGER | Event Timer, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Timer with single task, duration=hours and Execution AFTER_TIME | 14 | EXECUTE_TRIGGER | Event Timer, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Timer with single task, duration=hours and Execution AFTER_TIME .pm | 14 | 251815090529619a99a2bf4013294414 | EXECUTE_TRIGGER | Event Timer, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Timer with single task, duration=days and Execution TASK_STARTED | 15 | EXECUTE_TRIGGER | Event Timer, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Create Event Timer with single task, duration=days and Execution TASK_STARTED .pm | 15 | 251815090529619a99a2bf4013294414 | EXECUTE_TRIGGER | Event Timer, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| Create Event Timer with multiple task, duration=days and Execution AFTER_TIME | 16 | EXECUTE_TRIGGER | Event Timer, Multiple 4 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Timer with multiple task, duration=days and Execution AFTER_TIME .pm | 16 | 251815090529619a99a2bf4013294414 | EXECUTE_TRIGGER | Event Timer, Multiple 4 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Timer with multiple task, duration=hours and Execution AFTER_TIME | 17 | EXECUTE_TRIGGER | Event Timer, Multiple 5 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | | Create Event Timer with multiple task, duration=hours and Execution AFTER_TIME .pm | 17 | 251815090529619a99a2bf4013294414 | EXECUTE_TRIGGER | Event Timer, Multiple 5 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
| Create Event Timer with multiple task, duration=days and Execution TASK_STARTED | 18 | EXECUTE_TRIGGER | Event Timer, Multiple 6 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Create Event Timer with multiple task, duration=days and Execution TASK_STARTED .pm | 18 | 251815090529619a99a2bf4013294414 | EXECUTE_TRIGGER | Event Timer, Multiple 6 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| Create Event Message with single task, duration=days and Execution AFTER_TIME .pmx | 19 | 1455892245368ebeb11c1a5001393784 | SEND_MESSAGE | Event Message, Single 1 | ACTIVE | SINGLE | 6274755055368eed1116388064384542 | | | 1 | DAYS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Message with single task, duration=hours and Execution AFTER_TIME .pmx | 20 | 1455892245368ebeb11c1a5001393784 | SEND_MESSAGE | Event Message, Single 2 | ACTIVE | SINGLE | 6274755055368eed1116388064384542 | | | 2 | HOURS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Message with single task, duration=days and Execution TASK_STARTED .pmx | 21 | 1455892245368ebeb11c1a5001393784 | SEND_MESSAGE | Event Message, Single 3 | ACTIVE | SINGLE | 6274755055368eed1116388064384542 | | | 1 | DAYS | 1 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
| Create Event Message with multiple task, duration=days and Execution AFTER_TIME .pmx | 22 | 1455892245368ebeb11c1a5001393784 | SEND_MESSAGE | Event Message, Multiple 4 | ACTIVE | MULTIPLE | | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 1 | DAYS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Message with multiple task, duration=hours and Execution AFTER_TIME .pmx | 23 | 1455892245368ebeb11c1a5001393784 | SEND_MESSAGE | Event Message, Multiple 5 | ACTIVE | MULTIPLE | | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 2 | HOURS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Message with multiple task, duration=days and Execution TASK_STARTED .pmx | 24 | 1455892245368ebeb11c1a5001393784 | SEND_MESSAGE | Event Message, Multiple 6 | ACTIVE | MULTIPLE | | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 1 | DAYS | 1 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
| Create Event Conditional with single task, duration=days and Execution AFTER_TIME .pmx | 25 | 1455892245368ebeb11c1a5001393784 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 1 | ACTIVE | SINGLE | 6274755055368eed1116388064384542 | | | 1 | DAYS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Conditional with single task, duration=hours and Execution AFTER_TIME .pmx | 26 | 1455892245368ebeb11c1a5001393784 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 2 | ACTIVE | SINGLE | 6274755055368eed1116388064384542 | | | 2 | HOURS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Conditional with single task, duration=days and Execution TASK_STARTED .pmx | 27 | 1455892245368ebeb11c1a5001393784 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 3 | ACTIVE | SINGLE | 6274755055368eed1116388064384542 | | | 1 | DAYS | 1 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
| Create Event Conditional with multiple task, duration=days and Execution AFTER_TIME .pmx | 28 | 1455892245368ebeb11c1a5001393784 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 4 | ACTIVE | MULTIPLE | | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 1 | DAYS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Conditional with multiple task, duration=hours and Execution AFTER_TIME.pmx | 29 | 1455892245368ebeb11c1a5001393784 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 5 | ACTIVE | MULTIPLE | | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 2 | HOURS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Conditional multiple task, duration=days and Execution TASK_STARTED .pmx | 30 | 1455892245368ebeb11c1a5001393784 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 6 | ACTIVE | MULTIPLE | | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 1 | DAYS | 1 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
| Create Event Timer with single task, duration=days and Execution AFTER_TIME .pmx | 31 | 1455892245368ebeb11c1a5001393784 | EXECUTE_TRIGGER | Event Timer, Single 1 | ACTIVE | SINGLE | 6274755055368eed1116388064384542 | | | 1 | DAYS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Timer with single task, duration=hours and Execution AFTER_TIME .pmx | 32 | 1455892245368ebeb11c1a5001393784 | EXECUTE_TRIGGER | Event Timer, Single 2 | ACTIVE | SINGLE | 6274755055368eed1116388064384542 | | | 2 | HOURS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Timer with single task, duration=days and Execution TASK_STARTED .pmx | 33 | 1455892245368ebeb11c1a5001393784 | EXECUTE_TRIGGER | Event Timer, Single 3 | ACTIVE | SINGLE | 6274755055368eed1116388064384542 | | | 1 | DAYS | 1 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
| Create Event Timer with multiple task, duration=days and Execution AFTER_TIME .pmx | 34 | 1455892245368ebeb11c1a5001393784 | EXECUTE_TRIGGER | Event Timer, Multiple 4 | ACTIVE | MULTIPLE | | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 1 | DAYS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Timer with multiple task, duration=hours and Execution AFTER_TIME .pmx | 35 | 1455892245368ebeb11c1a5001393784 | EXECUTE_TRIGGER | Event Timer, Multiple 5 | ACTIVE | MULTIPLE | | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 2 | HOURS | 1 | AFTER_TIME | 712197294536bea56a8b4d0014148679 |
| Create Event Timer with multiple task, duration=days and Execution TASK_STARTED .pmx | 36 | 1455892245368ebeb11c1a5001393784 | EXECUTE_TRIGGER | Event Timer, Multiple 6 | ACTIVE | MULTIPLE | | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 1 | DAYS | 1 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
Scenario: Get List all the events in the process when there are exactly zero events Scenario Outline: Get List all the events in the process
Given I request "project/251815090529619a99a2bf4013294414/events" Given I request "project/<project>/events"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the response has 18 record And the response has <records> records
Examples:
| test_description | project | records |
| Get list event of the process Test(Triggers, Activity | 251815090529619a99a2bf4013294414 | 18 |
| Get list event of the process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 18 |
Scenario: Get List all the events in the events Messages when there are exactly six events Scenario Outline: Get List all the events in the events Messages when there are exactly six events
Given I request "project/251815090529619a99a2bf4013294414/events?filter=message" Given I request "project/<project>/events?filter=message"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the response has 6 records And the response has <records> records
Scenario: Get List all the events in the events Messages when there are exactly six events Examples:
Given I request "project/251815090529619a99a2bf4013294414/events?filter=conditional"
| test_description | project | records |
| Get list event of the process Test(Triggers, Activity | 251815090529619a99a2bf4013294414 | 6 |
| Get list event of the process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6 |
Scenario Outline: Get List all the events in the events Messages when there are exactly six events
Given I request "project/<project>/events?filter=conditional"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the response has 6 records And the response has <records> records
Scenario: Get List all the events in the events Messages when there are exactly six events Examples:
Given I request "project/251815090529619a99a2bf4013294414/events?filter=multiple"
| test_description | project | records |
| Get list event of the process Test(Triggers, Activity | 251815090529619a99a2bf4013294414 | 6 |
| Get list event of the process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6 |
Scenario Outline: Get List all the events in the events Messages when there are exactly six events
Given I request "project/<project>/events?filter=multiple"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the response has 6 records And the response has <records> records
Examples:
| test_description | project | records |
| Get list event of the process Test(Triggers, Activity | 251815090529619a99a2bf4013294414 | 6 |
| Get list event of the process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 6 |
Scenario Outline: Update the Events and the check if the values had changed Scenario Outline: Update the Events and the check if the values had changed
@@ -106,22 +158,25 @@ Feature: Events Resources Main Tests
} }
""" """
And that I want to update a resource with the key "evn_uid" stored in session array as variable "evn_uid_<evn_uid_number>" And that I want to update a resource with the key "evn_uid" stored in session array as variable "evn_uid_<evn_uid_number>"
And I request "project/251815090529619a99a2bf4013294414/event" And I request "project/<project>/event"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
Examples: Examples:
| test_description | evn_uid_number | evn_action | evn_description | evn_status | evn_related_to | evn_tas_uid_from | evn_tas_uid_to | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs | tri_uid | | test_description | project | evn_uid_number | evn_action | evn_description | evn_status | evn_related_to | evn_tas_uid_from | evn_tas_uid_to | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs | tri_uid |
| Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 1 | 1 | SEND_MESSAGE | Update Event Message, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 1 .pm | 251815090529619a99a2bf4013294414 | 1 | SEND_MESSAGE | Update Event Message, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 2 | 7 | EXECUTE_CONDITIONAL_TRIGGER | Update Event Conditional, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 3 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 2 .pm | 251815090529619a99a2bf4013294414 | 7 | EXECUTE_CONDITIONAL_TRIGGER | Update Event Conditional, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 3 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 3 | 13 | EXECUTE_TRIGGER | Update Event Timer, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 3 .pm | 251815090529619a99a2bf4013294414 | 13 | EXECUTE_TRIGGER | Update Event Timer, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 1 .pmx | 1455892245368ebeb11c1a5001393784 | 19 | SEND_MESSAGE | Update Event Message, Single 1 | INACTIVE | MULTIPLE | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 2 | DAYS | 2 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
| Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 2 .pmx | 1455892245368ebeb11c1a5001393784 | 25 | EXECUTE_CONDITIONAL_TRIGGER | Update Event Conditional, Single 1 | INACTIVE | MULTIPLE | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 3 | DAYS | 2 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
| Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 3 .pmx | 1455892245368ebeb11c1a5001393784 | 31 | EXECUTE_TRIGGER | Update Event Timer, Single 1 | INACTIVE | MULTIPLE | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 2 | DAYS | 2 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
Scenario Outline: Get a Single Events and check some properties Scenario Outline: Get a Single Events and check some properties
Given that I want to get a resource with the key "evn_uid" stored in session array as variable "evn_uid_<evn_uid_number>" Given that I want to get a resource with the key "evn_uid" stored in session array as variable "evn_uid_<evn_uid_number>"
And I request "project/251815090529619a99a2bf4013294414/event" And I request "project/<project>/event"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "array" And the type is "array"
@@ -137,44 +192,71 @@ Feature: Events Resources Main Tests
Examples: Examples:
| evn_uid_number | evn_description | evn_status | evn_related_to | evn_tas_uid_from | evn_tas_uid_to | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs | tri_uid | | test_description | project | evn_uid_number | evn_description | evn_status | evn_related_to | evn_tas_uid_from | evn_tas_uid_to | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs | tri_uid |
| 1 | Update Event Message, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Get after update .pm | 251815090529619a99a2bf4013294414 | 1 | Update Event Message, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| 7 | Update Event Conditional, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 3 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Get after update .pm | 251815090529619a99a2bf4013294414 | 7 | Update Event Conditional, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 3 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| 13 | Update Event Timer, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 | | Get after update .pm | 251815090529619a99a2bf4013294414 | 13 | Update Event Timer, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
| Get after update .pmx | 1455892245368ebeb11c1a5001393784 | 19 | Update Event Message, Single 1 | INACTIVE | MULTIPLE | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 2 | DAYS | 2 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
| Get after update .pmx | 1455892245368ebeb11c1a5001393784 | 25 | Update Event Conditional, Single 1 | INACTIVE | MULTIPLE | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 3 | DAYS | 2 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
| Get after update .pmx | 1455892245368ebeb11c1a5001393784 | 31 | Update Event Timer, Single 1 | INACTIVE | MULTIPLE | 6274755055368eed1116388064384542 | 4790702485368efad167477011123879 | 2 | DAYS | 2 | TASK_STARTED | 712197294536bea56a8b4d0014148679 |
Scenario Outline: Delete all Events created previously in this script Scenario Outline: Delete all Events created previously in this script
Given that I want to delete a resource with the key "evn_uid" stored in session array as variable "evn_uid_<evn_uid_number>" Given that I want to delete a resource with the key "evn_uid" stored in session array as variable "evn_uid_<evn_uid_number>"
And I request "project/251815090529619a99a2bf4013294414/event" And I request "project/<project>/event"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "object" And the type is "object"
Examples: Examples:
| evn_uid_number | | project | evn_uid_number |
| 1 | | 251815090529619a99a2bf4013294414 | 1 |
| 2 | | 251815090529619a99a2bf4013294414 | 2 |
| 3 | | 251815090529619a99a2bf4013294414 | 3 |
| 4 | | 251815090529619a99a2bf4013294414 | 4 |
| 5 | | 251815090529619a99a2bf4013294414 | 5 |
| 6 | | 251815090529619a99a2bf4013294414 | 6 |
| 7 | | 251815090529619a99a2bf4013294414 | 7 |
| 8 | | 251815090529619a99a2bf4013294414 | 8 |
| 9 | | 251815090529619a99a2bf4013294414 | 9 |
| 10 | | 251815090529619a99a2bf4013294414 | 10 |
| 11 | | 251815090529619a99a2bf4013294414 | 11 |
| 12 | | 251815090529619a99a2bf4013294414 | 12 |
| 13 | | 251815090529619a99a2bf4013294414 | 13 |
| 14 | | 251815090529619a99a2bf4013294414 | 14 |
| 15 | | 251815090529619a99a2bf4013294414 | 15 |
| 16 | | 251815090529619a99a2bf4013294414 | 16 |
| 17 | | 251815090529619a99a2bf4013294414 | 17 |
| 18 | | 251815090529619a99a2bf4013294414 | 18 |
| 1455892245368ebeb11c1a5001393784 | 19 |
| 1455892245368ebeb11c1a5001393784 | 20 |
| 1455892245368ebeb11c1a5001393784 | 21 |
| 1455892245368ebeb11c1a5001393784 | 22 |
| 1455892245368ebeb11c1a5001393784 | 23 |
| 1455892245368ebeb11c1a5001393784 | 24 |
| 1455892245368ebeb11c1a5001393784 | 25 |
| 1455892245368ebeb11c1a5001393784 | 26 |
| 1455892245368ebeb11c1a5001393784 | 27 |
| 1455892245368ebeb11c1a5001393784 | 28 |
| 1455892245368ebeb11c1a5001393784 | 29 |
| 1455892245368ebeb11c1a5001393784 | 30 |
| 1455892245368ebeb11c1a5001393784 | 31 |
| 1455892245368ebeb11c1a5001393784 | 32 |
| 1455892245368ebeb11c1a5001393784 | 33 |
| 1455892245368ebeb11c1a5001393784 | 34 |
| 1455892245368ebeb11c1a5001393784 | 35 |
| 1455892245368ebeb11c1a5001393784 | 36 |
Scenario: Get List all the events in the process when there are exactly zero events Scenario Outline: Get List all the events in the process when there are exactly zero events
Given I request "project/251815090529619a99a2bf4013294414/events" Given I request "project/<project>/events"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the response has 0 record And the response has <record> record
Examples:
| test_description | project | record |
| Get list event of the process Test(Triggers, Activity | 251815090529619a99a2bf4013294414 | 0 |
| Get list event of the process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 0 |

View File

@@ -3,13 +3,14 @@ Feature: Files Manager Resources Main Tests
Requirements: Requirements:
a workspace with the process 1265557095225ff5c688f46031700471 ("Test Michelangelo") already loaded a workspace with the process 1265557095225ff5c688f46031700471 ("Test Michelangelo") already loaded
there are two output documents in the process there are two output documents in the process
and workspace with the process 1455892245368ebeb11c1a5001393784 - "Process Complete BPMN" already loaded" already loaded
Background: Background:
Given that I have a valid access_token Given that I have a valid access_token
Scenario: Get a list of main process files manager Scenario Outline: Get a list of main process files manager
Given I request "project/1265557095225ff5c688f46031700471/file-manager" Given I request "project/<project>/file-manager"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -17,22 +18,40 @@ Scenario: Get a list of main process files manager
And the "name" property in row 0 equals "templates" And the "name" property in row 0 equals "templates"
And the "name" property in row 1 equals "public" And the "name" property in row 1 equals "public"
Scenario: Get a list public folder of process files manager Examples:
Given I request "project/1265557095225ff5c688f46031700471/file-manager?path=public" | test_description | project |
| Get list of process Test Michelangelo | 1265557095225ff5c688f46031700471 |
| Get list of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 |
Scenario Outline: Get a list public folder of process files manager
Given I request "project/<project>/file-manager?path=public"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
And the type is "array" And the type is "array"
And the response has 0 records And the response has <records> records
Scenario: Get a list templates folder of process files manager Examples:
Given I request "project/1265557095225ff5c688f46031700471/file-manager?path=templates" | test_description | project | records |
| Get list of process Test Michelangelo | 1265557095225ff5c688f46031700471 | 0 |
| Get list of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 2 |
Scenario Outline: Get a list templates folder of process files manager
Given I request "project/<project>/file-manager?path=templates"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
And the type is "array" And the type is "array"
And the response has 2 records And the response has 2 records
Examples:
| test_description | project | records |
| Get list of process Test Michelangelo | 1265557095225ff5c688f46031700471 | 2 |
| Get list of process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 2 |
Scenario Outline: Create files and subfolders Scenario Outline: Create files and subfolders
Given POST this data: Given POST this data:
""" """
@@ -42,7 +61,7 @@ Scenario Outline: Create files and subfolders
"prf_content": "<prf_content>" "prf_content": "<prf_content>"
} }
""" """
And I request "project/1265557095225ff5c688f46031700471/file-manager" And I request "project/<project>/file-manager"
Then the response status code should be <http_code> Then the response status code should be <http_code>
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -50,11 +69,15 @@ Scenario Outline: Create files and subfolders
And store "prf_uid" in session array as variable "prf_uid_<prf_number>" And store "prf_uid" in session array as variable "prf_uid_<prf_number>"
Examples: Examples:
| test_description | prf_filename | prf_path | prf_content | http_code | type | prf_number | | test_description | project | prf_filename | prf_path | prf_content | http_code | type | prf_number |
| into public folder | file_test_1.txt | public/ | only text | 200 | object | 0 | | into public folder .pm | 1265557095225ff5c688f46031700471 | file_test_1.txt | public/ | only text | 200 | object | 0 |
| into mailtemplates folder | file_test_2.html | templates/ | <h1>Test</h1><p>html test</p> | 200 | object | 1 | | into mailtemplates folder .pm | 1265557095225ff5c688f46031700471 | file_test_2.html | templates/ | <h1>Test</h1><p>html test</p> | 200 | object | 1 |
| into public subfolder | file_test_3 | public/public_subfolder | test | 200 | object | 2 | | into public subfolder .pm | 1265557095225ff5c688f46031700471 | file_test_3 | public/public_subfolder | test | 200 | object | 2 |
| into mailtemplates subfolder | file_test_4 | templates/templates_subfolder | test | 200 | object | 3 | | into mailtemplates subfolder .pm | 1265557095225ff5c688f46031700471 | file_test_4 | templates/templates_subfolder | test | 200 | object | 3 |
| into public folder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_1.txt | public/ | only text | 200 | object | 8 |
| into mailtemplates folder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_2.html | templates/ | <h1>Test</h1><p>html test</p> | 200 | object | 9 |
| into public subfolder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_3 | public/public_subfolder | test | 200 | object | 10 |
| into mailtemplates subfolder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_4 | templates/templates_subfolder | test | 200 | object | 11 |
Scenario: Create files and subfolders with same name in path public Scenario: Create files and subfolders with same name in path public
@@ -93,23 +116,27 @@ Scenario Outline: Update files by updating the content
} }
""" """
And that I want to update a resource with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>" And that I want to update a resource with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>"
And I request "project/1265557095225ff5c688f46031700471/file-manager" And I request "project/<project>/file-manager"
Then the response status code should be <http_code> Then the response status code should be <http_code>
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
And the type is "<type>" And the type is "<type>"
Examples: Examples:
| test_description | prf_filename | prf_content | http_code | type | prf_number | | test_description .pm | project | prf_filename | prf_content | http_code | type | prf_number |
| put into public folder | file_test_1.txt | only text - modified | 200 | object | 0 | | put into public folder .pm | 1265557095225ff5c688f46031700471 | file_test_1.txt | only text - modified | 200 | object | 0 |
| put into mailtemplates folder | file_test_2.html | <h1>Test</h1><p>html test</p><i>modified</i> | 200 | object | 1 | | put into mailtemplates folder .pm | 1265557095225ff5c688f46031700471 | file_test_2.html | <h1>Test</h1><p>html test</p><i>modified</i> | 200 | object | 1 |
| put into public subfolder | file_test_3 | put test | 200 | object | 2 | | put into public subfolder .pm | 1265557095225ff5c688f46031700471 | file_test_3 | put test | 200 | object | 2 |
| put into mailtemplates subfolder | file_test_4 | put test | 200 | object | 3 | | put into mailtemplates subfolder .pm | 1265557095225ff5c688f46031700471 | file_test_4 | put test | 200 | object | 3 |
| put into public folder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_1.txt | only text - modified | 200 | object | 8 |
| put into mailtemplates folder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_2.html | <h1>Test</h1><p>html test</p><i>modified</i> | 200 | object | 9 |
| put into public subfolder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_3 | put test | 200 | object | 10 |
| put into mailtemplates subfolder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_4 | put test | 200 | object | 11 |
Scenario Outline: Get a single Files Manager and check some properties Scenario Outline: Get a single Files Manager and check some properties
Given that I want to get a resource with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>" Given that I want to get a resource with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>"
Given I request "project/1265557095225ff5c688f46031700471/file-manager" Given I request "project/<project>/file-manager"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the content type is "application/json" And the content type is "application/json"
@@ -119,11 +146,15 @@ Scenario Outline: Get a single Files Manager and check some properties
And that "prf_content" is set to "<prf_content>" And that "prf_content" is set to "<prf_content>"
Examples: Examples:
| test_description | prf_filename | prf_content | http_code | type | prf_number | row | prf_path | | test_description .pm | project | prf_filename | prf_content | http_code | type | prf_number | row | prf_path |
| put into public folder | file_test_1.txt | only text - modified | 200 | object | 0 | 1 | public/ | | put into public folder .pm | 1265557095225ff5c688f46031700471 | file_test_1.txt | only text - modified | 200 | object | 0 | 1 | public/ |
| put into mailtemplates folder | file_test_2.html | <h1>Test</h1><p>html test</p><i>modified</i> | 200 | object | 1 | 1 | templates/ | | put into mailtemplates folder .pm | 1265557095225ff5c688f46031700471 | file_test_2.html | <h1>Test</h1><p>html test</p><i>modified</i> | 200 | object | 1 | 1 | templates/ |
| put into public subfolder | file_test_3 | put test | 200 | object | 2 | 0 | public/public_subfolder | | put into public subfolder .pm | 1265557095225ff5c688f46031700471 | file_test_3 | put test | 200 | object | 2 | 0 | public/public_subfolder |
| put into mailtemplates subfolder | file_test_4 | put test | 200 | object | 3 | 0 | templates/templates_subfolder | | put into mailtemplates subfolder .pm | 1265557095225ff5c688f46031700471 | file_test_4 | put test | 200 | object | 3 | 0 | templates/templates_subfolder |
| put into public folder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_1.txt | only text - modified | 200 | object | 8 | 1 | public/ |
| put into mailtemplates folder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_2.html | <h1>Test</h1><p>html test</p><i>modified</i> | 200 | object | 9 | 1 | templates/ |
| put into public subfolder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_3 | put test | 200 | object | 10 | 0 | public/public_subfolder |
| put into mailtemplates subfolder .pmx | 1455892245368ebeb11c1a5001393784 | file_test_4 | put test | 200 | object | 11 | 0 | templates/templates_subfolder |
Scenario Outline: Upload files to same folders Scenario Outline: Upload files to same folders
@@ -179,11 +210,15 @@ Scenario Outline: Download files
Then the response status code should be 200 Then the response status code should be 200
Examples: Examples:
| test_description | prf_number | | test_description | prf_number | project |
| Download file | 0 | | Download file | 0 | 1265557095225ff5c688f46031700471 |
| Download file | 1 | | Download file | 1 | 1265557095225ff5c688f46031700471 |
| Download file | 2 | | Download file | 2 | 1265557095225ff5c688f46031700471 |
| Download file | 4 | | Download file | 4 | 1265557095225ff5c688f46031700471 |
| Download file | 8 | 1455892245368ebeb11c1a5001393784 |
| Download file | 9 | 1455892245368ebeb11c1a5001393784 |
| Download file | 10 | 1455892245368ebeb11c1a5001393784 |
| Download file | 11 | 1455892245368ebeb11c1a5001393784 |
Scenario Outline: Delete file Scenario Outline: Delete file
@@ -202,6 +237,10 @@ Scenario Outline: Delete file
| delete mailtemplates subfolder | 5 | | delete mailtemplates subfolder | 5 |
| delete mailtemplates subfolder | 6 | | delete mailtemplates subfolder | 6 |
| delete | 7 | | delete | 7 |
| delete | 8 |
| delete | 9 |
| delete | 10 |
| delete | 11 |
Scenario Outline: Delete folder Scenario Outline: Delete folder
@@ -226,4 +265,3 @@ Scenario Outline: Upload files with incorret extension ".exe" - "Project - Proce
Examples: Examples:
| file | prf_path | prf_number | | file | prf_path | prf_number |
| filemanager.exe | templates | 1 | | filemanager.exe | templates | 1 |

View File

@@ -4,19 +4,25 @@ Feature: Input Documents Main Tests
a workspace with the process 14414793652a5d718b65590036026581 already loaded a workspace with the process 14414793652a5d718b65590036026581 already loaded
the process name is "Sample Project #1" the process name is "Sample Project #1"
there are zero input documents in the process there are zero input documents in the process
and workspace with the process 1455892245368ebeb11c1a5001393784 - "Process Complete BPMN" already loaded" already loaded
Background: Background:
Given that I have a valid access_token Given that I have a valid access_token
Scenario: Get the Input Documents List when there are exactly zero input documents Scenario Outline: Get the Input Documents List when there are exactly zero input documents
Given I request "project/14414793652a5d718b65590036026581/input-documents" Given I request "project/<project>/input-documents"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "array" And the type is "array"
And the response has 0 records And the response has <records> records
Examples:
| test_description | project | records |
| Get of inputs of the process Sample Project #1 | 14414793652a5d718b65590036026581 | 0 |
| Get of inputs of the process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 1 |
Scenario Outline: Create 13 new Input Documents Scenario Outline: Create 13 new Input Documents
@@ -42,20 +48,33 @@ Feature: Input Documents Main Tests
Examples: 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 | | 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 with versioning .pm | 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 virtual without versioning .pm | 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 real with versioning .pm | 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 vreal with versioning .pm | 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, copy and versioning .pm | 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, original and without versioning .pm | 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, versioning and destination path .pm | 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 virtual, without versioning and destination path .pm | 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 real, without versioning and destination path .pm | 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 title .pm | 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 description .pm | 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 destination path .pm | 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 @##$$³¤¤ | | Create with special characters in inp doc tags .pm | 14414793652a5d718b65590036026581 | 13 | My InputDocument13 | My InputDocument13 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPU455 @##$$³¤¤ |
| Create with virtual with versioning .pmx | 1455892245368ebeb11c1a5001393784 | 14 | My InputDocument1 | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with virtual without versioning .pmx | 1455892245368ebeb11c1a5001393784 | 15 | My InputDocument2 | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| Create with real with versioning .pmx | 1455892245368ebeb11c1a5001393784 | 16 | My InputDocument3 | My InputDocument3 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with vreal with versioning .pmx | 1455892245368ebeb11c1a5001393784 | 17 | My InputDocument4 | My InputDocument4 DESCRIPTION | VREAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with virtual, copy and versioning .pmx | 1455892245368ebeb11c1a5001393784 | 18 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COPY | PRIVATE | 1 | | INPUT |
| Create with virtual, original and without versioning .pmx | 1455892245368ebeb11c1a5001393784 | 19 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| Create with virtual, versioning and destination path .pmx | 1455892245368ebeb11c1a5001393784 | 20 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my/path | INPUT |
| Create with virtual, without versioning and destination path .pmx | 1455892245368ebeb11c1a5001393784 | 21 | My InputDocument8 | My InputDocument8 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | /my/path | INPUT |
| Create with real, without versioning and destination path .pmx | 1455892245368ebeb11c1a5001393784 | 22 | My InputDocument9 | My InputDocument9 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 0 | /my/path | INPUT |
| Create with special characters in inp doc title .pmx | 1455892245368ebeb11c1a5001393784 | 23 | My InputDocument10 !@#$%^&*€¤½¼‘¾¡²¤³ | My InputDocument10 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with special characters in inp doc description .pmx | 1455892245368ebeb11c1a5001393784 | 24 | My InputDocument11 | My InputDocument11 !@#$%^&*€¤½¼‘¾¡²¤³| REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Create with special characters in inp doc destination path .pmx | 1455892245368ebeb11c1a5001393784 | 25 | My InputDocument12 | My InputDocument12 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my#@$#%/path324@$@@ | INPUT |
| Create with special characters in inp doc tags .pmx | 1455892245368ebeb11c1a5001393784 | 26 | My InputDocument13 | My InputDocument13 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPU455 @##$$³¤¤ |
Scenario: Create new Input Documents with same name Scenario: Create new Input Documents with same name
@@ -77,14 +96,18 @@ Feature: Input Documents Main Tests
And the response status message should have the following text "already exists" And the response status message should have the following text "already exists"
Scenario: Get the Input Documents list when there are 13 records Scenario Outline: Get the Input Documents list when there are 13 records
Given I request "project/14414793652a5d718b65590036026581/input-documents" Given I request "project/<project>/input-documents"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "array" And the type is "array"
And the response has 13 records And the response has <records> records
Examples:
| test_description | project | records |
| Get of inputs of the process Sample Project #1 | 14414793652a5d718b65590036026581 | 13 |
| Get of inputs of the process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 14 |
Scenario Outline: Update the Input Documents and then check if the values had changed Scenario Outline: Update the Input Documents and then check if the values had changed
@@ -111,11 +134,13 @@ Feature: Input Documents Main Tests
Examples: 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 | | 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 and inp doc description .pm | 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 form needed .pm | 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 | | Update inp doc title, inp doc description and inp doc versioning .pm | 14414793652a5d718b65590036026581 | 3 | My InputDocument3 'UPDATE' | My InputDocument3 DESCRIPTION-update | REAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| Update inp doc title and inp doc description .pmx | 1455892245368ebeb11c1a5001393784 | 14 | My InputDocument1 'UPDATE' | My InputDocument2 DESCRIPTION-update | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| Update inp doc title, inp doc description and inp doc form needed .pmx | 1455892245368ebeb11c1a5001393784 | 15 | My InputDocument2 'UPDATE' | My InputDocument2 DESCRIPTION-update | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| Update inp doc title, inp doc description and inp doc versioning .pmx | 1455892245368ebeb11c1a5001393784 | 16 | My InputDocument3 'UPDATE' | My InputDocument3 DESCRIPTION-update | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
Scenario Outline: Get a single Input Document to verify that the were updated correctly in previous step Scenario Outline: Get a single Input Document to verify that the were updated correctly in previous step
@@ -132,12 +157,13 @@ Feature: Input Documents Main Tests
Examples: Examples:
| project | inp_doc_number | inp_doc_title | inp_doc_description | inp_doc_form_needed | inp_doc_versioning | | test_description | 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 | | Update inp doc title and inp doc description .pm | 14414793652a5d718b65590036026581 | 1 | My InputDocument1 'UPDATE' | My InputDocument1 DESCRIPTION-update | VIRTUAL | 1 |
| 14414793652a5d718b65590036026581 | 2 | My InputDocument2 'UPDATE' | My InputDocument2 DESCRIPTION-update| VREAL | 1 | | Update inp doc title, inp doc description and inp doc form needed .pm | 14414793652a5d718b65590036026581 | 2 | My InputDocument2 'UPDATE' | My InputDocument2 DESCRIPTION-update | VREAL | 1 |
| 14414793652a5d718b65590036026581 | 3 | My InputDocument3 'UPDATE' | My InputDocument3 DESCRIPTION-update| REAL | 0 | | Update inp doc title, inp doc description and inp doc versioning .pm | 14414793652a5d718b65590036026581 | 3 | My InputDocument3 'UPDATE' | My InputDocument3 DESCRIPTION-update | REAL | 0 |
| Update inp doc title and inp doc description .pmx | 1455892245368ebeb11c1a5001393784 | 14 | My InputDocument1 'UPDATE' | My InputDocument2 DESCRIPTION-update | VIRTUAL | 1 |
| Update inp doc title, inp doc description and inp doc form needed .pmx | 1455892245368ebeb11c1a5001393784 | 15 | My InputDocument2 'UPDATE' | My InputDocument2 DESCRIPTION-update | VIRTUAL | 0 |
| Update inp doc title, inp doc description and inp doc versioning .pmx | 1455892245368ebeb11c1a5001393784 | 16 | My InputDocument3 'UPDATE' | My InputDocument3 DESCRIPTION-update | REAL | 1 |
Scenario Outline: Delete all Input documents created previously in this script Scenario Outline: Delete all Input documents created previously in this script
@@ -164,13 +190,30 @@ Feature: Input Documents Main Tests
| 14414793652a5d718b65590036026581 | 11 | | 14414793652a5d718b65590036026581 | 11 |
| 14414793652a5d718b65590036026581 | 12 | | 14414793652a5d718b65590036026581 | 12 |
| 14414793652a5d718b65590036026581 | 13 | | 14414793652a5d718b65590036026581 | 13 |
| 1455892245368ebeb11c1a5001393784 | 14 |
| 1455892245368ebeb11c1a5001393784 | 15 |
| 1455892245368ebeb11c1a5001393784 | 16 |
| 1455892245368ebeb11c1a5001393784 | 17 |
| 1455892245368ebeb11c1a5001393784 | 18 |
| 1455892245368ebeb11c1a5001393784 | 19 |
| 1455892245368ebeb11c1a5001393784 | 20 |
| 1455892245368ebeb11c1a5001393784 | 21 |
| 1455892245368ebeb11c1a5001393784 | 22 |
| 1455892245368ebeb11c1a5001393784 | 23 |
| 1455892245368ebeb11c1a5001393784 | 24 |
| 1455892245368ebeb11c1a5001393784 | 25 |
| 1455892245368ebeb11c1a5001393784 | 26 |
Scenario Outline: Get the Input Documents List when there are exactly zero input documents after of delete all Input documents
Scenario: Get the Input Documents List when there are exactly zero input documents after of delete all Input documents Given I request "project/<project>/input-documents"
Given I request "project/14414793652a5d718b65590036026581/input-documents"
And the content type is "application/json" And the content type is "application/json"
Then the response status code should be 200 Then the response status code should be 200
And the response charset is "UTF-8" And the response charset is "UTF-8"
And the type is "array" And the type is "array"
And the response has 0 records And the response has <records> records
Examples:
| test_description | project | records |
| Get of inputs of the process Sample Project #1 | 14414793652a5d718b65590036026581 | 0 |
| Get of inputs of the process Process Complete BPMN | 1455892245368ebeb11c1a5001393784 | 1 |