diff --git a/features/backend/database_connections/negative_tests_database_connections.feature b/features/backend/database_connections/negative_tests_database_connections.feature index f51b526fa..55eafef0e 100644 --- a/features/backend/database_connections/negative_tests_database_connections.feature +++ b/features/backend/database_connections/negative_tests_database_connections.feature @@ -25,15 +25,13 @@ 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 project | | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 400 | prj_uid | + | 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 | 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 | diff --git a/features/backend/process_project_resources/basic_sequence.feature b/features/backend/process_project_resources/basic_sequence.feature deleted file mode 100644 index 5c0d095c4..000000000 --- a/features/backend/process_project_resources/basic_sequence.feature +++ /dev/null @@ -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 "" - And that "pro_description" is set to "" - And that "pro_status" is set to "" - And that "pro_create_user" is set to "" - And that "pro_debug" is set to "" - - 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_description": "", - "pro_status": "", - "pro_create_user": "", - "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 | - diff --git a/features/backend/process_project_resources/basic_sequence_process.feature b/features/backend/process_project_resources/basic_sequence_process.feature deleted file mode 100644 index 5c0d095c4..000000000 --- a/features/backend/process_project_resources/basic_sequence_process.feature +++ /dev/null @@ -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 "" - And that "pro_description" is set to "" - And that "pro_status" is set to "" - And that "pro_create_user" is set to "" - And that "pro_debug" is set to "" - - 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_description": "", - "pro_status": "", - "pro_create_user": "", - "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 | - diff --git a/features/backend/process_project_resources/main_tests_process.feature b/features/backend/process_project_resources/main_tests_process.feature deleted file mode 100644 index 6afd526c3..000000000 --- a/features/backend/process_project_resources/main_tests_process.feature +++ /dev/null @@ -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//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 "" - And that "pro_description" is set to "" - And that "pro_parent" is set to "" - And that "pro_time" is set to "" - And that "pro_timeunit" is set to "" - And that "pro_status" is set to "" - And that "pro_type_day" is set to "" - And that "pro_type" is set to "" - And that "pro_assignment" is set to "" - And that "pro_show_map" is set to "" - And that "pro_show_message" is set to "" - And that "pro_subprocess" is set to "" - And that "pro_tri_deleted" is set to "" - And that "pro_tri_canceled" is set to "" - And that "pro_tri_paused" is set to "" - And that "pro_tri_reassigned" is set to "" - And that "pro_show_delegate" is set to "" - And that "pro_show_dynaform" is set to "" - And that "pro_category" is set to "" - And that "pro_sub_category" is set to "" - And that "pro_industry" is set to "" - And that "pro_update_date" is set to "" - And that "pro_create_date" is set to "" - And that "pro_create_user" is set to "" - And that "pro_debug" is set to "" - And that "pro_derivation_screen_tpl" is set to "" - And that "pro_summary_dynaform" is set to "" - And that "pro_calendar" is set to "" - - - 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_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" : "" - } - """ - And I request "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//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 "" - And that "pro_description" is set to "" - And that "pro_parent" is set to "" - And that "pro_time" is set to "" - And that "pro_timeunit" is set to "" - And that "pro_status" is set to "" - And that "pro_type_day" is set to "" - And that "pro_type" is set to "" - And that "pro_assignment" is set to "" - And that "pro_show_map" is set to "" - And that "pro_show_message" is set to "" - And that "pro_subprocess" is set to "" - And that "pro_tri_deleted" is set to "" - And that "pro_tri_canceled" is set to "" - And that "pro_tri_paused" is set to "" - And that "pro_tri_reassigned" is set to "" - And that "pro_show_delegate" is set to "" - And that "pro_show_dynaform" is set to "" - And that "pro_category" is set to "" - And that "pro_sub_category" is set to "" - And that "pro_industry" is set to "" - And that "pro_update_date" is set to "" - And that "pro_create_date" is set to "" - And that "pro_create_user" is set to "" - And that "pro_debug" is set to "" - And that "pro_derivation_screen_tpl" is set to "" - And that "pro_summary_dynaform" is set to "" - And that "pro_calendar" is set to "" - - - 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_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" : "" - } - """ - And I request "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//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 "" - And that "pro_description" is set to "" - And that "pro_parent" is set to "" - And that "pro_time" is set to "" - And that "pro_timeunit" is set to "" - And that "pro_status" is set to "" - And that "pro_type_day" is set to "" - And that "pro_type" is set to "" - And that "pro_assignment" is set to "" - And that "pro_show_map" is set to "" - And that "pro_show_message" is set to "" - And that "pro_subprocess" is set to "" - And that "pro_tri_deleted" is set to "" - And that "pro_tri_canceled" is set to "" - And that "pro_tri_paused" is set to "" - And that "pro_tri_reassigned" is set to "" - And that "pro_show_delegate" is set to "" - And that "pro_show_dynaform" is set to "" - And that "pro_category" is set to "" - And that "pro_sub_category" is set to "" - And that "pro_industry" is set to "" - And that "pro_update_date" is set to "" - And that "pro_create_date" is set to "" - And that "pro_create_user" is set to "" - And that "pro_debug" is set to "" - And that "pro_derivation_screen_tpl" is set to "" - And that "pro_summary_dynaform" is set to "" - And that "pro_calendar" is set to "" - - - 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 | | | | \ No newline at end of file diff --git a/features/backend/process_project_resources/negative_tests_process.feature b/features/backend/process_project_resources/negative_tests_process.feature deleted file mode 100644 index f3f953744..000000000 --- a/features/backend/process_project_resources/negative_tests_process.feature +++ /dev/null @@ -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_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" : "" - } - """ - And I request "project//process" - Then the response status code should be - And the response status message should have the following text "" - - 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 | | - - \ No newline at end of file diff --git a/features/backend/process_project_resources/negative_tests_process.features b/features/backend/process_project_resources/negative_tests_process.features deleted file mode 100644 index e69de29bb..000000000 diff --git a/features/backend/process_supervisor/main_tests_supervisor.feature b/features/backend/process_supervisor/main_tests_supervisor.feature index 7390c6a3f..a4be5e322 100644 --- a/features/backend/process_supervisor/main_tests_supervisor.feature +++ b/features/backend/process_supervisor/main_tests_supervisor.feature @@ -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 diff --git a/features/bootstrap/RestContext.php b/features/bootstrap/RestContext.php index dc793eb30..bc50f1684 100644 --- a/features/bootstrap/RestContext.php +++ b/features/bootstrap/RestContext.php @@ -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{