From be2279f64158ac5e5d0e202c14e1e931f5a7f355 Mon Sep 17 00:00:00 2001 From: Wendy Nestor Date: Tue, 11 Feb 2014 16:26:31 -0400 Subject: [PATCH] Modificaciones a los features Database connections, Process, Process Supervisor y Report Table --- ...egative_tests_database_connections.feature | 40 +++++++++++++++++++ .../main_tests_supervisor.feature | 40 +++++++++---------- .../main_tests_report_tables.feature | 3 ++ 3 files changed, 63 insertions(+), 20 deletions(-) diff --git a/features/backend/database_connections/negative_tests_database_connections.feature b/features/backend/database_connections/negative_tests_database_connections.feature index e69de29bb..f51b526fa 100644 --- a/features/backend/database_connections/negative_tests_database_connections.feature +++ b/features/backend/database_connections/negative_tests_database_connections.feature @@ -0,0 +1,40 @@ +@ProcessMakerMichelangelo @RestAPI +Feature: DataBase Connections Negative Tests + + Background: + Given that I have a valid access_token + + Scenario Outline: Test database connection to test + Given POST this data: + """ + { + "dbs_type": "", + "dbs_server": "", + "dbs_database_name": "", + "dbs_username": "", + "dbs_password": "", + "dbs_port": , + "dbs_encode": "", + "dbs_description": "" + } + """ + And I request "project//database-connection/test" + Then the response status code should be + And the response status message should have the following text "" + + + 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 | 400 | dbs_type | + | Field required dbs_server | 74737540052e1641ab88249082085472 | mysql | | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 400 | dbs_server | + | Field required dbs_database_name | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | | root | atopml2005 | 3306 | utf8 | mysql connection | 400 | dbs_database_name | + | Field required dbs_username | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | | atopml2005 | 3306 | utf8 | mysql connection | 400 | dbs_username | + | Field required dbs_port | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | | utf8 | mysql connection | 400 | dbs_port | + | Field required dbs_encode | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | | mysql connection | 400 | dbs_encode | + | Incorrect dbs_password | 74737540052e1641ab88249082085472 | mysql | 192.168.11.71 | rb_cochalo | root | atsample005 | 3306 | utf8 | mysql connection | 400 | dbs_password | + | Field required project | | mysql | 192.168.11.71 | rb_cochalo | root | atopml2005 | 3306 | utf8 | mysql connection | 400 | prj_uid | + + + + \ No newline at end of file diff --git a/features/backend/process_supervisor/main_tests_supervisor.feature b/features/backend/process_supervisor/main_tests_supervisor.feature index d088d2266..7390c6a3f 100644 --- a/features/backend/process_supervisor/main_tests_supervisor.feature +++ b/features/backend/process_supervisor/main_tests_supervisor.feature @@ -1,7 +1,7 @@ @ProcessMakerMichelangelo @RestAPI Feature: Process supervisor Resources Requirements: - a workspace with the process 85794888452ceeef3675164057928956 ("Test ( Triggers, Activity)") already loaded + a workspace with the process 85794888452ceeef3675164057928956 ("Test Process Supervisor") already loaded there are zero supervisor, dynaform and input document in the Process Supervisor of process @@ -18,19 +18,7 @@ Requirements: Examples: | test_description | project | records | - | List current unique process supervisor | 85794888452ceeef3675164057928956 | 0 | - - - Scenario Outline: Get a specific process supervisor details of a project - Given I request "project//process-supervisor/" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the content type is "application/json" - And the type is "object" - - Examples: - | test_description | project | pu_uid | - | Get the supervisor details | 85794888452ceeef3675164057928956 | 70662784652cef0878516f7085532841 | + | List current unique process supervisor | 85794888452ceeef3675164057928956 | 1 | Scenario Outline: Get a List of available process supervisor of a project @@ -43,7 +31,7 @@ Requirements: Examples: | test_description | project | records | - | List users and groups available to be supervisors | 85794888452ceeef3675164057928956 | 21 | + | List users and groups available to be supervisors | 85794888452ceeef3675164057928956 | 20 | Scenario Outline: Get a List of available groups process supervisor of a project @@ -56,7 +44,7 @@ Requirements: Examples: | test_description | project | records | - | List the 23 groups available to be supervisors | 85794888452ceeef3675164057928956 | 20 | + | List the 23 groups available to be supervisors | 85794888452ceeef3675164057928956 | 19 | Scenario Outline: Get a List of available users elegible as process supervisor @@ -71,7 +59,20 @@ Requirements: | test_description | project | records | | List the unique admin user available to be supervisor | 85794888452ceeef3675164057928956 | 1 | - + + + Scenario Outline: Get a specific process supervisor details of a project + Given I request "project//process-supervisor/" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the content type is "application/json" + And the type is "object" + + Examples: + | test_description | project | pu_uid | + | Get the supervisor details | 85794888452ceeef3675164057928956 | 31336919452fa84404e3ac0086239686 | + + Scenario Outline: Get a List of dynaforms assigned to a process supervisor Given I request "project//process-supervisor/dynaforms" Then the response status code should be 200 @@ -169,7 +170,7 @@ Requirements: | Assign a group as Supervisor | 85794888452ceeef3675164057928956 | 1 | GROUP_SUPERVISOR | 54731929352d56741de9d42002704749 | | Assign a user as Supervisor | 85794888452ceeef3675164057928956 | 2 | SUPERVISOR | 00000000000000000000000000000001 | - + Scenario Outline: Assign a dynaform to a process supervisor Given POST this data: @@ -209,8 +210,7 @@ Requirements: Examples: | test_description | project | dps_number | inp_doc_uid | - | Assign an Input document for Supervisor | 85794888452ceeef3675164057928956 | 1 | 30053187052ddfa4e1fdca4001721051 | - + | Assign an Input document for Supervisor | 85794888452ceeef3675164057928956 | 1 | 54550354652ceef5e4e1c17096955890 | Scenario Outline: Delete a process supervisor diff --git a/features/backend/report_tables/main_tests_report_tables.feature b/features/backend/report_tables/main_tests_report_tables.feature index 9a500c55d..ab26fe2d2 100644 --- a/features/backend/report_tables/main_tests_report_tables.feature +++ b/features/backend/report_tables/main_tests_report_tables.feature @@ -1,5 +1,8 @@ @ProcessMakerMichelangelo @RestAPI Feature: Report Tables +Requirements: + a workspace with the process 922677707524ac7417ce345089010125 ("Test Designer Report Tables") already loaded + there are zero Report Table in the process Background: Given that I have a valid access_token