From 9facbabb0e92391f59f79072c9b1c98139cba3a7 Mon Sep 17 00:00:00 2001 From: Wendy Nestor Date: Thu, 8 May 2014 11:04:57 -0400 Subject: [PATCH] Adicion de nuevos features y arreglo en feature project --- .../negative_tests_project_resources.feature | 1 - .../main_tests_project_export.feature | 17 +++++++++++ .../main_tests_project_import.feature | 29 +++++++++++++++++++ .../negative_tests_project_export.feature | 0 .../negative_tests_project_import.feature | 0 5 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 features/backend/projects/project_export_import/main_tests_project_export.feature create mode 100644 features/backend/projects/project_export_import/main_tests_project_import.feature create mode 100644 features/backend/projects/project_export_import/negative_tests_project_export.feature create mode 100644 features/backend/projects/project_export_import/negative_tests_project_import.feature diff --git a/features/backend/projects/project/negative_tests_project_resources.feature b/features/backend/projects/project/negative_tests_project_resources.feature index c0afec2b0..69f909bb2 100644 --- a/features/backend/projects/project/negative_tests_project_resources.feature +++ b/features/backend/projects/project/negative_tests_project_resources.feature @@ -207,7 +207,6 @@ Scenario Outline: Create new Projects (Negative Tests) | Description | prj_name | prj_description | act_name | act_type | evn_name | evn_marker | error_code | error_message | | Field required prj_name | | Prueba | Task # 1 | TASK | End # 1 | EMPTY | 400 | prj_name | - | Field required prj_description | Test negative project 1 | | Task # 1 | TASK | End # 1 | EMPTY | 400 | prj_description | | Field required act_name | Test negative project 2 | Prueba 1 | | TASK | End # 1 | EMPTY | 400 | act_name | | Field required act_type | Test negative project 3 | Prueba 2 | Task # 1 | | End # 1 | EMPTY | 400 | act_type | | Field required evn_name | Test negative project 4 | Prueba 3 | Task # 1 | TASK | | EMPTY | 400 | evn_name | diff --git a/features/backend/projects/project_export_import/main_tests_project_export.feature b/features/backend/projects/project_export_import/main_tests_project_export.feature new file mode 100644 index 000000000..64bcf0aeb --- /dev/null +++ b/features/backend/projects/project_export_import/main_tests_project_export.feature @@ -0,0 +1,17 @@ +@ProcessMakerMichelangelo @RestAPI +Feature: Export Process Main Tests + Requirements: + a workspace with the project 1455892245368ebeb11c1a5001393784 ("Process Complete BPMN") already loaded + there are many activities, steps, triggers, pmtables, asignee, events, etc. in the process + +Background: + Given that I have a valid access_token + + +Scenario: Get for Export Project + Given I request "project/1455892245368ebeb11c1a5001393784/export" + 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" + diff --git a/features/backend/projects/project_export_import/main_tests_project_import.feature b/features/backend/projects/project_export_import/main_tests_project_import.feature new file mode 100644 index 000000000..bd970e66b --- /dev/null +++ b/features/backend/projects/project_export_import/main_tests_project_import.feature @@ -0,0 +1,29 @@ +@ProcessMakerMichelangelo @RestAPI +Feature: Import 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 + +Background: + Given that I have a valid access_token + + +Scenario: Get for Export Project + Given I request "project/1455892245368ebeb11c1a5001393784/export" + 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" + + + 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/processFiles/process1.pmx | create | \ No newline at end of file diff --git a/features/backend/projects/project_export_import/negative_tests_project_export.feature b/features/backend/projects/project_export_import/negative_tests_project_export.feature new file mode 100644 index 000000000..e69de29bb diff --git a/features/backend/projects/project_export_import/negative_tests_project_import.feature b/features/backend/projects/project_export_import/negative_tests_project_import.feature new file mode 100644 index 000000000..e69de29bb