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