diff --git a/features/backend/admin_setup/category/main_tests_category.feature b/features/backend/admin_setup/category/main_tests_category.feature index 061c587de..c45908880 100644 --- a/features/backend/admin_setup/category/main_tests_category.feature +++ b/features/backend/admin_setup/category/main_tests_category.feature @@ -77,12 +77,10 @@ Scenario Outline: Update the Category created in this script Given PUT this data: """ { - "cat_name": "cat_name" + "cat_name": "" } """ And I request "project/category/cat_uid" with the key "cat_uid" stored in session array as variable "cat_uid_" - And store "cat_uid" in session array as variable "cat_uid_" - And the content type is "application/json" Then the response status code should be 200 And the response charset is "UTF-8" @@ -101,8 +99,8 @@ Scenario Outline: Get a Category specific And the response charset is "UTF-8" And the content type is "application/json" And the type is "array" - And the "cat_name" property equals "UPDATE sample!@#$%^^&" - And the "cat_total_processes" property equals 0 + And the "cat_name" property equals "" + And the "cat_total_processes" property equals Examples: diff --git a/features/backend/admin_setup/departments/basic_sequence_department.feature b/features/backend/admin_setup/departments/basic_sequence_department.feature index b81f14c22..f7a02b42d 100644 --- a/features/backend/admin_setup/departments/basic_sequence_department.feature +++ b/features/backend/admin_setup/departments/basic_sequence_department.feature @@ -92,7 +92,7 @@ Background: } """ - And I request "department//assign-user/23085901752d5671483a4c2059274810" with the key "dep_uid" stored in session array + And I request "department/dep_uid/assign-user/23085901752d5671483a4c2059274810" with the key "dep_uid" stored in session array Then the response status code should be 200 And the response charset is "UTF-8" And the content type is "application/json" @@ -106,12 +106,12 @@ Background: } """ - And I request "department//set-manager/24768775452d5671dbc1e92021979323" with the key "dep_uid" stored in session array + And I request "department/dep_uid/set-manager/24768775452d5671dbc1e92021979323" with the key "dep_uid" stored in session array 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" - And store "dep_uid" in session array + @@ -122,12 +122,12 @@ Background: } """ - And I request "department//unassign-user/23085901752d5671483a4c2059274810" with the key "dep_uid" stored in session array + And I request "department/dep_uid/unassign-user/23085901752d5671483a4c2059274810" with the key "dep_uid" stored in session array 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" - And store "dep_uid" in session array + Scenario: Set manager user to department (new supervisor of department: dylan) @@ -137,12 +137,12 @@ Background: } """ - And I request "department//set-manager/38102442252d5671a629009013495090" with the key "dep_uid" stored in session array + And I request "department/dep_uid/set-manager/38102442252d5671a629009013495090" with the key "dep_uid" stored in session array 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" - And store "dep_uid" in session array + Scenario: List all Departaments in the workspace when exactly are 16 departaments created diff --git a/features/backend/admin_setup/departments/main_tests_department.feature b/features/backend/admin_setup/departments/main_tests_department.feature index 910604054..749aac5fd 100644 --- a/features/backend/admin_setup/departments/main_tests_department.feature +++ b/features/backend/admin_setup/departments/main_tests_department.feature @@ -113,8 +113,8 @@ Background: Examples: | test_description | dep_uid_number | dep_title | dep_status | - | Update of field title and status of department | A | Department A UPDATE | INACTIVE | - | Update of field title and status of department | C | Department B UPDATE | ACTIVE | + | Update of field title and status of department | 1 | Department A UPDATE | INACTIVE | + | Update of field title and status of department | 2 | Department B UPDATE | ACTIVE | Scenario Outline: Get a single department after update of the department created of this script @@ -141,14 +141,13 @@ Background: } """ - And that I want to update a resource with the key "dep_uid" stored in session array as variable "dep_uid_" - And I request "department//assign-user/" + And that I want to update "Assigned users" + And I request "department/dep_uid/assign-user/" with the key "dep_uid" stored in session array as variable "dep_uid_" 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" - And store "dep_uid" in session array - + Examples: | Description | dep_uid_number | usr_uid | @@ -166,13 +165,12 @@ Background: } """ - And that I want to update a resource with the key "dep_uid" stored in session array as variable "dep_uid_" - And I request "department//set-manager/" + And that I want to update "Department supervisor" + And I request "department/dep_uid/set-manager/" with the key "dep_uid" stored in session array as variable "dep_uid_" 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" - And store "dep_uid" in session array Examples: @@ -184,7 +182,7 @@ Background: Scenario Outline: Get a single department of created in this script Given that I want to get a resource with the key "dep_uid" stored in session array as variable "dep_uid_" - And I request "department/" + And I request "department" Then the response status code should be 200 And the response charset is "UTF-8" And the type is "object" @@ -209,14 +207,13 @@ Background: } """ - And that I want to update a resource with the key "dep_uid" stored in session array - And I request "department//unassign-user/23085901752d5671483a4c2059274810" + And that I want to update "Assigned users" + And I request "department/dep_uid/unassign-user/" with the key "dep_uid" stored in session array as variable "dep_uid_" 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" - And store "dep_uid" in session array - + Examples: diff --git a/features/backend/admin_setup/departments/negative_tests_department.feature b/features/backend/admin_setup/departments/negative_tests_department.feature index 53a70b992..3c03f5401 100644 --- a/features/backend/admin_setup/departments/negative_tests_department.feature +++ b/features/backend/admin_setup/departments/negative_tests_department.feature @@ -50,8 +50,8 @@ Scenario Outline: Create a new departments in the workspace with bad parameters Scenario: Delete a department when have asigned user (negative tests) - Given that I want to delete a resource with the key "15978182252d5674d210310076985235" + Given that I want to delete a "Department" And I request "department/15978182252d5674d210310076985235" Then the response status code should be 400 - And the response status message should have the following text "" + And the response status message should have the following text "cannot be deleted" \ No newline at end of file diff --git a/features/backend/application_cases/case_actions/main_tests_cases_actions.feature b/features/backend/application_cases/case_actions/main_tests_cases_actions.feature index 26ea1618d..fcb2d1ff1 100644 --- a/features/backend/application_cases/case_actions/main_tests_cases_actions.feature +++ b/features/backend/application_cases/case_actions/main_tests_cases_actions.feature @@ -196,9 +196,9 @@ Scenario Outline: Returns case variables generated by triggers before assignment Then the response status code should be 200 And the response charset is "UTF-8" And the type is "object" - And the "ar" property equals "" - And the "br" property equals "" - And the "ba" property equals "" + And the response has not a "ar" property + And the response has not a "br" property + And the response has not a "ba" property Examples: