diff --git a/features/backend/application_cases/case_actions/main_tests_cases_actions.feature b/features/backend/application_cases/case_actions/main_tests_cases_actions.feature index 792a6f019..73a086ca1 100644 --- a/features/backend/application_cases/case_actions/main_tests_cases_actions.feature +++ b/features/backend/application_cases/case_actions/main_tests_cases_actions.feature @@ -478,4 +478,132 @@ Scenario: Returns a list of the cases for the logged in user (Paused) Then the response status code should be 200 And the response charset is "UTF-8" And the type is "array" - And the response has 12 records \ No newline at end of file + And the response has 12 records + + +#Case Tasks + +Scenario: case tasks of case 180 + Given I request "cases/235641998533b158ec1f951078648880/tasks" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the type is "array" + And that "tas_uid" is set to "1655978655335cc3a8bb542099129747" + And that "tas_type" is set to "NORMAL" + And that "tas_title" is set to "Task 1" + And that "rou_next_task" is set to "9985264545335cc3bd0ad26061293336" + And that "rou_condition" is set to "" + And that "rou_to_last_user" is set to "FALSE" + And that "rou_optional" is set to "FALSE" + And that "usr_uid" is set to "Administrator" + And that "usr_firstname" is set to "Administrator" + And that "usr_lastname" is set to "" + And that "del_init_date" is set to "2014-04-01 15:37:51" + And that "del_task_due_date" is set to "2014-04-02 15:37:50" + And that "del_finish_date" is set to "2014-04-01 15:37:54" + And that "duration" is set to "0 Hours 0 Minutes 3 Seconds" + And that "color" is set to "#006633" + And that "tas_uid" is set to "9985264545335cc3bd0ad26061293336" + And that "tas_type" is set to "NORMAL" + And that "tas_title" is set to "Task 2" + And that "rou_next_task" is set to "-1" + And that "rou_condition" is set to "" + And that "rou_to_last_user" is set to "FALSE" + And that "rou_optional" is set to "FALSE" + And that "usr_uid" is set to "Administrator" + And that "usr_firstname" is set to "Administrator" + And that "usr_lastname" is set to "" + And that "del_init_date" is set to "2014-04-02 22:57:10" + And that "del_task_due_date" is set to "2014-04-02 15:37:54" + And that "del_finish_date" is set to "Not finished" + And that "duration" is set to "Not finished" + And that "color" is set to "#FF0000" + +Scenario: case tasks of case 145, case on unassigned list + Given I request "cases/940289753533b0d265a3885025822950/tasks" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the type is "array" + And that "tas_uid" is set to "30657958950ec8d5c50aef0095926988" + And that "tas_type" is set to "NORMAL" + And that "tas_title" is set to "Cyclical" + And that "rou_type" is set to "" + And that "color" is set to "#939598" + And that "tas_uid" is set to "57516479450ec8d5f696207052804906" + And that "tas_type" is set to "NORMAL" + And that "tas_title" is set to "Manual" + And that "rou_type" is set to "" + And that "color" is set to "#939598" + + And that "tas_uid" is set to "70190429650ec8d77e3e6e1056691766" + And that "tas_type" is set to "NORMAL" + And that "tas_title" is set to "Last" + And that "rou_type" is set to "" + And that "color" is set to "#939598" + + And that "tas_uid" is set to "86489868150ec8d68a1a9e7010589518" + And that "tas_type" is set to "NORMAL" + And that "tas_title" is set to "Init" + And that "rou_type" is set to "" + And that "color" is set to "#939598" + And that "tas_uid" is set to "89648437550ec8d593c2159010276089" + And that "tas_type" is set to "NORMAL" + And that "tas_title" is set to "Reports to" + And that "rou_type" is set to "4" + And that "rou_next_task" is set to "94757080050ec8d6e2b93a0015133851" + And that "rou_to_last_user" is set to "FALSE" + And that "rou_optional" is set to "FALSE" + And that "usr_uid" is set to "Administrator" + And that "usr_firstname" is set to "Administrator" + And that "usr_lastname" is set to "" + And that "del_init_date" is set to "2014-04-01 15:01:58" + And that "del_task_due_date" is set to "2014-04-02 15:01:58" + And that "del_finish_date" is set to "2014-04-01 15:02:17" + And that "duration" is set to "0 Hours 0 Minutes 19 Seconds" + And that "rou_next_task" is set to "30657958950ec8d5c50aef0095926988" + And that "rou_to_last_user" is set to "FALSE" + And that "rou_optional" is set to "FALSE" + And that "usr_uid" is set to "Administrator" + And that "usr_firstname" is set to "Administrator" + And that "usr_lastname" is set to "" + And that "del_init_date" is set to "2014-04-01 15:01:58" + And that "del_task_due_date" is set to "2014-04-02 15:01:58" + And that "del_finish_date" is set to "2014-04-01 15:02:17" + And that "duration" is set to "0 Hours 0 Minutes 19 Seconds" + And that "rou_next_task" is set to "57516479450ec8d5f696207052804906" + And that "rou_to_last_user" is set to "FALSE" + And that "rou_optional" is set to "FALSE" + And that "usr_uid" is set to "Administrator" + And that "usr_firstname" is set to "Administrator" + And that "usr_lastname" is set to "" + And that "del_init_date" is set to "2014-04-01 15:01:58" + And that "del_task_due_date" is set to "2014-04-02 15:01:58" + And that "del_finish_date" is set to "2014-04-01 15:02:17" + And that "duration" is set to "0 Hours 0 Minutes 19 Seconds" + And that "rou_next_task" is set to "86489868150ec8d68a1a9e7010589518" + And that "rou_to_last_user" is set to "FALSE" + And that "rou_optional" is set to "FALSE" + And that "usr_uid" is set to "Administrator" + And that "usr_firstname" is set to "Administrator" + And that "usr_lastname" is set to "" + And that "del_init_date" is set to "2014-04-01 15:01:58" + And that "del_task_due_date" is set to "2014-04-02 15:01:58" + And that "del_finish_date" is set to "2014-04-01 15:02:17" + And that "duration" is set to "0 Hours 0 Minutes 19 Seconds" + And that "color" is set to "#006633" + And that "tas_uid" is set to "94757080050ec8d6e2b93a0015133851" + And that "tas_type" is set to "NORMAL" + And that "tas_title" is set to "Self Service" + And that "rou_type" is set to "5" + And that "rou_next_task" is set to "70190429650ec8d77e3e6e1056691766" + And that "rou_condition" is set to "" + And that "rou_to_last_user" is set to "FALSE" + And that "rou_optional" is set to "FALSE" + And that "usr_uid" is set to "None" + And that "usr_firstname" is set to "null" + And that "usr_lastname" is set to "null" + And that "del_init_date" is set to "Case not started yet" + And that "del_task_due_date" is set to "2014-04-02 15:02:17" + And that "del_finish_date" is set to "Not finished" + And that "duration" is set to "Not finished" + And that "color" is set to "#FF0000" \ No newline at end of file