diff --git a/features/backend/admin_setup/pm_tables/main_tests_pm_tables.feature b/features/backend/admin_setup/pm_tables/main_tests_pm_tables.feature index cc0eecdda..2bc2bf06b 100644 --- a/features/backend/admin_setup/pm_tables/main_tests_pm_tables.feature +++ b/features/backend/admin_setup/pm_tables/main_tests_pm_tables.feature @@ -113,7 +113,7 @@ Scenario Outline: Create new pmtable with type date and char | Create pmtable with type date | 2 | -Scenario Outline: Create a new Data of pm table. +Scenario Outline: Create a new Data of pm table Given POST this data: """ { @@ -132,19 +132,16 @@ Scenario Outline: Create a new Data of pm table. | pmt_uid_number | | 1 | - | 2 | - | 3 | | 4 | | 5 | | 6 | - | 7 | - + Scenario Outline: Update a a data of pm table Given PUT this data: """ { - "UNO" : "UPDATE QA11", + "UNO" : "QA11", "DOS" : "UPDATE QA22", "TRES" : "UPDATE QA33" } @@ -324,20 +321,6 @@ Scenario Outline: Delete a pm table of a pmtable | 7 | -Scenario Outline: Delete a data of a pmtable - Given that I want to delete a resource with the key "pmt_uid" stored in session array as variable "pmt_uid_" - And I request "pmtable//data/CAMPO1/QA" - 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: - - | pmt_uid_number | - | 2 | - - Scenario: Get the PMTABLE List when there are exactly ONE pmtables in this workspace Given I request "pmtable" Then the response status code should be 200 diff --git a/features/backend/admin_setup/pm_tables/negative_tests_pm_tables.feature b/features/backend/admin_setup/pm_tables/negative_tests_pm_tables.feature index 51bf2cac9..17a20f7e2 100644 --- a/features/backend/admin_setup/pm_tables/negative_tests_pm_tables.feature +++ b/features/backend/admin_setup/pm_tables/negative_tests_pm_tables.feature @@ -44,8 +44,8 @@ Scenario Outline: Create news pmtable (Negative Test) "fld_name" : "", "fld_label" : "", "fld_type" : "", - "fld_size" : "" - }, + "fld_size" : + } ] } """ @@ -55,11 +55,31 @@ Scenario Outline: Create news pmtable (Negative Test) Examples: - | test_description | pmt_tab_name | pmt_tab_dsc | fld_name | fld_label | fld_type | fld_size | fld_name | fld_label | fld_type | fld_size | fld_name | fld_label | fld_type | fld_size | error_code | error_message | - | Required pmt_tab_name | | pmt table 1 | UNO | UNO | VARCHAR | 32 | DOS | DOS | BIGINT | | TRES | TRES | BOOLEAN | | 400 | pmt_tab_name | - | Required pmt_tab_dsc | PMT_Test_QA2 | | UNO | UNO | VARCHAR | 32 | DOS | DOS | CHAR | | TRES | TRES | DATE | | 400 | pmt_tab_dsc | - | Required fld_name | PMT_Test_QA3 | pmt table 3 | | UNO | VARCHAR | 32 | DOS | DOS | DATETIME | | TRES | TRES | DECIMAL | | 400 | fld_name | - | Required fld_label | PMT_Test_QA4 | pmt table 4 | UNO | | VARCHAR | 32 | DOS | DOS | DOUBLE | | TRES | TRES | FLOAT | | 400 | fld_label | - | Required fld_type | PMT_Test_QA5 | pmt table 5 | UNO | UNO | VARCHAR | 32 | DOS | DOS | | | TRES | TRES | LONGVARCHAR | | 400 | fld_type | - | Invalid fld_size | PMT_Test_QA6 | pmt table 6 | UNO | UNO | VARCHAR | sample | DOS | DOS | REAL | samke | TRES | TRES | SMALLINT | task | 400 | fld_size | - | Invalid fld_type | PMT_Test_QA7 | pmt table 7 | UNO | UNO | 123 | 32 | DOS | DOS | 1234 | | TRES | TRES | 457,777 | | 400 | fld_type | \ No newline at end of file + | test_description | pmt_tab_name | pmt_tab_dsc | fld_name | fld_label | fld_type | fld_size | error_code | error_message | + | Required pmt_tab_name | | pmt table 1 | UNO | UNO | VARCHAR | 32 | 400 | pmt_tab_name | + | Required fld_name | PMT_Test_QA3 | pmt table 3 | | UNO | VARCHAR | 32 | 400 | fld_name | + | Required fld_label | PMT_Test_QA4 | pmt table 4 | UNO | | VARCHAR | 32 | 400 | fld_label | + | Required fld_type | PMT_Test_QA5 | pmt table 5 | UNO | UNO | | 32 | 400 | fld_type | + | Invalid fld_type | PMT_Test_QA7 | pmt table 7 | UNO | UNO | 123 | 32 | 400 | fld_type | + + +Scenario: Create news pmtable (Negative Test) + Given POST this data: + """ + { + "pmt_tab_name" : "", + "pmt_tab_dsc" : "", + "fields" : [ + { + "fld_key" : 1, + "fld_name" : "UNO", + "fld_label" : "UNO", + "fld_type" : "VARCHAR", + "fld_size" : "sample" + } + ] + } + """ + And I request "pmtable" + Then the response status code should be 400 + And the response status message should have the following text "fld_size" \ 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 fd9e86e00..1f3fbf1f6 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 @@ -145,8 +145,7 @@ Scenario Outline: Import a process Scenario Outline: Get a List DynaForms of a Project Process Complete BPMN Given I request "project/prj_uid/dynaforms" with the key "prj_uid" stored in session array as variable "prj_uid_" - And the content type is "application/json" - Then the response status code should be 200 + And the content type is "application/json"se status code should be 200 And the response charset is "UTF-8" And the type is "array" And the response has records @@ -158,6 +157,7 @@ Scenario Outline: Get a List DynaForms of a Project Process Complete BPMN | disable | 3 | 1455892245368ebeb11c1a5001393784 | 26 | | keep | 4 | 1455892245368ebeb11c1a5001393784 | 26 | + Then the respon Scenario Outline: Get the Input Documents List when there are exactly zero input documents Given I request "project/prj_uid/input-documents" with the key "prj_uid" stored in session array as variable "prj_uid_" 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 6a6709615..96cfb2e2c 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 @@ -12,4 +12,5 @@ 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 | \ No newline at end of file + | 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 | \ No newline at end of file