Avance y modificaciones a los Features Database Connections y Report Table
This commit is contained in:
@@ -15,10 +15,10 @@ Feature: DataBase Connections
|
||||
"""
|
||||
{
|
||||
"dbs_type": "mysql",
|
||||
"dbs_server": "192.168.11.71",
|
||||
"dbs_database_name": "rb_cochalo",
|
||||
"dbs_username": "root",
|
||||
"dbs_password": "atopml2005",
|
||||
"dbs_server": "michelangelo-be.colosa.net",
|
||||
"dbs_database_name": "test",
|
||||
"dbs_username": "testuser",
|
||||
"dbs_password": "sample",
|
||||
"dbs_port": 3306,
|
||||
"dbs_encode": "utf8",
|
||||
"dbs_description": "conection correcta"
|
||||
@@ -43,10 +43,10 @@ Feature: DataBase Connections
|
||||
"""
|
||||
{
|
||||
"dbs_type": "mysql",
|
||||
"dbs_server": "192.168.11.71",
|
||||
"dbs_database_name": "wf_cochalo",
|
||||
"dbs_username": "root",
|
||||
"dbs_password": "atopml2005",
|
||||
"dbs_server": "michelangelo-be.colosa.net",
|
||||
"dbs_database_name": "test",
|
||||
"dbs_username": "testuser",
|
||||
"dbs_password": "sample",
|
||||
"dbs_port": 3306,
|
||||
"dbs_encode": "utf8",
|
||||
"dbs_description": "conection correcta a workflow"
|
||||
|
||||
@@ -36,7 +36,7 @@ Feature: DataBase Connections Main Tests
|
||||
Examples:
|
||||
|
||||
| test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description |
|
||||
| Test mysql db connection | 1 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection |
|
||||
| Test mysql db connection | 1 | mysql | michelangelo-be.colosa.net | test | testuser | sample | 3306 | utf8 | mysql connection |
|
||||
|
||||
|
||||
Scenario Outline: Create a new database connection
|
||||
@@ -64,7 +64,7 @@ Feature: DataBase Connections Main Tests
|
||||
Examples:
|
||||
|
||||
| test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description |
|
||||
| Create mysql db connection | 1 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection |
|
||||
| Create mysql db connection | 1 | mysql | michelangelo-be.colosa.net | test | testuser | sample | 3306 | utf8 | mysql connection |
|
||||
|
||||
|
||||
Scenario: Get the DataBase Connections List when there are exactly three DataBase Connections
|
||||
@@ -98,7 +98,7 @@ Feature: DataBase Connections Main Tests
|
||||
Examples:
|
||||
|
||||
| test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description |
|
||||
| Update mysql db connection | 1 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | update mysql connection |
|
||||
| Update mysql db connection | 1 | mysql | michelangelo-be.colosa.net | test | testuser | sample | 3306 | utf8 | update mysql connection |
|
||||
|
||||
|
||||
Scenario Outline: Get a single database connection and check some properties
|
||||
@@ -119,7 +119,7 @@ Feature: DataBase Connections Main Tests
|
||||
Examples:
|
||||
|
||||
| test_description | dbs_uid_number | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description |
|
||||
| Update mysql db connection | 1 | mysql | 192.168.11.71 | rb_cochalo | rb_cochalo | atopml2005 | 3306 | utf8 | update mysql connection |
|
||||
| Update mysql db connection | 1 | mysql | michelangelo-be.colosa.net | test | testuser | sample | 3306 | utf8 | update mysql connection |
|
||||
|
||||
|
||||
Scenario Outline: Delete all Database Connection created previously in this script
|
||||
|
||||
@@ -13,26 +13,40 @@ Feature: DataBase Connections Negative Tests
|
||||
"dbs_database_name": "<dbs_database_name>",
|
||||
"dbs_username": "<dbs_username>",
|
||||
"dbs_password": "<dbs_password>",
|
||||
"dbs_port": <dbs_port>,
|
||||
"dbs_port": 3306,
|
||||
"dbs_encode": "<dbs_encode>",
|
||||
"dbs_description": "<dbs_description>"
|
||||
}
|
||||
"""
|
||||
And I request "project/<project>/database-connection/test"
|
||||
And I request "project/<project>/database-connection"
|
||||
Then the response status code should be <error_code>
|
||||
And the response status message should have the following text "<error_message>"
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | error_code | error_message |
|
||||
| Field required dbs_type | 74737540052e1641ab88249082085472 | | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 200 | Trying to connect to host FAILED |
|
||||
| Field required dbs_server | 74737540052e1641ab88249082085472 | mysql | | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 200 | Error Testting Connection |
|
||||
| Field required dbs_database_name | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | | root | atopml2005 | 3306 | utf8 | mysql connection | 200 | The data base does'n exist! |
|
||||
| Field required dbs_username | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | | atopml2005 | 3306 | utf8 | mysql connection | 200 | MySql connection refused! |
|
||||
| Field required dbs_encode | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | | mysql connection | 200 | dbs_encode |
|
||||
| Field required project | | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 400 | prj_uid |
|
||||
|
||||
|
||||
| test_description | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_encode | dbs_description | error_code | error_message |
|
||||
| Field required dbs_type | 74737540052e1641ab88249082085472 | | michelangelo-be.colosa.net | test | testuser | sample | utf8 | mysql connection | 400 | dbs_type |
|
||||
| Field required dbs_server | 74737540052e1641ab88249082085472 | mysql | | test | testuser | sample | utf8 | mysql connection | 400 | dbs_server |
|
||||
| Field required dbs_database_name | 74737540052e1641ab88249082085472 | mysql | michelangelo-be.colosa.net | | testuser | sample | utf8 | mysql connection | 400 | dbs_database_name |
|
||||
| Field required dbs_encode | 74737540052e1641ab88249082085472 | mysql | michelangelo-be.colosa.net | test | testuser | sample | | mysql connection | 400 | dbs_encode |
|
||||
| Field required project | | mysql | michelangelo-be.colosa.net | test | testuser | sample | utf8 | mysql connection | 400 | prj_uid |
|
||||
|
||||
|
||||
Scenario: Test database connection to test with parameter wrong port
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"dbs_type": "mysql",
|
||||
"dbs_server": "michelangelo-be.colosa.net",
|
||||
"dbs_database_name": "test",
|
||||
"dbs_username": "testuser",
|
||||
"dbs_password": "sample",
|
||||
"dbs_port": 10000,
|
||||
"dbs_encode": "utf8",
|
||||
"dbs_description": "mysql connection"
|
||||
}
|
||||
"""
|
||||
And I request "project/74737540052e1641ab88249082085472/database-connection"
|
||||
Then the response status code should be 400
|
||||
And the response status message should have the following text "port"
|
||||
@@ -56,6 +56,42 @@ Scenario Outline: Create new report tables from dynaform and grid
|
||||
| Create a Report Table - Grid | 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | Report Table Desc 2 | workflow | GRID | 267480685524ac9b3bd5e23004484669 | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 |
|
||||
|
||||
|
||||
Scenario: Create a new database connection with same name
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"rep_tab_name" : "REPORT_TABLE_1",
|
||||
"rep_tab_dsc" : "Report Table Desc 1",
|
||||
"rep_tab_connection" : "workflow",
|
||||
"rep_tab_type" : "NORMAL",
|
||||
"rep_tab_grid" : "",
|
||||
"fields" : [
|
||||
{
|
||||
"fld_dyn" : "nameany",
|
||||
"fld_name" : "NAME_ANY",
|
||||
"fld_label" : "Name Any ",
|
||||
"fld_type" : "VARCHAR",
|
||||
"fld_size" : 64
|
||||
}
|
||||
]
|
||||
}
|
||||
"""
|
||||
And I request "project/922677707524ac7417ce345089010125/report-table"
|
||||
Then the response status code should be 400
|
||||
And the response status message should have the following text "already exits"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Scenario: Verify that there are 2 report tables
|
||||
Given I request "project/922677707524ac7417ce345089010125/report-tables"
|
||||
Then the response status code should be 200
|
||||
|
||||
@@ -38,38 +38,22 @@ Scenario Outline: Create new report tables from dynaform and grid with bad param
|
||||
"""
|
||||
And I request "project/<project>/report-table"
|
||||
Then the response status code should be <error_code>
|
||||
And store "rep_uid" in session array as variable "rep_uid_<rep_uid_number>"
|
||||
And the response status message should have the following text "<error_message>"
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | project | rep_uid_number | rep_tab_name | rep_tab_dsc | rep_tab_connection | rep_tab_type | rep_tab_grid | fld_dyn_1 | fld_name_1 | fld_label_1 | fld_type_1 | fld_size_1 | fld_dyn_2 | fld_name_2 | fld_label_2 | fld_type_2 | fld_size_2 | fld_dyn_3 | fld_name_3 | fld_label_3 | fld_type_3 | fld_size_3 | error_code | error_message |
|
||||
| Field required rep_tab_name | 922677707524ac7417ce345089010125 | 1 | | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_name |
|
||||
| Field required rep_tab_dsc | 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | | workflow | GRID | 267480685524ac9b3bd5e23004484669 | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_dsc |
|
||||
| Field required rep_tab_connection | 922677707524ac7417ce345089010125 | 3 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_connection |
|
||||
| Field required fld_type | 922677707524ac7417ce345089010125 | 4 | REPORT_TABLE_2 | Report Table Desc 2 | workflow | | 267480685524ac9b3bd5e23004484669 | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | fld_type |
|
||||
| Field required fld_name | 922677707524ac7417ce345089010125 | 5 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | | Name Any | VARCHAR | 64 | date1 | | Date | DATE | | | | Custom Field 1 | VARCHAR | 15 | 400 | fld_name |
|
||||
| Field required fld_label | 922677707524ac7417ce345089010125 | 6 | REPORT_TABLE_2 | Report Table Desc 2 | | GRID | 267480685524ac9b3bd5e23004484669 | text1 | TEXT_1 | | VARCHAR | 64 | fecha1 | DATE_1 | | DATE | | | CUSTOM_FIELD_1 | | VARCHAR | 15 | 400 | fld_label |
|
||||
| The name is too short | 922677707524ac7417ce345089010125 | 7 | RE | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | characters |
|
||||
| Field required Project | 92267000000000000000000089010125 | 8 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | prj_uid |
|
||||
| Invalid rep_tab_connection | 922677707524ac7417ce345089010125 | 9 | REPORT_TABLE_2 | Report Table Desc 2 | sample | GRID | 267480685524ac9b3bd5e23004484669 | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_connection |
|
||||
| Invalid rep_tab_type | 922677707524ac7417ce345089010125 | 10 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | INPUT | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_type |
|
||||
| Invalid fld_type | 922677707524ac7417ce345089010125 | 11 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | SAMPLE | 64 | date1 | DATE_1 | Date | SAMPLE | | | CUSTOM_FIELD_1 | Custom Field 1 | SAMPLE | 15 | 400 | fld_type |
|
||||
| Invalid fld_size | 922677707524ac7417ce345089010125 | 12 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64,34.55 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 64,34.55 | 400 | fld_size |
|
||||
| Invalid rep_tab_grid | 922677707524ac7417ce345089010125 | 13 | REPORT_TABLE_2 | Report Table Desc 2 | workflow | GRID | 26748060000000000000000000484669 | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_grid |
|
||||
| Create same rep_tab_name | 922677707524ac7417ce345089010125 | 14 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 200 | |
|
||||
| Create same rep_tab_name | 922677707524ac7417ce345089010125 | 15 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | already exits |
|
||||
| test_description | project | rep_tab_name | rep_tab_dsc | rep_tab_connection | rep_tab_type | rep_tab_grid | fld_dyn_1 | fld_name_1 | fld_label_1 | fld_type_1 | fld_size_1 | fld_dyn_2 | fld_name_2 | fld_label_2 | fld_type_2 | fld_size_2 | fld_dyn_3 | fld_name_3 | fld_label_3 | fld_type_3 | fld_size_3 | error_code | error_message |
|
||||
| Field required rep_tab_name | 922677707524ac7417ce345089010125 | | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_name |
|
||||
| Field required rep_tab_connection | 922677707524ac7417ce345089010125 | REPORT_TABLE_1 | Report Table Desc 1 | workflow32 | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_connection |
|
||||
| Field required fld_type | 922677707524ac7417ce345089010125 | REPORT_TABLE_2 | Report Table Desc 2 | workflow | NORMAL | 267480685524ac9b3bd5e23004484669 | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | fld_type |
|
||||
| Field required fld_name | 922677707524ac7417ce345089010125 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | | Name Any | VARCHAR | 64 | date1 | | Date | DATE | | | | Custom Field 1 | VARCHAR | 15 | 400 | fld_name |
|
||||
| Field required fld_label | 922677707524ac7417ce345089010125 | REPORT_TABLE_2 | Report Table Desc 2 | workflow | GRID | 267480685524ac9b3bd5e23004484669 | text1 | TEXT_1 | | VARCHAR | 64 | fecha1 | DATE_1 | | DATE | | | CUSTOM_FIELD_1 | | VARCHAR | 15 | 400 | fld_label |
|
||||
| The name is too short | 922677707524ac7417ce345089010125 | RE | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_name |
|
||||
| Field required Project | 92267000000000000000000089010125 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | prj_uid |
|
||||
| Invalid rep_tab_connection | 922677707524ac7417ce345089010125 | REPORT_TABLE_2 | Report Table Desc 2 | sample | GRID | 267480685524ac9b3bd5e23004484669 | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_connection |
|
||||
| Invalid rep_tab_type | 922677707524ac7417ce345089010125 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | INPUT | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_type |
|
||||
| Invalid fld_type | 922677707524ac7417ce345089010125 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | SAMPLE | 64 | date1 | DATE_1 | Date | SAMPLE | | | CUSTOM_FIELD_1 | Custom Field 1 | SAMPLE | 15 | 400 | fld_type |
|
||||
| Invalid fld_size | 922677707524ac7417ce345089010125 | REPORT_TABLE_1 | Report Table Desc 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64,34.55 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 64,34.55 | 400 | fld_size |
|
||||
| Invalid rep_tab_grid | 922677707524ac7417ce345089010125 | REPORT_TABLE_2 | Report Table Desc 2 | workflow | GRID | 26748060000000000000000000484669 | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 15 | 400 | rep_tab_grid |
|
||||
|
||||
|
||||
Scenario Outline: Delete a created report tables
|
||||
Given that I want to delete a resource with the key "rep_uid" stored in session array as variable "rep_uid_<rep_uid_number>"
|
||||
And I request "project/<project>/report-table"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | project | rep_uid_number |
|
||||
| Delete Report Table Normal | 922677707524ac7417ce345089010125 | 14 |
|
||||
Reference in New Issue
Block a user