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 |
|
||||
|
||||
|
||||
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_<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
|
||||
Given I request "pmtable"
|
||||
Then the response status code should be 200
|
||||
|
||||
@@ -44,8 +44,8 @@ Scenario Outline: Create news pmtable (Negative Test)
|
||||
"fld_name" : "<fld_name>",
|
||||
"fld_label" : "<fld_label>",
|
||||
"fld_type" : "<fld_type>",
|
||||
"fld_size" : "<fld_size>"
|
||||
},
|
||||
"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 |
|
||||
| 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_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"
|
||||
Reference in New Issue
Block a user