Adicion de nuevos scenarios en los feature pm_group, assignee, case scheduler y arreglos a los features case task, process permisssion, project

This commit is contained in:
Wendy Nestor
2014-06-11 15:51:31 -04:00
parent fa35fb408c
commit 7f00da5daa
7 changed files with 159 additions and 61 deletions

View File

@@ -106,7 +106,7 @@ Feature: PM Group Main Tests
| grp_uid_number | grp_title | grp_status |
| 0 | Update Demo Group1 for main behat | INACTIVE |
| 1 | Update Demo Group2 for main behat | INACTIVE |
| 1 | Update Demo Group2 for main behat | ACTIVE |
| 2 | Update Demo Group3 for main behat | ACTIVE |
@@ -125,7 +125,7 @@ Feature: PM Group Main Tests
| grp_uid_number | grp_title | grp_status |
| 0 | Update Demo Group1 for main behat | INACTIVE |
| 1 | Update Demo Group2 for main behat | INACTIVE |
| 1 | Update Demo Group2 for main behat | ACTIVE |
| 2 | Update Demo Group3 for main behat | ACTIVE |
@@ -144,19 +144,8 @@ Feature: PM Group Main Tests
Examples:
| grp_uid_number | grp_title | grp_status |
| 2 | Demo Group2 for main behat | INACTIVE |
| grp_uid_number | grp_title | grp_status |
| 2 | Update Demo Group2 for main behat | INACTIVE |

View File

@@ -14,8 +14,14 @@ Scenario: Get list case tasks of case 174
And the content type is "application/json"
And the type is "array"
And that "tas_uid" is set to "63847491053347e25555c29086425576"
And that "tas_type" is set to "NORMAL"
And that "tas_title" is set to "Task 1"
And that "tas_description" is set to ""
And that "tas_start" is set to "1"
And that "tas_type" is set to "NORMAL"
And that "tas_derivation" is set to "NORMAL"
And that "tas_assign_type" is set to "BALANCED"
And that "rou_type" is set to "0"
And that "rou_next_task" is set to "93695356653347e2702ab38033892652"
And that "rou_condition" is set to ""

View File

@@ -159,3 +159,66 @@ Scenario Outline: Get a single user or group of an activity
And the type is "array"
And the response has 4 records
#BUG 15041 Inactive Groups are display in list of available groups Accounting
Scenario Outline: BUG 15041 Get the list of available groups
Given I request "project/<project>/activity/<activity>/available-assignee?filter=<filter>&start=<start>&limit=<limit>"
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 <records> records
And the "aas_uid" property in row 0 equals "<aas_uid>"
And the "aas_type" property in row 0 equals "<aas_type>"
Examples:
| test_description | project | activity | filter | start | limit | records | aas_uid | aas_type|
| "Accounting" group is available | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | Accounting | 0 | 50 | 1 | 68911670852a22d93c22c06005808422 | group |
Scenario: BUG 15041 Update Group to disable group
Given PUT this data:
"""
{
"grp_title": "Accounting",
"grp_status": "INACTIVE"
}
"""
And I request "group/54731929352d56741de9d42002704749"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
Scenario Outline: BUG 15041 Get the list of available users and groups to be assigned to an activity using filter
Given I request "project/<project>/activity/<activity>/available-assignee?filter=<filter>&start=<start>&limit=<limit>"
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 <records> records
And the "aas_uid" property in row 0 equals "<aas_uid>"
And the "aas_type" property in row 0 equals "<aas_type>"
Examples:
| test_description | project | activity | filter | start | limit | records | aas_uid | aas_type|
| "Accounting" group is available | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | Accounting | 0 | 50 | 0 | 68911670852a22d93c22c06005808422 | group |
Scenario: BUG 15041 Update Group to enable group
Given PUT this data:
"""
{
"grp_title": "Accounting",
"grp_status": "ACTIVE"
}
"""
And I request "group/54731929352d56741de9d42002704749"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"

View File

@@ -187,25 +187,25 @@ Scenario Outline: Delete all case scheduler of a project created previously in t
#Scenario para la revision del "BUG 15040" donde se comprueba la creacion de nuevos case scheduler en diferentes proyectos.
Scenario: Create a new case scheduler with same name
Given POST this data:
"""
{
"sch_option": "5",
"sch_name": "Case Scheduler-Every 987&%@",
"sch_del_user_name": "admin",
"tas_uid": "46941969352af5be2ab3f39001216717",
"sch_start_time": "",
"sch_start_date": "",
"sch_end_date": "",
"sch_week_days": "",
"sch_start_day": "",
"sch_start_day_opt_1": "",
"sch_start_day_opt_2": "",
"sch_months": "",
"sch_repeat_every": "12.30"
}
"""
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
Then the response status code should be 400
And the response status message should have the following text "Duplicate Case Scheduler name"
#Scenario: Create a new case scheduler with same name
# Given POST this data:
# """
# {
# "sch_option": "5",
# "sch_name": "Case Scheduler-Every 987&%@",
# "sch_del_user_name": "admin",
# "tas_uid": "46941969352af5be2ab3f39001216717",
# "sch_start_time": "",
# "sch_start_date": "",
# "sch_end_date": "",
# "sch_week_days": "",
# "sch_start_day": "",
# "sch_start_day_opt_1": "",
# "sch_start_day_opt_2": "",
# "sch_months": "",
# "sch_repeat_every": "12.30"
# }
# """
# And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
# Then the response status code should be 400
# And the response status message should have the following text "Duplicate Case Scheduler name"

