Arreglos en los features output document, assignee, case scheduler, case tracker, step y trigger wizard

This commit is contained in:
Wendy Nestor
2014-04-11 16:57:56 -04:00
parent b69c75403e
commit c20cd34dd2
7 changed files with 103 additions and 50 deletions

View File

@@ -11,7 +11,7 @@ Scenario Outline: Pull information of an inexistent input document. should retur
Given I request "cases/64654381053382b8bb4c415067063003/input-document/<input-document>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the type is "array"
And the "app_doc_uid" property equals "<app_doc_uid>"
And the "app_doc_filename" property equals "<app_doc_filename>"
And the "doc_uid" property equals "<doc_uid>"

View File

@@ -63,7 +63,7 @@ Scenario Outline: Assign a user or group to an activity (Field validation)
| invalid start | a | b | c | 0 | 400 | string |
| invalid limit | a | 0 | c | 0 | 400 | string |
| search 0 | 0 | 0 | 0 | 0 | 200 | array |
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
| search 0 | 0 | 0 | 100 | 4 | 200 | array |
| negative numbers | a | -10 | -20 | 0 | 400 | string |
| real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
| real numbers | a | 0.0 | 0.0 | 0 | 200 | string |

View File

@@ -47,7 +47,6 @@ Feature: Output Documents Negative Tests
| Field requered sch_option | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Daily 123@#$ 11 | | 2014-01-30 | 2014-02-20 | 12:00 | | | | | | | 400 | sch_option |
| Field requered sch_name | admin | 46941969352af5be2ab3f39001216717 | | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 1 | | | | | | 400 | sch_name |
| Field requered sch_del_user_name | | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly 345%$# 12 | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 2\|3\|4\|5\|6\|7 | | | | | | 400 | User |
| Field requered sch_del_user_pass | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 113 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 1 | 15 | 3\|4 | | | 400 | password |
| Field requered tas_uid | admin | | Case Scheduler-Monthly 567&^% 14 | 3 | 2014-03-21 | 2014-04-18 | 39:00:99 | | 1 | 15 | 1\|2\|5\|6\|7\|8\|9\|10\|11\|12 | | | 400 | tas_uid |
| Field requered sch_start_time | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 15 | 3 | 2014-20-35 | 2014-04-18 | | | 2 | | 3\|4\|5 | 1\|7 | | 400 | sch_start_time |
| Field requered sch_start_date | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 16 | 3 | | 2014-04-18 | 18:00 | 8\|9\|10 | 2 | | 3\|4\|5 | 2\|6 | | 400 | sch_start_date |

View File

@@ -94,9 +94,9 @@ Feature: Case Tracker Main Tests
Examples:
| test_description | i | cto_type_obj | cto_uid_obj | cto_condition | cto_position |
| Assign dynaform | 0 | DYNAFORM | 14761752652d82c592fc180020076851 | | 1 |
| Assign Input Document | 1 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | | 2 |
| Assign Output Document | 2 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | | 3 |
| Assign dynaform | 1 | DYNAFORM | 14761752652d82c592fc180020076851 | | 1 |
| Assign Input Document | 2 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | | 2 |
| Assign Output Document | 3 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | | 3 |
Scenario: Get list available Case Tracker Objects of a Project when there are exactly 0 objects
@@ -126,9 +126,9 @@ Feature: Case Tracker Main Tests
Examples:
| test_description | i | cto_condition |
| Update dynaform, field cto_condition | 0 | @@YEAR == 2011 |
| Update input document, field cto_condition | 1 | @@YEAR == 2012 |
| Update output document, field cto_condition | 2 | @@YEAR == 2013 |
| Update dynaform, field cto_condition | 1 | @@YEAR == 2011 |
| Update input document, field cto_condition | 2 | @@YEAR == 2012 |
| Update output document, field cto_condition | 3 | @@YEAR == 2013 |
Scenario Outline: Get a single Case Tracker Object of a Project to verify the update
@@ -147,9 +147,9 @@ Feature: Case Tracker Main Tests
Examples:
| i | cto_type_obj | cto_uid_obj | cto_condition | cto_position | obj_title | obj_description |
| 0 | DYNAFORM | 14761752652d82c592fc180020076851 | @@YEAR == 2011 | 1 | DynaForm Demo | Description |
| 1 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | @@YEAR == 2012 | 2 | InputDocument Demo | Description |
| 2 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | @@YEAR == 2013 | 3 | OutputDocument Demo | Description |
| 1 | DYNAFORM | 14761752652d82c592fc180020076851 | @@YEAR == 2011 | 1 | DynaForm Demo | Description |
| 2 | INPUT_DOCUMENT | 87236534052d82c6d8c67d1001895377 | @@YEAR == 2012 | 2 | InputDocument Demo | Description |
| 3 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | @@YEAR == 2013 | 3 | OutputDocument Demo | Description |
Scenario: Get the Case Trackers Objects of a Project when there are exactly three objects
@@ -172,7 +172,7 @@ Feature: Case Tracker Main Tests
Examples:
| i |
| 0 |
| 1 |
| 2 |
| 3 |

