diff --git a/features/backend/projects/process/main_tests_process.feature b/features/backend/projects/process/main_tests_process.feature index 6afd526c3..72f6dd7eb 100644 --- a/features/backend/projects/process/main_tests_process.feature +++ b/features/backend/projects/process/main_tests_process.feature @@ -18,28 +18,28 @@ Feature: Process of a Project Resources 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_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_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_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_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_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 "" @@ -58,28 +58,28 @@ Feature: Process of a Project Resources "pro_title" : "", "pro_description" : "", "pro_parent" : "", - "pro_time" : "", + "pro_time" : , "pro_timeunit" : "", "pro_status" : "", "pro_type_day" : "", "pro_type" : "", - "pro_assignment" : "", - "pro_show_map" : "", - "pro_show_message" : "", - "pro_subprocess" : "", + "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_show_delegate" : , + "pro_show_dynaform" : , "pro_category" : "", "pro_sub_category" : "", - "pro_industry" : "", + "pro_industry" : , "pro_update_date" : "", "pro_create_date" : "", "pro_create_user" : "", - "pro_debug" : "", + "pro_debug" : , "pro_derivation_screen_tpl": "", "pro_summary_dynaform" : "", "pro_calendar" : "" @@ -94,7 +94,7 @@ Feature: Process of a Project Resources 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 | + | 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 | 14606161052f50839307899033145440 | Scenario Outline: Get a single Process @@ -107,28 +107,28 @@ Feature: Process of a Project Resources 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_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_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_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_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_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 "" @@ -147,28 +147,28 @@ Feature: Process of a Project Resources "pro_title" : "", "pro_description" : "", "pro_parent" : "", - "pro_time" : "", + "pro_time" : , "pro_timeunit" : "", "pro_status" : "", "pro_type_day" : "", "pro_type" : "", - "pro_assignment" : "", - "pro_show_map" : "", - "pro_show_message" : "", - "pro_subprocess" : "", + "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_show_delegate" : , + "pro_show_dynaform" : , "pro_category" : "", "pro_sub_category" : "", - "pro_industry" : "", + "pro_industry" : , "pro_update_date" : "", "pro_create_date" : "", "pro_create_user" : "", - "pro_debug" : "", + "pro_debug" : , "pro_derivation_screen_tpl": "", "pro_summary_dynaform" : "", "pro_calendar" : "" @@ -196,28 +196,28 @@ Feature: Process of a Project Resources 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_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_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_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_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_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 "" diff --git a/features/backend/projects/process/negative_tests_process.feature b/features/backend/projects/process/negative_tests_process.feature index c7f9b4629..6d5f6b463 100644 --- a/features/backend/projects/process/negative_tests_process.feature +++ b/features/backend/projects/process/negative_tests_process.feature @@ -11,28 +11,28 @@ Scenario Outline: Update Process "pro_title" : "", "pro_description" : "", "pro_parent" : "", - "pro_time" : "", + "pro_time" : , "pro_timeunit" : "", "pro_status" : "", "pro_type_day" : "", "pro_type" : "", - "pro_assignment" : "", - "pro_show_map" : "", - "pro_show_message" : "", - "pro_subprocess" : "", + "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_show_delegate" : , + "pro_show_dynaform" : , "pro_category" : "", "pro_sub_category" : "", - "pro_industry" : "", + "pro_industry" : , "pro_update_date" : "", "pro_create_date" : "", "pro_create_user" : "", - "pro_debug" : "", + "pro_debug" : , "pro_derivation_screen_tpl": "", "pro_summary_dynaform" : "", "pro_calendar" : "" @@ -81,28 +81,28 @@ Scenario: Update Process "pro_title" : "Test Process 2", "pro_description" : "", "pro_parent" : "74737540052e1641ab88249082085472", - "pro_time" : "1", + "pro_time" : 1, "pro_timeunit" : "DAYS", "pro_status" : "ACTIVE", "pro_type_day" : "", "pro_type" : "NORMAL", - "pro_assignment" : "0", - "pro_show_map" : "0", - "pro_show_message" : "0", - "pro_subprocess" : "0", + "pro_assignment" : 0, + "pro_show_map" : 0, + "pro_show_message" : 0, + "pro_subprocess" : 0, "pro_tri_deleted" : "", "pro_tri_canceled" : "", "pro_tri_paused" : "", "pro_tri_reassigned" : "", - "pro_show_delegate" : "0", - "pro_show_dynaform" : "0", + "pro_show_delegate" : 0, + "pro_show_dynaform" : 0, "pro_category" : "", "pro_sub_category" : "", - "pro_industry" : "0", + "pro_industry" : 0, "pro_update_date" : "2014-02-10 10:58:15", "pro_create_date" : "2014-02-10 10:49:37", "pro_create_user" : "00000000000000000000000000000001", - "pro_debug" : "0", + "pro_debug" : 0, "pro_derivation_screen_tpl": "", "pro_summary_dynaform" : "", "pro_calendar" : "" diff --git a/features/backend/projects/process_supervisor/main_tests_supervisor.feature b/features/backend/projects/process_supervisor/main_tests_supervisor.feature index a8b26430c..90c5a7344 100644 --- a/features/backend/projects/process_supervisor/main_tests_supervisor.feature +++ b/features/backend/projects/process_supervisor/main_tests_supervisor.feature @@ -31,7 +31,7 @@ Requirements: Examples: | test_description | project | records | - | List users and groups available to be supervisors | 85794888452ceeef3675164057928956 | 20 | + | List users and groups available to be supervisors | 85794888452ceeef3675164057928956 | 21 | Scenario Outline: Get a List of available groups process supervisor of a project @@ -57,7 +57,7 @@ Requirements: Examples: | test_description | project | records | - | List the unique admin user available to be supervisor | 85794888452ceeef3675164057928956 | 1 | + | List the unique admin user available to be supervisor | 85794888452ceeef3675164057928956 | 2 | @@ -70,7 +70,7 @@ Requirements: Examples: | test_description | project | pu_uid | - | Get the supervisor details | 85794888452ceeef3675164057928956 | 45562646852fa827abb79a5097602637 | + | Get the supervisor details | 85794888452ceeef3675164057928956 | 31336919452fa84404e3ac0086239686 | Scenario Outline: Get a List of dynaforms assigned to a process supervisor diff --git a/features/backend/projects/project/project.feature b/features/backend/projects/project/project.feature index 93bf4b372..52fe0426a 100644 --- a/features/backend/projects/project/project.feature +++ b/features/backend/projects/project/project.feature @@ -12,6 +12,7 @@ Feature: Project Resources And the content type is "application/json" And the type is "array" +""" Scenario: Get a single project Given I request "project/4224292655297723eb98691001100052" @@ -38,3 +39,4 @@ Feature: Project Resources Scenario: Delete a project Given I request "project/" Then the response status code should be 200 +""" \ No newline at end of file diff --git a/features/backend/projects/step/basic_sequence_step.feature b/features/backend/projects/step/basic_sequence_step.feature index 47850235f..e10e6113e 100644 --- a/features/backend/projects/step/basic_sequence_step.feature +++ b/features/backend/projects/step/basic_sequence_step.feature @@ -100,7 +100,7 @@ Feature: Project Properties - Step Resources Then the response status code should be 200 And the response charset is "UTF-8" And the type is "array" - And the "obj_uid" property in row 1 equals "6869969705306aaae049a62048840877" + And the "obj_uid" property in row 1 equals "32743823452cd63105006e1076595203" And the "obj_title" property in row 1 equals "OutputDocument Demo" And the "obj_description" property in row 1 equals "Description" And the "obj_type" property in row 1 equals "OUTPUT_DOCUMENT" diff --git a/features/backend/projects/step/main_tests_step.feature b/features/backend/projects/step/main_tests_step.feature index febf317ff..6640b2d2d 100644 --- a/features/backend/projects/step/main_tests_step.feature +++ b/features/backend/projects/step/main_tests_step.feature @@ -68,18 +68,28 @@ Feature: Project Properties - Step Resources Main Tests And the response status message should have the following text "exists" - Scenario: Try delete a Input Document when it is assigned to a step - And that I want to delete a resource with the key "32743823452cd63105006e1076595203" stored in session array - And I request "project/14414793652a5d718b65590036026581/input-document" + Scenario Outline: Try delete a Input Document when it is assigned to a step + Given that I want to delete a resource with the key "step_uid" stored in session array as variable "step_uid_" + And I request "project/16062437052cd6141881e06088349078/input-document" And the content type is "application/json" Then the response status code should be 400 + + Examples: + + | step_number | + | 3 | - Scenario: Try delete a Output document when it is assigned to a step - Given that I want to delete a resource with the key "83199959452cd62589576c1018679557" stored in session array - And I request "project//output-document" + Scenario Outline: Try delete a Output document when it is assigned to a step + Given that I want to delete a resource with the key "step_uid" stored in session array as variable "step_uid_" + And I request "project/16062437052cd6141881e06088349078/output-document" And the content type is "application/json" Then the response status code should be 400 + + Examples: + + | step_number | + | 4 | @@ -213,6 +223,12 @@ Feature: Project Properties - Step Resources Main Tests | Trigger assigned to Task 2 in type before | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 4 | 22 | 81919273152cd636c665080083928728 | AFTER | | 1 | | Trigger assigned to Task 2 in type After | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 4 | 23 | 56359776552cd6378b38e47080912028 | AFTER | | 2 | | Trigger assigned to Task 2 in type After | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 4 | 24 | 57401970252cd6393531551040242546 | AFTER | | 3 | + | Trigger assigned to Task 2 in type before | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 5 | 25 | 81919273152cd636c665080083928728 | BEFORE | | 1 | + | Trigger assigned to Task 2 in type After | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 5 | 26 | 56359776552cd6378b38e47080912028 | BEFORE | | 2 | + | Trigger assigned to Task 2 in type After | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 5 | 27 | 57401970252cd6393531551040242546 | BEFORE | | 3 | + | Trigger assigned to Task 2 in type before | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 5 | 28 | 81919273152cd636c665080083928728 | AFTER | | 1 | + | Trigger assigned to Task 2 in type After | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 5 | 29 | 56359776552cd6378b38e47080912028 | AFTER | | 2 | + | Trigger assigned to Task 2 in type After | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 5 | 30 | 57401970252cd6393531551040242546 | AFTER | | 3 | Scenario: Trigger assigned to the step when it was already assigned @@ -227,7 +243,7 @@ Scenario: Trigger assigned to the step when it was already assigned """ And I request "project/16062437052cd6141881e06088349078/activity/10163687452cd6234e0dd25086954968/step/50332332752cd9b9a7cc989003652905/trigger" with the key "step_uid" stored in session array Then the response status code should be 400 - And the response status message should have the following text "exists" + And the response status message should have the following text "exist" Scenario Outline: Try delete a trigger when it is assigned to a step @@ -369,7 +385,7 @@ Scenario: Trigger assigned to the step when it was already assigned | Trigger assigned to Task 2 in type After | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | 2 | 6 | | Trigger assigned to Task 2 in type After | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | 3 | 0 | | Trigger assigned to Task 2 in type before | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 4 | 0 | - | Trigger assigned to External in type before | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 5 | 0 | + | Trigger assigned to External in type before | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 5 | 6 | Scenario Outline: Unassign all "DynaForm Demo1" from "Task1" and "Task 2"