View File

@@ -5,28 +5,27 @@ Feature: Process Permissions Negative tests
Given that I have a valid access_token
Scenario Outline: Create a new Process Permission with bad parameters (negative tests)
Given POST this data:
"""
{
"op_case_status": "<op_case_status>",
"tas_uid": "<tas_uid>",
"op_user_relation": "<op_user_relation>",
"usr_uid": "<usr_uid>",
"op_task_source" : "<op_task_source>",
"op_participate": "<op_participate>",
"op_obj_type": "<op_obj_type>",
"dynaforms" : "<dynaforms>",
"inputs" : "<inputs>",
"outputs" : "<outputs>",
"op_action": "<op_action>"
}
"""
Given POST this data:
"""
{
"op_case_status": "<op_case_status>",
"tas_uid": "<tas_uid>",
"op_user_relation": "<op_user_relation>",
"usr_uid": "<usr_uid>",
"op_task_source" : "<op_task_source>",
"op_participate": "<op_participate>",
"op_obj_type": "<op_obj_type>",
"dynaforms" : "<dynaforms>",
"inputs" : "<inputs>",
"outputs" : "<outputs>",
"op_action": "<op_action>"
}
"""
And I request "project/67021149152e27240dc54d2095572343/process-permission"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
Examples:
| test_description | op_case_status | tas_uid | op_user_relation| usr_uid | op_task_source | op_participate | op_obj_type | dynaforms | inputs | outputs | op_action | error_code | error_message |
| Invalid urs_uid | ALL | | 1 | 00000002256780000000000000000001 | 36792129552e27247a483f6069605623 | 1 | ANY | | | | VIEW | 400 | user |
@@ -38,7 +37,7 @@ Feature: Process Permissions Negative tests
| Invalid tas_uid | ALL | 12345678909876543210000000000000 | 1 | 34289569752d5673d310e82094574281 | 36792129552e27247a483f6069605623 | 0 | MSGS_HISTORY | | | | BLOCK | 400 | tas_uid |
| Invalid op_task_source | DRAFT | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552000000000000069605623 | 1 | ANY | | | | VIEW | 400 | task |
| Inavlid uid Dynaforms | DRAFT | 55416900252e272492318b9024750146 | 1 | 11206717452d5673913aa69053050085 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859000000000000084654094971976 | | | BLOCK | 400 | dynaform |
| Inavlid uid Inputs | ALL | | 1 | 34289569752d5673d310e82094574281 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 35345345346999999999999888888888 | | BLOCK | 400 | inputs |
| Inavlid uid Outputs | DRAFT | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 22424242424242442424242424242424 | VIEW | 400 | outputs |
| Inavlid uid Inputs | ALL | | 1 | 34289569752d5673d310e82094574281 | 36792129552e27247a483f6069605623 | 0 | INPUT | | 35345345346999999999999888888888 | | BLOCK | 400 | inp_uid |
| Inavlid uid Outputs | DRAFT | 55416900252e272492318b9024750146 | 1 | 00000000000000000000000000000001 | 36792129552e27247a483f6069605623 | 1 | OUTPUT | | | 22424242424242442424242424242424 | VIEW | 400 | out_uid |
| Invalid op_user_relation | | | | | | | | | | | | 400 | usr_uid |
| Invalid op_action | ALL | | 5 | 25286582752d56713231082039265791 | 36792129552e27247a483f6069605623 | 1 | DYNAFORM | 86859555852e280acd84654094971976 | | | | 400 | op_user_relation |

View File

@@ -728,3 +728,45 @@ Scenario: Get a list of projects
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "array"
#BUG 15088-Al editar el nombre de un proceso este permite ingresar el nombre de uno ya existente
Scenario: Update the Projects by setting the name of an existing project
Given PUT this data:
"""
{
"prj_uid": "5195971265375127fce82f4015927137",
"prj_name": "Process Complete BPMN",
"prj_description": "",
"prj_target_namespace": "",
"prj_expresion_language": "",
"prj_type_language": "",
"prj_exporter": "",
"prj_exporter_version": "",
"prj_create_date": "2014-05-15 15:16:15",
"prj_update_date": "2014-06-09 23:00:34",
"prj_author": "00000000000000000000000000000001",
"prj_author_version": "",
"prj_original_source": "",
"diagrams": [
{
"dia_uid": "3539627265375127fe1a1d2011478753",
"prj_uid": "5195971265375127fce82f4015927137",
"dia_name": "Export process empty",
"dia_is_closable": 0,
"pro_uid": "2365993365375127fe87052082426765",
"activities": [],
"events": [],
"gateways": [],
"flows": [],
"artifacts": [],
"laneset": [],
"lanes": []
}
]
}
"""
And I request "projects/5195971265375127fce82f4015927137"
Then the response status code should be 400
And the response status message should have the following text "exist"

View File

@@ -13,7 +13,6 @@ Scenario Outline: Import a process negative tests
Examples:
| Description | project_file | import_option | error_code | error_message |
| Import process when the process alredy exists | /home/wendy/uploadfiles/Process_Complete_BPMN.pmx | create | 400 | already exists |
#| Invalid path | /processmaker/sample/Project_invalido.pmx | create | 400 | invalid |
| Field Required project_file | | create | 400 | project_file |