TAS-1598, get call with user that is involved in task

This commit is contained in:
Iulia Nechita
2016-10-21 15:47:29 +03:00
parent 66ac099b3e
commit b9ada52840
@@ -57,4 +57,17 @@ public class GetTaskItemsSanityTests extends RestWorkflowTest
tasksApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK);
}
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.TASKS }, executionType = ExecutionType.SANITY,
description = "Verify that involved user in process gets task items")
public void getTaskItemsByUserInvolvedInProcess() throws Exception
{
restClient.authenticateUser(assignee);
document1 = dataContent.usingSite(siteModel).createContent(DocumentType.XML);
taskItem = tasksApi.addTaskItem(taskModel, document1);
tasksApi.getTaskItems(taskModel)
.assertEntriesListIsNotEmpty()
.assertEntriesListContains("id", taskItem.getId());
tasksApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK);
}
}