automatizacion de input document completo y process supervisor al 40%

This commit is contained in:
Erik Amaru Ortiz
2014-01-16 23:38:41 -04:00
parent 1a88dbc206
commit 219326e8f5
2 changed files with 37 additions and 33 deletions

View File

@@ -40,16 +40,20 @@ Feature: Input Documents Resources
Examples:
| project | inp_doc_number | inp_doc_title | inp_doc_description | inp_doc_form_needed | inp_doc_original | inp_doc_published | inp_doc_versioning | inp_doc_destination_path | inp_doc_tags": "INPUT |
| 14414793652a5d718b65590036026581 | 1 | My InputDocument1 | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 2 | My InputDocument2 | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 3 | My InputDocument3 | My InputDocument3 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 4 | My InputDocument4 | My InputDocument4 DESCRIPTION | VREAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 5 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COPY | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 6 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| 14414793652a5d718b65590036026581 | 7 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my/path | INPUT |
| 14414793652a5d718b65590036026581 | 8 | My InputDocument8 | My InputDocument8 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 9 | My InputDocument9 | My InputDocument9 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| project | inp_doc_number | inp_doc_title | inp_doc_description | inp_doc_form_needed | inp_doc_original | inp_doc_published | inp_doc_versioning | inp_doc_destination_path | inp_doc_tags |
| 14414793652a5d718b65590036026581 | 1 | My InputDocument1 | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 2 | My InputDocument2 | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 3 | My InputDocument3 | My InputDocument3 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 4 | My InputDocument4 | My InputDocument4 DESCRIPTION | VREAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 5 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COPY | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 6 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 0 | | INPUT |
| 14414793652a5d718b65590036026581 | 7 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my/path | INPUT |
| 14414793652a5d718b65590036026581 | 8 | My InputDocument8 | My InputDocument8 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 9 | My InputDocument9 | My InputDocument9 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 10 | My InputDocument10 !@#$%^&*€¤½¼‘¾¡²¤³ | My InputDocument10 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 11 | My InputDocument11 | My InputDocument11 !@#$%^&*€¤½¼‘¾¡²¤³| REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | 12 | My InputDocument12 | My InputDocument12 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my#@$#%/path324@$@@ | INPUT |
| 14414793652a5d718b65590036026581 | 13 | My InputDocument13 | My InputDocument13 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPU455 @##$$³¤¤ |
@@ -62,7 +66,7 @@ Feature: Input Documents Resources
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "array"
And the response has 9 records
And the response has 13 records
@@ -154,7 +158,11 @@ Feature: Input Documents Resources
| 14414793652a5d718b65590036026581 | 6 |
| 14414793652a5d718b65590036026581 | 7 |
| 14414793652a5d718b65590036026581 | 8 |
| 14414793652a5d718b65590036026581 | 9 |
| 14414793652a5d718b65590036026581 | 9 |
| 14414793652a5d718b65590036026581 | 10 |
| 14414793652a5d718b65590036026581 | 11 |
| 14414793652a5d718b65590036026581 | 12 |
| 14414793652a5d718b65590036026581 | 13 |
@@ -194,15 +202,11 @@ Feature: Input Documents Resources
Examples:
| project | inp_doc_title | inp_doc_description | inp_doc_form_needed | inp_doc_original | inp_doc_published | inp_doc_versioning | inp_doc_destination_path | inp_doc_tags |
| 14414793652a5d718b65590036 | My InputDocument1 | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument2 !@#$%^&*€¤½¼‘¾¡²¤³ | My InputDocument2 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument3 | My InputDocument3 !@#$%^&*€¤½¼‘¾¡²¤³| REAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036 | My InputDocument1 | My InputDocument1 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument4 | My InputDocument4 DESCRIPTION | VRESAMPLE12334$%#@ | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument5 | My InputDocument5 DESCRIPTION | VIRTUAL | COORIGI 123@#$%$% | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument6 | My InputDocument6 DESCRIPTION | VIRTUAL | ORIGINAL | PRIV123234@##$$%% | 0 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument7 | My InputDocument7 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 87 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument8 | My InputDocument8 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | /my#@$#%/path324@$@@ | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument9 | My InputDocument9 DESCRIPTION | REAL | ORIGINAL | PRIVATE | 1 | | INPU455 @##$$³¤¤ |
| | My InputDocument10 | My InputDocument10 DESCRIPTION | VIRTUAL | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument11 | My InputDocument11 DESCRIPTION | | ORIGINAL | PRIVATE | 1 | | INPUT |
| 14414793652a5d718b65590036026581 | My InputDocument12 | My InputDocument12 DESCRIPTION | REAL | | PRIVATE | 1 | | INPUT |

