Feature completo case scheduler y assignee, Fetures parciales activity, step

This commit is contained in:
Wendy Nestor
2014-01-29 12:09:13 -04:00
parent d02cb3b3f0
commit 36a102a399
9 changed files with 495 additions and 196 deletions

View File

@@ -10,6 +10,7 @@ Feature: Activity Resources Main Tests
Given that I have a valid access_token
Scenario Outline: Get the Properties and Definition of 3 Activities
Given I request "project/<project>/activity/<activity>"
Then the response status code should be 200
@@ -19,6 +20,7 @@ Feature: Activity Resources Main Tests
And the "properties" property type is "object"
And that "tas_title" is set to "<tas_title>"
Examples:
| project | activity | tas_title |

View File

@@ -35,8 +35,8 @@ Scenario Outline: Get the list of available users and groups to be assigned to a
| test_description | project | activity | filter | start | limit | records | aas_uid | aas_type|
| Using filter="fin" with no limits should return 2 groups | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | fin | 0 | 50 | 2 | 66623507552d56742865613066097298 | group |
| Using filter="fin", start="1", limit="1" should return 1 group | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | fin | 0 | 1 | 1 | 66623507552d56742865613066097298 | group |
| Using filter="financial" should return 1 available group | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | financial | 0 | 1 | 1 | 62528621852cda436afe755036997717 | group |
| Using filter="finance" should return 1 available group | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | finance | 0 | 1 | 1 | 17707415052cda432dd4774063621869 | group |
| Using filter="financial" should return 1 available group | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | financial | 0 | 1 | 1 | 99025456252d567468f0798036479112 | group |
| Using filter="finance" should return 1 available group | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | finance | 0 | 1 | 1 | 66623507552d56742865613066097298 | group |
Scenario Outline: Assign 2 users and 2 group to an activity
@@ -70,9 +70,9 @@ Scenario Outline: Get the list of available users and groups to be assigned to a
And the "aas_type" property in row 0 equals "<aas_type>"
Examples:
| test_description | project | activity | records | aas_uid | aas_type |
| test_description | project | activity | records | aas_uid | aas_type |
| Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 65496814252977243d57684076211485 | 7 | 54731929352d56741de9d42002704749 | group |
| Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 5 | 36775342552d5674146d9c2078497230 | group |
| Verify that the activity has expected quantity of asignees | 4224292655297723eb98691001100052 | 68911670852a22d93c22c06005808422 | 5 | 36775342552d5674146d9c2078497230 | group |
Scenario Outline: List assignees of an activity using a filter

View File

@@ -65,7 +65,7 @@ Scenario Outline: Assign a user or group to an activity (Field validation)
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
| negative numbers | a | -10 | -20 | 0 | 400 | string|
| real numbers | a | 0.0 | 1.0 | 1 | 200 | string|
| real numbers | a | 0.0 | 0.0 | 3 | 200 | string|
| real numbers | a | 0.0 | 0.0 | 0 | 200 | string|
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string|
| real numbers | a | 1.5 | 1.4599 | 0 | 400 | string|

View File

@@ -0,0 +1,83 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Case Scheduler Resources
Background:
Given that I have a valid access_token
Scenario: Create a new case scheduler for a project
Given POST this data:
"""
{
"sch_option": "3",
"sch_name": "Test scheduler #1",
"sch_del_user_name": "admin",
"sch_del_user_pass": "admin",
"tas_uid": "46941969352af5be2ab3f39001216717",
"sch_start_time": "18:00",
"sch_start_date": "2014-01-20",
"sch_end_date": "2014-01-20",
"sch_every_days": "",
"sch_week_days": "",
"sch_start_day": "1",
"sch_start_day_opt_1": "2",
"sch_start_day_opt_2": "",
"sch_months": "1|6|12",
"sch_repeat_every": "",
"sch_repeat_until": ""
}
"""
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
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"
And store "sch_uid" in session array as variable "sch_uid"
Scenario: Get a List of case scheduler of a project
Given I request "project/1265557095225ff5c688f46031700471/case-schedulers"
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 1 record
Scenario: Get a single case scheduler of a project
Given that I want to get a resource with the key "sch_uid" stored in session array
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
Then the response status code should be 200
And the content type is "application/json"
And the type is "object"
Scenario: Update a case scheduler for a project
Given PUT this data:
"""
{
"sch_name": "Test scheduler #1 modify",
"sch_del_user_name": "admin",
"sch_del_user_pass": "admin",
"tas_uid": "46941969352af5be2ab3f39001216717",
"sch_start_time": "20:00",
"sch_start_date": "2014-02-01",
"sch_end_date": "2014-02-01",
"sch_every_days": "",
"sch_week_days": "",
"sch_start_day": "1",
"sch_start_day_opt_1": "2",
"sch_start_day_opt_2": "",
"sch_months": "1|6|12",
"sch_repeat_every": "",
"sch_repeat_until": ""
}
"""
And that I want to update a resource with the key "sch_uid" stored in session array
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
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: Delete a case scheduler of a project
Given that I want to delete a resource with the key "sch_uid" stored in session array
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
Then the response status code should be 200
And the response charset is "UTF-8"

