From eda70d2819f2a01ac1e4cb0271bdedc48a56176a Mon Sep 17 00:00:00 2001 From: Wendy Nestor Date: Thu, 27 Feb 2014 16:46:26 -0400 Subject: [PATCH] Avance de los features triggers wizard, file manager --- .../activity/negative_tests_activity.feature | 2 +- .../main_test_files_manager.feature | 55 ++++++++++--------- .../main_tests_supervisor.feature | 2 +- .../main_tests_trigger_wizards.feature | 0 .../negative_tests_triggers_wizards.feature | 0 5 files changed, 30 insertions(+), 29 deletions(-) create mode 100644 features/backend/trigger_wizard/main_tests_trigger_wizards.feature create mode 100644 features/backend/trigger_wizard/negative_tests_triggers_wizards.feature diff --git a/features/backend/activity/negative_tests_activity.feature b/features/backend/activity/negative_tests_activity.feature index 71c71bb53..b222d7b6d 100644 --- a/features/backend/activity/negative_tests_activity.feature +++ b/features/backend/activity/negative_tests_activity.feature @@ -104,4 +104,4 @@ Scenario Outline: Update the Definition of a Activity and the check if the value | Invalid tas_type_day | 95655319552a5c790b69a04054667879 | Task2 | Case Description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 6 | | ADHOC | Case Title | Case Description | FALSE | Titulo de Notificacion 1| template | Esta es una Notificacion | template.html | tas_type_day | | Invalid tas_type | 63843886052a5cc066e4c04056414372 | Task3 | Case Description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 2 | | INPUT | Case Title | Case Description | FALSE | Titulo de Notificacion 1| template | Esta es una Notificacion | template.html | tas_type | | Invalid tas_send_last_email | 97192372152a5c78f04a794095806311 | Task1 | Case Description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 2 | | ADHOC | Case Title | Case Description | INPUT | Titulo de Notificacion 1| template | Esta es una Notificacion | template.html | tas_send_last_email | - | Invalid tas_def_message_type | 95655319552a5c790b69a04054667879 | Task2 | Case Description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 2 | | ADHOC | Case Title | Case Description | FALSE | Titulo de Notificacion 1| INPUT | Esta es una Notificacion | template.html | tas_def_message_type | \ No newline at end of file + | Invalid tas_def_message_type | 95655319552a5c790b69a04054667879 | Task2 | Case Description | @@SYS_NEXT_USER_TO_BE_ASSIGNED | template.html | TRUE | BALANCED | @@USER_LOGGED | @@GROUP_UID | 1 | 2 | DAYS | | FALSE | 2 | DAYS | 2 | | ADHOC | Case Title | Case Description | TRUE | Titulo de Notificacion 1| INPUT | Esta es una Notificacion | template.html | tas_def_message_type | \ No newline at end of file diff --git a/features/backend/files_manager/main_test_files_manager.feature b/features/backend/files_manager/main_test_files_manager.feature index d457b9e44..ae851cb1c 100644 --- a/features/backend/files_manager/main_test_files_manager.feature +++ b/features/backend/files_manager/main_test_files_manager.feature @@ -1,9 +1,13 @@ @ProcessMakerMichelangelo @RestAPI -Feature: Files Manager Resources +Feature: Files Manager Resources Main Tests + Requirements: + a workspace with the process 4224292655297723eb98691001100052 ("Test Users-Step-Properties End Point") already loaded + there are two output documents in the process Background: Given that I have a valid access_token + Scenario: Get a list of main process files manager Given I request "project/1265557095225ff5c688f46031700471/file-manager" Then the response status code should be 200 @@ -42,55 +46,52 @@ Feature: Files Manager Resources And store "prf_uid" in session array as variable "prf_uid" Examples: - | test_description | file_name | path | content | http_code | type | - | into public folder | testbehat.txt | public/ | test | 200 | object | - | into maintemplates folder | testbehat.txt | templates/ | test | 200 | object | - | into public subfolder | testbehat.txt | public/test_folder | test | 200 | object | - | into public subfolder | testbehat.txt | templates/test_folder | test | 200 | object | + | test_description | file_name | path | content | http_code | type | i | + | into public folder | testbehat1.txt | public/ | test | 200 | object | 0 | + | into mailtemplates folder | testbehat1.txt | templates/ | test | 200 | object | 1 | + | into public subfolder | testbehat1.txt | public/test_folder | test | 200 | object | 2 | + | into mailtemplates subfolder | testbehat1.txt | templates/test_folder | test | 200 | object | 3 | Scenario Outline: Post files Given PUT this data: """ { - "prf_filename": "", "prf_content": "" } """ - And I request "project/1265557095225ff5c688f46031700471/file-manager?path=" + And that I want to update a resource with the key "prf_uid" stored in session array as variable "prf_uid" + And I request "project/1265557095225ff5c688f46031700471/file-manager" Then the response status code should be And the response charset is "UTF-8" And the content type is "application/json" And the type is "" Examples: - | test_description | file_name | path | content | http_code | type | - | put into public folder | testbehat.txt | public/ | put test | 200 | object | - | put into maintemplates folder | testbehat.txt | templates/ | put test | 200 | object | - | put into public subfolder | testbehat.txt | public/test_folder | put test | 200 | object | - | put into public subfolder | testbehat.txt | templates/test_folder | put test | 200 | object | - + | test_description | content | http_code | type | i | + | put into public folder | put test | 200 | object | 0 | + | put into mailtemplates folder | put test | 200 | object | 1 | + | put into public subfolder | put test | 200 | object | 2 | + | put into mailtemplates subfolder | put test | 200 | object | 3 | Scenario Outline: Delete file - Given that I want to delete a "" - And I request "project/1265557095225ff5c688f46031700471/file-manager?path=" - And the content type is "application/json" + Given that I want to delete a resource with the key "prf_uid" stored in session array as variable "prf_uid" + And I request "project/1265557095225ff5c688f46031700471/file-manager" Then the response status code should be 200 And the response charset is "UTF-8" Examples: - | test_description | path | - | delete public folder | public/testbehat.txt | - | delete maintemplates folder | templates/testbehat.txt | - | delete public subfolder | public/test_folder/testbehat.txt | - | delete public subfolder | templates/test_folder/testbehat.txt | + | test_description | i | + | delete public folder | 0 | + | delete mailtemplates folder | 1 | + | delete public subfolder | 2 | + | delete mailtemplates subfolder | 3 | #Para que funcione este test, debe existir el archivo que se quiere subir Scenario: Post files - Given POST I want to upload the file "/home/daniel/test.txt" to path "public". Url to create prf_uid "project/1265557095225ff5c688f46031700471/file-manager" and updload "project/1265557095225ff5c688f46031700471/file-manager/upload" + Given POST I want to upload the file "/home/daniel/test.txt" to path "templates". Url "project/1265557095225ff5c688f46031700471/file-manager" Scenario: Delete file - Given that I want to delete a "public/test.txt" - And I request "project/1265557095225ff5c688f46031700471/file-manager?path=public/test.txt" - And the content type is "application/json" + Given that I want to delete a resource with the key "prf_uid" stored in session array as variable "prf_uid" + And I request "project/1265557095225ff5c688f46031700471/file-manager" Then the response status code should be 200 - And the response charset is "UTF-8" \ No newline at end of file + And the response charset is "UTF-8" diff --git a/features/backend/process_supervisor/main_tests_supervisor.feature b/features/backend/process_supervisor/main_tests_supervisor.feature index ec7f35260..a8b26430c 100644 --- a/features/backend/process_supervisor/main_tests_supervisor.feature +++ b/features/backend/process_supervisor/main_tests_supervisor.feature @@ -214,7 +214,7 @@ Requirements: """ And I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaform" Then the response status code should be 400 - And the response status message should have the following text "already exists" + And the response status message should have the following text "already exist" diff --git a/features/backend/trigger_wizard/main_tests_trigger_wizards.feature b/features/backend/trigger_wizard/main_tests_trigger_wizards.feature new file mode 100644 index 000000000..e69de29bb diff --git a/features/backend/trigger_wizard/negative_tests_triggers_wizards.feature b/features/backend/trigger_wizard/negative_tests_triggers_wizards.feature new file mode 100644 index 000000000..e69de29bb