View File

@@ -38,10 +38,6 @@ Feature: Process Variables Main Tests
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "array"
And the response has 3 records
And the "var_name" property in row 0 equals "grilla2"
And the "var_name" property in row 1 equals "grilla3"
And the "var_name" property in row 2 equals "grilla1"
Scenario: Get all variables of a Grid

View File

@@ -1,15 +1,15 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Reorder Steps
Requirements:
a workspace with the process 7557786515322022952dcc8014985410 ("Ordenamiento") already loaded
a workspace with the process 857888611534814982bc651033834642 ("Ordenamiento Main") already loaded
there are two activities and eight steps in the process
Background:
Given that I have a valid access_token
Scenario Outline: obtain the position of the steps
Given I request "project/7557786515322022952dcc8014985410/activity/7976552835322023005e069088446535/step/<step_uid>"
Scenario Outline: obtain the position of the steps of activity Task 1
Given I request "project/857888611534814982bc651033834642/activity/1816381825348149bce1eb7071800593/step/<step_uid>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
@@ -18,12 +18,12 @@ Requirements:
Examples:
| test_description | step_uid | step_position |
| Position-dynaform1 | 8257746325322026c0e45e3047837732 | 1 |
| Position-dynaform2 | 30547852753220293960227013371359 | 2 |
| Position-dynaform3 | 840380819532202d132fb91020992676 | 3 |
| Position-dynaform4 | 663853222532202eec8a913042063689 | 4 |
| Position-input1 | 853418037532209018ab711041079957 | 5 |
| Position-input2 | 5384383215322090e71aef1047228013 | 6 |
| Position-dynaform1 | 940208541534815470963a6096949846 | 1 |
| Position-dynaform2 | 4489324795348154b6bf378055159323 | 2 |
| Position-dynaform3 | 5029631175348154f92d713030841274 | 3 |
| Position-dynaform4 | 87462252653481552cee045066635556 | 4 |
| Position-input1 | 72197903553481555d114d6063884645 | 5 |
| Position-input2 | 12394884153481558997b21066123068 | 6 |
Scenario: Change order the step of "dynaform3" by position five
@@ -33,12 +33,12 @@ Requirements:
"step_position": "5"
}
"""
And I request "project/7557786515322022952dcc8014985410/activity/7976552835322023005e069088446535/step/840380819532202d132fb91020992676"
And I request "project/857888611534814982bc651033834642/activity/1816381825348149bce1eb7071800593/step/5029631175348154f92d713030841274"
Then the response status code should be 200
Scenario Outline: Obtain the position of the steps after changing position
Given I request "project/7557786515322022952dcc8014985410/activity/7976552835322023005e069088446535/step/<step_uid>"
Given I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/<step_uid>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
@@ -47,12 +47,12 @@ Requirements:
Examples:
| test_description | step_uid | step_position |
| Position-dynaform1 | 8257746325322026c0e45e3047837732 | 1 |
| Position-dynaform2 | 30547852753220293960227013371359 | 2 |
| Position-dynaform4 | 663853222532202eec8a913042063689 | 3 |
| Position-input1 | 853418037532209018ab711041079957 | 4 |
| Position-dynaform3 | 840380819532202d132fb91020992676 | 5 |
| Position-input2 | 5384383215322090e71aef1047228013 | 6 |
| Position-dynaform1 | 940208541534815470963a6096949846 | 1 |
| Position-dynaform2 | 4489324795348154b6bf378055159323 | 2 |
| Position-dynaform4 | 87462252653481552cee045066635556 | 3 |
| Position-input1 | 72197903553481555d114d6063884645 | 4 |
| Position-dynaform3 | 5029631175348154f92d713030841274 | 5 |
| Position-input2 | 12394884153481558997b21066123068 | 6 |
@@ -63,12 +63,12 @@ Requirements:
"step_position": "2"
}
"""
And I request "project/7557786515322022952dcc8014985410/activity/7976552835322023005e069088446535/step/5384383215322090e71aef1047228013"
And I request "project/857888611534814982bc651033834642/activity/1816381825348149bce1eb7071800593/step/12394884153481558997b21066123068"
Then the response status code should be 200
Scenario Outline: Obtain the position of the steps after changing position
Given I request "project/7557786515322022952dcc8014985410/activity/7976552835322023005e069088446535/step/<step_uid>"
Given I request "project/857888611534814982bc651033834642/activity/1816381825348149bce1eb7071800593/step/<step_uid>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
@@ -77,9 +77,67 @@ Requirements:
Examples:
| test_description | step_uid | step_position |
| Position-dynaform1 | 8257746325322026c0e45e3047837732 | 1 |
| Position-input2 | 5384383215322090e71aef1047228013 | 2 |
| Position-dynaform2 | 30547852753220293960227013371359 | 3 |
| Position-dynaform4 | 663853222532202eec8a913042063689 | 4 |
| Position-input1 | 853418037532209018ab711041079957 | 5 |
| Position-dynaform3 | 840380819532202d132fb91020992676 | 6 |
| Position-dynaform1 | 940208541534815470963a6096949846 | 1 |
| Position-input2 | 12394884153481558997b21066123068 | 2 |
| Position-dynaform2 | 4489324795348154b6bf378055159323 | 3 |
| Position-dynaform4 | 87462252653481552cee045066635556 | 4 |
| Position-input1 | 72197903553481555d114d6063884645 | 5 |
| Position-dynaform3 | 5029631175348154f92d713030841274 | 6 |
Scenario: Change order the step of "input2"= position 2 by position six
Given PUT this data:
"""
{
"step_position": "6"
}
"""
And I request "project/857888611534814982bc651033834642/activity/1816381825348149bce1eb7071800593/step/12394884153481558997b21066123068"
Then the response status code should be 200
Scenario Outline: Obtain the position of the steps after changing position
Given I request "project/857888611534814982bc651033834642/activity/1816381825348149bce1eb7071800593/step/<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>"
Examples:
| test_description | step_uid | step_position |
| Position-dynaform1 | 940208541534815470963a6096949846 | 1 |
| Position-dynaform2 | 4489324795348154b6bf378055159323 | 2 |
| Position-dynaform4 | 87462252653481552cee045066635556 | 3 |
| Position-input1 | 72197903553481555d114d6063884645 | 4 |
| Position-dynaform3 | 5029631175348154f92d713030841274 | 5 |
| Position-input2 | 12394884153481558997b21066123068 | 6 |
Scenario: Change order the step of "dynaform3"= position 5 by position 3
Given PUT this data:
"""
{
"step_position": "3"
}
"""
And I request "project/857888611534814982bc651033834642/activity/1816381825348149bce1eb7071800593/step/5029631175348154f92d713030841274"
Then the response status code should be 200
Scenario Outline: Obtain the position of the steps after changing position
Given I request "project/857888611534814982bc651033834642/activity/1816381825348149bce1eb7071800593/step/<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>"
Examples:
| test_description | step_uid | step_position |
| Position-dynaform1 | 940208541534815470963a6096949846 | 1 |
| Position-dynaform2 | 4489324795348154b6bf378055159323 | 2 |
| Position-dynaform3 | 5029631175348154f92d713030841274 | 3 |
| Position-dynaform4 | 87462252653481552cee045066635556 | 4 |
| Position-input1 | 72197903553481555d114d6063884645 | 5 |
| Position-input2 | 12394884153481558997b21066123068 | 6 |

