Merged in wnestor/processmaker (pull request #543)

Adicion de nuevo escenario para los features calendar, category, pm group, pm user, roles
This commit is contained in:
Erik Amaru Ortiz
2014-06-17 16:30:18 -04:00
6 changed files with 42 additions and 5 deletions

View File

@@ -162,4 +162,12 @@ Scenario: Create a new Calendars (with work days less than 3)
"""
And I request "calendar"
Then the response status code should be 400
And the response status message should have the following text "least 3 Working Days"
And the response status message should have the following text "least 3 Working Days"
#Scenario: Delete Calendar when it is assigned to a project "Test Process"
# Given that I want to delete a "Calendar"
# And I request "calendar/14606161052f50839307899033145440"
# Then the response status code should be 400
# And the response status message should have the following text "cannot be deleted"

View File

@@ -20,4 +20,12 @@ Scenario Outline: Create a new Categories (Negative Test)
Examples:
| test_description | cat_name | error_code | error_message |
| without name | | 400 | cat_name |
| without name | | 400 | cat_name |
#Scenario: Delete the Category when it is assigned to a project "Category Cases Lists"
# Given that I want to delete a "Category"
# And I request "proyect/category/4177095085330818c324501061677193"
# Then the response status code should be 400
# And the response status message should have the following text "cannot be deleted"

View File

@@ -65,4 +65,11 @@ Feature: PM Group Negative Tests
"""
And I request "group/70084316152d56749e0f393054862525/user"
Then the response status code should be 400
And the response status message should have the following text "already assigned"
And the response status message should have the following text "already assigned"
# Scenario: Delete a pm_group when have asigned user (negative tests) "Credit Supervisors"
# Given that I want to delete a "Group"
# And I request "group/53254668952d56744764b08079100881"
# Then the response status code should be 400
# And the response status message should have the following text "cannot be deleted"

View File

@@ -72,3 +72,10 @@ Feature: PM User Main Tests
| Wrong password | jhon | smith | jhon | jhon@gmail.com | grenn #344 | 555-6555 | AR | B | BUE | 555-6655-555 | Gerencia | | 2016-02-15 | | ACTIVE | PROCESSMAKER_OPERATOR | sample | igual | 400 | string | same |
| Short length of the password | will | carter | will | will@gmail.com | saim #45 | 555-6522 | US | FL | MIA | 23344444 | Adminsitracion | 44811996752d567110634a1013636964 | 2014-12-12 | | ACTIVE | PROCESSMAKER_MANAGER | hol | hol | 400 | string | Minimum length |
| Create with User exist | Peter | Vanko | peter | colosaqatest@gmail.com | | | | | | | | | 2016-02-15 | | ACTIVE | PROCESSMAKER_OPERATOR | sample | sample | 400 | string | exists |
# Scenario: Delete a pm_user when have asigned cases (negative tests) "amy"
# Given that I want to delete a "User"
# And I request "user/25286582752d56713231082039265791"
# Then the response status code should be 400
# And the response status message should have the following text "cannot be deleted"

View File

@@ -64,4 +64,11 @@ Scenario Outline: Assign Permission "PM_DASHBOARD" to Role (NEGATIVE TESTS)
| Description | rol_uid | per_uid | error_code | error_message |
| Assign same permissions in rol "PROCESSMAKER_MANAGER" | 00000000000000000000000000000004 | 00000000000000000000000000000001 | 400 | per_uid |
| Create rol without rol_uid | | 00000000000000000000000000000002 | 400 | rol_uid |
| Create rol without per_uid | 00000000000000000000000000000004 | | 400 | per_uid |
| Create rol without per_uid | 00000000000000000000000000000004 | | 400 | per_uid |
# Scenario: Delete a role when have asigned users (negative tests) "PROCESSMAKER_OPERATOR"
# Given that I want to delete a "Role"
# And I request "role/00000000000000000000000000000003"
# Then the response status code should be 400
# And the response status message should have the following text "cannot be deleted"

View File

@@ -9,7 +9,7 @@ Background:
Scenario: Get list case tasks of case 174
Given I request "cases/38365249000000000046753088523464/tasks"
Then the response status code should be 400
And the response status message should have the following text "doesn't exist"
And the response status message should have the following text "app_uid"
Scenario: Get list case tasks of case 174