Merged in wnestor/processmaker (pull request #405)

Arreglos de UID del feature process supervisor ordenamiento, category, departments y case actions
This commit is contained in:
Erik Amaru Ortiz
2014-04-19 23:56:58 -04:00
6 changed files with 50 additions and 74 deletions

View File

@@ -77,12 +77,10 @@ Scenario Outline: Update the Category created in this script
Given PUT this data:
"""
{
"cat_name": "cat_name"
"cat_name": "<cat_name>"
}
"""
And I request "project/category/cat_uid" with the key "cat_uid" stored in session array as variable "cat_uid_<cat_uid_number>"
And store "cat_uid" in session array as variable "cat_uid_<cat_uid_number>"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
@@ -101,8 +99,8 @@ Scenario Outline: Get a Category specific
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "array"
And the "cat_name" property equals "UPDATE sample!@#$%^^&"
And the "cat_total_processes" property equals 0
And the "cat_name" property equals "<cat_name>"
And the "cat_total_processes" property equals <cat_total_processes>
Examples:

View File

@@ -92,7 +92,7 @@ Background:
}
"""
And I request "department/<dep_uid>/assign-user/23085901752d5671483a4c2059274810" with the key "dep_uid" stored in session array
And I request "department/dep_uid/assign-user/23085901752d5671483a4c2059274810" with the key "dep_uid" stored in session array
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -106,12 +106,12 @@ Background:
}
"""
And I request "department/<dep_uid>/set-manager/24768775452d5671dbc1e92021979323" with the key "dep_uid" stored in session array
And I request "department/dep_uid/set-manager/24768775452d5671dbc1e92021979323" with the key "dep_uid" stored in session array
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "dep_uid" in session array
@@ -122,12 +122,12 @@ Background:
}
"""
And I request "department/<dep_uid>/unassign-user/23085901752d5671483a4c2059274810" with the key "dep_uid" stored in session array
And I request "department/dep_uid/unassign-user/23085901752d5671483a4c2059274810" with the key "dep_uid" stored in session array
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "dep_uid" in session array
Scenario: Set manager user to department (new supervisor of department: dylan)
@@ -137,12 +137,12 @@ Background:
}
"""
And I request "department/<dep_uid>/set-manager/38102442252d5671a629009013495090" with the key "dep_uid" stored in session array
And I request "department/dep_uid/set-manager/38102442252d5671a629009013495090" with the key "dep_uid" stored in session array
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "dep_uid" in session array
Scenario: List all Departaments in the workspace when exactly are 16 departaments created

View File

