Merged in wnestor/processmaker (pull request #522)
Modificacion de sintaxis en los features roles, case tracker y import/export project
This commit is contained in:
@@ -47,52 +47,67 @@ Scenario Outline: Create new Role
|
||||
|
||||
#Assign users to role
|
||||
|
||||
#Scenario: List assigned Users to Role & List available Users to assign to Role
|
||||
# Given I request "role/00000000000000000000000000000003/users"
|
||||
# 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 "array"
|
||||
# And the response has 61 records
|
||||
#
|
||||
#Scenario: Assign User to Role
|
||||
# Given POST this data:
|
||||
# """
|
||||
# {
|
||||
# "usr_uid": "310985970530cbfa4ec0593063369294"
|
||||
# }
|
||||
# """
|
||||
# And I request "role/00000000000000000000000000000003/user"
|
||||
# Then the response status code should be 201
|
||||
# And the response charset is "UTF-8"
|
||||
# And the content type is "application/json"
|
||||
# And the type is "object"
|
||||
#
|
||||
#
|
||||
#Scenario: Get list of Roles
|
||||
# Given I request "roles"
|
||||
# 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 "array"
|
||||
# And the response has 62 records
|
||||
#
|
||||
#
|
||||
#Scenario: Unassign User of the Role
|
||||
# Given that I want to delete a resource with the key "310985970530cbfa4ec0593063369294"
|
||||
# And I request "role/00000000000000000000000000000003/user/310985970530cbfa4ec0593063369294"
|
||||
# And the content type is "application/json"
|
||||
# Then the response status code should be 200
|
||||
# And the response charset is "UTF-8"
|
||||
#
|
||||
#
|
||||
#Scenario: Get list of Roles
|
||||
# Given I request "roles"
|
||||
# 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 "array"
|
||||
# And the response has 61 records
|
||||
Scenario: List assigned Users to Role & List available Users to assign to Role
|
||||
Given I request "role/00000000000000000000000000000003/users"
|
||||
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 "array"
|
||||
And the response has 61 records
|
||||
|
||||
Scenario: Assign User to Role
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"usr_uid": "310985970530cbfa4ec0593063369294"
|
||||
}
|
||||
"""
|
||||
And I request "role/00000000000000000000000000000003/user"
|
||||
Then the response status code should be 201
|
||||
And the response charset is "UTF-8"
|
||||
And the content type is "application/json"
|
||||
And the type is "object"
|
||||
|
||||
|
||||
Scenario: Get list of Roles
|
||||
Given I request "roles"
|
||||
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 "array"
|
||||
And the response has 4 records
|
||||
|
||||
|
||||
Scenario: Unassign User of the Role
|
||||
Given that I want to delete a "User from a role"
|
||||
And I request "role/00000000000000000000000000000003/user/310985970530cbfa4ec0593063369294"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
|
||||
|
||||
Scenario: Assign User "Wendy" to Role "PROCESSMAKER_ADMIN"
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"usr_uid": "310985970530cbfa4ec0593063369294"
|
||||
}
|
||||
"""
|
||||
And I request "role/00000000000000000000000000000002/user"
|
||||
Then the response status code should be 201
|
||||
And the response charset is "UTF-8"
|
||||
And the content type is "application/json"
|
||||
And the type is "object"
|
||||
|
||||
|
||||
Scenario: Get list of Roles
|
||||
Given I request "roles"
|
||||
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 "array"
|
||||
And the response has 4 records
|
||||
|
||||
#Culminacion de los endpoint de asignacion de usuarios
|
||||
|
||||
#Role and Permission
|
||||
@@ -111,7 +126,7 @@ Scenario: List assigned Permissions to Role & List available Permissions to assi
|
||||
And the response charset is "UTF-8"
|
||||
And the content type is "application/json"
|
||||
And the type is "array"
|
||||
And the response has 14 recordsuser
|
||||
And the response has 14 records
|
||||
|
||||
Scenario: Assign Permission "PM_DASHBOARD" to Role
|
||||
Given POST this data:
|
||||
@@ -126,7 +141,7 @@ Scenario: Assign Permission "PM_DASHBOARD" to Role
|
||||
And the content type is "application/json"
|
||||
And the type is "object"
|
||||
|
||||
Scenario: List assigned Permissions to Role & List available Permissions to assign to Role
|
||||
Scenario: List assigned Permissions to Role
|
||||
Given I request "role/00000000000000000000000000000003/permissions"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
@@ -134,21 +149,23 @@ Scenario: List assigned Permissions to Role & List available Permissions to assi
|
||||
And the type is "array"
|
||||
And the response has 4 records
|
||||
|
||||
Scenario: List assigned Permissions to Role & List available Permissions to assign to Role
|
||||
Scenario: List available Permissions to assign to Role
|
||||
Given I request "role/00000000000000000000000000000003/available-permissions"
|
||||
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 "array"
|
||||
And the response has 15 records
|
||||
And the response has 13 records
|
||||
|
||||
|
||||
Scenario: Unassign Permission of the Role
|
||||
Given that I want to delete a resource with the key ""
|
||||
Given that I want to delete a "Permmission from a role"
|
||||
And I request "role/00000000000000000000000000000003/permission/00000000000000000000000000000011"
|
||||
And the content type is "application/json"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
|
||||
|
||||
Scenario: List assigned Permissions to Role & List available Permissions to assign to Role
|
||||
Given I request "role/00000000000000000000000000000003/permissions"
|
||||
Then the response status code should be 200
|
||||
|
||||
@@ -408,13 +408,13 @@ Scenario Outline: Assign Permission "PM_DASHBOARD" to Role
|
||||
| Assign Permissions "PM_CASES" to rol 1 | 1 | 00000000000000000000000000000005 |
|
||||
| Assign Permissions "PM_LOGIN" to rol 2 | 2 | 00000000000000000000000000000001 |
|
||||
| Assign Permissions "PM_ALLCASES" to rol 2 | 2 | 00000000000000000000000000000006 |
|
||||
| Assign Permissions "PM_REPORTS" to rol 2 | 2 | 00000000000000000000000000000008 |
|
||||
| Assign Permissions "PM_FOLDERS_VIEW" to rol 2 | 2 | 00000000000000000000000000000015 |
|
||||
| Assign Permissions "PM_REASSIGNCASE" to rol 2 | 2 | 00000000000000000000000000000007 |
|
||||
| Assign Permissions "PM_SUPERVISOR" to rol 2 | 2 | 00000000000000000000000000000009 |
|
||||
| Assign Permissions "PM_SETUP_ADVANCE" to rol 3 | 3 | 00000000000000000000000000000010 |
|
||||
| Assign Permissions "PM_DASHBOARD" to rol 4 | 4 | 00000000000000000000000000000011 |
|
||||
| Assign Permissions "PM_WEBDAV" to rol 5 | 5 | 00000000000000000000000000000012 |
|
||||
| Assign Permissions "PM_DELETECASE" to rol 6 | 6 | 00000000000000000000000000000013 |
|
||||
| Assign Permissions "PM_LOGIN" to rol 6 | 6 | 00000000000000000000000000000001 |
|
||||
| Assign Permissions "PM_EDITPERSONALINFO" to rol 7 | 7 | 00000000000000000000000000000014 |
|
||||
| Assign Permissions "PM_FOLDERS_VIEW" to rol 8 | 8 | 00000000000000000000000000000015 |
|
||||
| Assign Permissions "PM_FOLDERS_ADD_FOLDER" to rol 8 | 8 | 00000000000000000000000000000016 |
|
||||
@@ -482,13 +482,13 @@ Scenario Outline: Unassign Permission of the Role
|
||||
| Unassign Permissions "PM_CASES" to rol 1 | 1 | 00000000000000000000000000000005 |
|
||||
| Unassign Permissions "PM_LOGIN" to rol 2 | 2 | 00000000000000000000000000000001 |
|
||||
| Unassign Permissions "PM_ALLCASES" to rol 2 | 2 | 00000000000000000000000000000006 |
|
||||
| Unassign Permissions "PM_REPORTS" to rol 2 | 2 | 00000000000000000000000000000008 |
|
||||
| Unassign Permissions "PM_FOLDERS_VIEW" to rol 2 | 2 | 00000000000000000000000000000015 |
|
||||
| Unassign Permissions "PM_REASSIGNCASE" to rol 2 | 2 | 00000000000000000000000000000007 |
|
||||
| Unassign Permissions "PM_SUPERVISOR" to rol 2 | 2 | 00000000000000000000000000000009 |
|
||||
| Unassign Permissions "PM_SETUP_ADVANCE" to rol 3 | 3 | 00000000000000000000000000000010 |
|
||||
| Unassign Permissions "PM_DASHBOARD" to rol 4 | 4 | 00000000000000000000000000000011 |
|
||||
| Unassign Permissions "PM_WEBDAV" to rol 5 | 5 | 00000000000000000000000000000012 |
|
||||
| Unassign Permissions "PM_DELETECASE" to rol 6 | 6 | 00000000000000000000000000000013 |
|
||||
| Unassign Permissions "PM_LOGIN" to rol 6 | 6 | 00000000000000000000000000000001 |
|
||||
| Unassign Permissions "PM_EDITPERSONALINFO" to rol 7 | 7 | 00000000000000000000000000000014 |
|
||||
| Unassign Permissions "PM_FOLDERS_VIEW" to rol 8 | 8 | 00000000000000000000000000000015 |
|
||||
| Unassign Permissions "PM_FOLDERS_ADD_FOLDER" to rol 8 | 8 | 00000000000000000000000000000016 |
|
||||
|
||||
@@ -21,30 +21,30 @@ Scenario Outline: Create new Role (NEGATIVE TESTS)
|
||||
Examples:
|
||||
|
||||
| test_description | rol_code | rol_name | rol_status | error_code | error_message |
|
||||
| Create Role with same name | PROCESSMAKER_OPERATOR | Operator | ACTIVE | 400 | already_exists |
|
||||
| Create Role without fill required fields "rol_code" | | sample | | 400 | required_fields |
|
||||
| Create Role without fill required fields "rol_name" | PROCESSMAKER_ADMINISTRATOR1 | | ACTIVE | 400 | required_fields |
|
||||
| Create Role without fill required fields "rol_status" | PROCESSMAKER_MANAGER1 | Rol con code manager | | 400 | required_fields |
|
||||
| Create Role with same name | PROCESSMAKER_OPERATOR | Operator | ACTIVE | 400 | already exists |
|
||||
| Create Role without fill required fields "rol_code" | | sample | | 400 | rol_code |
|
||||
| Create Role without fill required fields "rol_name" | PROCESSMAKER_ADMINISTRATOR1 | | ACTIVE | 400 | rol_name |
|
||||
| Create Role without fill required fields "rol_status" | PROCESSMAKER_MANAGER1 | Rol con code manager | | 400 | rol_status |
|
||||
| Create Role with wrong field rol_status | PROCESSMAKER_ADMINISTRATOR2 | Rol con code administrator/inactive | SAMPLE | 400 | rol_status |
|
||||
|
||||
|
||||
#Scenario Outline: Assign User to Role (NEGATIVE TESTS)
|
||||
# Given POST this data:
|
||||
# """
|
||||
# {
|
||||
# "usr_uid": "<usr_uid>"
|
||||
# }
|
||||
# """
|
||||
# And I request "role/rol_uid/user"
|
||||
# Then the response status code should be <error_code>
|
||||
# And the response status message should have the following text "<error_message>"
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
# | Description | rol_uid | usr_uid | error_code | error_message |
|
||||
# | Without rol_uid | 00000000000000000000000000000004 | 51049032352d56710347233042615067 | 400 | rol_uid |
|
||||
# | Without usr_uid | 00000000000000000000000000000004 | | 400 | usr_uid |
|
||||
# | Assign same user to rol | 00000000000000000000000000000002 | 00000000000000000000000000000001 | 400 | usr_uid |
|
||||
Scenario Outline: Assign User to Role (NEGATIVE TESTS)
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"usr_uid": "<usr_uid>"
|
||||
}
|
||||
"""
|
||||
And I request "role/<rol_uid>/user"
|
||||
Then the response status code should be <error_code>
|
||||
And the response status message should have the following text "<error_message>"
|
||||
|
||||
Examples:
|
||||
|
||||
| Description | rol_uid | usr_uid | error_code | error_message |
|
||||
| Without rol_uid | | 51049032352d56710347233042615067 | 400 | rol_uid |
|
||||
| Without usr_uid | 00000000000000000000000000000004 | | 400 | usr_uid |
|
||||
| Assign same user to rol | 00000000000000000000000000000002 | 00000000000000000000000000000001 | 400 | usr_uid |
|
||||
|
||||
|
||||
Scenario Outline: Assign Permission "PM_DASHBOARD" to Role (NEGATIVE TESTS)
|
||||
@@ -54,10 +54,11 @@ Scenario Outline: Assign Permission "PM_DASHBOARD" to Role (NEGATIVE TESTS)
|
||||
"per_uid": "<per_uid>"
|
||||
}
|
||||
"""
|
||||
And I request "role/rol_uid/permission"
|
||||
And I request "role/<rol_uid>/permission"
|
||||
Then the response status code should be <error_code>
|
||||
And the response status message should have the following text "<error_message>"
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
| Description | rol_uid | per_uid | error_code | error_message |
|
||||
|
||||
@@ -21,11 +21,11 @@ Feature: Case Tracker Negative Tests
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | project | map_type | routing_history | message_history | error_code | error_message |
|
||||
| Invalid map type | 50259961452d82bf57f4f62051572528 | STAGGEES | 1 | 1 | 400 | map_type |
|
||||
| Invalid Routing History | 50259961452d82bf57f4f62051572528 | STAGES | 20 | 0 | 400 | routing_history |
|
||||
| Invalid Message History | 50259961452d82bf57f4f62051572528 | STAGES | 1 | 20 | 400 | message_history |
|
||||
| Field requered project | | STAGES | 0 | 1 | 400 | prj_uid |
|
||||
| test_description | project | map_type | routing_history | message_history | error_code | error_message |
|
||||
| Invalid map type | 50259961452d82bf57f4f62051572528 | STAGGEES | 1 | 1 | 400 | map_type |
|
||||
| Invalid Routing History | 50259961452d82bf57f4f62051572528 | STAGES | 20 | 0 | 400 | routing_history |
|
||||
| Invalid Message History | 50259961452d82bf57f4f62051572528 | STAGES | 1 | 20 | 400 | message_history |
|
||||
| Field requered project | | STAGES | 0 | 1 | 400 | prj_uid |
|
||||
|
||||
|
||||
Scenario Outline: Assigning objects to process case tracker with bad parameters (negative tests)
|
||||
@@ -45,9 +45,8 @@ Feature: Case Tracker Negative Tests
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | project | cto_type_obj | cto_uid_obj | cto_condition | cto_position | error_code | error_message |
|
||||
| Invalid cto_type_obj | 50259961452d82bf57f4f62051572528 | DYNAFORM | 00001752652d82c592fc100000000051 | | 1 | 400 | DYNAFORM |
|
||||
| Invalid cto_uid_obj | 50259961452d82bf57f4f62051572528 | INPUT_DOCUMENT | 8700000000000006d8c67d1001895377 | | 2 | 400 | INPUT_DOCUMENT |
|
||||
| Invalid cto_position | 50259961452d82bf57f4f62051572528 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | | 3,9999.87 | 400 | cto_position |
|
||||
| Field requered project | | DYNAFORM | 14761752652d82c592fc180020076851 | | 1 | 400 | prj_uid |
|
||||
|
||||
| test_description | project | cto_type_obj | cto_uid_obj | cto_condition | cto_position | error_code | error_message |
|
||||
| Invalid cto_type_obj | 50259961452d82bf57f4f62051572528 | SAMPLE | 76247354052d82ca9d04509043789234 | | 1 | 400 | cto_type_obj |
|
||||
| Invalid cto_uid_obj | 50259961452d82bf57f4f62051572528 | INPUT_DOCUMENT | 8700000000000006d8c67d1001895377 | | 2 | 400 | cto_uid_obj |
|
||||
| Invalid cto_position | 50259961452d82bf57f4f62051572528 | OUTPUT_DOCUMENT | 76247354052d82ca9d04509043789234 | | 3,9999.87 | 400 | cto_position |
|
||||
| Field requered project | | DYNAFORM | 14761752652d82c592fc180020076851 | | 1 | 400 | prj_uid |
|
||||
@@ -26,7 +26,7 @@ Scenario: Get a List DynaForms of a Project Process Complete BPMN
|
||||
And the type is "array"
|
||||
And the response has 1 records
|
||||
|
||||
Scenario: Get the Output Documents List when there are exactly two output documents
|
||||
Scenario: Get the Output Documents List when there are exactly two output documents " BUG-14907, No se visualiza los cambios en el editor tiny de OutputDocuments"
|
||||
Given I request "project/1455892245368ebeb11c1a5001393784/output-documents"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
|
||||
Reference in New Issue
Block a user