View File

@@ -0,0 +1,162 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Case Scheduler Main Tests
Requirements:
a workspace with the process 1265557095225ff5c688f46031700471 ("Test Michelangelo") already loaded
there are zero case scheduler in the process and there four tasks in the process
Background:
Given that I have a valid access_token
Scenario: Get the case schedulers list when there are exactly zero case schedulers
Given I request "project/1265557095225ff5c688f46031700471/case-schedulers"
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 0 record
Scenario Outline: Create a 13 case scheduler for a project
Given POST this data:
"""
{
"sch_del_user_name": "<sch_del_user_name>",
"sch_del_user_pass": "<sch_del_user_pass>",
"tas_uid": "<tas_uid>",
"sch_name": "<sch_name>",
"sch_option": "<sch_option>",
"sch_start_date": "<sch_start_date>",
"sch_end_date": "<sch_end_date>",
"sch_start_time": "<sch_start_time>",
"sch_week_days": "<sch_week_days>",
"sch_start_day": "<sch_start_day>",
"sch_start_day_opt_1": "<sch_start_day_opt_1>",
"sch_months": "<sch_months>",
"sch_start_day_opt_2": "<sch_start_day_opt_2>",
"sch_repeat_every": "<sch_repeat_every>"
}
"""
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
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"
And store "sch_uid" in session array as variable "sch_uid_<sch_uid_number>"
Examples:
| test_description | sch_uid_number | sch_del_user_name | sch_del_user_pass | 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 |
| Create with Daily | 1 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Daily 123@#$ | 1 | 2014-01-30 | 2014-02-20 | 12:00 | | | | | | |
| Create with Weekly, sch_week_days=monday | 2 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly monday 345%$# | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 1 | | | | | |
| Create with Weekly, sch_week_days=tuesday, wednesday, thursday, friday, saturday, sunday | 3 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly 345%$# | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 2\|3\|4\|5\|6\|7 | | | | | |
| Create with Monthly and day of month, day of month=1, of the month(s)=3,4 | 4 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 1 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 1 | 15 | 3\|4 | | |
| Create with Monthly and day of month, day of month=1, of the month=1,2,5,6,7,8,9,10,11,12 | 5 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 2 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 1 | 15 | 1\|2\|5\|6\|7\|8\|9\|10\|11\|12 | | |
| Create with Monthly and the day=first and Monday | 6 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 3 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 1\|7 | |
| Create with Monthly and the day=second and Saturday | 7 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 4 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 2\|6 | |
| Create with Monthly and the day=Third and Friday | 8 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 5 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 3\|5 | |
| Create with Monthly and the day=second and Thursday | 9 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 6 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 2\|4 | |
| Create with Monthly and the day=last and Wednesday | 10 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 7 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 5\|3 | |
| Create with Monthly and the day=last and Wednesday, of the month=1,2,6,7,8,9,10,11,12 | 11 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 8 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 2 | | 1\|2\|6\|7\|8\|9\|10\|11\|12 | 5\|3 | |
| Create with One time only | 12 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-One Time only 678%$@ | 4 | | | 20:00 | | | | | | |
| Craate with Every | 13 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Every 987&%@ | 5 | | | | | | | | | 12.30 |
Scenario: Get the case schedulers list when there are exactly 13 case schedulers
Given I request "project/1265557095225ff5c688f46031700471/case-schedulers"
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 13 record
Scenario Outline: Update the case schedulers for a project and then check if the values had changed
Given PUT this data:
"""
{
"sch_del_user_name": "<sch_del_user_name>",
"sch_del_user_pass": "<sch_del_user_pass>",
"tas_uid": "<tas_uid>",
"sch_name": "<sch_name>",
"sch_option": "<sch_option>",
"sch_start_date": "<sch_start_date>",
"sch_end_date": "<sch_end_date>",
"sch_start_time": "<sch_start_time>",
"sch_week_days": "<sch_week_days>",
"sch_start_day": "<sch_start_day>",
"sch_start_day_opt_1": "<sch_start_day_opt_1>",
"sch_months": "<sch_months>",
"sch_start_day_opt_2": "<sch_start_day_opt_2>",
"sch_repeat_every": "<sch_repeat_every>"
}
"""
And that I want to update a resource with the key "sch_uid" stored in session array as variable "sch_uid_<sch_uid_number>"
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| test_description | sch_uid_number | sch_del_user_name | sch_del_user_pass | 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 |
| Update Daily | 1 | admin | admin | 1352844695225ff5fe54de2005407079 | Update Case Scheduler-Daily 123@#$ | 1 | 2014-02-30 | 2014-03-20 | 12:30 | | | | | | |
| Update Weekly, sch_week_days=monday | 2 | admin | admin | 1352844695225ff5fe54de2005407079 | Update Case Scheduler-Weekly monday 345%$# | 2 | 2014-03-20 | 2014-04-20 | 08:30 | 2 | | | | | |
| Update Monthly and day of month, day of month=1, of the month(s)=3,4 | 4 | admin | admin | 1352844695225ff5fe54de2005407079 | Update Case Scheduler-Monthly 567&^% 1 | 3 | 2014-04-21 | 2014-05-18 | 18:30 | | 1 | 18 | 3\|4\|5 | | |
| Update One time only | 12 | admin | admin | 1352844695225ff5fe54de2005407079 | Update Case Scheduler-One Time only 678%$@ | 4 | | | 20:30 | | | | | | |
| Update Every | 13 | admin | admin | 1352844695225ff5fe54de2005407079 | Update Case Scheduler-Every 987&%@ | 5 | | | | | | | | | 18.30 |
Scenario Outline: Get a single case scheduler of a project and check some properties
Given that I want to get a resource with the key "sch_uid" stored in session array as variable "sch_uid_<sch_uid_number>"
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
Then the response status code should be 200
And the content type is "application/json"
And the type is "object"
And the response charset is "UTF-8"
And that "tas_uid" is set to "<tas_uid>"
And that "sch_name" is set to "<sch_name>"
And that "sch_start_date" is set to "<sch_start_date>"
And that "sch_end_date" is set to "<sch_end_date>"
And that "sch_start_time" is set to "<sch_start_time>"
And that "sch_week_days" is set to "<sch_week_days>"
And that "sch_start_day" is set to "<sch_start_day>"
And that "sch_start_day_opt_1" is set to "<sch_start_day_opt_1>"
And that "sch_months" is set to "<sch_months>"
And that "sch_repeat_every" is set to "<sch_repeat_every>"
Examples:
| sch_uid_number | sch_del_user_name | sch_del_user_pass | 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 |
| 1 | admin | admin | 1352844695225ff5fe54de2005407079 | Update Case Scheduler-Daily 123@#$ | 1 | 2014-02-30 | 2014-03-20 | 12:30 | | | | | | |
| 2 | admin | admin | 1352844695225ff5fe54de2005407079 | Update Case Scheduler-Weekly monday 345%$# | 2 | 2014-03-20 | 2014-04-20 | 08:30 | 2 | | | | | |
| 4 | admin | admin | 1352844695225ff5fe54de2005407079 | Update Case Scheduler-Monthly 567&^% 1 | 3 | 2014-04-21 | 2014-05-18 | 18:30 | | 2 | 18 | 3\|4\|5 | | |
| 12 | admin | admin | 1352844695225ff5fe54de2005407079 | Update Case Scheduler-One Time only 678%$@ | 4 | | | 20:30 | | | | | | |
| 13 | admin | admin | 1352844695225ff5fe54de2005407079 | Update Case Scheduler-Every 987&%@ | 5 | | | | | | | | | 18:30 |
Scenario Outline: Delete all case scheduler of a project created previously in this script
Given that I want to delete a resource with the key "sch_uid" stored in session array as variable "sch_uid_<sch_uid_number>"
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
Examples:
| sch_uid_number |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
| 11 |
| 12 |
| 13 |

