From 47c5511dd7c513f4882f9013e4c286d21e460fef Mon Sep 17 00:00:00 2001 From: Wendy Nestor Date: Tue, 13 May 2014 10:38:34 -0400 Subject: [PATCH] Modificacion al feature export/import --- .../main_tests_project_export_import.feature | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/features/backend/projects/project_export_import/main_tests_project_export_import.feature b/features/backend/projects/project_export_import/main_tests_project_export_import.feature index 29f7d6967..fd9e86e00 100644 --- a/features/backend/projects/project_export_import/main_tests_project_export_import.feature +++ b/features/backend/projects/project_export_import/main_tests_project_export_import.feature @@ -2,7 +2,7 @@ Feature: Import/Export Process Main Tests Requirements: a workspace without the project 1455892245368ebeb11c1a5001393784 ("Process Complete BPMN") already loaded - there are many activities, steps, triggers, pmtables, asignee, events, etc. in the process + there are many activities, steps, triggers, pmtables, asignee, process supervisor, process permissions, etc. in the process Background: Given that I have a valid access_token @@ -139,8 +139,7 @@ Scenario Outline: Import a process | /home/wendy/uploadfiles/Process_Complete_BPMN.pmx | overwrite | 2 | | /home/wendy/uploadfiles/Process_Complete_BPMN.pmx | disable | 3 | | /home/wendy/uploadfiles/Process_Complete_BPMN.pmx | keep | 4 | - | /home/wendy/uploadfiles/Process_Complete_BPMN.pmx | overwrite | 5 | - + #Verificar cantidad de dynaform, output, inputs, triggers, asignacion de usuarios, etc. @@ -227,7 +226,7 @@ Scenario Outline: List assignees of each activity Scenario Outline: Get a List of current process supervisors of a project - Given I request "project/prj_uid/process-supervisors" stored in session array as variable "prj_uid_" + Given I request "project/prj_uid/process-supervisors" with the key "prj_uid" stored in session array as variable "prj_uid_" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" @@ -243,7 +242,7 @@ Scenario Outline: Get a List of current process supervisors of a project Scenario Outline: Get a List of current Process Permissions of a project - Given I request "project/prj_uid/process-permissions" stored in session array as variable "prj_uid_" + Given I request "project/prj_uid/process-permissions" with the key "prj_uid" stored in session array as variable "prj_uid_" Then the response status code should be 200 And the response charset is "UTF-8" And the response has records @@ -257,7 +256,7 @@ Scenario Outline: Get a List of current Process Permissions of a project Scenario Outline: Get a list templates folder of process files manager - Given I request "project/prj_uid/file-manager?path=templates" stored in session array as variable "prj_uid_" + Given I request "project/prj_uid/file-manager?path=templates" with the key "prj_uid" stored in session array as variable "prj_uid_" Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" @@ -368,4 +367,17 @@ Scenario: Get a list of projects Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" - And the type is "array" \ No newline at end of file + And the type is "array" + + +Scenario Outline: Import a process + Given POST upload a project file "" to "project/import?option=" + Then the response status code should be 201 + And the response charset is "UTF-8" + And the content type is "application/json" + And the type is "object" + + Examples: + | project_file | import_option | + | /home/wendy/uploadfiles/Process_Complete_BPMN.pmx | create | + \ No newline at end of file