mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Add TestGroup.Workflow to test classes, mark test with TestGroup.Networks and few fixes
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+2
-2
@@ -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,
|
||||
|
||||
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user