View File

@@ -0,0 +1,60 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Output Documents Negative Tests
Background:
Given that I have a valid access_token
Scenario Outline: Create a new case scheduler for a project with bad parameters (negative tests)
Given POST this data:
"""
{
"sch_del_user_name": "<sch_del_user_name>",
"sch_del_user_pass": "<sch_del_user_pass>",
"tas_uid": "<tas_uid>",
"sch_name": "<sch_name>",
"sch_option": "<sch_option>",
"sch_start_date": "<sch_start_date>",
"sch_end_date": "<sch_end_date>",
"sch_start_time": "<sch_start_time>",
"sch_week_days": "<sch_week_days>",
"sch_start_day": "<sch_start_day>",
"sch_start_day_opt_1": "<sch_start_day_opt_1>",
"sch_months": "<sch_months>",
"sch_start_day_opt_2": "<sch_start_day_opt_2>",
"sch_repeat_every": "<sch_repeat_every>"
}
"""
And I request "project/1265557095225ff5c688f46031700471/case-scheduler"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | sch_del_user_name | sch_del_user_pass | 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 | error_message |
| Invalid sch_option | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Daily 123@#$ | 20 | 2014-01-30 | 2014-02-20 | 12:00 | | | | | | | 400 | sch_option |
| Invalid sch_del_user_name | sample | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly monday 345%$# | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 1 | | | | | | 400 | User |
| Invalid sch_del_user_pass | admin | sample | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly 345%$# | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 2\|3\|5\|6\|7 | | | | | | 400 | password |
| Invalid tas_uid | admin | admin | 00000000000005be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 1 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 1 | 15 | 3\|4 | | | 400 | task |
| Invalid sch_start_time | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 2 | 3 | 2014-03-21 | 2014-04-18 | 39:00:99 | | 1 | 15 | 1\|2\|5\|6\|7\|8\|9\|10\|11\|12 | | | 400 | sch_start_time |
| Invalid sch_start_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 3 | 3 | 2014-20-35 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 1\|7 | | 400 | sch_start_date |
| Invalid sch_week_days | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 4 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | 8\|9\|10 | 2 | | 3\|4\|5 | 2\|6 | | 400 | sch_week_days |
| Invalid sch_start_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 5 | 3 | 2014-33-76 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 3\|5 | | 400 | sch_start_date |
| Invalid sch_start_day_opt_1 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 6 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 1 | 87 | 3\|4\|5 | 2\|4 | | 400 | sch_start_day_opt_1 |
| Invalid sch_start_day_opt_2 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 7 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 9\|10 | | 400 | sch_start_day_opt_2 |
| Invalid sch_months | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 8 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 2 | | 13\|54\|65 | 5\|3 | | 400 | sch_months |
| Invalid sch_end_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-One Time only 678%$@ 9 | 3 | 2014-03-21 | 2015-54-87 | 20:00 | | 1 | | 3\|4 | | | 400 | sch_end_date |
| Invalid sch_repeat_every | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Every 987&%@ 10 | 5 | | | | | | | | | 43:30 | 400 | sch_repeat_every |
| Field requered sch_option | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Daily 123@#$ 11 | | 2014-01-30 | 2014-02-20 | 12:00 | | | | | | | 400 | sch_option |
| Field requered sch_name | admin | admin | 46941969352af5be2ab3f39001216717 | | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 1 | | | | | | 400 | sch_name |
| Field requered sch_del_user_name | | sample | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly 345%$# 12 | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 2\|3\|4\|5\|6\|7 | | | | | | 400 | User |
| Field requered sch_del_user_pass | admin | | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 113 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 1 | 15 | 3\|4 | | | 400 | password |
| Field requered tas_uid | admin | admin | | Case Scheduler-Monthly 567&^% 14 | 3 | 2014-03-21 | 2014-04-18 | 39:00:99 | | 1 | 15 | 1\|2\|5\|6\|7\|8\|9\|10\|11\|12 | | | 400 | tas_uid |
| Field requered sch_start_time | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 15 | 3 | 2014-20-35 | 2014-04-18 | | | 2 | | 3\|4\|5 | 1\|7 | | 400 | sch_start_time |
| Field requered sch_start_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 16 | 3 | | 2014-04-18 | 18:00 | 8\|9\|10 | 2 | | 3\|4\|5 | 2\|6 | | 400 | sch_start_date |
| Field requered sch_week_days | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly monday 345%$# 17 | 2 | 2014-02-20 | 2014-03-20 | 08:00 | | | | | | | 400 | sch_week_days |
| Field requered sch_start_day | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 18 | 3 | 2014-33-76 | 2014-04-18 | 18:00 | | | | 3\|4\|5 | 3\|5 | | 400 | sch_start_day |
| Field requered sch_months | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 19 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 1 | 16 | | 2\|4 | | 400 | sch_months |
| Field requered sch_end_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 20 | 3 | 2014-03-21 | | 18:00 | | 2 | | 3\|4\|5 | 9\|10 | | 400 | sch_end_date |

