Avance de los features triggers wizard, file manager
This commit is contained in:
@@ -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_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_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_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 |
|
| 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 |
|
||||||
@@ -1,9 +1,13 @@
|
|||||||
@ProcessMakerMichelangelo @RestAPI
|
@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:
|
Background:
|
||||||
Given that I have a valid access_token
|
Given that I have a valid access_token
|
||||||
|
|
||||||
|
|
||||||
Scenario: Get a list of main process files manager
|
Scenario: Get a list of main process files manager
|
||||||
Given I request "project/1265557095225ff5c688f46031700471/file-manager"
|
Given I request "project/1265557095225ff5c688f46031700471/file-manager"
|
||||||
Then the response status code should be 200
|
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<i>"
|
And store "prf_uid" in session array as variable "prf_uid<i>"
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| test_description | file_name | path | content | http_code | type |
|
| test_description | file_name | path | content | http_code | type | i |
|
||||||
| into public folder | testbehat.txt | public/ | test | 200 | object |
|
| into public folder | testbehat1.txt | public/ | test | 200 | object | 0 |
|
||||||
| into maintemplates folder | testbehat.txt | templates/ | test | 200 | object |
|
| into mailtemplates folder | testbehat1.txt | templates/ | test | 200 | object | 1 |
|
||||||
| into public subfolder | testbehat.txt | public/test_folder | test | 200 | object |
|
| into public subfolder | testbehat1.txt | public/test_folder | test | 200 | object | 2 |
|
||||||
| into public subfolder | testbehat.txt | templates/test_folder | test | 200 | object |
|
| into mailtemplates subfolder | testbehat1.txt | templates/test_folder | test | 200 | object | 3 |
|
||||||
|
|
||||||
Scenario Outline: Post files
|
Scenario Outline: Post files
|
||||||
Given PUT this data:
|
Given PUT this data:
|
||||||
"""
|
"""
|
||||||
{
|
{
|
||||||
"prf_filename": "<file_name>",
|
|
||||||
"prf_content": "<content>"
|
"prf_content": "<content>"
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
And I request "project/1265557095225ff5c688f46031700471/file-manager?path=<path>"
|
And that I want to update a resource with the key "prf_uid" stored in session array as variable "prf_uid<i>"
|
||||||
|
And I request "project/1265557095225ff5c688f46031700471/file-manager"
|
||||||
Then the response status code should be <http_code>
|
Then the response status code should be <http_code>
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "<type>"
|
And the type is "<type>"
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| test_description | file_name | path | content | http_code | type |
|
| test_description | content | http_code | type | i |
|
||||||
| put into public folder | testbehat.txt | public/ | put test | 200 | object |
|
| put into public folder | put test | 200 | object | 0 |
|
||||||
| put into maintemplates folder | testbehat.txt | templates/ | put test | 200 | object |
|
| put into mailtemplates folder | put test | 200 | object | 1 |
|
||||||
| put into public subfolder | testbehat.txt | public/test_folder | put test | 200 | object |
|
| put into public subfolder | put test | 200 | object | 2 |
|
||||||
| put into public subfolder | testbehat.txt | templates/test_folder | put test | 200 | object |
|
| put into mailtemplates subfolder | put test | 200 | object | 3 |
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Delete file
|
Scenario Outline: Delete file
|
||||||
Given that I want to delete a "<path>"
|
Given that I want to delete a resource with the key "prf_uid" stored in session array as variable "prf_uid<i>"
|
||||||
And I request "project/1265557095225ff5c688f46031700471/file-manager?path=<path>"
|
And I request "project/1265557095225ff5c688f46031700471/file-manager"
|
||||||
And the content type is "application/json"
|
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| test_description | path |
|
| test_description | i |
|
||||||
| delete public folder | public/testbehat.txt |
|
| delete public folder | 0 |
|
||||||
| delete maintemplates folder | templates/testbehat.txt |
|
| delete mailtemplates folder | 1 |
|
||||||
| delete public subfolder | public/test_folder/testbehat.txt |
|
| delete public subfolder | 2 |
|
||||||
| delete public subfolder | templates/test_folder/testbehat.txt |
|
| delete mailtemplates subfolder | 3 |
|
||||||
|
|
||||||
#Para que funcione este test, debe existir el archivo que se quiere subir
|
#Para que funcione este test, debe existir el archivo que se quiere subir
|
||||||
Scenario: Post files
|
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
|
Scenario: Delete file
|
||||||
Given that I want to delete a "public/test.txt"
|
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?path=public/test.txt"
|
And I request "project/1265557095225ff5c688f46031700471/file-manager"
|
||||||
And the content type is "application/json"
|
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ Requirements:
|
|||||||
"""
|
"""
|
||||||
And I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaform"
|
And I request "project/85794888452ceeef3675164057928956/process-supervisor/dynaform"
|
||||||
Then the response status code should be 400
|
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"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user