From 2e55e21550a6176c565aff9358af12423a9dfd9b Mon Sep 17 00:00:00 2001 From: Wendy Nestor Date: Fri, 6 Jun 2014 09:53:05 -0400 Subject: [PATCH] Adicion de nuevos escenarios en los features case scheduler, process permissions y export/import project --- .../main_tests_case_scheduler.feature | 24 +++++- .../main_tests_permissions.feature | 66 +++++++++++++++- .../main_tests_project_export_import.feature | 78 ++++++++++++++++++- 3 files changed, 165 insertions(+), 3 deletions(-) diff --git a/features/backend/projects/case_scheduler/main_tests_case_scheduler.feature b/features/backend/projects/case_scheduler/main_tests_case_scheduler.feature index 5fd271a70..4191329b8 100644 --- a/features/backend/projects/case_scheduler/main_tests_case_scheduler.feature +++ b/features/backend/projects/case_scheduler/main_tests_case_scheduler.feature @@ -182,4 +182,26 @@ Feature: Case Scheduler Main Tests | 10 | | 11 | | 12 | - | 13 | \ No newline at end of file + | 13 | + + + +#Scenario para la revision del "BUG 15040" +#Scenario Outline: Create new Projects for test create new case scheduler and allow to keep the same +# Given POST data from file "" +# And I request "projects" +# 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 "array" +# And store "new_uid" in session array as variable "project_new_uid_" where an object has "object" equal to "project" +# And store "new_uid" in session array as variable "diagram_new_uid_" where an object has "object" equal to "diagram" +# And store "new_uid" in session array as variable "activity_new_uid_" where an object has "object" equal to "activity" +# And store "new_uid" in session array as variable "event_new_uid_" where an object has "object" equal to "event" +# And store "new_uid" in session array as variable "flow_new_uid_" where an object has "object" equal to "flow" +# +# Examples: +# +# | Description | project_new_uid_number | project_template | +# | Create a new process with event case scheduler | 1 | process_template_evaluation.json | +# | Create a new process with same case scheduler | 2 | process_template_parallel.json | \ No newline at end of file diff --git a/features/backend/projects/process_permissions/main_tests_permissions.feature b/features/backend/projects/process_permissions/main_tests_permissions.feature index 6cf47fef3..aadcc7726 100644 --- a/features/backend/projects/process_permissions/main_tests_permissions.feature +++ b/features/backend/projects/process_permissions/main_tests_permissions.feature @@ -236,4 +236,68 @@ Feature: Process Permissions Resources Tests Given I request "project/67021149152e27240dc54d2095572343/process-permissions" Then the response status code should be 200 And the response charset is "UTF-8" - And the response has 0 record \ No newline at end of file + And the response has 0 record + + + +#Prueba del BUG 15085, donde se pueda crear los permisos Resend para Message History + + Scenario: Get a List of current Process Permissions of a project + Given I request "project/1455892245368ebeb11c1a5001393784/process-permissions" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the response has 1 record + +Scenario Outline: Create a new Process permission in proyect "Process Complete BPMN" + Given POST this data: + """ + { + "op_case_status": "", + "tas_uid": "", + "op_user_relation": "", + "usr_uid": "", + "op_task_source" : "", + "op_participate": "", + "op_obj_type": "", + "dynaforms" : "", + "inputs" : "", + "outputs" : "", + "op_action": "" + } + """ + And I request "project/1455892245368ebeb11c1a5001393784/process-permission" + Then the response status code should be 201 + And store "op_uid" in session array + And the response charset is "UTF-8" + And the content type is "application/json" + And store "op_uid" in session array as variable "op_uid_" + + Examples: + + | 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 | + + Scenario: Get a List of current Process Permissions of a project + Given I request "project/1455892245368ebeb11c1a5001393784/process-permissions" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the response has 2 record + +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_" + And I request "project/1455892245368ebeb11c1a5001393784/process-permission" + And the content type is "application/json" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the type is "object" + + Examples: + + | op_number | + | 1 | + + Scenario: Get a List of current Process Permissions of a project + Given I request "project/1455892245368ebeb11c1a5001393784/process-permissions" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the response has 1 record \ No newline at end of file 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 924c003c7..c56dab3ac 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 @@ -477,4 +477,80 @@ Scenario: Get the Case Trackers Objects of a Project Then the response status code should be 200 And the response charset is "UTF-8" And the type is "array" - And the response has 0 record \ No newline at end of file + And the response has 0 record + + + +#Revision del BUG xxxx, donde no permite crear un nuevo Output Document + +Scenario Outline: Create 17 new Output Documents + Given POST this data: + """ + { + "out_doc_title": "Output Document", + "out_doc_description": "", + "out_doc_filename": "Output Document", + "out_doc_template": "Example", + "out_doc_report_generator": "TCPDF", + "out_doc_landscape": "1", + "out_doc_media": "Letter", + "out_doc_left_margin": "30", + "out_doc_right_margin": "30", + "out_doc_top_margin": "30", + "out_doc_bottom_margin": "30", + "out_doc_generate": "DOC", + "out_doc_type": "HTML", + "out_doc_versioning": "0", + "out_doc_destination_path": "", + "out_doc_tags": "", + "out_doc_pdf_security_enabled": "0", + "out_doc_pdf_security_open_password": "", + "out_doc_pdf_security_owner_password": "", + "out_doc_pdf_security_permissions": "" + } + """ + And I request "project/5195971265375127fce82f4015927137/output-document" + 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" + And store "out_doc_uid" in session array as variable "out_doc_uid_" + + Examples: + + | test_description | out_doc_number | + | Create new output document with same name in other proyect | 1 | + + +Scenario: Get the Output Documents List when there are exactly zero output documents + Given I request "project/5195971265375127fce82f4015927137/output-documents" with the key "prj_uid" stored in session array + 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" + And the response has 1 records + And that "out_doc_title" is set to "Output Document" + And that "out_doc_filename" is set to "Output Document" + +Scenario Outline: Delete Output documents created previously in this script + Given that I want to delete a resource with the key "out_doc_uid" stored in session array as variable "out_doc_uid_" + And I request "project/5195971265375127fce82f4015927137/output-document" + And the content type is "application/json" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the type is "object" + + Examples: + + | out_doc_number | + | 1 | + +Scenario: Get the Output Documents List when there are exactly zero output documents + Given I request "project/5195971265375127fce82f4015927137/output-documents" with the key "prj_uid" stored in session array + 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" + And the response has 0 records + +#Culminacion del BUG xxxx, donde no permite crear un nuevo Output Document en otro proyecto \ No newline at end of file