File diff suppressed because it is too large Load Diff

View File

@@ -28,6 +28,6 @@ Feature: Steps Resources Negative Tests
| Invalid step_type_obj - Ôutput Document | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | OUTT_DMEN123@#$ | 32743823452cd63105006e1076595203 | | 3 | EDIT | 400 | step_type_obj |
| Invalid step_position | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | DYNAFORM | 63293140052cd61b29e21a9056770986 | @@YEAR==2013 | 2,34/76 | EDIT | 400 | step_position |
| Invalid step_mode | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | DYNAFORM | 63293140052cd61b29e21a9056770986 | | 5 | sample12 | 400 | step_mode |
| Field requered project | | 10163687452cd6234e0dd25086954968 | DYNAFORM | 50332332752cd9b9a7cc989003652905 | | 1 | EDIT | 400 | project |
| Field requered activity | 16062437052cd6141881e06088349078 | | DYNAFORM | 50332332752cd9b9a7cc989003652905 | | 1 | EDIT | 400 | activity |
| Field requered project | | 10163687452cd6234e0dd25086954968 | DYNAFORM | 50332332752cd9b9a7cc989003652905 | | 1 | EDIT | 400 | prj_uid |
| Field requered activity | 16062437052cd6141881e06088349078 | | DYNAFORM | 50332332752cd9b9a7cc989003652905 | | 1 | EDIT | 400 | act_uid |
| Field requered step_uid_obj | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | DYNAFORM | | | 1 | EDIT | 400 | step_uid_obj |

View File

@@ -356,7 +356,7 @@ class RestContext extends BehatContext
$url .= $this->_restGetQueryStringSuffix;
}
$this->_request = $this->_client
->get($url, $this->_headers);
->get($url, $this->_headers);
$this->_response = $this->_request->send();
break;
case 'POST':
@@ -1211,6 +1211,35 @@ class RestContext extends BehatContext
}
/**
* @Given /^I request "([^"]*)" with the key "([^"]*)" stored in session array as variable "([^"]*)"$/
*/
public function iRequestWithTheKeyStoredInSessionArrayAsVariable($pageUrl, $varName, $sessionVarName)
{
if (file_exists("session.data")) {
$sessionData = json_decode(file_get_contents("session.data"));
} else {
$sessionData = array();
}
if (!isset($sessionData->$sessionVarName) ) {
$varValue = '';
} else {
$varValue = $sessionData->$sessionVarName;
}
$pageUrl = str_replace($varName, $varValue, $pageUrl);
$this->printDebug("URL: $pageUrl\n$varName = $varValue\n");
$this->iRequest($pageUrl);
}