Mejoras y culminacion de los Behat en los features Output, pm group, report tables
This commit is contained in:
@@ -17,7 +17,7 @@ Feature: Output Documents Main Tests
|
||||
And the type is "array"
|
||||
And the response has 2 records
|
||||
And the "out_doc_title" property in row 0 equals "Endpoint Old Version (base)"
|
||||
And the "out_doc_title" property in row 1 equals "Endpoint New Version (base)
|
||||
And the "out_doc_title" property in row 1 equals "Endpoint New Version (base)"
|
||||
|
||||
|
||||
Scenario: Get a single output document of a project
|
||||
|
||||
@@ -32,8 +32,7 @@ Feature: PM Group Main Tests
|
||||
| Search letters 'de | de | 0 | 5 | 2 | 200 |
|
||||
|
||||
|
||||
|
||||
Scenario Outline: Create new Group
|
||||
Scenario Outline: Create 3 new Groups
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
@@ -57,7 +56,7 @@ Feature: PM Group Main Tests
|
||||
| 2 | Demo Group3 for main behat | INACTIVE |
|
||||
|
||||
|
||||
Scenario: Get list Groups of workspace
|
||||
Scenario: Get the Groups list when there are 23 records
|
||||
And I request "groups?filter=&start=0&limit=50"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
@@ -108,6 +107,102 @@ Feature: PM Group Main Tests
|
||||
| 2 | Update Demo Group3 for main behat | ACTIVE |
|
||||
|
||||
|
||||
#ASSIGN USER TO GROUP
|
||||
|
||||
Scenario Outline: Get list Users of workspace using different filters for a group
|
||||
And I request "group/36775342552d5674146d9c2078497230/users?filter=<filter>&start=<start>&limit=<limit>"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be <http_code>
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "array"
|
||||
And the response has <record> record
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | filter | start | limit | record | http_code |
|
||||
| lowercase | admin | 0 | 9 | 0 | 200 |
|
||||
| uppercase | ADMIN | 0 | 9 | 0 | 200 |
|
||||
| limit=3 | a | 0 | 60 | 37 | 200 |
|
||||
| limit and start | a | 1 | 2 | 2 | 200 |
|
||||
| high number for start | a | 1000 | 1 | 0 | 200 |
|
||||
| high number for start | a | 1000 | 0 | 0 | 200 |
|
||||
| empty result | xyz | 0 | 0 | 0 | 200 |
|
||||
| empty string | | 0 | 10000 | 43 | 200 |
|
||||
| empty string | | 1 | 2 | 2 | 200 |
|
||||
| search 0 | 0 | 0 | 0 | 0 | 200 |
|
||||
| search 0 | 0 | 0 | 100 | 0 | 200 |
|
||||
| Search letters 'c' | c | 0 | 40 | 21 | 200 |
|
||||
| Search letters 'de | de | 0 | 5 | 1 | 200 |
|
||||
|
||||
|
||||
Scenario Outline: Assign users to groups created from the endpoint
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"usr_uid": "<usr_uid>"
|
||||
}
|
||||
"""
|
||||
And I request "group/grp_uid/user" with the key "grp_uid" stored in session array as variable "grp_uid_<grp_uid_number>"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 201
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
|
||||
Examples:
|
||||
| grp_uid_number | usr_uid |
|
||||
| 0 | 00000000000000000000000000000001 |
|
||||
| 1 | 51049032352d56710347233042615067 |
|
||||
| 2 | 25286582752d56713231082039265791 |
|
||||
|
||||
|
||||
Scenario Outline: List assigned Users to Group
|
||||
And I request "group/grp_uid/users" with the key "grp_uid" stored in session array as variable "grp_uid_<grp_uid_number>"
|
||||
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 "array"
|
||||
And the "usr_uid" property in row 0 equals "<usr_uid>"
|
||||
And the "usr_username" property in row 0 equals "<usr_username>"
|
||||
And the "usr_status" property in row 0 equals "<usr_status>"
|
||||
|
||||
Examples:
|
||||
| grp_uid_number | usr_uid | usr_username | usr_status |
|
||||
| 0 | 00000000000000000000000000000001 | admin | ACTIVE |
|
||||
| 1 | 51049032352d56710347233042615067 | aaron | ACTIVE |
|
||||
| 2 | 25286582752d56713231082039265791 | amy | ACTIVE |
|
||||
|
||||
|
||||
Scenario Outline: List available Users to assign to Group
|
||||
And I request "group/grp_uid/available-users?filter=none" with the key "grp_uid" stored in session array as variable "grp_uid_<grp_uid_number>"
|
||||
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 "array"
|
||||
And the json data is an empty array
|
||||
|
||||
Examples:
|
||||
| grp_uid_number |
|
||||
| 0 |
|
||||
| 1 |
|
||||
| 2 |
|
||||
|
||||
|
||||
Scenario Outline: Unassign User of the Group
|
||||
Given that I want to delete a resource with the key "<usr_uid>" stored in session array
|
||||
And I request "group/grp_uid/user/<usr_uid>" with the key "grp_uid" stored in session array as variable "grp_uid_<grp_uid_number>"
|
||||
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:
|
||||
|
||||
| grp_uid_number | usr_uid |
|
||||
| 0 | 00000000000000000000000000000001 |
|
||||
| 1 | 51049032352d56710347233042615067 |
|
||||
| 2 | 25286582752d56713231082039265791 |
|
||||
|
||||
|
||||
Scenario Outline: Delete all Group created previously in this script
|
||||
Given that I want to delete a resource with the key "grp_uid" stored in session array as variable "grp_uid_<grp_uid_number>"
|
||||
And I request "group"
|
||||
@@ -123,8 +218,6 @@ Feature: PM Group Main Tests
|
||||
| 1 |
|
||||
| 2 |
|
||||
|
||||
#GET /api/1.0/{workspace}/groups?filter=abc&start=0&limit=25
|
||||
# Get list Groups
|
||||
Scenario: Get list Groups
|
||||
And I request "groups?filter=Update Demo Gro"
|
||||
And the content type is "application/json"
|
||||
|
||||
@@ -35,8 +35,22 @@ Feature: PM Group Negative Tests
|
||||
|
||||
Examples:
|
||||
|
||||
| grp_title | grp_status | grp_title | error_code | error_message |
|
||||
| Field requered grp_title | ACTIVE | | 400 | grp_title |
|
||||
| Field requered grp_status | | test | 400 | grp_status |
|
||||
| grp_title | grp_uid_number | grp_status | grp_title | error_code | error_message |
|
||||
| Field required grp_title | 1 | ACTIVE | | 400 | grp_title |
|
||||
| Field required grp_status | 2 | | test | 400 | grp_status |
|
||||
| Create group with same name | 4 | ACTIVE | Employees | 400 | exists |
|
||||
|
||||
|
||||
|
||||
|
||||
Scenario: Assign users to groups exist in workspace with bad parameters (negative tests)
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"usr_uid": "0000000000000000444500000001"
|
||||
}
|
||||
"""
|
||||
And I request "group/66623507552d56742865613066097298/user"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 400
|
||||
And the response status message should have the following text "usr_uid"
|
||||
1
features/backend/pm_user/main_tests_pm_user.feature
Normal file
1
features/backend/pm_user/main_tests_pm_user.feature
Normal file
@@ -0,0 +1 @@
|
||||
ygyfgy
|
||||
1
features/backend/pm_user/negative_tests_pm_user.feature
Normal file
1
features/backend/pm_user/negative_tests_pm_user.feature
Normal file
@@ -0,0 +1 @@
|
||||
jhjh
|
||||
51
features/backend/process/basic_sequence_process.feature
Normal file
51
features/backend/process/basic_sequence_process.feature
Normal file
@@ -0,0 +1,51 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Process of a Project Resources
|
||||
Requirements:
|
||||
a workspace with the process 14414793652a5d718b65590036026581 ("Sample Project #1") already loaded
|
||||
there are three activities in the process
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
#GET /api/1.0/{workspace}/project/{prj_uid}/process
|
||||
# Get a single Process
|
||||
Scenario Outline: Get a single Process
|
||||
Given that I want to get a resource with the key "obj_uid" stored in session array
|
||||
And I request "project/14414793652a5d718b65590036026581/process"
|
||||
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"
|
||||
And that "pro_title" is set to "<pro_title>"
|
||||
And that "pro_description" is set to "<pro_description>"
|
||||
And that "pro_status" is set to "<pro_status>"
|
||||
And that "pro_create_user" is set to "<pro_create_user>"
|
||||
And that "pro_debug" is set to "<pro_debug>"
|
||||
|
||||
Examples:
|
||||
| pro_title | pro_description | pro_status | pro_create_user | pro_debug |
|
||||
| Sample Project #1 | | ACTIVE | 00000000000000000000000000000001 | 0 |
|
||||
|
||||
#PUT /api/1.0/{workspace}/project/{prj_uid}/process
|
||||
# Update Process
|
||||
Scenario Outline: Update Process
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"pro_title": "<pro_title>",
|
||||
"pro_description": "<pro_description>",
|
||||
"pro_status": "<pro_status>",
|
||||
"pro_create_user": "<pro_create_user>",
|
||||
"pro_debug": <pro_debug>
|
||||
}
|
||||
"""
|
||||
And I request "project/14414793652a5d718b65590036026581/process"
|
||||
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:
|
||||
| pro_title | pro_description | pro_status | pro_create_user | pro_debug |
|
||||
| Sample Project #1 | | ACTIVE | 00000000000000000000000000000001 | 0 |
|
||||
|
||||
229
features/backend/process/main_tests_process.feature
Normal file
229
features/backend/process/main_tests_process.feature
Normal file
@@ -0,0 +1,229 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Process of a Project Resources
|
||||
Requirements:
|
||||
a workspace with the process 79409754952f8f5110c4342001470580 ("Test Process 2") and there are two activities
|
||||
and workspace with the process 58773281752f50297d6bf00047802053 ("Test Process 1") and there are two activities, in the process already loaded
|
||||
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
Scenario Outline: Get a single Process
|
||||
Given that I want to get a resource with the key "obj_uid" stored in session array
|
||||
And I request "project/<project>/process"
|
||||
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"
|
||||
And that "pro_title" is set to "<pro_title>"
|
||||
And that "pro_description" is set to "<pro_description>"
|
||||
And that "pro_parent" is set to "<pro_parent>"
|
||||
And that "pro_time" is set to "<pro_time>"
|
||||
And that "pro_timeunit" is set to "<pro_timeunit>"
|
||||
And that "pro_status" is set to "<pro_status>"
|
||||
And that "pro_type_day" is set to "<pro_type_day>"
|
||||
And that "pro_type" is set to "<pro_type>"
|
||||
And that "pro_assignment" is set to "<pro_assignment>"
|
||||
And that "pro_show_map" is set to "<pro_show_map>"
|
||||
And that "pro_show_message" is set to "<pro_show_message>"
|
||||
And that "pro_subprocess" is set to "<pro_subprocess>"
|
||||
And that "pro_tri_deleted" is set to "<pro_tri_deleted>"
|
||||
And that "pro_tri_canceled" is set to "<pro_tri_canceled>"
|
||||
And that "pro_tri_paused" is set to "<pro_tri_paused>"
|
||||
And that "pro_tri_reassigned" is set to "<pro_tri_reassigned>"
|
||||
And that "pro_show_delegate" is set to "<pro_show_delegate>"
|
||||
And that "pro_show_dynaform" is set to "<pro_show_dynaform>"
|
||||
And that "pro_category" is set to "<pro_category>"
|
||||
And that "pro_sub_category" is set to "<pro_sub_category>"
|
||||
And that "pro_industry" is set to "<pro_industry>"
|
||||
And that "pro_update_date" is set to "<pro_update_date>"
|
||||
And that "pro_create_date" is set to "<pro_create_date>"
|
||||
And that "pro_create_user" is set to "<pro_create_user>"
|
||||
And that "pro_debug" is set to "<pro_debug>"
|
||||
And that "pro_derivation_screen_tpl" is set to "<pro_derivation_screen_tpl>"
|
||||
And that "pro_summary_dynaform" is set to "<pro_summary_dynaform>"
|
||||
And that "pro_calendar" is set to "<pro_calendar>"
|
||||
|
||||
|
||||
Examples:
|
||||
| project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar |
|
||||
| 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | null | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | |
|
||||
| 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | null | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | |
|
||||
|
||||
|
||||
Scenario Outline: Update Process
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"pro_title" : "<pro_title>",
|
||||
"pro_description" : "<pro_description>",
|
||||
"pro_parent" : "<pro_parent>",
|
||||
"pro_time" : "<pro_time>",
|
||||
"pro_timeunit" : "<pro_timeunit>",
|
||||
"pro_status" : "<pro_status>",
|
||||
"pro_type_day" : "<pro_type_day>",
|
||||
"pro_type" : "<pro_type>",
|
||||
"pro_assignment" : "<pro_assignment>",
|
||||
"pro_show_map" : "<pro_show_map>",
|
||||
"pro_show_message" : "<pro_show_message>",
|
||||
"pro_subprocess" : "<pro_subprocess>",
|
||||
"pro_tri_deleted" : "<pro_tri_deleted>",
|
||||
"pro_tri_canceled" : "<pro_tri_canceled>",
|
||||
"pro_tri_paused" : "<pro_tri_paused>",
|
||||
"pro_tri_reassigned" : "<pro_tri_reassigned>",
|
||||
"pro_show_delegate" : "<pro_show_delegate>",
|
||||
"pro_show_dynaform" : "<pro_show_dynaform>",
|
||||
"pro_category" : "<pro_category>",
|
||||
"pro_sub_category" : "<pro_sub_category>",
|
||||
"pro_industry" : "<pro_industry>",
|
||||
"pro_update_date" : "<pro_update_date>",
|
||||
"pro_create_date" : "<pro_create_date>",
|
||||
"pro_create_user" : "<pro_create_user>",
|
||||
"pro_debug" : "<pro_debug>",
|
||||
"pro_derivation_screen_tpl": "<pro_derivation_screen_tpl>",
|
||||
"pro_summary_dynaform" : "<pro_summary_dynaform>",
|
||||
"pro_calendar" : "<pro_calendar>"
|
||||
}
|
||||
"""
|
||||
And I request "project/<project>/process"
|
||||
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:
|
||||
| project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar |
|
||||
| 79409754952f8f5110c4342001470580 | Update Test Process 1 | Update Process - PUT | 79409754952f8f5110c4342001470580 | 1 | DAYS | INACTIVE | | NORMAL | 1 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-01-10 09:43:36 | 2015-12-09 09:43:36 | 00000000000000000000000000000001 | 0 | | | |
|
||||
| 58773281752f50297d6bf00047802053 | Update Test Process 2 | Update Process - PUT | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 1 | 1 | 1 | 69112537052f503b53142c2026229055 | 30169571352f50349539aa7005920345 | 45413889552f5037587e5a4073302257 | 23429991752f5035c3eab21091451118 | 1 | 0 | 77488943552f502c3d7f649000082980 | | 0 | 2014-01-10 09:43:36 | 2014-02-07 10:58:15 | 51049032352d56710347233042615067 | 1 | tplScreen.html | 94906672952f5058bf3f0f8012616448 | 99159704252f501c63f8c58025859967 |
|
||||
|
||||
|
||||
Scenario Outline: Get a single Process
|
||||
Given that I want to get a resource with the key "obj_uid" stored in session array
|
||||
And I request "project/<project>/process"
|
||||
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"
|
||||
And that "pro_title" is set to "<pro_title>"
|
||||
And that "pro_description" is set to "<pro_description>"
|
||||
And that "pro_parent" is set to "<pro_parent>"
|
||||
And that "pro_time" is set to "<pro_time>"
|
||||
And that "pro_timeunit" is set to "<pro_timeunit>"
|
||||
And that "pro_status" is set to "<pro_status>"
|
||||
And that "pro_type_day" is set to "<pro_type_day>"
|
||||
And that "pro_type" is set to "<pro_type>"
|
||||
And that "pro_assignment" is set to "<pro_assignment>"
|
||||
And that "pro_show_map" is set to "<pro_show_map>"
|
||||
And that "pro_show_message" is set to "<pro_show_message>"
|
||||
And that "pro_subprocess" is set to "<pro_subprocess>"
|
||||
And that "pro_tri_deleted" is set to "<pro_tri_deleted>"
|
||||
And that "pro_tri_canceled" is set to "<pro_tri_canceled>"
|
||||
And that "pro_tri_paused" is set to "<pro_tri_paused>"
|
||||
And that "pro_tri_reassigned" is set to "<pro_tri_reassigned>"
|
||||
And that "pro_show_delegate" is set to "<pro_show_delegate>"
|
||||
And that "pro_show_dynaform" is set to "<pro_show_dynaform>"
|
||||
And that "pro_category" is set to "<pro_category>"
|
||||
And that "pro_sub_category" is set to "<pro_sub_category>"
|
||||
And that "pro_industry" is set to "<pro_industry>"
|
||||
And that "pro_update_date" is set to "<pro_update_date>"
|
||||
And that "pro_create_date" is set to "<pro_create_date>"
|
||||
And that "pro_create_user" is set to "<pro_create_user>"
|
||||
And that "pro_debug" is set to "<pro_debug>"
|
||||
And that "pro_derivation_screen_tpl" is set to "<pro_derivation_screen_tpl>"
|
||||
And that "pro_summary_dynaform" is set to "<pro_summary_dynaform>"
|
||||
And that "pro_calendar" is set to "<pro_calendar>"
|
||||
|
||||
|
||||
Examples:
|
||||
| project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar |
|
||||
| 79409754952f8f5110c4342001470580 | Update Sample Project #1 | Update Process - PUT | 79409754952f8f5110c4342001470580 | 1 | DAYS | INACTIVE | | NORMAL | 1 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-01-10 09:43:36 | 2015-12-09 09:43:36 | 00000000000000000000000000000001 | 0 | | | |
|
||||
| 58773281752f50297d6bf00047802053 | Update Test Process | Update Process - PUT | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 1 | 1 | 1 | 69112537052f503b53142c2026229055 | 30169571352f50349539aa7005920345 | 45413889552f5037587e5a4073302257 | 23429991752f5035c3eab21091451118 | 1 | 0 | 77488943552f502c3d7f649000082980 | | 0 | 2014-01-10 09:43:36 | 2014-02-07 10:58:15 | 51049032352d56710347233042615067 | 1 | tplScreen.html | 94906672952f5058bf3f0f8012616448 | 14606161052f50839307899033145440 |
|
||||
|
||||
|
||||
Scenario Outline: Update Process
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"pro_title" : "<pro_title>",
|
||||
"pro_description" : "<pro_description>",
|
||||
"pro_parent" : "<pro_parent>",
|
||||
"pro_time" : "<pro_time>",
|
||||
"pro_timeunit" : "<pro_timeunit>",
|
||||
"pro_status" : "<pro_status>",
|
||||
"pro_type_day" : "<pro_type_day>",
|
||||
"pro_type" : "<pro_type>",
|
||||
"pro_assignment" : "<pro_assignment>",
|
||||
"pro_show_map" : "<pro_show_map>",
|
||||
"pro_show_message" : "<pro_show_message>",
|
||||
"pro_subprocess" : "<pro_subprocess>",
|
||||
"pro_tri_deleted" : "<pro_tri_deleted>",
|
||||
"pro_tri_canceled" : "<pro_tri_canceled>",
|
||||
"pro_tri_paused" : "<pro_tri_paused>",
|
||||
"pro_tri_reassigned" : "<pro_tri_reassigned>",
|
||||
"pro_show_delegate" : "<pro_show_delegate>",
|
||||
"pro_show_dynaform" : "<pro_show_dynaform>",
|
||||
"pro_category" : "<pro_category>",
|
||||
"pro_sub_category" : "<pro_sub_category>",
|
||||
"pro_industry" : "<pro_industry>",
|
||||
"pro_update_date" : "<pro_update_date>",
|
||||
"pro_create_date" : "<pro_create_date>",
|
||||
"pro_create_user" : "<pro_create_user>",
|
||||
"pro_debug" : "<pro_debug>",
|
||||
"pro_derivation_screen_tpl": "<pro_derivation_screen_tpl>",
|
||||
"pro_summary_dynaform" : "<pro_summary_dynaform>",
|
||||
"pro_calendar" : "<pro_calendar>"
|
||||
}
|
||||
"""
|
||||
And I request "project/<project>/process"
|
||||
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:
|
||||
| project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar |
|
||||
| 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:49:37 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | |
|
||||
| 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:49:37 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | |
|
||||
|
||||
|
||||
Scenario Outline: Get a single Process
|
||||
Given that I want to get a resource with the key "obj_uid" stored in session array
|
||||
And I request "project/<project>/process"
|
||||
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"
|
||||
And that "pro_title" is set to "<pro_title>"
|
||||
And that "pro_description" is set to "<pro_description>"
|
||||
And that "pro_parent" is set to "<pro_parent>"
|
||||
And that "pro_time" is set to "<pro_time>"
|
||||
And that "pro_timeunit" is set to "<pro_timeunit>"
|
||||
And that "pro_status" is set to "<pro_status>"
|
||||
And that "pro_type_day" is set to "<pro_type_day>"
|
||||
And that "pro_type" is set to "<pro_type>"
|
||||
And that "pro_assignment" is set to "<pro_assignment>"
|
||||
And that "pro_show_map" is set to "<pro_show_map>"
|
||||
And that "pro_show_message" is set to "<pro_show_message>"
|
||||
And that "pro_subprocess" is set to "<pro_subprocess>"
|
||||
And that "pro_tri_deleted" is set to "<pro_tri_deleted>"
|
||||
And that "pro_tri_canceled" is set to "<pro_tri_canceled>"
|
||||
And that "pro_tri_paused" is set to "<pro_tri_paused>"
|
||||
And that "pro_tri_reassigned" is set to "<pro_tri_reassigned>"
|
||||
And that "pro_show_delegate" is set to "<pro_show_delegate>"
|
||||
And that "pro_show_dynaform" is set to "<pro_show_dynaform>"
|
||||
And that "pro_category" is set to "<pro_category>"
|
||||
And that "pro_sub_category" is set to "<pro_sub_category>"
|
||||
And that "pro_industry" is set to "<pro_industry>"
|
||||
And that "pro_update_date" is set to "<pro_update_date>"
|
||||
And that "pro_create_date" is set to "<pro_create_date>"
|
||||
And that "pro_create_user" is set to "<pro_create_user>"
|
||||
And that "pro_debug" is set to "<pro_debug>"
|
||||
And that "pro_derivation_screen_tpl" is set to "<pro_derivation_screen_tpl>"
|
||||
And that "pro_summary_dynaform" is set to "<pro_summary_dynaform>"
|
||||
And that "pro_calendar" is set to "<pro_calendar>"
|
||||
|
||||
|
||||
Examples:
|
||||
| project | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar |
|
||||
| 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | null | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | |
|
||||
| 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | null | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | |
|
||||
76
features/backend/process/negative_tests_process.feature
Normal file
76
features/backend/process/negative_tests_process.feature
Normal file
@@ -0,0 +1,76 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Process of a Project Resources Negative Tests
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
Scenario Outline: Update Process
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"pro_title" : "<pro_title>",
|
||||
"pro_description" : "<pro_description>",
|
||||
"pro_parent" : "<pro_parent>",
|
||||
"pro_time" : "<pro_time>",
|
||||
"pro_timeunit" : "<pro_timeunit>",
|
||||
"pro_status" : "<pro_status>",
|
||||
"pro_type_day" : "<pro_type_day>",
|
||||
"pro_type" : "<pro_type>",
|
||||
"pro_assignment" : "<pro_assignment>",
|
||||
"pro_show_map" : "<pro_show_map>",
|
||||
"pro_show_message" : "<pro_show_message>",
|
||||
"pro_subprocess" : "<pro_subprocess>",
|
||||
"pro_tri_deleted" : "<pro_tri_deleted>",
|
||||
"pro_tri_canceled" : "<pro_tri_canceled>",
|
||||
"pro_tri_paused" : "<pro_tri_paused>",
|
||||
"pro_tri_reassigned" : "<pro_tri_reassigned>",
|
||||
"pro_show_delegate" : "<pro_show_delegate>",
|
||||
"pro_show_dynaform" : "<pro_show_dynaform>",
|
||||
"pro_category" : "<pro_category>",
|
||||
"pro_sub_category" : "<pro_sub_category>",
|
||||
"pro_industry" : "<pro_industry>",
|
||||
"pro_update_date" : "<pro_update_date>",
|
||||
"pro_create_date" : "<pro_create_date>",
|
||||
"pro_create_user" : "<pro_create_user>",
|
||||
"pro_debug" : "<pro_debug>",
|
||||
"pro_derivation_screen_tpl": "<pro_derivation_screen_tpl>",
|
||||
"pro_summary_dynaform" : "<pro_summary_dynaform>",
|
||||
"pro_calendar" : "<pro_calendar>"
|
||||
}
|
||||
"""
|
||||
And I request "project/<project>/process"
|
||||
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 | pro_title | pro_description | pro_parent | pro_time | pro_timeunit | pro_status | pro_type_day | pro_type | pro_assignment | pro_show_map | pro_show_message | pro_subprocess | pro_tri_deleted | pro_tri_canceled | pro_tri_paused | pro_tri_reassigned | pro_show_delegate | pro_show_dynaform | pro_category | pro_sub_category | pro_industry | pro_update_date | pro_create_date | pro_create_user | pro_debug | pro_derivation_screen_tpl | pro_summary_dynaform | pro_calendar | error_code | error_message |
|
||||
| Invalid prj_uid | 79409700000000000004342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | prj_uid |
|
||||
| Invalid pro_parent | 58773281752f50297d6bf00047802053 | Test Process 1 | | 5877300000000000006bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_parent |
|
||||
| Invalid pro_time | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 5 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_time |
|
||||
| Invalid pro_timeunit | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | HOURS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_timeunit |
|
||||
| Invalid pro_status | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | VALOR | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_status |
|
||||
| Invalid pro_type | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | INPUT | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_type |
|
||||
| Invalid pro_assignment | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 4 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_assignment |
|
||||
| Invalid pro_show_map | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 5 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_map |
|
||||
| Invalid pro_show_message | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 4 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_message |
|
||||
| Invalid pro_subprocess | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 4 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_subprocess |
|
||||
| Invalid pro_tri_deleted | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | 4541388955000000000e5a4073302257 | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_deleted |
|
||||
| Invalid pro_tri_canceled | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | 4541380000000000087e5a4073302257 | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_canceled |
|
||||
| Invalid pro_tri_paused | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | 4541388900000000087e5a4073302257 | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_paused |
|
||||
| Invalid pro_tri_reassigned | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | 4541380000000000000e5a4073302257 | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_tri_reassigned |
|
||||
| Invalid pro_show_delegate | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 5 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_delegate |
|
||||
| Invalid pro_show_dynaform | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 8 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_show_dynaform |
|
||||
| Invalid pro_category | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | 4541380000000000000e5a4073302257 | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_category |
|
||||
| Invalid pro_industry | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 4 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_industry |
|
||||
| Invalid pro_create_date | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 01-98-2014 110:49:37 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_create_date |
|
||||
| Invalid pro_create_user | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 0000000000003551 | 0 | | | | 400 | pro_create_user |
|
||||
| Invalid pro_debug | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 5 | | | | 400 | pro_debug |
|
||||
| Invalid pro_summary_dynaform | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | 954104947190420f51086854718 | | 400 | pro_summary_dynaform |
|
||||
| Invalid pro_calendar | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | 954104947190420f51086854718 | 400 | pro_calendar |
|
||||
| Field required prj_uid | | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | prj_uid |
|
||||
| Same Name pro_title | 79409754952f8f5110c4342001470580 | Test | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 200 | |
|
||||
| Same Name pro_title | 58773281752f50297d6bf00047802053 | Test | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-10 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 400 | pro_title |
|
||||
| Set initial values | 79409754952f8f5110c4342001470580 | Test Process 2 | | 79409754952f8f5110c4342001470580 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-11 10:58:15 | 2014-02-10 10:49:37 | 00000000000000000000000000000001 | 0 | | | | 200 | |
|
||||
| Set initial values | 58773281752f50297d6bf00047802053 | Test Process 1 | | 58773281752f50297d6bf00047802053 | 1 | DAYS | ACTIVE | | NORMAL | 0 | 0 | 0 | 0 | | | | | 0 | 0 | | | 0 | 2014-02-11 10:58:15 | 2014-02-07 10:58:15 | 00000000000000000000000000000001 | 0 | | | | 200 | |
|
||||
|
||||
|
||||
@@ -7,8 +7,6 @@ Requirements:
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
|
||||
|
||||
Scenario: Verify that there are no report tables
|
||||
Given I request "project/922677707524ac7417ce345089010125/report-tables"
|
||||
Then the response status code should be 200
|
||||
@@ -53,9 +51,10 @@ Scenario Outline: Create new report tables from dynaform and grid
|
||||
|
||||
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 |
|
||||
| | 922677707524ac7417ce345089010125 | 1 | 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 |
|
||||
| | 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 |
|
||||
| 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 |
|
||||
| Create a Report Table - Normal | 922677707524ac7417ce345089010125 | 1 | 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 |
|
||||
| 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: Verify that there are 2 report tables
|
||||
Given I request "project/922677707524ac7417ce345089010125/report-tables"
|
||||
@@ -64,8 +63,6 @@ Scenario: Verify that there are 2 report tables
|
||||
And the response has 2 record
|
||||
|
||||
|
||||
|
||||
|
||||
Scenario Outline: Update a created report tables
|
||||
Given PUT this data:
|
||||
"""
|
||||
@@ -103,9 +100,9 @@ Scenario Outline: Update a created report tables
|
||||
|
||||
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 |
|
||||
| | 922677707524ac7417ce345089010125 | 1 | REPORT_TABLE_1 | Report Table Desc Updated 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
| | 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | Report Table Desc Updated 2 | workflow | GRID | 267480685524ac9b3bd5e23004484669 | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
| 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 |
|
||||
| Update a Report Table - Normal | 922677707524ac7417ce345089010125 | 1 | REPORT_TABLE_1 | Report Table Desc Updated 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
| Update a Report Table - Grid | 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | Report Table Desc Updated 2 | workflow | GRID | 267480685524ac9b3bd5e23004484669 | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
|
||||
|
||||
Scenario Outline: Get a details of created report tables
|
||||
@@ -119,9 +116,9 @@ Scenario Outline: Get a details of created report tables
|
||||
|
||||
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 |
|
||||
| | 922677707524ac7417ce345089010125 | 1 | REPORT_TABLE_1 | Report Table Desc Updated 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
| | 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | Report Table Desc Updated 2 | workflow | GRID | grid | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
| 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 |
|
||||
| 922677707524ac7417ce345089010125 | 1 | REPORT_TABLE_1 | Report Table Desc Updated 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
| 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | Report Table Desc Updated 2 | workflow | GRID | grid | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
|
||||
|
||||
Scenario Outline: Populate report tables
|
||||
@@ -131,9 +128,9 @@ Scenario Outline: Populate report tables
|
||||
|
||||
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 |
|
||||
| | 922677707524ac7417ce345089010125 | 1 | REPORT_TABLE_1 | Report Table Desc Updated 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
| | 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | Report Table Desc Updated 2 | workflow | GRID | grid | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
| 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 |
|
||||
| Populate Report Table Normal | 922677707524ac7417ce345089010125 | 1 | REPORT_TABLE_1 | Report Table Desc Updated 1 | workflow | NORMAL | | nameany | NAME_ANY | Name Any | VARCHAR | 64 | date1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
| Populate Report Table Grid | 922677707524ac7417ce345089010125 | 2 | REPORT_TABLE_2 | Report Table Desc Updated 2 | workflow | GRID | grid | text1 | TEXT_1 | Text 1 | VARCHAR | 64 | fecha1 | DATE_1 | Date | DATE | | | CUSTOM_FIELD_1 | Custom Field 1 | VARCHAR | 150 |
|
||||
|
||||
|
||||
|
||||
@@ -146,9 +143,10 @@ Scenario Outline: Delete a created report tables
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | project | rep_uid_number |
|
||||
| | 922677707524ac7417ce345089010125 | 100 |
|
||||
| | 922677707524ac7417ce345089010125 | 200 |
|
||||
| test_description | project | rep_uid_number |
|
||||
| Delete Report Table Normal | 922677707524ac7417ce345089010125 | 1 |
|
||||
| Delete Report Table Grid | 922677707524ac7417ce345089010125 | 2 |
|
||||
|
||||
|
||||
Scenario: Verify that the report tables were deleted correctly
|
||||
Given I request "project/922677707524ac7417ce345089010125/report-tables"
|
||||
|
||||
@@ -1,5 +1,75 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: DataBase Connections
|
||||
Feature: DataBase Connections Negative Tests
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
Scenario Outline: Create new report tables from dynaform and grid with bad parameters (negative tests)
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"rep_tab_name" : "<rep_tab_name>",
|
||||
"rep_tab_dsc" : "<rep_tab_dsc>",
|
||||
"rep_tab_connection" : "<rep_tab_connection>",
|
||||
"rep_tab_type" : "<rep_tab_type>",
|
||||
"rep_tab_grid" : "<rep_tab_grid>",
|
||||
"fields" : [
|
||||
{
|
||||
"fld_dyn" : "<fld_dyn_1>",
|
||||
"fld_name" : "<fld_name_1>",
|
||||
"fld_label" : "<fld_label_1>",
|
||||
"fld_type" : "<fld_type_1>",
|
||||
"fld_size" : "<fld_size_1>"
|
||||
},{
|
||||
"fld_dyn" : "<fld_dyn_2>",
|
||||
"fld_name" : "<fld_name_2>",
|
||||
"fld_label" : "<fld_label_2>",
|
||||
"fld_type" : "<fld_type_2>",
|
||||
"fld_size" : "<fld_size_2>"
|
||||
},{
|
||||
"fld_dyn" : "<fld_dyn_3>",
|
||||
"fld_name" : "<fld_name_3>",
|
||||
"fld_label" : "<fld_label_3>",
|
||||
"fld_type" : "<fld_type_3>",
|
||||
"fld_size" : "<fld_size_3>"
|
||||
}
|
||||
]
|
||||
}
|
||||
"""
|
||||
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 |
|
||||
|
||||
|
||||
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