Arreglos en los features file manager y process permissions

This commit is contained in:
Wendy Nestor
2014-06-26 10:18:17 -04:00
parent d34273d72b
commit f884c82c30
2 changed files with 218 additions and 207 deletions

View File

@@ -4,11 +4,11 @@ Feature: Files Manager Resources Main Tests
a workspace with the process 1265557095225ff5c688f46031700471 ("Test Michelangelo") already loaded a workspace with the process 1265557095225ff5c688f46031700471 ("Test Michelangelo") already loaded
there are two output documents in the process 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
And the response charset is "UTF-8" And the response charset is "UTF-8"
@@ -17,7 +17,7 @@ Feature: Files Manager Resources Main Tests
And the "name" property in row 0 equals "templates" And the "name" property in row 0 equals "templates"
And the "name" property in row 1 equals "public" And the "name" property in row 1 equals "public"
Scenario: Get a list public folder of process files manager Scenario: Get a list public folder of process files manager
Given I request "project/1265557095225ff5c688f46031700471/file-manager?path=public" Given I request "project/1265557095225ff5c688f46031700471/file-manager?path=public"
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"
@@ -25,7 +25,7 @@ Feature: Files Manager Resources Main Tests
And the type is "array" And the type is "array"
And the response has 0 records And the response has 0 records
Scenario: Get a list templates folder of process files manager Scenario: Get a list templates folder of process files manager
Given I request "project/1265557095225ff5c688f46031700471/file-manager?path=templates" Given I request "project/1265557095225ff5c688f46031700471/file-manager?path=templates"
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"
@@ -33,7 +33,7 @@ Feature: Files Manager Resources Main Tests
And the type is "array" And the type is "array"
And the response has 2 records And the response has 2 records
Scenario Outline: Create files and subfolders Scenario Outline: Create files and subfolders
Given POST this data: Given POST this data:
""" """
{ {
@@ -57,7 +57,7 @@ Feature: Files Manager Resources Main Tests
| into mailtemplates subfolder | file_test_4 | templates/templates_subfolder | test | 200 | object | 3 | | into mailtemplates subfolder | file_test_4 | templates/templates_subfolder | test | 200 | object | 3 |
Scenario: Create files and subfolders with same name in path public Scenario: Create files and subfolders with same name in path public
Given POST this data: Given POST this data:
""" """
{ {
@@ -71,7 +71,7 @@ Feature: Files Manager Resources Main Tests
And the response status message should have the following text "already exists" And the response status message should have the following text "already exists"
Scenario: Create files and subfolders with same name in path templates Scenario: Create files and subfolders with same name in path templates
Given POST this data: Given POST this data:
""" """
{ {
@@ -85,7 +85,7 @@ Feature: Files Manager Resources Main Tests
And the response status message should have the following text "already exists" And the response status message should have the following text "already exists"
Scenario Outline: Update files by updating the content Scenario Outline: Update files by updating the content
Given PUT this data: Given PUT this data:
""" """
{ {
@@ -107,7 +107,7 @@ Feature: Files Manager Resources Main Tests
| put into mailtemplates subfolder | file_test_4 | put test | 200 | object | 3 | | put into mailtemplates subfolder | file_test_4 | put test | 200 | object | 3 |
Scenario Outline: Get a single Files Manager and check some properties Scenario Outline: Get a single Files Manager and check some properties
Given that I want to get a resource with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>" Given that I want to get a resource with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>"
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
@@ -126,7 +126,7 @@ Feature: Files Manager Resources Main Tests
| put into mailtemplates subfolder | file_test_4 | put test | 200 | object | 3 | 0 | templates/templates_subfolder | | put into mailtemplates subfolder | file_test_4 | put test | 200 | object | 3 | 0 | templates/templates_subfolder |
Scenario Outline: Upload files to same folders Scenario Outline: Upload files to same folders
Given POST I want to upload the file "<file>" to path "<prf_path>". Url "project/1265557095225ff5c688f46031700471/file-manager" Given POST I want to upload the file "<file>" to path "<prf_path>". Url "project/1265557095225ff5c688f46031700471/file-manager"
And store "prf_uid" in session array as variable "prf_uid_<prf_number>" And store "prf_uid" in session array as variable "prf_uid_<prf_number>"
@@ -138,9 +138,7 @@ Feature: Files Manager Resources Main Tests
|/home/wendy/uploadfiles/TestQA.html| templates | 7 | |/home/wendy/uploadfiles/TestQA.html| templates | 7 |
Scenario Outline: Verify if TestQA was overwrited
Scenario Outline: Verify if TestQA was overwrited
Given that I want to get a resource with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>" Given that I want to get a resource with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>"
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
@@ -155,8 +153,7 @@ Feature: Files Manager Resources Main Tests
| TestQA.html | Test QA - cuando se realiza la sobreescritura desde upload | 7 | | TestQA.html | Test QA - cuando se realiza la sobreescritura desde upload | 7 |
Scenario Outline: Update the overwritten file to return to their original values
Scenario Outline: Update the overwritten file to return to their original values
Given PUT this data: Given PUT this data:
""" """
{ {
@@ -177,7 +174,7 @@ Feature: Files Manager Resources Main Tests
Scenario Outline: Download files Scenario Outline: Download files
Given I request "project/1265557095225ff5c688f46031700471/file-manager/prf_uid/download" with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>" Given I request "project/1265557095225ff5c688f46031700471/file-manager/prf_uid/download" with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>"
Then the response status code should be 200 Then the response status code should be 200
@@ -189,10 +186,9 @@ Feature: Files Manager Resources Main Tests
| Download file | 4 | | Download file | 4 |
Scenario Outline: Delete file Scenario Outline: Delete file
Given that I want to delete a resource with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>" Given that I want to delete a resource with the key "prf_uid" stored in session array as variable "prf_uid_<prf_number>"
And I request "project/1265557095225ff5c688f46031700471/file-manager" And I request "project/1265557095225ff5c688f46031700471/file-manager"
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"
@@ -207,7 +203,7 @@ Feature: Files Manager Resources Main Tests
| delete mailtemplates subfolder | 6 | | delete mailtemplates subfolder | 6 |
Scenario Outline: Delete folder Scenario Outline: Delete folder
Given that I want to delete the folder Given that I want to delete the folder
And I request "project/1265557095225ff5c688f46031700471/file-manager/folder?path=<prf_path>" And I request "project/1265557095225ff5c688f46031700471/file-manager/folder?path=<prf_path>"
Then the response status code should be 200 Then the response status code should be 200
@@ -217,3 +213,15 @@ Feature: Files Manager Resources Main Tests
| test_description | prf_path | | test_description | prf_path |
| delete public sub folder | templates/templates_subfolder | | delete public sub folder | templates/templates_subfolder |
| delete templates sub folder | public/public_subfolder | | delete templates sub folder | public/public_subfolder |
#BUG 15207, The "Upload" accepts files with other extensions
#
#Scenario Outline: Upload files to same folders "Project - Process Complete BPMN"
# Given POST I want to upload the file "<file>" to path "<prf_path>". Url "project/1455892245368ebeb11c1a5001393784/file-manager"
# And store "prf_uid" in session array as variable "prf_uid_<prf_number>"
# And the response status message should have the following text "incorrect extension"
#
# Examples:
# | file | prf_path | prf_number |
# |/home/wendy/uploadfiles/SnagIt823.exe | templates | 1 |

View File

@@ -276,12 +276,14 @@ Scenario Outline: Create a new Process permission in proyect "Process Complete B
| op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | dynaforms | inputs | outputs | op_action | | op_number | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | dynaforms | inputs | outputs | op_action |
| 1 | COMPLETED | | 1 | 00000000000000000000000000000001 | | 0 | MSGS_HISTORY | | | | RESEND | | 1 | COMPLETED | | 1 | 00000000000000000000000000000001 | | 0 | MSGS_HISTORY | | | | RESEND |
| 2 | COMPLETED | | 1 | 00000000000000000000000000000001 | | 0 | MSGS_HISTORY | | | | RESEND |
Scenario: Get a List of current Process Permissions of a project
Scenario: Get a List of current Process Permissions of a project
Given I request "project/1455892245368ebeb11c1a5001393784/process-permissions" Given I request "project/1455892245368ebeb11c1a5001393784/process-permissions"
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"
And the response has 2 record And the response has 3 record
Scenario Outline: Delete all Process Supervisor created previously in this script Scenario Outline: Delete all Process Supervisor created previously in this script
Given that I want to delete a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>" Given that I want to delete a resource with the key "op_uid" stored in session array as variable "op_uid_<op_number>"
@@ -295,6 +297,7 @@ Scenario Outline: Delete all Process Supervisor created previously in this scrip
| op_number | | op_number |
| 1 | | 1 |
| 2 |
Scenario: Get a List of current Process Permissions of a project Scenario: Get a List of current Process Permissions of a project
Given I request "project/1455892245368ebeb11c1a5001393784/process-permissions" Given I request "project/1455892245368ebeb11c1a5001393784/process-permissions"