diff --git a/features/executeTaskList.feature b/features/executeTaskList.feature new file mode 100644 index 0000000000000000000000000000000000000000..d6296274e5f6039a1877c9df660e90d7ec865603 --- /dev/null +++ b/features/executeTaskList.feature @@ -0,0 +1,56 @@ +As user +I want to execute the list of tasks +So I am able to bring the consistensy to running multiple asyncronous tasks + +Scenario: Sequential task list processing +Given long running policy is uploaded to the system +And the list of tasks is defined +And the list of tasks contains the group of tasks +And the group of tasks contains task A and task B +When I evaluate a policy +And the task list specified as an input +Then I get successful response +And the response contains the taskListObject +And the taskListObject contains the taskList id +And the taskListObject contains the taskIDs of all the tasks + +Scenario: Handling the error for the sequential task list execution +Given task list is configured +And the list of tasks contains the group of tasks +And the group of tasks contains task A, task B and task C +And the group of tasks is configured for running one by one +And the task list has executed +And task B failed +When I request the result of task list execution +Then I get the response +And the status of task list execution marked as failed +And the status of task A is marked as successful +And the status of task B is marked as failed +And the status of task C is marked as failed + +Scenario: Handling the error for the parallel task list execution +Given task list is configured +And the list of tasks contains the group of tasks +And the group of tasks contains task A, task B and task C +And the group of tasks is configured for running in parallel +And the task list has executed +And task B failed +When I request the result of task list execution +Then I get the response +And the status of task list execution marked as failed +And the status of task A is marked as successful +And the status of task B is marked as failed +And the status of task C is marked as successful + +Scenario: Handling the error for the mixed task list execution +Given task list is configured +And the list of tasks contains the group A and group B +And the group A configured for running sequentially +And the group B configured for running in parallel +And the task list has executed +And one of the tasks in a group B failed +When I request the result of the task list execution +Then I get the response +And the status of task list execution marked as failed + +