Modificacion a los features pm tables, export/import
This commit is contained in:
@@ -113,7 +113,7 @@ Scenario Outline: Create new pmtable with type date and char
|
|||||||
| Create pmtable with type date | 2 |
|
| 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:
|
Given POST this data:
|
||||||
"""
|
"""
|
||||||
{
|
{
|
||||||
@@ -132,19 +132,16 @@ Scenario Outline: Create a new Data of pm table.
|
|||||||
|
|
||||||
| pmt_uid_number |
|
| pmt_uid_number |
|
||||||
| 1 |
|
| 1 |
|
||||||
| 2 |
|
|
||||||
| 3 |
|
|
||||||
| 4 |
|
| 4 |
|
||||||
| 5 |
|
| 5 |
|
||||||
| 6 |
|
| 6 |
|
||||||
| 7 |
|
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Update a a data of pm table
|
Scenario Outline: Update a a data of pm table
|
||||||
Given PUT this data:
|
Given PUT this data:
|
||||||
"""
|
"""
|
||||||
{
|
{
|
||||||
"UNO" : "UPDATE QA11",
|
"UNO" : "QA11",
|
||||||
"DOS" : "UPDATE QA22",
|
"DOS" : "UPDATE QA22",
|
||||||
"TRES" : "UPDATE QA33"
|
"TRES" : "UPDATE QA33"
|
||||||
}
|
}
|
||||||
@@ -324,20 +321,6 @@ Scenario Outline: Delete a pm table of a pmtable
|
|||||||
| 7 |
|
| 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_<pmt_uid_number>"
|
|
||||||
And I request "pmtable/<pmt_uid>/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
|
Scenario: Get the PMTABLE List when there are exactly ONE pmtables in this workspace
|
||||||
Given I request "pmtable"
|
Given I request "pmtable"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ Scenario Outline: Create news pmtable (Negative Test)
|
|||||||
"fld_name" : "<fld_name>",
|
"fld_name" : "<fld_name>",
|
||||||
"fld_label" : "<fld_label>",
|
"fld_label" : "<fld_label>",
|
||||||
"fld_type" : "<fld_type>",
|
"fld_type" : "<fld_type>",
|
||||||
"fld_size" : "<fld_size>"
|
"fld_size" : <fld_size>
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
@@ -55,11 +55,31 @@ Scenario Outline: Create news pmtable (Negative Test)
|
|||||||
|
|
||||||
Examples:
|
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 |
|
| 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 | DOS | DOS | BIGINT | | TRES | TRES | BOOLEAN | | 400 | pmt_tab_name |
|
| Required pmt_tab_name | | pmt table 1 | UNO | UNO | VARCHAR | 32 | 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 | 400 | fld_name |
|
||||||
| 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 | 400 | fld_label |
|
||||||
| 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 | | 32 | 400 | fld_type |
|
||||||
| Required fld_type | PMT_Test_QA5 | pmt table 5 | UNO | UNO | VARCHAR | 32 | DOS | DOS | | | TRES | TRES | LONGVARCHAR | | 400 | fld_type |
|
| Invalid fld_type | PMT_Test_QA7 | pmt table 7 | UNO | UNO | 123 | 32 | 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 |
|
|
||||||
|
Scenario: Create news pmtable (Negative Test)
|
||||||
|
Given POST this data:
|
||||||
|
"""
|
||||||
|
{
|
||||||
|
"pmt_tab_name" : "<pmt_tab_name>",
|
||||||
|
"pmt_tab_dsc" : "<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"
|
||||||
@@ -145,8 +145,7 @@ Scenario Outline: Import a process
|
|||||||
|
|
||||||
Scenario Outline: Get a List DynaForms of a Project Process Complete BPMN
|
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_<prj_uid_number>"
|
Given I request "project/prj_uid/dynaforms" with the key "prj_uid" stored in session array as variable "prj_uid_<prj_uid_number>"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"se status code should be 200
|
||||||
Then the response status code should be 200
|
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "array"
|
And the type is "array"
|
||||||
And the response has <records> records
|
And the response has <records> records
|
||||||
@@ -158,6 +157,7 @@ Scenario Outline: Get a List DynaForms of a Project Process Complete BPMN
|
|||||||
| disable | 3 | 1455892245368ebeb11c1a5001393784 | 26 |
|
| disable | 3 | 1455892245368ebeb11c1a5001393784 | 26 |
|
||||||
| keep | 4 | 1455892245368ebeb11c1a5001393784 | 26 |
|
| keep | 4 | 1455892245368ebeb11c1a5001393784 | 26 |
|
||||||
|
|
||||||
|
Then the respon
|
||||||
|
|
||||||
Scenario Outline: Get the Input Documents List when there are exactly zero input documents
|
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_<prj_uid_number>"
|
Given I request "project/prj_uid/input-documents" with the key "prj_uid" stored in session array as variable "prj_uid_<prj_uid_number>"
|
||||||
|
|||||||
@@ -12,4 +12,5 @@ Scenario Outline: Import a process negative tests
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| Description | project_file | import_option | error_code | error_message |
|
| 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 |
|
| 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 |
|
||||||
Reference in New Issue
Block a user