Modificaciones en los features activity y export/import

This commit is contained in:
Wendy Nestor
2014-05-15 16:40:28 -04:00
parent ace57153b5
commit 53186d1351
2 changed files with 246 additions and 219 deletions

View File

@@ -6,76 +6,73 @@ Background:
Scenario Outline: Create a new case (Negative Test)
Given POST this data:
"""
{
"pro_uid": "<pro_uid>",
"tas_uid": "<tas_uid>",
"variables": [{"name": "admin", "amount":"1030"}]
}
"""
Given POST this data:
"""
{
"pro_uid": "<pro_uid>",
"tas_uid": "<tas_uid>",
"variables": [{"name": "admin", "amount":"1030"}]
}
"""
And I request "cases"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| Description | pro_uid | tas_uid | error_code | error_message |
| Create new case with pro_uid wrong | 99209594750ec1111111927000421575 | 68707275350ec281ada1c95068712556 | 400 | pro_uid |
| Create new case with tas_uid wrong | 46279907250ec73b9b25a78031279680 | 99371337811111111111116024620271 | 400 | tas_uid |
| Create new case with tas_uid wrong | 46279907250ec73b9b25a78031279680 | 99371337811111111111116024620271 | 400 | tas_uid |
| Create new case without pro_uid | | 52838134750ec7dd0989fc0015625952 | 400 | pro_uid |
| Create new case without tas_uid | 34579467750ec8d55e8b115057818502 | | 400 | tas_uid |
| Create new case without tas_uid | 34579467750ec8d55e8b115057818502 | | 400 | tas_uid |
| Create new case whith pro_uid and tas_uid wrong | 8245849601111111181ecc7039804404 | 5690001111111118e4a9243080698854 | 400 | pro_uid |
Scenario Outline: Create a new case Impersonate (Negative Test)
Given POST this data:
"""
{
"pro_uid": "<pro_uid>",
"usr_uid": "<usr_uid>",
"tas_uid": "<tas_uid>",
"variables": [{"name": "pruebaQA", "amount":"10400"}]
}
"""
Given POST this data:
"""
{
"pro_uid": "<pro_uid>",
"usr_uid": "<usr_uid>",
"tas_uid": "<tas_uid>",
"variables": [{"name": "pruebaQA", "amount":"10400"}]
}
"""
And I request "cases/impersonate"
Then the response status code should be <error_code>
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| Description | pro_uid | usr_uid | tas_uid | error_code | error_message |
| Create new case with process "Derivation rules - sequential" invalid pro_uid | 99201111111111111138927000421575 | 51049032352d56710347233042615067 | 68707275350ec281ada1c95068712556 | 400 | pro_uid |
| Create new case with process "Derivation rules - evaluation" invalid tas_uid | 99209594750ec27ea338927000421575 | 44811996752d567110634a1013636964 | 68707211111111111111111111712556 | 400 | tas_uid |
| Create new case with process "Derivation rules - Parallel" usr_uid | 99209594750ec27ea338927000421575 | 24166331111111111111115035621101 | 68707275350ec281ada1c95068712556 | 400 | usr_uid |
| Create new case with process "Derivation rules - without pro_uid | | 86677227852d5671f40ba25017213081 | 68707275350ec281ada1c95068712556 | 400 | pro_uid |
| Create new case with process "Derivation rules - selection" tas_uid | 99209594750ec27ea338927000421575 | 62625000752d5672d6661e6072881167 | | 400 | tas_uid |
| Description | pro_uid | usr_uid | tas_uid | error_code | error_message |
| Create new case with process "Derivation rules - sequential" invalid pro_uid | 99201111111111111138927000421575 | 51049032352d56710347233042615067 | 68707275350ec281ada1c95068712556 | 400 | pro_uid |
| Create new case with process "Derivation rules - evaluation" invalid tas_uid | 99209594750ec27ea338927000421575 | 44811996752d567110634a1013636964 | 68707211111111111111111111712556 | 400 | tas_uid |
| Create new case with process "Derivation rules - Parallel" usr_uid | 99209594750ec27ea338927000421575 | 24166331111111111111115035621101 | 68707275350ec281ada1c95068712556 | 400 | usr_uid |
| Create new case with process "Derivation rules - without pro_uid | | 86677227852d5671f40ba25017213081 | 68707275350ec281ada1c95068712556 | 400 | pro_uid |
| Create new case with process "Derivation rules - selection" tas_uid | 99209594750ec27ea338927000421575 | 62625000752d5672d6661e6072881167 | | 400 | tas_uid |
Scenario Outline: Create a case, derivate and cancel. then try do pause or route
#Create case
Given POST this data:
"""
{
"pro_uid": "<pro_uid>",
"tas_uid": "<tas_uid>",
"variables": [{"name": "admin", "amount":"1030"}]
}
"""
Given POST this data:
"""
{
"pro_uid": "<pro_uid>",
"tas_uid": "<tas_uid>",
"variables": [{"name": "admin", "amount":"1030"}]
}
"""
And I request "cases"
Then the response status code should be 200
And store "app_uid" in session array as variable "app_uid_<case_number>"
#Send some variables
And PUT this data:
"""
{
"continue": "yes",
"tasks": "Cyclical"
And PUT this data:
"""
{
"continue": "yes",
"tasks": "Cyclical"
}
"""
}
"""
And I request "cases/app_uid/variable" with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
Then the response status code should be 200
And the content type is "application/json"
@@ -83,7 +80,7 @@ Scenario Outline: Create a case, derivate and cancel. then try do pause or route
And the type is "object"
#Cancel case
And PUT this data:
And PUT this data:
"""
{
@@ -96,36 +93,37 @@ Scenario Outline: Create a case, derivate and cancel. then try do pause or route
And the type is "object"
#Route case: it should not allow
And PUT this data:
"""
{
"case_uid": "<case_number>",
"del_index": "1"
}
"""
And PUT this data:
"""
{
"case_uid": "<case_number>",
"del_index": "1"
}
"""
And I request "cases/app_uid/route-case" with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
Then the response status code should be 400
And the response status message should have the following text "<error_message_route>"
#Pause case
And PUT this data:
And PUT this data:
"""
{
"unpaused_date": "2016-12-12"
}
"""
{
"unpaused_date": "2016-12-12"
}
"""
And I request "cases/app_uid/pause" with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
Then the response status code should be 400
And the response status message should have the following text "<error_message_pause>"
And I request "cases/app_uid/pause" with the key "app_uid" stored in session array as variable "app_uid_<case_number>"
Then the response status code should be 400
And the response status message should have the following text "<error_message_pause>"
Examples:
| Description | case_number | pro_uid | tas_uid | error_message_route | error_message_pause |
| Create new case with process "Derivation rules - sequential" | 1 | 99209594750ec27ea338927000421575 | 68707275350ec281ada1c95068712556 | This case delegation is already closed | This case delegation is already closed |
Examples:
| Description | case_number | pro_uid | tas_uid | error_message_route | error_message_pause |
| Create new case with process "Derivation rules - sequential" | 1 | 99209594750ec27ea338927000421575 | 68707275350ec281ada1c95068712556 | This case delegation is already closed | canceled |
#Delete case
Scenario Outline: Delete a case created previously in this script
Scenario Outline: Delete a case created previously in this script
Given that I want to delete a resource with the key "app_uid" stored in session array as variable "app_uid_<app_uid_number>"
And I request "cases"
And the content type is "application/json"

