Merged in wnestor/processmaker (pull request #181)
Modificaciones a los Features Database Connections, Process y Process Supervisor. Renombrando Process
This commit is contained in:
@@ -26,13 +26,11 @@ Feature: DataBase Connections Negative Tests
|
||||
Examples:
|
||||
|
||||
| test_description | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | error_code | error_message |
|
||||
| Field required dbs_type | 74737540052e1641ab88249082085472 | | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 400 | dbs_type |
|
||||
| Field required dbs_server | 74737540052e1641ab88249082085472 | mysql | | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 400 | dbs_server |
|
||||
| Field required dbs_database_name | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | | root | atopml2005 | 3306 | utf8 | mysql connection | 400 | dbs_database_name |
|
||||
| Field required dbs_username | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | | atopml2005 | 3306 | utf8 | mysql connection | 400 | dbs_username |
|
||||
| Field required dbs_port | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | | utf8 | mysql connection | 400 | dbs_port |
|
||||
| Field required dbs_encode | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | | mysql connection | 400 | dbs_encode |
|
||||
| Incorrect dbs_password | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | root | atsample005 | 3306 | utf8 | mysql connection | 400 | dbs_password |
|
||||
| Field required dbs_type | 74737540052e1641ab88249082085472 | | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 200 | Trying to connect to host FAILED |
|
||||
| Field required dbs_server | 74737540052e1641ab88249082085472 | mysql | | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 200 | Error Testting Connection |
|
||||
| Field required dbs_database_name | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | | root | atopml2005 | 3306 | utf8 | mysql connection | 200 | The data base does'n exist! |
|
||||
| Field required dbs_username | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | | atopml2005 | 3306 | utf8 | mysql connection | 200 | MySql connection refused! |
|
||||
| Field required dbs_encode | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | | mysql connection | 200 | dbs_encode |
|
||||
| Field required project | | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 400 | prj_uid |
|
||||
|
||||
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Process of a Project Resources
|
||||
Requirements:
|
||||
a workspace with the process 14414793652a5d718b65590036026581 ("Sample Project #1") already loaded
|
||||
there are three activities in the process
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
#GET /api/1.0/{workspace}/project/{prj_uid}/process
|
||||
# Get a single Process
|
||||
Scenario Outline: Get a single Process
|
||||
Given that I want to get a resource with the key "obj_uid" stored in session array
|
||||
And I request "project/14414793652a5d718b65590036026581/process"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
And that "pro_title" is set to "<pro_title>"
|
||||
And that "pro_description" is set to "<pro_description>"
|
||||
And that "pro_status" is set to "<pro_status>"
|
||||
And that "pro_create_user" is set to "<pro_create_user>"
|
||||
And that "pro_debug" is set to "<pro_debug>"
|
||||
|
||||
Examples:
|
||||
| pro_title | pro_description | pro_status | pro_create_user | pro_debug |
|
||||
| Sample Project #1 | | ACTIVE | 00000000000000000000000000000001 | 0 |
|
||||
|
||||
#PUT /api/1.0/{workspace}/project/{prj_uid}/process
|
||||
# Update Process
|
||||
Scenario Outline: Update Process
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"pro_title": "<pro_title>",
|
||||
"pro_description": "<pro_description>",
|
||||
"pro_status": "<pro_status>",
|
||||
"pro_create_user": "<pro_create_user>",
|
||||
"pro_debug": <pro_debug>
|
||||
}
|
||||
"""
|
||||
And I request "project/14414793652a5d718b65590036026581/process"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
|
||||
Examples:
|
||||
| pro_title | pro_description | pro_status | pro_create_user | pro_debug |
|
||||
| Sample Project #1 | | ACTIVE | 00000000000000000000000000000001 | 0 |
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Process of a Project Resources
|
||||
Requirements:
|
||||
a workspace with the process 14414793652a5d718b65590036026581 ("Sample Project #1") already loaded
|
||||
there are three activities in the process
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
#GET /api/1.0/{workspace}/project/{prj_uid}/process
|
||||
# Get a single Process
|
||||
Scenario Outline: Get a single Process
|
||||
Given that I want to get a resource with the key "obj_uid" stored in session array
|
||||
And I request "project/14414793652a5d718b65590036026581/process"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
And that "pro_title" is set to "<pro_title>"
|
||||
And that "pro_description" is set to "<pro_description>"
|
||||
And that "pro_status" is set to "<pro_status>"
|
||||
And that "pro_create_user" is set to "<pro_create_user>"
|
||||
And that "pro_debug" is set to "<pro_debug>"
|
||||
|
||||
Examples:
|
||||
| pro_title | pro_description | pro_status | pro_create_user | pro_debug |
|
||||
| Sample Project #1 | | ACTIVE | 00000000000000000000000000000001 | 0 |
|
||||
|
||||
#PUT /api/1.0/{workspace}/project/{prj_uid}/process
|
||||
# Update Process
|
||||
Scenario Outline: Update Process
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"pro_title": "<pro_title>",
|
||||
"pro_description": "<pro_description>",
|
||||
"pro_status": "<pro_status>",
|
||||
"pro_create_user": "<pro_create_user>",
|
||||
"pro_debug": <pro_debug>
|
||||
}
|
||||
"""
|
||||
And I request "project/14414793652a5d718b65590036026581/process"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
|
||||
Examples:
|
||||
| pro_title | pro_description | pro_status | pro_create_user | pro_debug |
|
||||
| Sample Project #1 | | ACTIVE | 00000000000000000000000000000001 | 0 |
|
||||
|
||||
@@ -1,229 +0,0 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Process of a Project Resources
|
||||
Requirements:
|
||||
a workspace with the process 79409754952f8f5110c4342001470580 ("Test Process 2") and there are two activities
|
||||
and workspace with the process 58773281752f50297d6bf00047802053 ("Test Process 1") and there are two activities, in the process already loaded
|
||||
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
Scenario Outline: Get a single Process
|
||||
Given that I want to get a resource with the key "obj_uid" stored in session array
|
||||
And I request "project/<project>/process"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
And that "pro_title" is set to "<pro_title>"
|
||||
And that "pro_description" is set to "<pro_description>"
|
||||
And that "pro_parent" is set to "<pro_parent>"
|
||||
And that "pro_time" is set to "<pro_time>"
|
||||
And that "pro_timeunit" is set to "<pro_timeunit>"
|
||||
And that "pro_status" is set to "<pro_status>"
|
||||
And that "pro_type_day" is set to "<pro_type_day>"
|
||||
And that "pro_type" is set to "<pro_type>"
|
||||
And that "pro_assignment" is set to "<pro_assignment>"
|
||||
And that "pro_show_map" is set to "<pro_show_map>"
|
||||
And that "pro_show_message" is set to "<pro_show_message>"
|
||||
And that "pro_subprocess" is set to "<pro_subprocess>"
|
||||
And that "pro_tri_deleted" is set to "<pro_tri_deleted>"
|
||||
And that "pro_tri_canceled" is set to "<pro_tri_canceled>"
|
||||
And that "pro_tri_paused" is set to "<pro_tri_paused>"
|
||||
And that "pro_tri_reassigned" is set to "<pro_tri_reassigned>"
|
||||
And that "pro_show_delegate" is set to "<pro_show_delegate>"
|
||||
And that "pro_show_dynaform" is set to "<pro_show_dynaform>"
|
||||
And that "pro_category" is set to "<pro_category>"
|
||||
And that "pro_sub_category" is set to "<pro_sub_category>"
|
||||
And that "pro_industry" is set to "<pro_industry>"
|
||||
And that "pro_update_date" is set to "<pro_update_date>"
|
||||
And that "pro_create_date" is set to "<pro_create_date>"
|
||||
And that "pro_create_user" is set to "<pro_create_user>"
|
||||
And that "pro_debug" is set to "<pro_debug>"
|
||||
And that "pro_derivation_screen_tpl" is set to "<pro_derivation_screen_tpl>"
|
||||
And that "pro_summary_dynaform" is set to "<pro_summary_dynaform>"
|
||||
And that "pro_calendar" is set to "<pro_calendar>"
|
||||
|
||||
|
||||
Examples:
|
||||
| project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar |
|
||||
| 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | null | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | |
|
||||
| 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | null | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | |
|
||||
|
||||
|
||||
Scenario Outline: Update Process
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"pro_title" : "<pro_title>",
|
||||
"pro_description" : "<pro_description>",
|
||||
"pro_parent" : "<pro_parent>",
|
||||
"pro_time" : "<pro_time>",
|
||||
"pro_timeunit" : "<pro_timeunit>",
|
||||
"pro_status" : "<pro_status>",
|
||||
"pro_type_day" : "<pro_type_day>",
|
||||
"pro_type" : "<pro_type>",
|
||||
"pro_assignment" : "<pro_assignment>",
|
||||
"pro_show_map" : "<pro_show_map>",
|
||||
"pro_show_message" : "<pro_show_message>",
|
||||
"pro_subprocess" : "<pro_subprocess>",
|
||||
"pro_tri_deleted" : "<pro_tri_deleted>",
|
||||
"pro_tri_canceled" : "<pro_tri_canceled>",
|
||||
"pro_tri_paused" : "<pro_tri_paused>",
|
||||
"pro_tri_reassigned" : "<pro_tri_reassigned>",
|
||||
"pro_show_delegate" : "<pro_show_delegate>",
|
||||
"pro_show_dynaform" : "<pro_show_dynaform>",
|
||||
"pro_category" : "<pro_category>",
|
||||
"pro_sub_category" : "<pro_sub_category>",
|
||||
"pro_industry" : "<pro_industry>",
|
||||
"pro_update_date" : "<pro_update_date>",
|
||||
"pro_create_date" : "<pro_create_date>",
|
||||
"pro_create_user" : "<pro_create_user>",
|
||||
"pro_debug" : "<pro_debug>",
|
||||
"pro_derivation_screen_tpl": "<pro_derivation_screen_tpl>",
|
||||
"pro_summary_dynaform" : "<pro_summary_dynaform>",
|
||||
"pro_calendar" : "<pro_calendar>"
|
||||
}
|
||||
"""
|
||||
And I request "project/<project>/process"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
|
||||
Examples:
|
||||
| project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar |
|
||||
| 79409754952f8f5110c4342001470580 | Update Test Process 1 | Update Process - PUT | 79409754952f8f5110c4342001470580 | 1 | DAYS | INACTIVE | | NORMAL | 1 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-01-10 09:43:36 | 2015-12-09 09:43:36 | 00000000000000000000000000000001 | 0 | | | |
|
||||
| 58773281752f50297d6bf00047802053 | Update Test Process 2 | Update Process - PUT | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 1 | 1 | 1 | 69112537052f503b53142c2026229055 | 30169571352f50349539aa7005920345 | 45413889552f5037587e5a4073302257 | 23429991752f5035c3eab21091451118 | 1 | 0 | 77488943552f502c3d7f649000082980 | | 0 | 2014-01-10 09:43:36 | 2014-02-07 10:58:15 | 51049032352d56710347233042615067 | 1 | tplScreen.html | 94906672952f5058bf3f0f8012616448 | 99159704252f501c63f8c58025859967 |
|
||||
|
||||
|
||||
Scenario Outline: Get a single Process
|
||||
Given that I want to get a resource with the key "obj_uid" stored in session array
|
||||
And I request "project/<project>/process"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
And that "pro_title" is set to "<pro_title>"
|
||||
And that "pro_description" is set to "<pro_description>"
|
||||
And that "pro_parent" is set to "<pro_parent>"
|
||||
And that "pro_time" is set to "<pro_time>"
|
||||
And that "pro_timeunit" is set to "<pro_timeunit>"
|
||||
And that "pro_status" is set to "<pro_status>"
|
||||
And that "pro_type_day" is set to "<pro_type_day>"
|
||||
And that "pro_type" is set to "<pro_type>"
|
||||
And that "pro_assignment" is set to "<pro_assignment>"
|
||||
And that "pro_show_map" is set to "<pro_show_map>"
|
||||
And that "pro_show_message" is set to "<pro_show_message>"
|
||||
And that "pro_subprocess" is set to "<pro_subprocess>"
|
||||
And that "pro_tri_deleted" is set to "<pro_tri_deleted>"
|
||||
And that "pro_tri_canceled" is set to "<pro_tri_canceled>"
|
||||
And that "pro_tri_paused" is set to "<pro_tri_paused>"
|
||||
And that "pro_tri_reassigned" is set to "<pro_tri_reassigned>"
|
||||
And that "pro_show_delegate" is set to "<pro_show_delegate>"
|
||||
And that "pro_show_dynaform" is set to "<pro_show_dynaform>"
|
||||
And that "pro_category" is set to "<pro_category>"
|
||||
And that "pro_sub_category" is set to "<pro_sub_category>"
|
||||
And that "pro_industry" is set to "<pro_industry>"
|
||||
And that "pro_update_date" is set to "<pro_update_date>"
|
||||
And that "pro_create_date" is set to "<pro_create_date>"
|
||||
And that "pro_create_user" is set to "<pro_create_user>"
|
||||
And that "pro_debug" is set to "<pro_debug>"
|
||||
And that "pro_derivation_screen_tpl" is set to "<pro_derivation_screen_tpl>"
|
||||
And that "pro_summary_dynaform" is set to "<pro_summary_dynaform>"
|
||||
And that "pro_calendar" is set to "<pro_calendar>"
|
||||
|
||||
|
||||
Examples:
|
||||
| project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar |
|
||||
| 79409754952f8f5110c4342001470580 | Update Sample Project #1 | Update Process - PUT | 79409754952f8f5110c4342001470580 | 1 | DAYS | INACTIVE | | NORMAL | 1 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-01-10 09:43:36 | 2015-12-09 09:43:36 | 00000000000000000000000000000001 | 0 | | | |
|
||||
| 58773281752f50297d6bf00047802053 | Update Test Process | Update Process - PUT | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 1 | 1 | 1 | 69112537052f503b53142c2026229055 | 30169571352f50349539aa7005920345 | 45413889552f5037587e5a4073302257 | 23429991752f5035c3eab21091451118 | 1 | 0 | 77488943552f502c3d7f649000082980 | | 0 | 2014-01-10 09:43:36 | 2014-02-07 10:58:15 | 51049032352d56710347233042615067 | 1 | tplScreen.html | 94906672952f5058bf3f0f8012616448 | 14606161052f50839307899033145440 |
|
||||
|
||||
|
||||
Scenario Outline: Update Process
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"pro_title" : "<pro_title>",
|
||||
"pro_description" : "<pro_description>",
|
||||
"pro_parent" : "<pro_parent>",
|
||||
"pro_time" : "<pro_time>",
|
||||
"pro_timeunit" : "<pro_timeunit>",
|
||||
"pro_status" : "<pro_status>",
|
||||
"pro_type_day" : "<pro_type_day>",
|
||||
"pro_type" : "<pro_type>",
|
||||
"pro_assignment" : "<pro_assignment>",
|
||||
"pro_show_map" : "<pro_show_map>",
|
||||
"pro_show_message" : "<pro_show_message>",
|
||||
"pro_subprocess" : "<pro_subprocess>",
|
||||
"pro_tri_deleted" : "<pro_tri_deleted>",
|
||||
"pro_tri_canceled" : "<pro_tri_canceled>",
|
||||
"pro_tri_paused" : "<pro_tri_paused>",
|
||||
"pro_tri_reassigned" : "<pro_tri_reassigned>",
|
||||
"pro_show_delegate" : "<pro_show_delegate>",
|
||||
"pro_show_dynaform" : "<pro_show_dynaform>",
|
||||
"pro_category" : "<pro_category>",
|
||||
"pro_sub_category" : "<pro_sub_category>",
|
||||
"pro_industry" : "<pro_industry>",
|
||||
"pro_update_date" : "<pro_update_date>",
|
||||
"pro_create_date" : "<pro_create_date>",
|
||||
"pro_create_user" : "<pro_create_user>",
|
||||
"pro_debug" : "<pro_debug>",
|
||||
"pro_derivation_screen_tpl": "<pro_derivation_screen_tpl>",
|
||||
"pro_summary_dynaform" : "<pro_summary_dynaform>",
|
||||
"pro_calendar" : "<pro_calendar>"
|
||||
}
|
||||
"""
|
||||
And I request "project/<project>/process"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
|
||||
Examples:
|
||||
| project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar |
|
||||
| 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:49:37 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | |
|
||||
| 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:49:37 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | |
|
||||
|
||||
|
||||
Scenario Outline: Get a single Process
|
||||
Given that I want to get a resource with the key "obj_uid" stored in session array
|
||||
And I request "project/<project>/process"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
And that "pro_title" is set to "<pro_title>"
|
||||
And that "pro_description" is set to "<pro_description>"
|
||||
And that "pro_parent" is set to "<pro_parent>"
|
||||
And that "pro_time" is set to "<pro_time>"
|
||||
And that "pro_timeunit" is set to "<pro_timeunit>"
|
||||
And that "pro_status" is set to "<pro_status>"
|
||||
And that "pro_type_day" is set to "<pro_type_day>"
|
||||
And that "pro_type" is set to "<pro_type>"
|
||||
And that "pro_assignment" is set to "<pro_assignment>"
|
||||
And that "pro_show_map" is set to "<pro_show_map>"
|
||||
And that "pro_show_message" is set to "<pro_show_message>"
|
||||
And that "pro_subprocess" is set to "<pro_subprocess>"
|
||||
And that "pro_tri_deleted" is set to "<pro_tri_deleted>"
|
||||
And that "pro_tri_canceled" is set to "<pro_tri_canceled>"
|
||||
And that "pro_tri_paused" is set to "<pro_tri_paused>"
|
||||
And that "pro_tri_reassigned" is set to "<pro_tri_reassigned>"
|
||||
And that "pro_show_delegate" is set to "<pro_show_delegate>"
|
||||
And that "pro_show_dynaform" is set to "<pro_show_dynaform>"
|
||||
And that "pro_category" is set to "<pro_category>"
|
||||
And that "pro_sub_category" is set to "<pro_sub_category>"
|
||||
And that "pro_industry" is set to "<pro_industry>"
|
||||
And that "pro_update_date" is set to "<pro_update_date>"
|
||||
And that "pro_create_date" is set to "<pro_create_date>"
|
||||
And that "pro_create_user" is set to "<pro_create_user>"
|
||||
And that "pro_debug" is set to "<pro_debug>"
|
||||
And that "pro_derivation_screen_tpl" is set to "<pro_derivation_screen_tpl>"
|
||||
And that "pro_summary_dynaform" is set to "<pro_summary_dynaform>"
|
||||
And that "pro_calendar" is set to "<pro_calendar>"
|
||||
|
||||
|
||||
Examples:
|
||||
| project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar |
|
||||
| 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | null | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | |
|
||||
| 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | null | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | |
|
||||
@@ -1,76 +0,0 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Process of a Project Resources Negative Tests
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
Scenario Outline: Update Process
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"pro_title" : "<pro_title>",
|
||||
"pro_description" : "<pro_description>",
|
||||
"pro_parent" : "<pro_parent>",
|
||||
"pro_time" : "<pro_time>",
|
||||
"pro_timeunit" : "<pro_timeunit>",
|
||||
"pro_status" : "<pro_status>",
|
||||
"pro_type_day" : "<pro_type_day>",
|
||||
"pro_type" : "<pro_type>",
|
||||
"pro_assignment" : "<pro_assignment>",
|
||||
"pro_show_map" : "<pro_show_map>",
|
||||
"pro_show_message" : "<pro_show_message>",
|
||||
"pro_subprocess" : "<pro_subprocess>",
|
||||
"pro_tri_deleted" : "<pro_tri_deleted>",
|
||||
"pro_tri_canceled" : "<pro_tri_canceled>",
|
||||
"pro_tri_paused" : "<pro_tri_paused>",
|
||||
"pro_tri_reassigned" : "<pro_tri_reassigned>",
|
||||
"pro_show_delegate" : "<pro_show_delegate>",
|
||||
"pro_show_dynaform" : "<pro_show_dynaform>",
|
||||
"pro_category" : "<pro_category>",
|
||||
"pro_sub_category" : "<pro_sub_category>",
|
||||
"pro_industry" : "<pro_industry>",
|
||||
"pro_update_date" : "<pro_update_date>",
|
||||
"pro_create_date" : "<pro_create_date>",
|
||||
"pro_create_user" : "<pro_create_user>",
|
||||
"pro_debug" : "<pro_debug>",
|
||||
"pro_derivation_screen_tpl": "<pro_derivation_screen_tpl>",
|
||||
"pro_summary_dynaform" : "<pro_summary_dynaform>",
|
||||
"pro_calendar" : "<pro_calendar>"
|
||||
}
|
||||
"""
|
||||
And I request "project/<project>/process"
|
||||
Then the response status code should be <error_code>
|
||||
And the response status message should have the following text "<error_message>"
|
||||
|
||||
Examples:
|
||||
| test_description | project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar | error_code | error_message |
|
||||
| Invalid prj_uid | 79409700000000000004342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | prj_uid |
|
||||
| Invalid pro_parent | 58773281752f50297d6bf00047802053 | Test Process 1 | | 5877300000000000006bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_parent |
|
||||
| Invalid pro_time | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 5 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_time |
|
||||
| Invalid pro_timeunit | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | HOURS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_timeunit |
|
||||
| Invalid pro_status | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | VALOR | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_status |
|
||||
| Invalid pro_type | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | INPUT | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_type |
|
||||
| Invalid pro_assignment | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 4 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_assignment |
|
||||
| Invalid pro_show_map | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 5 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_map |
|
||||
| Invalid pro_show_message | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 4 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_message |
|
||||
| Invalid pro_subprocess | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 4 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_subprocess |
|
||||
| Invalid pro_tri_deleted | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | 4541388955000000000e5a4073302257 | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_deleted |
|
||||
| Invalid pro_tri_canceled | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | 4541380000000000087e5a4073302257 | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_canceled |
|
||||
| Invalid pro_tri_paused | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | 4541388900000000087e5a4073302257 | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_paused |
|
||||
| Invalid pro_tri_reassigned | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | 4541380000000000000e5a4073302257 | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_reassigned |
|
||||
| Invalid pro_show_delegate | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 5 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_delegate |
|
||||
| Invalid pro_show_dynaform | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 8 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_dynaform |
|
||||
| Invalid pro_category | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | 4541380000000000000e5a4073302257 | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_category |
|
||||
| Invalid pro_industry | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 4 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_industry |
|
||||
| Invalid pro_create_date | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 01-98-2014 110:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_create_date |
|
||||
| Invalid pro_create_user | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 0000000000003551 | 0 | | | | 400 | pro_create_user |
|
||||
| Invalid pro_debug | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 5 | | | | 400 | pro_debug |
|
||||
| Invalid pro_summary_dynaform | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | 954104947190420f51086854718 | | 400 | pro_summary_dynaform |
|
||||
| Invalid pro_calendar | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | 954104947190420f51086854718 | 400 | pro_calendar |
|
||||
| Field required prj_uid | | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | prj_uid |
|
||||
| Same Name pro_title | 79409754952f8f5110c4342001470580 | Test | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 200 | |
|
||||
| Same Name pro_title | 58773281752f50297d6bf00047802053 | Test | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_title |
|
||||
| Set initial values | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-11 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 200 | |
|
||||
| Set initial values | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-11 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 200 | |
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ Requirements:
|
||||
|
||||
Examples:
|
||||
| test_description | project | pu_uid |
|
||||
| Get the supervisor details | 85794888452ceeef3675164057928956 | 31336919452fa84404e3ac0086239686 |
|
||||
| Get the supervisor details | 85794888452ceeef3675164057928956 | 45562646852fa827abb79a5097602637 |
|
||||
|
||||
|
||||
Scenario Outline: Get a List of dynaforms assigned to a process supervisor
|
||||
|
||||
@@ -1201,13 +1201,26 @@ class RestContext extends BehatContext
|
||||
if(isset($bodyResponse->error->message)){
|
||||
$message = $bodyResponse->error->message;
|
||||
if (strpos($message,$arg1) === false) {
|
||||
throw new \Exception("Error message text does not have: '" . $arg1 ."'' (actual: '$message')\n\n");
|
||||
throw new \Exception("Error message text does not have: '" . $arg1 ."' (actual: '$message')\n\n");
|
||||
}
|
||||
}elseif(is_array($bodyResponse)){
|
||||
$error_found=false;
|
||||
$messages = array();
|
||||
foreach($bodyResponse as $resp){
|
||||
if(isset($resp->error)){
|
||||
$messages[]=$resp->error;
|
||||
if (strpos($resp->error,$arg1) !== false){
|
||||
$error_found=true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if(!$error_found){
|
||||
$message=implode("\n- ",$messages);
|
||||
throw new \Exception("Error message text does not have: '" . $arg1 ."' \nCurrent messages: \n- $message\n\n");
|
||||
}
|
||||
}else{
|
||||
throw new \Exception('This is not a valid error response');
|
||||
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user