View File

@@ -7,7 +7,7 @@ Feature: Process supervisor Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisors
@1: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisors"
Given I request "project/85794888452ceeef3675164057928956/process-supervisors"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -18,7 +18,7 @@ Feature: Process supervisor Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/{pu_uid}
@2: TEST FOR GET A SPECIFIC PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a specific process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/70662784652cef0878516f7085532841"
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/70662784652cef0878516f7085532841"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -28,7 +28,7 @@ Feature: Process supervisor Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/available-process-supervisors
@3: TEST FOR GET USERS AND GROUP SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of available process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/available-process-supervisors"
Given I request "project/85794888452ceeef3675164057928956/available-process-supervisors"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -39,7 +39,7 @@ Feature: Process supervisor Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/available-process-supervisors
@4: TEST FOR GET GROUP SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of available groups process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/available-process-supervisors?obj_type=group"
Given I request "project/85794888452ceeef3675164057928956/available-process-supervisors?obj_type=group"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -50,7 +50,7 @@ Feature: Process supervisor Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/available-process-supervisors
@5: TEST FOR GET USERS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of available users process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/available-process-supervisors?obj_type=user"
Given I request "project/85794888452ceeef3675164057928956/available-process-supervisors?obj_type=user"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -61,7 +61,7 @@ Feature: Process supervisor Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/dynaforms
@6: TEST FOR DYNAFORM PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of dynaforms process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaforms"
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaforms"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -71,7 +71,7 @@ Feature: Process supervisor Resources
@7: TEST FOR GET A SPECIFIC PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a specific process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaform/78069721352ceef1fd61878075214306"
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaform/78069721352ceef1fd61878075214306"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -81,7 +81,7 @@ Feature: Process supervisor Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/available-dynaforms
@8: TEST FOR GET AVAILABLE DYNAFORM PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of available dynaforms process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/available-dynaforms"
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/available-dynaforms"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -92,7 +92,7 @@ Feature: Process supervisor Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/input-documents
@9: TEST FOR GET INPUT DOCUMENT PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of input-documents process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/input-documents"
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/input-documents"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -103,7 +103,7 @@ Feature: Process supervisor Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/available-input-documents
@10: TEST FOR GET LIST INPUT DOCUMENTS - PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a List of input-documents process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/available-input-documents"
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/available-input-documents"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -114,7 +114,7 @@ Feature: Process supervisor Resources
#GET /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/input-document/{pu_uid}
@11: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Get a specific process supervisor of a project
Given that I request "project/85794888452ceeef3675164057928956/process-supervisor/input-document/37709187452ceef4f601dd3045365506"
Given I request "project/85794888452ceeef3675164057928956/process-supervisor/input-document/37709187452ceef4f601dd3045365506"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -124,7 +124,7 @@ Feature: Process supervisor Resources
#POST /api/1.0/{workspace}/project/{prj_uid}/process-supervisor
@12: TEST FOR POST PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario Outline: Assign a user and group process supervisor of a project
Given that I POST this data:
Given POST this data:
"""
{
"pu_type": "pu_type",
@@ -148,7 +148,7 @@ Feature: Process supervisor Resources
#POST /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/dynaform
@13: TEST FOR POST DYNAFORM PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario Outline: Assign a dynaform process supervisor of a project
Given that I POST this data:
Given POST this data:
"""
{
"dyn_uid": "78212661352ceef2dc4e987081647602"
@@ -165,13 +165,13 @@ Feature: Process supervisor Resources
Examples:
| project | dps_number | dyn_uid |
| 85794888452ceeef3675164057928956 | 1 | 78212661352ceef2dc4e987081647602 |
| 85794888452ceeef3675164057928956 | 1 |
| 85794888452ceeef3675164057928956 | 1 | 3
#POST /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/input-document
@14: TEST FOR POST INPUT DOCUMENT - PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario Outline: Assign a dynaform process supervisor of a project
Given that I POST this data:
Given POST this data:
"""
{
"inp_doc_uid": "<inp_doc_uid>"
@@ -230,7 +230,7 @@ Feature: Process supervisor Resources
#DELETE /api/1.0/{workspace}/project/{prj_uid}/process-supervisor/input-document
@3: TEST FOR GET PROCESS SUPERVISOR /--------------------------------------------------------------------
Scenario: Delete a input-document process supervisor of a project
Given that want to delete a resource with the key "pui_uid" stored in session array
Given that I want to delete a resource with the key "pui_uid" stored in session array
And I request "project/85794888452ceeef3675164057928956/process-supervisor/input-document"
And the content type is "application/json"
Then the response status code should be 200