View File

@@ -5,7 +5,6 @@ Feature: Activity Resources Main Tests
the process name is "Test Activity"
there are three Activity Resources in the process
Background:
Given that I have a valid access_token
@@ -58,195 +57,225 @@ Scenario Outline: Get the Definition of a Activity are exactly three activity
| 24689389453502b73597aa5052425148 | Task 3 |
Scenario Outline: Get a activity (Verification of initial values)
Given I request "project/59534741653502b6d1820d6012095837/activity/<activity>"
Scenario: Get a activity (Verification of initial values) "Task1"
Given I request "project/59534741653502b6d1820d6012095837/activity/28629650453502b70b7f3a8051740006"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the property "tas_type" of "properties" is set to "<tas_type>"
And the property "tas_duration" of "properties" is set to "<tas_duration>"
And the property "tas_type_day" of "properties" is set to "<tas_type_day>"
And the property "tas_timeunit" of "properties" is set to "<tas_timeunit>"
And the property "tas_priority_variable" of "properties" is set to "<tas_priority_variable>"
And the property "tas_assign_type" of "properties" is set to "<tas_assign_type>"
And the property "tas_assign_variable" of "properties" is set to "<tas_assign_variable>"
And the property "tas_transfer_fly" of "properties" is set to "<tas_transfer_fly>"
And the property "tas_send_last_email" of "properties" is set to "<tas_send_last_email>"
And the property "tas_derivation_screen_tpl" of "properties" is set to "<tas_derivation_screen_tpl>"
And the property "tas_selfservice_timeout" of "properties" is set to "<tas_selfservice_timeout>"
And the property "tas_selfservice_time" of "properties" is set to "<tas_selfservice_time>"
And the property "tas_selfservice_time_unit" of "properties" is set to "<tas_selfservice_time_unit>"
And the property "tas_selfservice_trigger_uid" of "properties" is set to "<tas_selfservice_trigger_uid>"
And the property "tas_title" of "properties" is set to "<tas_title>"
And the property "tas_description" of "properties" is set to "<tas_description>"
And the property "tas_def_title" of "properties" is set to "<tas_def_title>"
And the property "tas_def_description" of "properties" is set to "<tas_def_description>"
And the property "tas_def_message" of "properties" is set to "<tas_def_message>"
And the property "tas_def_subject_message" of "properties" is set to "<tas_def_subject_message>"
And the property "tas_calendar" of "properties" is set to "<tas_calendar>"
And the property "tas_def_message_type" of "properties" is set to "<tas_def_message_type>"
And the property "tas_def_message_template" of "properties" is set to "<tas_def_message_template>"
Examples:
| activity | tas_type | tas_duration | tas_type_day | tas_timeunit | tas_priority_variable | tas_assign_type | tas_assign_variable | tas_transfer_fly | tas_send_last_email | tas_derivation_screen_tpl | tas_selfservice_timeout | tas_selfservice_time | tas_selfservice_time_unit | tas_selfservice_trigger_uid | tas_title | tas_description | tas_def_title | tas_def_description | tas_def_message | tas_def_subject_message | tas_calendar | tas_def_message_type | tas_def_message_template |
| 28629650453502b70b7f3a8051740006 | NORMAL | 1 | | DAYS | | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | FALSE | | 0 | | | | Task 1 | | | | | | | text | alert_message.html |
| 52976670353502b71e2b0a8036043148 | NORMAL | 1 | | DAYS | | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | FALSE | | 0 | | | | Task 2 | | | | | | | text | alert_message.html |
| 24689389453502b73597aa5052425148 | NORMAL | 1 | | DAYS | | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | FALSE | | 0 | | | | Task 3 | | | | | | | text | alert_message.html |
And the property "tas_type" of "properties" is set to "NORMAL"
And the property "tas_duration" of "properties" is set to "1"
And the property "tas_type_day" of "properties" is set to ""
And the property "tas_timeunit" of "properties" is set to "DAYS"
And the property "tas_priority_variable" of "properties" is set to ""
And the property "tas_assign_type" of "properties" is set to "BALANCED"
And the property "tas_assign_variable" of "properties" is set to "@@SYS_NEXT_USER_TO_BE_ASSIGNED"
And the property "tas_group_variable" of "properties" is set to ""
And the property "tas_transfer_fly" of "properties" is set to "FALSE"
And the property "tas_derivation_screen_tpl" of "properties" is set to ""
And the property "tas_selfservice_timeout" of "properties" is set to "0"
And the property "tas_selfservice_time" of "properties" is set to ""
And the property "tas_selfservice_time_unit" of "properties" is set to ""
And the property "tas_selfservice_trigger_uid" of "properties" is set to ""
And the property "tas_title" of "properties" is set to "Task 1"
And the property "tas_description" of "properties" is set to ""
And the property "tas_def_title" of "properties" is set to ""
And the property "tas_def_description" of "properties" is set to ""
And the property "tas_calendar" of "properties" is set to ""
And the property "tas_def_message_type" of "properties" is set to "text"
And the property "tas_def_message_template" of "properties" is set to "alert_message.html"
Scenario Outline: Update the Definition of a Activity and the check if the values had changed
Scenario: Get a activity (Verification of initial values) "Task2"
Given I request "project/59534741653502b6d1820d6012095837/activity/52976670353502b71e2b0a8036043148"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the property "tas_type" of "properties" is set to "NORMAL"
And the property "tas_duration" of "properties" is set to "1"
And the property "tas_type_day" of "properties" is set to ""
And the property "tas_timeunit" of "properties" is set to "DAYS"
And the property "tas_priority_variable" of "properties" is set to ""
And the property "tas_assign_type" of "properties" is set to "BALANCED"
And the property "tas_assign_variable" of "properties" is set to "@@SYS_NEXT_USER_TO_BE_ASSIGNED"
And the property "tas_transfer_fly" of "properties" is set to "FALSE"
And the property "tas_derivation_screen_tpl" of "properties" is set to ""
And the property "tas_selfservice_timeout" of "properties" is set to "0"
And the property "tas_selfservice_time" of "properties" is set to ""
And the property "tas_selfservice_time_unit" of "properties" is set to ""
And the property "tas_selfservice_trigger_uid" of "properties" is set to ""
And the property "tas_title" of "properties" is set to "Task 2"
And the property "tas_description" of "properties" is set to ""
And the property "tas_def_title" of "properties" is set to ""
And the property "tas_def_description" of "properties" is set to ""
And the property "tas_calendar" of "properties" is set to ""
And the property "tas_def_message_type" of "properties" is set to "text"
And the property "tas_def_message_template" of "properties" is set to "alert_message.html"
Scenario: Get a activity (Verification of initial values) "Task3"
Given I request "project/59534741653502b6d1820d6012095837/activity/24689389453502b73597aa5052425148"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the property "tas_type" of "properties" is set to "NORMAL"
And the property "tas_duration" of "properties" is set to "1"
And the property "tas_type_day" of "properties" is set to ""
And the property "tas_timeunit" of "properties" is set to "DAYS"
And the property "tas_priority_variable" of "properties" is set to ""
And the property "tas_assign_type" of "properties" is set to "BALANCED"
And the property "tas_assign_variable" of "properties" is set to "@@SYS_NEXT_USER_TO_BE_ASSIGNED"
And the property "tas_transfer_fly" of "properties" is set to "FALSE"
And the property "tas_derivation_screen_tpl" of "properties" is set to ""
And the property "tas_selfservice_timeout" of "properties" is set to "0"
And the property "tas_selfservice_time" of "properties" is set to ""
And the property "tas_selfservice_time_unit" of "properties" is set to ""
And the property "tas_selfservice_trigger_uid" of "properties" is set to ""
And the property "tas_title" of "properties" is set to "Task 3"
And the property "tas_description" of "properties" is set to ""
And the property "tas_def_title" of "properties" is set to ""
And the property "tas_def_description" of "properties" is set to ""
And the property "tas_calendar" of "properties" is set to ""
And the property "tas_def_message_type" of "properties" is set to "text"
And the property "tas_def_message_template" of "properties" is set to "alert_message.html"
Scenario: Update the Definition of a Activity "Task1" and the check if the values had changed
Given PUT this data:
"""
{
"definition": {},
"properties":
{
"tas_type": "<tas_type>",
"tas_duration": "<tas_duration>",
"tas_timeunit": "<tas_timeunit>",
"tas_priority_variable": "<tas_priority_variable>",
"tas_assign_type": "<tas_assign_type>",
"tas_assign_variable": "<tas_assign_variable>",
"tas_transfer_fly": "<tas_transfer_fly>",
"tas_derivation_screen_tpl": "<tas_derivation_screen_tpl>",
"tas_selfservice_time_unit": "<tas_selfservice_time_unit>",
"tas_selfservice_timeout": "<tas_selfservice_timeout>",
"tas_selfservice_trigger_uid": "<tas_selfservice_trigger_uid>",
"tas_title": "<tas_title>",
"tas_description": "<tas_description>",
"tas_def_title": "<tas_def_title>",
"tas_def_description": "<tas_def_description>",
"tas_def_message": "<tas_def_message>",
"tas_def_subject_message": "<tas_def_subject_message>",
"tas_calendar": "<tas_calendar>",
"tas_def_message_type": "<tas_def_message_type>",
"tas_def_message_template": "<tas_def_message_template>"
"tas_type": "ADHOC",
"tas_duration": 2,
"tas_type_day": "DAYS",
"tas_timeunit": "DAYS",
"tas_priority_variable": "@@PROCESS",
"tas_assign_type": "BALANCED",
"tas_assign_variable": "@@USER_LOGGED",
"tas_group_variable": "@@USER_LOGGED",
"tas_transfer_fly": "TRUE",
"tas_send_last_email": "TRUE",
"tas_derivation_screen_tpl": "test activity.html",
"tas_selfservice_timeout": 1,
"tas_selfservice_time": 1,
"tas_selfservice_time_unit": "HOURS",
"tas_selfservice_trigger_uid": "",
"tas_title": "Task 1 Update Activity",
"tas_description": "Update Description",
"tas_def_title": "Case Title",
"tas_def_description": "Case Description UPDATE",
"tas_def_message": "Esta es una Notificacion - UPDATE ",
"tas_def_subject_message": "UPDATE Titulo de Notificacion 1",
"tas_calendar": "14606161052f50839307899033145440",
"tas_def_message_type": "text",
"tas_def_message_template": "test activity.html"
}
}
"""
And I request "project/59534741653502b6d1820d6012095837/activity/<activity>"
And I request "project/59534741653502b6d1820d6012095837/activity/28629650453502b70b7f3a8051740006"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
Examples:
| test_description | activity | tas_type | tas_duration | tas_timeunit | tas_priority_variable | tas_assign_type | tas_assign_variable | tas_transfer_fly | tas_derivation_screen_tpl | tas_selfservice_time_unit | tas_selfservice_timeout | tas_selfservice_trigger_uid | tas_title | tas_description | tas_def_title | tas_def_description | tas_def_message | tas_def_subject_message | tas_calendar | tas_def_message_type | tas_def_message_template |
| Update Task1 | 28629650453502b70b7f3a8051740006 | ADHOC | 2 | DAYS | @@PROCESS | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | test activity.html | HOURS | 1 | | Task 1 Update Activity | Update Description | Case Title | Case Description UPDATE | Esta es una Notificacion - UPDATE | UPDATE Titulo de Notificacion 1 | 14606161052f50839307899033145440 | text | test activity.html |
| Update Task2 | 52976670353502b71e2b0a8036043148 | NORMAL | 3 | HOURS | @@PROCESS | BALANCED | @@USER_LOGGED | TRUE | test activity.html | HOURS | 1 | | Task 2 Update Activity | Update Description | Case Title | Case Description UPDATE | Esta es una Notificacion - UPDATE | UPDATE Titulo de Notificacion 1 | 14606161052f50839307899033145440 | text | test activity.html |
| Update Task3 | 24689389453502b73597aa5052425148 | NORMAL | 2 | HOURS | @@PROCESS | BALANCED | @@USER_LOGGED | FALSE | test activity.html | HOURS | 1 | | Task 3 Update Activity | Update Description | Case Title | Case Description UPDATE | Esta es una Notificacion - UPDATE | UPDATE Titulo de Notificacion 1 | 14606161052f50839307899033145440 | text | test activity.html |
Scenario Outline: Get a activity (Review of variables after the update)
Given I request "project/59534741653502b6d1820d6012095837/activity/<activity>"
Scenario: Get a activity (Review of variables after the update) Task1
Given I request "project/59534741653502b6d1820d6012095837/activity/28629650453502b70b7f3a8051740006"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the property "tas_type" of "properties" is set to "<tas_type>"
And the property "tas_duration" of "properties" is set to "<tas_duration>"
And the property "tas_timeunit" of "properties" is set to "<tas_timeunit>"
And the property "tas_priority_variable" of "properties" is set to "<tas_priority_variable>"
And the property "tas_assign_type" of "properties" is set to "<tas_assign_type>"
And the property "tas_assign_variable" of "properties" is set to "<tas_assign_variable>"
And the property "tas_transfer_fly" of "properties" is set to "<tas_transfer_fly>"
And the property "tas_derivation_screen_tpl" of "properties" is set to "<tas_derivation_screen_tpl>"
And the property "tas_selfservice_time_unit" of "properties" is set to "<tas_selfservice_time_unit>"
And the property "tas_selfservice_timeout" of "properties" is set to "<tas_selfservice_timeout>"
And the property "tas_selfservice_trigger_uid" of "properties" is set to "<tas_selfservice_trigger_uid>"
And the property "tas_title" of "properties" is set to "<tas_title>"
And the property "tas_description" of "properties" is set to "<tas_description>"
And the property "tas_def_title" of "properties" is set to "<tas_def_title>"
And the property "tas_def_description" of "properties" is set to "<tas_def_description>"
And the property "tas_def_message" of "properties" is set to "<tas_def_message>"
And the property "tas_def_subject_message" of "properties" is set to "<tas_def_subject_message>"
And the property "tas_calendar" of "properties" is set to "<tas_calendar>"
And the property "tas_def_message_type" of "properties" is set to "<tas_def_message_type>"
And the property "tas_def_message_template" of "properties" is set to "<tas_def_message_template>"
And the property "tas_type" of "properties" is set to "ADHOC"
And the property "tas_duration" of "properties" is set to 2
And the property "tas_type_day" of "properties" is set to "DAYS"
And the property "tas_timeunit" of "properties" is set to "DAYS"
And the property "tas_priority_variable" of "properties" is set to "@@PROCESS"
And the property "tas_assign_type" of "properties" is set to "BALANCED"
And the property "tas_assign_variable" of "properties" is set to "@@USER_LOGGED"
And the property "tas_group_variable" of "properties" is set to "@@USER_LOGGED"
And the property "tas_transfer_fly" of "properties" is set to "TRUE"
And the property "tas_send_last_email" of "properties" is set to "TRUE"
And the property "tas_derivation_screen_tpl" of "properties" is set to "test activity.html"
And the property "tas_selfservice_timeout" of "properties" is set to 1
And the property "tas_selfservice_time" of "properties" is set to 1
And the property "tas_selfservice_time_unit" of "properties" is set to "HOURS"
And the property "tas_selfservice_trigger_uid" of "properties" is set to ""
And the property "tas_title" of "properties" is set to "Task 1 Update Activity"
And the property "tas_description" of "properties" is set to "Update Description"
And the property "tas_def_title" of "properties" is set to "Case Title"
And the property "tas_def_description" of "properties" is set to "Case Description UPDATE"
And the property "tas_def_message" of "properties" is set to "Esta es una Notificacion - UPDATE"
And the property "tas_def_subject_message" of "properties" is set to "UPDATE Titulo de Notificacion 1"
And the property "tas_calendar" of "properties" is set to "14606161052f50839307899033145440"
And the property "tas_def_message_type" of "properties" is set to "text"
And the property "tas_def_message_template" of "properties" is set to "test activity.html"
Examples:
| activity | tas_type | tas_duration | tas_timeunit | tas_priority_variable | tas_assign_type | tas_assign_variable | tas_transfer_fly | tas_derivation_screen_tpl | tas_selfservice_time_unit | tas_selfservice_timeout | tas_selfservice_trigger_uid | tas_title | tas_description | tas_def_title | tas_def_description | tas_def_message | tas_def_subject_message | tas_calendar | tas_def_message_type | tas_def_message_template |
| 28629650453502b70b7f3a8051740006 | ADHOC | 2 | DAYS | @@PROCESS | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | test activity.html | HOURS | 1 | | Task 1 Update Activity | Update Description | Case Title | Case Description UPDATE | Esta es una Notificacion - UPDATE | UPDATE Titulo de Notificacion 1 | 14606161052f50839307899033145440 | text | test activity.html |
| 52976670353502b71e2b0a8036043148 | NORMAL | 3 | HOURS | @@PROCESS | BALANCED | @@USER_LOGGED | TRUE | test activity.html | HOURS | 1 | | Task 2 Update Activity | Update Description | Case Title | Case Description UPDATE | Esta es una Notificacion - UPDATE | UPDATE Titulo de Notificacion 1 | 14606161052f50839307899033145440 | text | test activity.html |
| 24689389453502b73597aa5052425148 | NORMAL | 2 | HOURS | @@PROCESS | BALANCED | @@USER_LOGGED | FALSE | test activity.html | HOURS | 1 | | Task 3 Update Activity | Update Description | Case Title | Case Description UPDATE | Esta es una Notificacion - UPDATE | UPDATE Titulo de Notificacion 1 | 14606161052f50839307899033145440 | text | test activity.html |
Scenario Outline: Update the Definition of a Activity to return to baseline
Scenario: Update the Definition of a Activity to return to baseline of the task1
Given PUT this data:
"""
{
"definition": {},
"properties":
{
"tas_type": "<tas_type>",
"tas_duration": "<tas_duration>",
"tas_timeunit": "<tas_timeunit>",
"tas_priority_variable": "<tas_priority_variable>",
"tas_assign_type": "<tas_assign_type>",
"tas_assign_variable": "<tas_assign_variable>",
"tas_transfer_fly": "<tas_transfer_fly>",
"tas_derivation_screen_tpl": "<tas_derivation_screen_tpl>",
"tas_selfservice_time_unit": "<tas_selfservice_time_unit>",
"tas_selfservice_timeout": "<tas_selfservice_timeout>",
"tas_selfservice_trigger_uid": "<tas_selfservice_trigger_uid>",
"tas_title": "<tas_title>",
"tas_description": "<tas_description>",
"tas_def_title": "<tas_def_title>",
"tas_def_description": "<tas_def_description>",
"tas_def_message": "<tas_def_message>",
"tas_def_subject_message": "<tas_def_subject_message>",
"tas_calendar": "<tas_calendar>",
"tas_def_message_type": "<tas_def_message_type>",
"tas_def_message_template": "<tas_def_message_template>"
"tas_type": "NORMAL",
"tas_duration": 1,
"tas_type_day": "",
"tas_timeunit": "DAYS",
"tas_priority_variable": "",
"tas_assign_type": "BALANCED",
"tas_assign_variable": "@@SYS_NEXT_USER_TO_BE_ASSIGNED",
"tas_group_variable": "",
"tas_transfer_fly": "FALSE",
"tas_send_last_email": "FALSE",
"tas_derivation_screen_tpl": "",
"tas_selfservice_timeout": 0,
"tas_selfservice_time": "",
"tas_selfservice_time_unit": "",
"tas_selfservice_trigger_uid": "",
"tas_title": "Task 1",
"tas_description": "",
"tas_def_title": "",
"tas_def_description": "",
"tas_def_message": "",
"tas_def_subject_message": "",
"tas_calendar": "",
"tas_def_message_type": "text",
"tas_def_message_template": "alert_message.html"
}
}
"""
And I request "project/59534741653502b6d1820d6012095837/activity/<activity>"
And I request "project/59534741653502b6d1820d6012095837/activity/28629650453502b70b7f3a8051740006"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
Examples:
| activity | tas_type | tas_duration | tas_timeunit | tas_priority_variable | tas_assign_type | tas_assign_variable | tas_transfer_fly | tas_derivation_screen_tpl | tas_selfservice_timeout | tas_selfservice_time | tas_selfservice_time_unit | tas_selfservice_trigger_uid | tas_title | tas_description | tas_def_title | tas_def_description | tas_def_message | tas_def_subject_message | tas_calendar | tas_def_message_type | tas_def_message_template |
| 28629650453502b70b7f3a8051740006 | NORMAL | 1 | DAYS | | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | | 0 | | | | Task 1 | | | | | | | text | alert_message.html |
| 52976670353502b71e2b0a8036043148 | NORMAL | 1 | DAYS | | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | | 0 | | | | Task 2 | | | | | | | text | alert_message.html |
| 24689389453502b73597aa5052425148 | NORMAL | 1 | DAYS | | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | | 0 | | | | Task 3 | | | | | | | text | alert_message.html |
Scenario Outline: Get a activity (Verification of initial values)
Given I request "project/59534741653502b6d1820d6012095837/activity/<activity>"
Scenario: Get a activity (Verification of initial values) Task1
Given I request "project/59534741653502b6d1820d6012095837/activity/28629650453502b70b7f3a8051740006"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And the property "tas_type" of "properties" is set to "<tas_type>"
And the property "tas_duration" of "properties" is set to "<tas_duration>"
And the property "tas_type_day" of "properties" is set to "<tas_type_day>"
And the property "tas_timeunit" of "properties" is set to "<tas_timeunit>"
And the property "tas_priority_variable" of "properties" is set to "<tas_priority_variable>"
And the property "tas_assign_type" of "properties" is set to "<tas_assign_type>"
And the property "tas_assign_variable" of "properties" is set to "<tas_assign_variable>"
And the property "tas_transfer_fly" of "properties" is set to "<tas_transfer_fly>"
And the property "tas_send_last_email" of "properties" is set to "<tas_send_last_email>"
And the property "tas_derivation_screen_tpl" of "properties" is set to "<tas_derivation_screen_tpl>"
And the property "tas_selfservice_timeout" of "properties" is set to "<tas_selfservice_timeout>"
And the property "tas_selfservice_time" of "properties" is set to "<tas_selfservice_time>"
And the property "tas_selfservice_time_unit" of "properties" is set to "<tas_selfservice_time_unit>"
And the property "tas_selfservice_trigger_uid" of "properties" is set to "<tas_selfservice_trigger_uid>"
And the property "tas_title" of "properties" is set to "<tas_title>"
And the property "tas_description" of "properties" is set to "<tas_description>"
And the property "tas_def_title" of "properties" is set to "<tas_def_title>"
And the property "tas_def_description" of "properties" is set to "<tas_def_description>"
And the property "tas_def_message" of "properties" is set to "<tas_def_message>"
And the property "tas_def_subject_message" of "properties" is set to "<tas_def_subject_message>"
And the property "tas_calendar" of "properties" is set to "<tas_calendar>"
And the property "tas_def_message_type" of "properties" is set to "<tas_def_message_type>"
And the property "tas_def_message_template" of "properties" is set to "<tas_def_message_template>"
Examples:
| activity | tas_type | tas_duration | tas_type_day | tas_timeunit | tas_priority_variable | tas_assign_type | tas_assign_variable | tas_transfer_fly | tas_send_last_email | tas_derivation_screen_tpl | tas_selfservice_timeout | tas_selfservice_time | tas_selfservice_time_unit | tas_selfservice_trigger_uid | tas_title | tas_description | tas_def_title | tas_def_description | tas_def_message | tas_def_subject_message | tas_calendar | tas_def_message_type | tas_def_message_template |
| 28629650453502b70b7f3a8051740006 | NORMAL | 1 | | DAYS | | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | FALSE | | 0 | | | | Task 1 | | | | | | | text | alert_message.html |
| 52976670353502b71e2b0a8036043148 | NORMAL | 1 | | DAYS | | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | FALSE | | 0 | | | | Task 2 | | | | | | | text | alert_message.html |
| 24689389453502b73597aa5052425148 | NORMAL | 1 | | DAYS | | BALANCED | @@SYS_NEXT_USER_TO_BE_ASSIGNED | FALSE | FALSE | | 0 | | | | Task 3 | | | | | | | text | alert_message.html |
And the property "tas_type" of "properties" is set to "NORMAL"
And the property "tas_duration" of "properties" is set to "1"
And the property "tas_type_day" of "properties" is set to ""
And the property "tas_timeunit" of "properties" is set to "DAYS"
And the property "tas_priority_variable" of "properties" is set to ""
And the property "tas_assign_type" of "properties" is set to "BALANCED"
And the property "tas_assign_variable" of "properties" is set to "@@SYS_NEXT_USER_TO_BE_ASSIGNED"
And the property "tas_group_variable" of "properties" is set to ""
And the property "tas_transfer_fly" of "properties" is set to "FALSE"
And the property "tas_send_last_email" of "properties" is set to "FALSE"
And the property "tas_derivation_screen_tpl" of "properties" is set to ""
And the property "tas_selfservice_timeout" of "properties" is set to "0"
And the property "tas_selfservice_time" of "properties" is set to ""
And the property "tas_selfservice_time_unit" of "properties" is set to ""
And the property "tas_selfservice_trigger_uid" of "properties" is set to ""
And the property "tas_title" of "properties" is set to "Task 1"
And the property "tas_description" of "properties" is set to ""
And the property "tas_def_title" of "properties" is set to ""
And the property "tas_def_description" of "properties" is set to ""
And the property "tas_calendar" of "properties" is set to ""
And the property "tas_def_message_type" of "properties" is set to "text"
And the property "tas_def_message_template" of "properties" is set to "alert_message.html"