View File

@@ -23,10 +23,10 @@ Feature: Group
| i | lib_name | lib_title | lib_class_name |
| 0 | pmFunctions | ProcessMaker Functions | class.pmFunctions.php |
| 1 | pmTrSharepoint | Sharepoint DWS Triggers v. 0.1 | class.pmTrSharepoint.pmFunctions.php |
| 2 | pmTrAlfresco | Alfresco DM Triggers v. 0.1 | class.pmTrAlfresco.pmFunctions.php |
| 3 | pmZimbra | Zimbra Triggers v. 0.1 | class.pmZimbra.pmFunctions.php |
| 4 | pmSugar | Sugar CRM Triggers | class.pmSugar.pmFunctions.php |
| 5 | pmTalend | Talend ETL Integration | class.pmTalend.pmFunctions.php |
| 2 | pmSugar | Sugar CRM Triggers | class.pmSugar.pmFunctions.php |
| 3 | pmTalend | Talend ETL Integration | class.pmTalend.pmFunctions.php |
| 4 | pmZimbra | Zimbra Triggers v. 0.1 | class.pmZimbra.pmFunctions.php |
| 5 | pmTrAlfresco | Alfresco DM Triggers v. 0.1 | class.pmTrAlfresco.pmFunctions.php |
Scenario Outline: Get a single Library
@@ -144,7 +144,7 @@ Scenario Outline: Create new Trigger: createDWS
Examples:
| i | Description | lib_name | fn_name | tri_title | tri_description | tri_type | tri_params.input.sharepointServer | tri_params.input.auth | tri_params.input.name | tri_params.input.users | tri_params.input.title | tri_params.input.documents | tri_params.output.tri_answer |
| 1 | Create pmTrSharpoint | pmTrSharepoint | createDWS | Sharepoint 1 | | SCRIPT | @@SERVER | username:password | Test DWS | @@users | Test DWS | /files/test.doc | $respuesta |
| 2 | Create a trigger without sending fields not required | pmTrSharepoint | createDWS | Sharepoint 2 | | SCRIPT | @@SERVER | username:password | Test DWS 1 | @@users | Test DWS | /files/test.doc | |
| 2 | Create a trigger without sending fields not required | pmTrSharepoint | createDWS | Sharepoint 2 | | SCRIPT | @@SERVER | username:password | Test DWS 1 | @@users | Test DWS | /files/test.doc | $respuesta |