Modificaciones a los features category, departments y case actions
This commit is contained in:
@@ -77,12 +77,10 @@ Scenario Outline: Update the Category created in this script
|
|||||||
Given PUT this data:
|
Given PUT this data:
|
||||||
"""
|
"""
|
||||||
{
|
{
|
||||||
"cat_name": "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_<cat_uid_number>"
|
And I request "project/category/cat_uid" with the key "cat_uid" stored in session array as variable "cat_uid_<cat_uid_number>"
|
||||||
And store "cat_uid" in session array as variable "cat_uid_<cat_uid_number>"
|
|
||||||
|
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
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 response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "array"
|
And the type is "array"
|
||||||
And the "cat_name" property equals "UPDATE sample!@#$%^^&"
|
And the "cat_name" property equals "<cat_name>"
|
||||||
And the "cat_total_processes" property equals 0
|
And the "cat_total_processes" property equals <cat_total_processes>
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ Background:
|
|||||||
|
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
And I request "department/<dep_uid>/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
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
@@ -106,12 +106,12 @@ Background:
|
|||||||
|
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
And I request "department/<dep_uid>/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
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
And store "dep_uid" in session array
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -122,12 +122,12 @@ Background:
|
|||||||
|
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
And I request "department/<dep_uid>/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
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
And store "dep_uid" in session array
|
|
||||||
|
|
||||||
|
|
||||||
Scenario: Set manager user to department (new supervisor of department: dylan)
|
Scenario: Set manager user to department (new supervisor of department: dylan)
|
||||||
@@ -137,12 +137,12 @@ Background:
|
|||||||
|
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
And I request "department/<dep_uid>/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
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "object"
|
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
|
Scenario: List all Departaments in the workspace when exactly are 16 departaments created
|
||||||
|
|||||||
@@ -113,8 +113,8 @@ Background:
|
|||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
| test_description | dep_uid_number | dep_title | dep_status |
|
| 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 | 1 | 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 | 2 | Department B UPDATE | ACTIVE |
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Get a single department after update of the department created of this script
|
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_<dep_uid_number>"
|
And that I want to update "Assigned users"
|
||||||
And I request "department/<dep_uid>/assign-user/<usr_uid>"
|
And I request "department/dep_uid/assign-user/<usr_uid>" with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
And store "dep_uid" in session array
|
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
| Description | dep_uid_number | usr_uid |
|
| 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_<dep_uid_number>"
|
And that I want to update "Department supervisor"
|
||||||
And I request "department/<dep_uid>/set-manager/<usr_uid>"
|
And I request "department/dep_uid/set-manager/<usr_uid>" with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
And store "dep_uid" in session array
|
|
||||||
|
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
@@ -184,7 +182,7 @@ Background:
|
|||||||
|
|
||||||
Scenario Outline: Get a single department of created in this script
|
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_<dep_uid_number>"
|
Given that I want to get a resource with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
|
||||||
And I request "department/<dep_uid>"
|
And I request "department"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "object"
|
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 that I want to update "Assigned users"
|
||||||
And I request "department/<dep_uid>/unassign-user/23085901752d5671483a4c2059274810"
|
And I request "department/dep_uid/unassign-user/<usr_uid>" with the key "dep_uid" stored in session array as variable "dep_uid_<dep_uid_number>"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
And store "dep_uid" in session array
|
|
||||||
|
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
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"
|
And I request "department/15978182252d5674d210310076985235"
|
||||||
Then the response status code should be 400
|
Then the response status code should be 400
|
||||||
And the response status message should have the following text "<cannot be deleted>"
|
And the response status message should have the following text "cannot be deleted"
|
||||||
|
|
||||||
@@ -196,9 +196,9 @@ Scenario Outline: Returns case variables generated by triggers before assignment
|
|||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
And the "ar" property equals ""
|
And the response has not a "ar" property
|
||||||
And the "br" property equals ""
|
And the response has not a "br" property
|
||||||
And the "ba" property equals ""
|
And the response has not a "ba" property
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user