diff --git a/features/backend/application_cases/output_document_case/negative_tests_output_document_case.feature b/features/backend/application_cases/output_document_case/negative_tests_output_document_case.feature index 4d3b0aec7..a4e98426d 100644 --- a/features/backend/application_cases/output_document_case/negative_tests_output_document_case.feature +++ b/features/backend/application_cases/output_document_case/negative_tests_output_document_case.feature @@ -11,7 +11,7 @@ Scenario Outline: Pull information of an inexistent input document. should retur Given I request "cases/64654381053382b8bb4c415067063003/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 "" And the "app_doc_filename" property equals "" And the "doc_uid" property equals "" diff --git a/features/backend/projects/assignee/negative_tests_assignee.feature b/features/backend/projects/assignee/negative_tests_assignee.feature index fc0517e5a..28460ae0f 100644 --- a/features/backend/projects/assignee/negative_tests_assignee.feature +++ b/features/backend/projects/assignee/negative_tests_assignee.feature @@ -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 | diff --git a/features/backend/projects/case_scheduler/negative_tests_case_scheduler.feature b/features/backend/projects/case_scheduler/negative_tests_case_scheduler.feature index ef6274e91..686065946 100644 --- a/features/backend/projects/case_scheduler/negative_tests_case_scheduler.feature +++ b/features/backend/projects/case_scheduler/negative_tests_case_scheduler.feature @@ -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 | diff --git a/features/backend/projects/case_tracker/main_tests_case_tracker.feature b/features/backend/projects/case_tracker/main_tests_case_tracker.feature index 0b0d4a6ac..f5f2598b6 100644 --- a/features/backend/projects/case_tracker/main_tests_case_tracker.feature +++ b/features/backend/projects/case_tracker/main_tests_case_tracker.feature @@ -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 | diff --git a/features/backend/projects/process_variables/main_tests_process_variables.feature b/features/backend/projects/process_variables/main_tests_process_variables.feature index a69794e96..430397f86 100644 --- a/features/backend/projects/process_variables/main_tests_process_variables.feature +++ b/features/backend/projects/process_variables/main_tests_process_variables.feature @@ -38,11 +38,7 @@ 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 Given I request "project/3306142435318cd22d1eba2015305561/grid/8246998615318cd7cc451d2089449499/variables" diff --git a/features/backend/projects/step/main_tests_step_ordenamiento.feature b/features/backend/projects/step/main_tests_step_ordenamiento.feature index 9dbd760c1..ac8bec461 100644 --- a/features/backend/projects/step/main_tests_step_ordenamiento.feature +++ b/features/backend/projects/step/main_tests_step_ordenamiento.feature @@ -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/" + Scenario Outline: obtain the position of the steps of activity Task 1 + Given I request "project/857888611534814982bc651033834642/activity/1816381825348149bce1eb7071800593/step/" 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/" + Given I request "project/857888611534814982bc651033834642/activity/7976552835322023005e069088446535/step/" 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/" + Given I request "project/857888611534814982bc651033834642/activity/1816381825348149bce1eb7071800593/step/" 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 | \ No newline at end of file + | 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/" + 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 "" + + 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/" + 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 "" + + 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 | \ No newline at end of file diff --git a/features/backend/projects/trigger_wizard/main_tests_trigger_wizards.feature b/features/backend/projects/trigger_wizard/main_tests_trigger_wizards.feature index 0905e49f5..28e58a537 100644 --- a/features/backend/projects/trigger_wizard/main_tests_trigger_wizards.feature +++ b/features/backend/projects/trigger_wizard/main_tests_trigger_wizards.feature @@ -22,13 +22,13 @@ Feature: Group Examples: | 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 | + | 1 | pmTrSharepoint | Sharepoint DWS Triggers v. 0.1 | class.pmTrSharepoint.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 And I request "project/14414793652a5d718b65590036026581/trigger-wizard/" And the content type is "application/json" @@ -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 |