@@ -113,8 +113,8 @@ Background:
Examples:
| test_description | dep_uid_number | dep_title | dep_status |
| Update of field title and status of department | A | Department A UPDATE | INACTIVE |
| Update of field title and status of department | C | Department B UPDATE | ACTIVE |
| Update of field title and status of department | 1 | Department A UPDATE | INACTIVE |
| Update of field title and status of department | 2 | Department B UPDATE | ACTIVE |
Scenario Outline: Get a single department after update of the department created of this script
@@ -141,14 +141,13 @@ Background:
}
"""
And that I want to update a resource with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
And I request "department/<dep_uid>/assign-user/<usr_uid>"
And that I want to update "Assigned users"
And I request "department/dep_uid/assign-user/<usr_uid>" with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "dep_uid" in session array
Examples:
| Description | dep_uid_number | usr_uid |
@@ -166,13 +165,12 @@ Background:
}
"""
And that I want to update a resource with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
And I request "department/<dep_uid>/set-manager/<usr_uid>"
And that I want to update "Department supervisor"
And I request "department/dep_uid/set-manager/<usr_uid>" with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "dep_uid" in session array
Examples:
@@ -184,7 +182,7 @@ Background:
Scenario Outline: Get a single department of created in this script
Given that I want to get a resource with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
And I request "department/<dep_uid>"
And I request "department"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
@@ -209,14 +207,13 @@ Background:
}
"""
And that I want to update a resource with the key "dep_uid" stored in session array
And I request "department/<dep_uid>/unassign-user/23085901752d5671483a4c2059274810"
And that I want to update "Assigned users"
And I request "department/dep_uid/unassign-user/<usr_uid>" with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
And store "dep_uid" in session array
Examples:

View File

@@ -50,8 +50,8 @@ Scenario Outline: Create a new departments in the workspace with bad parameters
Scenario: Delete a department when have asigned user (negative tests)
Given that I want to delete a resource with the key "15978182252d5674d210310076985235"
Given that I want to delete a "Department"
And I request "department/15978182252d5674d210310076985235"
Then the response status code should be 400
And the response status message should have the following text "<cannot be deleted>"
And the response status message should have the following text "cannot be deleted"

View File

@@ -196,9 +196,9 @@ Scenario Outline: Returns case variables generated by triggers before assignment
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the "ar" property equals ""
And the "br" property equals ""
And the "ba" property equals ""
And the response has not a "ar" property
And the response has not a "br" property
And the response has not a "ba" property
Examples:

View File

@@ -41,15 +41,15 @@ Requirements:
Scenario Outline: Obtain the position of the steps after changing position
Given I request "project/857888611534814982bc651033834642/process-supervisor/7976552835322023005e069088446535/step/<step_uid>"
Given I request "project/857888611534814982bc651033834642/process-supervisor/dynaform/<step_uid>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "step_position" is set to "<step_position>"
And that "pud_position" is set to "<pud_position>"
Examples:
| test_description | step_uid | step_position |
| test_description | step_uid | pud_position |
| Position-dynaform1 | 674032139534bd91f9331a5032066933 | 2 |
| Position-dynaform2 | 583050735534bd923984f24007464958 | 3 |
| Position-dynaform3 | 114660532534bd926817991070085867 | 1 |
@@ -78,21 +78,20 @@ Requirements:
Scenario Outline: Obtain the position of the steps after add new dynaform
Given I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/<step_uid>"
Given I request "project/857888611534814982bc651033834642/process-supervisor/dynaform/<step_uid>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "step_position" is set to "<step_position>"
And that "pud_position" is set to "<pud_position>"
Examples:
| test_description | step_uid | step_position |
| Position-dynaform1 | 8257746325322026c0e45e3047837732 | 2 |
| Position-dynaform2 | 30547852753220293960227013371359 | 3 |
| Position-dynaform3 | 840380819532202d132fb91020992676 | 1 |
| Position-dynaform4 | 663853222532202eec8a913042063689 | 4 |
| Position-dynaform5 | 925775829534bdee3ef85a0017515754 | 5 |
| test_description | step_uid | pud_position |
| Position-dynaform1 | 674032139534bd91f9331a5032066933 | 2 |
| Position-dynaform2 | 583050735534bd923984f24007464958 | 3 |
| Position-dynaform3 | 114660532534bd926817991070085867 | 1 |
| Position-dynaform4 | 105517492534bd929a58c15055718131 | 4 |
Scenario Outline: Delete an dynaform5 to a process supervisor
Given that I want to delete a resource with the key "pui_uid" stored in session array as variable "pud_uid_<pud_number>"
@@ -103,22 +102,20 @@ Requirements:
Examples:
| test_description | project | pud_number |
| Delete dynaform5 for Supervisor | 925775829534bdee3ef85a0017515754 | 1 |
| Delete dynaform5 for Supervisor | 856447360534bdeab3c4a72086906269 | 1 |
Scenario Outline: Obtain the position of the dynaforms after changing position
Given I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/<step_uid>"
Given I request "project/857888611534814982bc651033834642/process-supervisor/dynaform/<step_uid>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "step_position" is set to "<step_position>"
And that "pud_position" is set to "<pud_position>"
Examples:
| test_description | step_uid | step_position |
| test_description | step_uid | pud_position |
| Position-dynaform1 | 674032139534bd91f9331a5032066933 | 1 |
| Position-dynaform2 | 583050735534bd923984f24007464958 | 2 |
| Position-dynaform3 | 114660532534bd926817991070085867 | 3 |
@@ -131,7 +128,7 @@ Scenario Outline: obtain the position of Input Documents in process supervisor
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "array"
And that "pui_position" is set to "<pui_position>"
And that "pud_position" is set to "<pud_position>"
Examples:
@@ -149,16 +146,16 @@ Scenario Outline: obtain the position of Input Documents in process supervisor
"pud_position": "1"
}
"""
And I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/392695739534bdfe1542bb4007328326"
And I request "project/857888611534814982bc651033834642/process-supervisor/input-document/519852825534bdf430c81e5083980052"
Then the response status code should be 200
Scenario Outline: Obtain the position of the steps after changing position
Given I request "project/857888611534814982bc651033834642/process-supervisors"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "pui_position" is set to "<pui_position>"
And the type is "array"
And that "pud_position" is set to "<pud_position>"
Examples:
@@ -168,30 +165,14 @@ Scenario Outline: obtain the position of Input Documents in process supervisor
| Position-Input3 | 392695739534bdfe1542bb4007328326 | 1 |
Scenario Outline: obtain the position of Input Documents in process supervisor
Given I request "project/857888611534814982bc651033834642/process-supervisors"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "pui_position" is set to "<pui_position>"
Examples:
| test_description | step_uid | pud_position |
| Position-Input1 | 152101193534bdfdb530c96029300152 | 1 |
| Position-Input2 | 370888112534bdfde887e79055241597 | 2 |
| Position-Input3 | 392695739534bdfe1542bb4007328326 | 3 |
Scenario: Change order the Input document of "Input3" by position three
Scenario: Change order the Input document of "Input3" by position one
Given PUT this data:
"""
{
"pud_position": "3"
}
"""
And I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/392695739534bdfe1542bb4007328326"
And I request "project/857888611534814982bc651033834642/process-supervisor/input-document/519852825534bdf430c81e5083980052"
Then the response status code should be 200
@@ -199,8 +180,8 @@ Scenario Outline: obtain the position of Input Documents in process supervisor
Given I request "project/857888611534814982bc651033834642/process-supervisors"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "pui_position" is set to "<pui_position>"
And the type is "array"
And that "pud_position" is set to "<pud_position>"
Examples: