Merge branch 'TAS-1380' into 'master'

Tas 1380

See merge request !124
This commit is contained in:
Paul Brodner
2016-10-24 06:49:15 +01:00
17 changed files with 19 additions and 18 deletions
@@ -17,7 +17,7 @@ import org.testng.annotations.Test;
/**
* Created by Claudia Agache on 10/4/2016.
*/
@Test(groups = { TestGroup.REST_API, TestGroup.DEPLOYMENTS, TestGroup.SANITY})
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.SANITY})
public class GetDeploymentsSanityTests extends RestWorkflowTest
{
@Autowired
@@ -16,7 +16,7 @@ import org.testng.annotations.Test;
/**
* Created by Claudia Agache on 10/13/2016.
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
public class GetProcessDefinitionImageSanityTests extends RestWorkflowTest {
@Autowired
private DataUser dataUser;
@@ -16,7 +16,7 @@ import org.testng.annotations.Test;
/**
* Created by Claudia Agache on 10/13/2016.
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
public class GetProcessDefinitionSanityTests extends RestWorkflowTest
{
@Autowired
@@ -17,7 +17,7 @@ import org.testng.annotations.Test;
/**
* Created by Claudia Agache on 10/18/2016.
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
public class GetProcessDefinitionStartFormModelSanityTests extends RestWorkflowTest
{
@Autowired
@@ -16,7 +16,7 @@ import org.testng.annotations.Test;
/**
* Created by Claudia Agache on 10/13/2016.
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
public class GetProcessDefinitionsSanityTests extends RestWorkflowTest
{
@Autowired
@@ -22,7 +22,7 @@ import org.testng.annotations.Test;
/**
* @author iulia.cojocea
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY})
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY})
public class AddProcessItemSanityTests extends RestWorkflowTest
{
@Autowired
@@ -19,7 +19,7 @@ import org.testng.annotations.Test;
/**
* Created by Claudia Agache on 10/18/2016.
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
public class AddProcessSanityTests extends RestWorkflowTest
{
@Autowired
@@ -23,7 +23,7 @@ import org.testng.annotations.Test;
/**
* @author iulia.cojocea
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
public class AddProcessVariableSanityTests extends RestWorkflowTest
{
@Autowired
@@ -19,7 +19,7 @@ import org.testng.annotations.Test;
/**
* Created by Claudia Agache on 10/12/2016.
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
public class DeleteProcessSanityTests extends RestWorkflowTest
{
@Autowired
@@ -22,7 +22,7 @@ import org.testng.annotations.Test;
* @author iulia.cojocea
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
public class GetProcessItemsSanityTests extends RestWorkflowTest
{
@Autowired
@@ -17,7 +17,7 @@ import org.testng.annotations.Test;
/**
* Created by Claudia Agache on 10/19/2016.
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
public class GetProcessSanityTests extends RestWorkflowTest
{
@Autowired
@@ -20,7 +20,7 @@ import org.testng.annotations.Test;
/**
* Created by Claudia Agache on 10/11/2016.
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
public class GetProcessesSanityTests extends RestWorkflowTest
{
@Autowired
@@ -20,7 +20,7 @@ import org.testng.annotations.Test;
/**
* @author iulia.cojocea
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
public class GetProcessesVariablesSanityTests extends RestWorkflowTest
{
@Autowired
@@ -21,7 +21,7 @@ import org.testng.annotations.Test;
/**
* @author iulia.cojocea
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
public class RemoveProcessItemSanityTests extends RestWorkflowTest
{
@Autowired
@@ -21,7 +21,7 @@ import org.testng.annotations.Test;
/**
* @author iulia.cojocea
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
public class RemoveProcessVariableSanityTests extends RestWorkflowTest
{
@Autowired
@@ -58,7 +58,7 @@ public class RemoveProcessVariableSanityTests extends RestWorkflowTest
processesApi.addProcessVariable(processModel, variableModel);
processesApi.deleteProcessVariable(processModel, variableModel);
processesApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.NO_CONTENT);
processesApi.getProcessesVariables(processModel).assertEntriesListContains("name", variableModel.getName());
processesApi.getProcessesVariables(processModel).assertEntriesListDoesNotContain("name", variableModel.getName());
}
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
@@ -21,7 +21,7 @@ import org.testng.annotations.Test;
/**
* @author iulia.cojocea
*/
@Test(groups = { TestGroup.REST_API, TestGroup.PROCESSES, TestGroup.SANITY })
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
public class UpdateProcessVariableSanityTests extends RestWorkflowTest
{
@Autowired
@@ -56,7 +56,7 @@ public class UpdateProcessVariableSanityTests extends RestWorkflowTest
RestProcessVariableModel variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
processModel = processesApi.getProcesses().getOneRandomEntry();
processesApi.updateProcessVariable(processModel, variableModel);
processesApi.getProcessesVariables(processModel).assertEntriesListDoesNotContain("name", variableModel.getName());
processesApi.getProcessesVariables(processModel).assertEntriesListContains("name", variableModel.getName());
processesApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK);
}
@@ -73,6 +73,7 @@ public class GetTaskItemsSanityTests extends RestWorkflowTest
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.TASKS }, executionType = ExecutionType.SANITY,
description = "Verify that user that started the process gets task items")
@Test(groups = { TestGroup.NETWORKS })
public void getTaskItemsByAdminInSameNetwork() throws Exception
{
UserModel adminuser = dataUser.getAdminUser();