Correcciones a los features process, process supervisor, project, step

This commit is contained in:
Wendy Nestor
2014-04-14 08:43:17 -04:00
parent f8d57689a8
commit 3df15e09e1
6 changed files with 94 additions and 76 deletions

View File

@@ -18,28 +18,28 @@ Feature: Process of a Project Resources
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_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_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_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_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_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>"
@@ -58,28 +58,28 @@ Feature: Process of a Project Resources
"pro_title" : "<pro_title>",
"pro_description" : "<pro_description>",
"pro_parent" : "<pro_parent>",
"pro_time" : "<pro_time>",
"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_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_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_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_debug" : <pro_debug>,
"pro_derivation_screen_tpl": "<pro_derivation_screen_tpl>",
"pro_summary_dynaform" : "<pro_summary_dynaform>",
"pro_calendar" : "<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 "<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_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_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_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_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_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>"
@@ -147,28 +147,28 @@ Feature: Process of a Project Resources
"pro_title" : "<pro_title>",
"pro_description" : "<pro_description>",
"pro_parent" : "<pro_parent>",
"pro_time" : "<pro_time>",
"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_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_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_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_debug" : <pro_debug>,
"pro_derivation_screen_tpl": "<pro_derivation_screen_tpl>",
"pro_summary_dynaform" : "<pro_summary_dynaform>",
"pro_calendar" : "<pro_calendar>"
@@ -196,28 +196,28 @@ Feature: Process of a Project Resources
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_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_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_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_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_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>"

View File

@@ -11,28 +11,28 @@ Scenario Outline: Update Process
"pro_title" : "<pro_title>",
"pro_description" : "<pro_description>",
"pro_parent" : "<pro_parent>",
"pro_time" : "<pro_time>",
"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_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_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_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_debug" : <pro_debug>,
"pro_derivation_screen_tpl": "<pro_derivation_screen_tpl>",
"pro_summary_dynaform" : "<pro_summary_dynaform>",
"pro_calendar" : "<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" : ""

View File

@@ -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

View File

@@ -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 <project_uid>
Given I request "project/<project_uid>"
Then the response status code should be 200
"""

View File

@@ -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"

View File

@@ -68,19 +68,29 @@ 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_<step_number>"
And I request "project/16062437052cd6141881e06088349078/input-document"
And the content type is "application/json"
Then the response status code should be 400
Examples:
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/<project>/output-document"
| step_number |
| 3 |
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_<step_number>"
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 |
Scenario Outline: Update the five steps and then check if the values had changed
@@ -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"