modificaciones en los features case scheduler y event

This commit is contained in:
Wendy Nestor
2014-06-09 09:09:38 -04:00
parent 95637e866e
commit ca0e4f8c1e
2 changed files with 89 additions and 85 deletions

View File

@@ -42,7 +42,6 @@ Feature: Case Scheduler Main Tests
And the type is "object"
And store "sch_uid" in session array as variable "sch_uid_<sch_uid_number>"
Examples:
| test_description | sch_uid_number | sch_del_user_name | tas_uid | sch_name | sch_option | sch_start_date | sch_end_date | sch_start_time | sch_week_days | sch_start_day | sch_start_day_opt_1 | sch_months | sch_start_day_opt_2 | sch_repeat_every | error_code |
@@ -186,22 +185,27 @@ Feature: Case Scheduler Main Tests
#Scenario para la revision del "BUG 15040"
#Scenario Outline: Create new Projects for test create new case scheduler and allow to keep the same
# Given POST data from file "<project_template>"
# And I request "projects"
# 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 "array"
# And store "new_uid" in session array as variable "project_new_uid_<project_new_uid_number>" where an object has "object" equal to "project"
# And store "new_uid" in session array as variable "diagram_new_uid_<project_new_uid_number>" where an object has "object" equal to "diagram"
# And store "new_uid" in session array as variable "activity_new_uid_<project_new_uid_number>" where an object has "object" equal to "activity"
# And store "new_uid" in session array as variable "event_new_uid_<project_new_uid_number>" where an object has "object" equal to "event"
# And store "new_uid" in session array as variable "flow_new_uid_<project_new_uid_number>" where an object has "object" equal to "flow"
#
# Examples:
#
# | Description | project_new_uid_number | project_template |
# | Create a new process with event case scheduler | 1 | process_template_evaluation.json |
# | Create a new process with same case scheduler | 2 | process_template_parallel.json |
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"

View File

@@ -30,17 +30,17 @@ Feature: Events Resources Negative Tests
Examples:
| test_description | project | evn_action | evn_description | evn_status | evn_related_to | tas_uid | evn_tas_uid_from | evn_tas_uid_to | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs | tri_uid | error_code | error_message |
| Field requered evn_description | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | evn_description |
| Field requered evn_status | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Single 2 | | SINGLE | 97192372152a5c78f04a794095806311 | | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | evn_status |
| Field requered evn_action | 251815090529619a99a2bf4013294414 | | Event Message, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | 400 | evn_action |
| Field requered evn_related_to | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Multiple 4 | ACTIVE | | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | evn_related_to |
| Field requered evn_tas_uid_from | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Multiple 5 | ACTIVE | MULTIPLE | | | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | evn_tas_uid_from |
| Field requered evn_tas_uid_to | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Multiple 6 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | 400 | evn_tas_uid_to |
| Field requered tas_uid | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 1 | ACTIVE | SINGLE | | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | tas_uid |
| Field requered evn_time_unit | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | 400 | evn_time_unit |
| Field requered evn_when_occurs | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 5 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | | 75916963152cc6ab085a704081670580 | 400 | evn_when_occurs |
| Field requered tri_uid | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 6 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | | 400 | tri_uid |
| Field requered prj_uid | | EXECUTE_TRIGGER | Event Timer, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | prj_uid |
| Field required evn_description | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | evn_description |
| Field required evn_status | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Single 2 | | SINGLE | 97192372152a5c78f04a794095806311 | | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | evn_status |
| Field required evn_action | 251815090529619a99a2bf4013294414 | | Event Message, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | 400 | evn_action |
| Field required evn_related_to | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Multiple 4 | ACTIVE | | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | evn_related_to |
| Field required evn_tas_uid_from | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Multiple 5 | ACTIVE | MULTIPLE | | | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | evn_tas_uid_from |
| Field required evn_tas_uid_to | 251815090529619a99a2bf4013294414 | SEND_MESSAGE | Event Message, Multiple 6 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | 400 | evn_tas_uid_to |
| Field required tas_uid | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 1 | ACTIVE | SINGLE | | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | tas_uid |
| Field required evn_time_unit | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | 400 | evn_time_unit |
| Field required evn_when_occurs | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 5 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | | 75916963152cc6ab085a704081670580 | 400 | evn_when_occurs |
| Field required tri_uid | 251815090529619a99a2bf4013294414 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 6 | ACTIVE | MULTIPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | | 400 | tri_uid |
| Field required prj_uid | | EXECUTE_TRIGGER | Event Timer, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | prj_uid |
| Invalid evn_status | 251815090529619a99a2bf4013294414 | EXECUTE_TRIGGER | Event Timer, Single 2 | SAMPLE | SINGLE | 97192372152a5c78f04a794095806311 | | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | evn_status |
| Invalid evn_action | 251815090529619a99a2bf4013294414 | INPUT DOCUMENT | Event Timer, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 | 400 | evn_action |
| Invalid evn_related_to | 251815090529619a99a2bf4013294414 | EXECUTE_TRIGGER | Event Timer, Multiple 4 | ACTIVE | SAMPLE | | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 | 400 | evn_related_to |