From cffe5ee33e19ffb9d4ab00fe10777fa1ce477062 Mon Sep 17 00:00:00 2001 From: Wendy Nestor Date: Thu, 20 Mar 2014 10:44:17 -0400 Subject: [PATCH] Mejoras a los feature department, trigger wizard y cases lists --- .../basic_sequence_department.feature | 9 ++-- .../departments/main_tests_department.feature | 8 ++-- .../negative_tests_department.feature | 11 ++++- .../basic_sequence_cases_lists_1_6.feature | 12 +++++- .../main_tests_trigger_wizards.feature | 41 ++----------------- 5 files changed, 34 insertions(+), 47 deletions(-) diff --git a/features/backend/admin_setup/users/departments/basic_sequence_department.feature b/features/backend/admin_setup/users/departments/basic_sequence_department.feature index 88fd626ea..a2f68d0a9 100644 --- a/features/backend/admin_setup/users/departments/basic_sequence_department.feature +++ b/features/backend/admin_setup/users/departments/basic_sequence_department.feature @@ -20,16 +20,17 @@ Background: Then the response status code should be 200 And the response charset is "UTF-8" And the type is "object" + And the "dep_uid" property equals "12921473252d567506e6e63079240767" And the "dep_parent" property equals "" And the "dep_title" property equals "Sales Division" And the "dep_status" property equals "ACTIVE" - And the "dep_manager" property equals "" + And the "dep_manager" property equals "38102442252d5671a629009013495090" And the "dep_ldap_dn" property equals "" And the "dep_last" property equals "0" - And the "dep_manager_username" property equals "" - And the "dep_manager_lastname" property equals "" + And the "dep_manager_username" property equals "dylan" + And the "dep_manager_firstname" property equals "Dylan" + And the "dep_manager_lastname" property equals "Burns" And the "has_children" property equals "0" - Scenario: Create a new department in the workspace Given POST this data: diff --git a/features/backend/admin_setup/users/departments/main_tests_department.feature b/features/backend/admin_setup/users/departments/main_tests_department.feature index ea03bb4f6..edf9f0313 100644 --- a/features/backend/admin_setup/users/departments/main_tests_department.feature +++ b/features/backend/admin_setup/users/departments/main_tests_department.feature @@ -20,14 +20,16 @@ Background: Then the response status code should be 200 And the response charset is "UTF-8" And the type is "object" + And the "dep_uid" property equals "12921473252d567506e6e63079240767" And the "dep_parent" property equals "" And the "dep_title" property equals "Sales Division" And the "dep_status" property equals "ACTIVE" - And the "dep_manager" property equals "" + And the "dep_manager" property equals "38102442252d5671a629009013495090" And the "dep_ldap_dn" property equals "" And the "dep_last" property equals "0" - And the "dep_manager_username" property equals "" - And the "dep_manager_lastname" property equals "" + And the "dep_manager_username" property equals "dylan" + And the "dep_manager_firstname" property equals "Dylan" + And the "dep_manager_lastname" property equals "Burns" And the "has_children" property equals "0" diff --git a/features/backend/admin_setup/users/departments/negative_tests_department.feature b/features/backend/admin_setup/users/departments/negative_tests_department.feature index 11a98b6d9..26ce78402 100644 --- a/features/backend/admin_setup/users/departments/negative_tests_department.feature +++ b/features/backend/admin_setup/users/departments/negative_tests_department.feature @@ -25,4 +25,13 @@ Scenario Outline: Create a new departments in the workspace with bad parameters | test_description | dep_title | dep_parent | dep_status | error_code | error_message | | without dep_title | | | ACTIVE | 400 | dep_title | | Invalid dep_parent | Department 2 | 28036030000000000000005009591640 | ACTIVE | 400 | dep_parent | - | Invalid dep_status | Department 3 | | TRIGGER | 400 | dep_status | \ No newline at end of file + | Invalid dep_status | Department 3 | | TRIGGER | 400 | dep_status | + + + +Scenario: Delete a department when have asigned user (negative tests) + Given that I want to delete a resource with the key "15978182252d5674d210310076985235" + And I request "department/15978182252d5674d210310076985235" + Then the response status code should be 400 + And the response status message should have the following text "" + \ No newline at end of file diff --git a/features/backend/application_cases/cases_lists_1-6/basic_sequence_cases_lists_1_6.feature b/features/backend/application_cases/cases_lists_1-6/basic_sequence_cases_lists_1_6.feature index 44e61b055..18d6fab12 100644 --- a/features/backend/application_cases/cases_lists_1-6/basic_sequence_cases_lists_1_6.feature +++ b/features/backend/application_cases/cases_lists_1-6/basic_sequence_cases_lists_1_6.feature @@ -92,7 +92,7 @@ Scenario Outline: Create a new case in workspace with process "Derivation rules -Scenario: Create a new case Impersonate in workspace with process "Derivation rules - sequential" +Scenario Outline: Create a new case Impersonate in workspace with process "Derivation rules - sequential" Given POST this data: """ { @@ -107,7 +107,13 @@ Scenario: Create a new case Impersonate in workspace with process "Derivation ru And the response charset is "UTF-8" And the content type is "application/json" And the type is "object" - And store "caseId" in session array as variable "case1" + And store "caseId" in session array as variable "caseId_" + And store "caseNumber" in session array as variable "caseNumber_" + + Examples: + | case_number | + | 1 | + Scenario: Reassigns a case to a different user @@ -127,6 +133,8 @@ Scenario: Reassigns a case to a different user And the type is "object" + + Scenario: Autoderivate a case to the next task in the process Given PUT this data: """ diff --git a/features/backend/projects/trigger_wizard/main_tests_trigger_wizards.feature b/features/backend/projects/trigger_wizard/main_tests_trigger_wizards.feature index 153ab1e5a..0905e49f5 100644 --- a/features/backend/projects/trigger_wizard/main_tests_trigger_wizards.feature +++ b/features/backend/projects/trigger_wizard/main_tests_trigger_wizards.feature @@ -142,46 +142,12 @@ Scenario Outline: Create new Trigger: createDWS And store "tri_uid" in session array as variable "tri_uid" Examples: - | i | lib_name | fn_name | tri_title | tri_description | tri_type | tri_params.input.sharepointServer | tri_params.input.auth | tri_params.input.name | tri_params.input.users | tri_params.input.title | tri_params.input.documents | tri_params.output.tri_answer | - | 1 | pmTrSharepoint | createDWS | Sharepoint 1 | | SCRIPT | @@SERVER | username:password | Test DWS | @@users | Test DWS | /files/test.doc | $respuesta | + | i | Description | lib_name | fn_name | tri_title | tri_description | tri_type | tri_params.input.sharepointServer | tri_params.input.auth | tri_params.input.name | tri_params.input.users | tri_params.input.title | tri_params.input.documents | tri_params.output.tri_answer | + | 1 | Create pmTrSharpoint | pmTrSharepoint | createDWS | Sharepoint 1 | | SCRIPT | @@SERVER | username:password | Test DWS | @@users | Test DWS | /files/test.doc | $respuesta | + | 2 | Create a trigger without sending fields not required | pmTrSharepoint | createDWS | Sharepoint 2 | | SCRIPT | @@SERVER | username:password | Test DWS 1 | @@users | Test DWS | /files/test.doc | | -Scenario Outline: Create new Trigger: createDWS (no enviar campos no requeridos) - Given POST this data: - """ - { - "tri_title": "", - "tri_description": "", - "tri_type": "", - "tri_params": { - "input": { - - "sharepointServer": "", - "auth": "", - "name": "", - "users": "", - "title": "", - "documents": "" - - }, - "output": { - "tri_answer": "" - } - } - } - """ - And I request "project/14414793652a5d718b65590036026581/trigger-wizard//" - 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" - And store "tri_uid" in session array as variable "tri_uid" - Examples: - | i | lib_name | fn_name | tri_title | tri_description | tri_type | tri_params.input.sharepointServer | tri_params.input.auth | tri_params.input.name | tri_params.input.users | tri_params.input.title | tri_params.input.documents | tri_params.output.tri_answer | - | 2 | pmTrSharepoint | createDWS | Sharepoint 1 | | SCRIPT | @@SERVER | username:password | Test DWS | @@users | Test DWS | /files/test.doc | $respuesta | - - Scenario Outline: Update Trigger Given PUT this data: """ @@ -280,6 +246,7 @@ Scenario Outline: Create new Trigger: createDWS | i | | 0 | | 1 | + | 2 | Scenario: Get a List of triggers of a project