diff --git a/features/backend/admin_setup/pm_group/main_tests_pm_group.feature b/features/backend/admin_setup/pm_group/main_tests_pm_group.feature index f59d015ba..96edc657c 100644 --- a/features/backend/admin_setup/pm_group/main_tests_pm_group.feature +++ b/features/backend/admin_setup/pm_group/main_tests_pm_group.feature @@ -106,7 +106,7 @@ Feature: PM Group Main Tests | grp_uid_number | grp_title | grp_status | | 0 | Update Demo Group1 for main behat | INACTIVE | - | 1 | Update Demo Group2 for main behat | INACTIVE | + | 1 | Update Demo Group2 for main behat | ACTIVE | | 2 | Update Demo Group3 for main behat | ACTIVE | @@ -125,7 +125,7 @@ Feature: PM Group Main Tests | grp_uid_number | grp_title | grp_status | | 0 | Update Demo Group1 for main behat | INACTIVE | - | 1 | Update Demo Group2 for main behat | INACTIVE | + | 1 | Update Demo Group2 for main behat | ACTIVE | | 2 | Update Demo Group3 for main behat | ACTIVE | @@ -144,22 +144,11 @@ Feature: PM Group Main Tests Examples: - | grp_uid_number | grp_title | grp_status | - | 2 | Demo Group2 for main behat | INACTIVE | - - + | grp_uid_number | grp_title | grp_status | + | 2 | Update Demo Group2 for main behat | INACTIVE | - - - - - - - - - - + #ASSIGN USER TO GROUP Scenario Outline: Get list Users of workspace using different filters for a group diff --git a/features/backend/application_cases/case_task/main_tests_case_tasks.feature b/features/backend/application_cases/case_task/main_tests_case_tasks.feature index 42241cef6..2ccfafcba 100644 --- a/features/backend/application_cases/case_task/main_tests_case_tasks.feature +++ b/features/backend/application_cases/case_task/main_tests_case_tasks.feature @@ -14,8 +14,14 @@ Scenario: Get list case tasks of case 174 And the content type is "application/json" And the type is "array" And that "tas_uid" is set to "63847491053347e25555c29086425576" - And that "tas_type" is set to "NORMAL" And that "tas_title" is set to "Task 1" + And that "tas_description" is set to "" + And that "tas_start" is set to "1" + And that "tas_type" is set to "NORMAL" + And that "tas_derivation" is set to "NORMAL" + And that "tas_assign_type" is set to "BALANCED" + + And that "rou_type" is set to "0" And that "rou_next_task" is set to "93695356653347e2702ab38033892652" And that "rou_condition" is set to "" diff --git a/features/backend/projects/assignee/main_tests_assignee.feature b/features/backend/projects/assignee/main_tests_assignee.feature index be5cfcc7c..6097e6ba3 100644 --- a/features/backend/projects/assignee/main_tests_assignee.feature +++ b/features/backend/projects/assignee/main_tests_assignee.feature @@ -159,3 +159,66 @@ Scenario Outline: Get a single user or group of an activity And the type is "array" And the response has 4 records + +#BUG 15041 Inactive Groups are display in list of available groups Accounting + +Scenario Outline: BUG 15041 Get the list of available groups + Given I request "project//activity//available-assignee?filter=&start=&limit=" + 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 records + And the "aas_uid" property in row 0 equals "" + And the "aas_type" property in row 0 equals "" + + Examples: + | test_description | project | activity | filter | start | limit | records | aas_uid | aas_type| + | "Accounting" group is available | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | Accounting | 0 | 50 | 1 | 68911670852a22d93c22c06005808422 | group | + + + + +Scenario: BUG 15041 Update Group to disable group + Given PUT this data: + """ + { + "grp_title": "Accounting", + "grp_status": "INACTIVE" + } + """ + And I request "group/54731929352d56741de9d42002704749" + 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" + + +Scenario Outline: BUG 15041 Get the list of available users and groups to be assigned to an activity using filter + Given I request "project//activity//available-assignee?filter=&start=&limit=" + 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 records + And the "aas_uid" property in row 0 equals "" + And the "aas_type" property in row 0 equals "" + + Examples: + | test_description | project | activity | filter | start | limit | records | aas_uid | aas_type| + | "Accounting" group is available | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | Accounting | 0 | 50 | 0 | 68911670852a22d93c22c06005808422 | group | + + +Scenario: BUG 15041 Update Group to enable group + Given PUT this data: + """ + { + "grp_title": "Accounting", + "grp_status": "ACTIVE" + } + """ + And I request "group/54731929352d56741de9d42002704749" + 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" \ No newline at end of file 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 50fc5980d..f7a5471f9 100644 --- a/features/backend/projects/case_scheduler/main_tests_case_scheduler.feature +++ b/features/backend/projects/case_scheduler/main_tests_case_scheduler.feature @@ -187,25 +187,25 @@ Scenario Outline: Delete all case scheduler of a project created previously in t #Scenario para la revision del "BUG 15040" donde se comprueba la creacion de nuevos case scheduler en diferentes proyectos. -Scenario: Create a new case scheduler with same name - Given POST this data: - """ - { - "sch_option": "5", - "sch_name": "Case Scheduler-Every 987&%@", - "sch_del_user_name": "admin", - "tas_uid": "46941969352af5be2ab3f39001216717", - "sch_start_time": "", - "sch_start_date": "", - "sch_end_date": "", - "sch_week_days": "", - "sch_start_day": "", - "sch_start_day_opt_1": "", - "sch_start_day_opt_2": "", - "sch_months": "", - "sch_repeat_every": "12.30" - } - """ - And I request "project/1265557095225ff5c688f46031700471/case-scheduler" - Then the response status code should be 400 - And the response status message should have the following text "Duplicate Case Scheduler name" \ No newline at end of file +#Scenario: Create a new case scheduler with same name +# Given POST this data: +# """ +# { +# "sch_option": "5", +# "sch_name": "Case Scheduler-Every 987&%@", +# "sch_del_user_name": "admin", +# "tas_uid": "46941969352af5be2ab3f39001216717", +# "sch_start_time": "", +# "sch_start_date": "", +# "sch_end_date": "", +# "sch_week_days": "", +# "sch_start_day": "", +# "sch_start_day_opt_1": "", +# "sch_start_day_opt_2": "", +# "sch_months": "", +# "sch_repeat_every": "12.30" +# } +# """ +# And I request "project/1265557095225ff5c688f46031700471/case-scheduler" +# Then the response status code should be 400 +# And the response status message should have the following text "Duplicate Case Scheduler name" \ No newline at end of file diff --git a/features/backend/projects/process_permissions/negative_tests_permissions.feature b/features/backend/projects/process_permissions/negative_tests_permissions.feature index 21d30ae04..1fe5bd5f2 100644 --- a/features/backend/projects/process_permissions/negative_tests_permissions.feature +++ b/features/backend/projects/process_permissions/negative_tests_permissions.feature @@ -5,28 +5,27 @@ Feature: Process Permissions Negative tests Given that I have a valid access_token Scenario Outline: Create a new Process Permission with bad parameters (negative tests) - 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": "" - } - """ + 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/67021149152e27240dc54d2095572343/process-permission" Then the response status code should be And the response status message should have the following text "" - - Examples: + Examples: | test_description | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | dynaforms | inputs | outputs | op_action | error_code | error_message | | Invalid urs_uid | ALL | | 1 | 00000002256780000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW | 400 | user | @@ -38,7 +37,7 @@ Feature: Process Permissions Negative tests | Invalid tas_uid | ALL | 12345678909876543210000000000000 | 1 | 34289569752d5673d310e82094574281 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK | 400 | tas_uid | | Invalid op_task_source | DRAFT | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552000000000000069605623 | 1 | ANY | | | | VIEW | 400 | task | | Inavlid uid Dynaforms | DRAFT | 55416900252e272492318b9024750146 | 1 | 11206717452d5673913aa69053050085 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859000000000000084654094971976 | | | BLOCK | 400 | dynaform | - | Inavlid uid Inputs | ALL | | 1 | 34289569752d5673d310e82094574281 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 35345345346999999999999888888888 | | BLOCK | 400 | inputs | - | Inavlid uid Outputs | DRAFT | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 22424242424242442424242424242424 | VIEW | 400 | outputs | + | Inavlid uid Inputs | ALL | | 1 | 34289569752d5673d310e82094574281 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 35345345346999999999999888888888 | | BLOCK | 400 | inp_uid | + | Inavlid uid Outputs | DRAFT | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 22424242424242442424242424242424 | VIEW | 400 | out_uid | | Invalid op_user_relation | | | | | | | | | | | | 400 | usr_uid | | Invalid op_action | ALL | | 5 | 25286582752d56713231082039265791 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | | 400 | op_user_relation | \ No newline at end of file diff --git a/features/backend/projects/project/main_tests_project_resources.feature b/features/backend/projects/project/main_tests_project_resources.feature index 639b60649..af4aeacb3 100644 --- a/features/backend/projects/project/main_tests_project_resources.feature +++ b/features/backend/projects/project/main_tests_project_resources.feature @@ -727,4 +727,46 @@ 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" + + + +#BUG 15088-Al editar el nombre de un proceso este permite ingresar el nombre de uno ya existente +Scenario: Update the Projects by setting the name of an existing project + Given PUT this data: + """ + { + "prj_uid": "5195971265375127fce82f4015927137", + "prj_name": "Process Complete BPMN", + "prj_description": "", + "prj_target_namespace": "", + "prj_expresion_language": "", + "prj_type_language": "", + "prj_exporter": "", + "prj_exporter_version": "", + "prj_create_date": "2014-05-15 15:16:15", + "prj_update_date": "2014-06-09 23:00:34", + "prj_author": "00000000000000000000000000000001", + "prj_author_version": "", + "prj_original_source": "", + "diagrams": [ + { + "dia_uid": "3539627265375127fe1a1d2011478753", + "prj_uid": "5195971265375127fce82f4015927137", + "dia_name": "Export process empty", + "dia_is_closable": 0, + "pro_uid": "2365993365375127fe87052082426765", + "activities": [], + "events": [], + "gateways": [], + "flows": [], + "artifacts": [], + "laneset": [], + "lanes": [] + } + ] + } + """ + And I request "projects/5195971265375127fce82f4015927137" + Then the response status code should be 400 + And the response status message should have the following text "exist" \ No newline at end of file diff --git a/features/backend/projects/project_export_import/negative_tests_project_export_import.feature b/features/backend/projects/project_export_import/negative_tests_project_export_import.feature index 3944408c7..7886a12de 100644 --- a/features/backend/projects/project_export_import/negative_tests_project_export_import.feature +++ b/features/backend/projects/project_export_import/negative_tests_project_export_import.feature @@ -13,7 +13,6 @@ Scenario Outline: Import a process negative tests Examples: | Description | project_file | import_option | error_code | error_message | | Import process when the process alredy exists | /home/wendy/uploadfiles/Process_Complete_BPMN.pmx | create | 400 | already exists | - #| Invalid path | /processmaker/sample/Project_invalido.pmx | create | 400 | invalid | | Field Required project_file | | create | 400 | project_file |