mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Merge branch 'workflow-test-annotation' into 'master'
Workflow test annotation See merge request !323
This commit is contained in:
@@ -12,7 +12,6 @@ import org.springframework.http.HttpStatus;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.DEPLOYMENTS, TestGroup.CORE, TestGroup.WORKFLOW })
|
||||
public class DeleteDeploymentCoreTests extends RestTest
|
||||
{
|
||||
private UserModel adminUser;
|
||||
@@ -29,6 +28,7 @@ public class DeleteDeploymentCoreTests extends RestTest
|
||||
@Bug(id = "MNT-16996")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify deleteDeployment is unsupported for empty deployment id with REST API and status code is 404")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.DEPLOYMENTS, TestGroup.CORE, TestGroup.WORKFLOW })
|
||||
public void deleteDeploymentIsUnsupportedForEmptyId() throws Exception
|
||||
{
|
||||
deployment = restClient.authenticateUser(adminUser).withWorkflowAPI().getDeployments().getOneRandomEntry().onModel();
|
||||
@@ -41,6 +41,7 @@ public class DeleteDeploymentCoreTests extends RestTest
|
||||
@Bug(id = "MNT-16996")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify deleteDeployment is forbidden using non admin user or different user than creator with REST API and status code is 403")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.DEPLOYMENTS, TestGroup.CORE, TestGroup.WORKFLOW })
|
||||
public void deleteDeploymentUsingNonAdminUser() throws Exception
|
||||
{
|
||||
deployment = restClient.authenticateUser(adminUser).withWorkflowAPI().getDeployments().getOneRandomEntry().onModel();
|
||||
|
||||
+2
-2
@@ -20,8 +20,6 @@ import org.testng.annotations.Test;
|
||||
* @author Cristina Axinte
|
||||
*
|
||||
*/
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.DEPLOYMENTS, TestGroup.SANITY, TestGroup.WORKFLOW }, priority = 100)
|
||||
public class DeleteDeploymentSanityTests extends RestTest
|
||||
{
|
||||
private UserModel adminUser;
|
||||
@@ -36,6 +34,7 @@ public class DeleteDeploymentSanityTests extends RestTest
|
||||
@Bug(id = "MNT-16996")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS },
|
||||
executionType = ExecutionType.SANITY, description = "Verify admin user deletes a specific deployment using REST API and status code is successful (204)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.DEPLOYMENTS, TestGroup.SANITY, TestGroup.WORKFLOW }, priority = 100)
|
||||
public void adminDeletesDeploymentWithSuccess() throws Exception
|
||||
{
|
||||
dataContent.assertExtensionAmpExists("alfresco-workflow-extension");
|
||||
@@ -51,6 +50,7 @@ public class DeleteDeploymentSanityTests extends RestTest
|
||||
@Bug(id = "MNT-16996")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS },
|
||||
executionType = ExecutionType.SANITY, description = "Verify admin user cannot delete an inexistent deployment using REST API and status code is successful (204)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.DEPLOYMENTS, TestGroup.SANITY, TestGroup.WORKFLOW }, priority = 100)
|
||||
public void adminCannotDeleteInexistentDeployment() throws Exception
|
||||
{
|
||||
deployment = restClient.authenticateUser(adminUser).withWorkflowAPI().getDeployments().getOneRandomEntry().onModel();
|
||||
|
||||
@@ -14,7 +14,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 12/7/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.CORE })
|
||||
public class GetDeploymentCoreTests extends RestTest
|
||||
{
|
||||
private UserModel adminUser, adminTenantUser;
|
||||
@@ -27,7 +26,9 @@ public class GetDeploymentCoreTests extends RestTest
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify if get deployment request returns status code 404 when invalid deploymentId is used.")
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify if get deployment request returns status code 404 when invalid deploymentId is used.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.CORE })
|
||||
public void getNonNetworkDeploymentUsingInvalidDeploymentId() throws Exception
|
||||
{
|
||||
expectedDeployment = restClient.authenticateUser(adminUser).withWorkflowAPI().getDeployments().getOneRandomEntry().onModel();
|
||||
@@ -39,8 +40,9 @@ public class GetDeploymentCoreTests extends RestTest
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify if network admin user gets a network deployment using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify if network admin user gets a network deployment using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.CORE, TestGroup.NETWORKS})
|
||||
public void adminGetsNetworkDeploymentWithSuccess() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
@@ -56,8 +58,9 @@ public class GetDeploymentCoreTests extends RestTest
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify non admin user is forbidden to get a network deployment using REST API (403)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify non admin user is forbidden to get a network deployment using REST API (403)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.CORE, TestGroup.NETWORKS })
|
||||
public void nonAdminUserIsForbiddenToGetNetworkDeployment() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
|
||||
@@ -18,7 +18,6 @@ import org.testng.annotations.Test;
|
||||
* @author Cristina Axinte
|
||||
*
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.SANITY })
|
||||
public class GetDeploymentSanityTests extends RestTest
|
||||
{
|
||||
private UserModel adminUser;
|
||||
@@ -36,6 +35,7 @@ public class GetDeploymentSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS },
|
||||
executionType = ExecutionType.SANITY, description = "Verify admin user gets a non-network deployment using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.SANITY })
|
||||
public void adminGetsNonNetworkDeploymentWithSuccess() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
actualDeployment = restClient.authenticateUser(adminUser).withWorkflowAPI().usingDeployment(expectedDeployment).getDeployment();
|
||||
@@ -47,6 +47,7 @@ public class GetDeploymentSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS },
|
||||
executionType = ExecutionType.SANITY, description = "Verify non admin user is forbidden to get a non-network deployment using REST API (403)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.SANITY })
|
||||
public void nonAdminIsForbiddenToGetNonNetworkDeployment() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(anotherUser).withWorkflowAPI().usingDeployment(expectedDeployment).getDeployment();
|
||||
|
||||
@@ -18,7 +18,6 @@ import java.util.List;
|
||||
/**
|
||||
* Created by Claudia Agache on 12/7/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.CORE})
|
||||
public class GetDeploymentsCoreTests extends RestTest
|
||||
{
|
||||
private UserModel adminUser, adminTenantUser;
|
||||
@@ -31,7 +30,9 @@ public class GetDeploymentsCoreTests extends RestTest
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.DEPLOYMENTS },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify non admin user is not able to get non-network deployments using REST API and status code is Forbidden")
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify non admin user is not able to get non-network deployments using REST API and status code is Forbidden")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.CORE})
|
||||
public void nonAdminUserCanNotGetNonNetworkDeployments() throws Exception
|
||||
{
|
||||
UserModel userModel = dataUser.createRandomTestUser();
|
||||
@@ -41,8 +42,9 @@ public class GetDeploymentsCoreTests extends RestTest
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.DEPLOYMENTS },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify non admin user is not able to get network deployments using REST API and status code is Forbidden")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify non admin user is not able to get network deployments using REST API and status code is Forbidden")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.CORE, TestGroup.NETWORKS})
|
||||
public void nonAdminUserCanNotGetNetworkDeployments() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
@@ -57,21 +59,20 @@ public class GetDeploymentsCoreTests extends RestTest
|
||||
|
||||
@Bug(id = "MNT-16996")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.DEPLOYMENTS },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify get deployments returns an empty list after deleting all network deployments.")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify get deployments returns an empty list after deleting all network deployments.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.CORE, TestGroup.NETWORKS})
|
||||
public void getNetworkDeploymentsAfterDeletingAllNetworkDeployments() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
restClient.authenticateUser(adminUser)
|
||||
.usingTenant().createTenant(adminTenantUser);
|
||||
|
||||
List<RestDeploymentModel> networkDeployments = restClient.authenticateUser(adminTenantUser).withWorkflowAPI().getDeployments().getEntries();
|
||||
for (RestDeploymentModel networkDeployment: networkDeployments)
|
||||
{
|
||||
restClient.withWorkflowAPI().usingDeployment(networkDeployment.onModel()).deleteDeployment();
|
||||
restClient.assertStatusCodeIs(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
deployments = restClient.authenticateUser(adminTenantUser).withWorkflowAPI().getDeployments();
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
deployments.assertThat().entriesListIsEmpty();
|
||||
|
||||
@@ -14,7 +14,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 10/4/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.SANITY})
|
||||
public class GetDeploymentsSanityTests extends RestTest
|
||||
{
|
||||
private UserModel adminUserModel, adminTenantUser;
|
||||
@@ -29,7 +28,9 @@ public class GetDeploymentsSanityTests extends RestTest
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.DEPLOYMENTS }, executionType = ExecutionType.SANITY, description = "Verify Admin user gets non-network deployments using REST API and status code is OK (200)")
|
||||
TestGroup.DEPLOYMENTS }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify Admin user gets non-network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.SANITY})
|
||||
public void getNonNetworkDeploymentsWithAdmin() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
deployments = restClient.authenticateUser(adminUserModel).withWorkflowAPI().getDeployments();
|
||||
@@ -38,8 +39,9 @@ public class GetDeploymentsSanityTests extends RestTest
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.DEPLOYMENTS }, executionType = ExecutionType.SANITY, description = "Verify Tenant Admin user gets network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
TestGroup.DEPLOYMENTS }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify Tenant Admin user gets network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.DEPLOYMENTS, TestGroup.SANITY, TestGroup.NETWORKS})
|
||||
public void getNetworkDeploymentsWithAdmin() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.usingTenant().createTenant(adminTenantUser);
|
||||
|
||||
+3
-8
@@ -14,7 +14,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 12/5/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public class GetProcessDefinitionCoreTests extends RestTest
|
||||
{
|
||||
private UserModel adminUser, adminTenantUser;
|
||||
@@ -29,12 +28,12 @@ public class GetProcessDefinitionCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify if get process definition returns status code 404 when invalid processDefinitionId is used")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public void getProcessDefinitionUsingInvalidProcessDefinitionId() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(adminUser);
|
||||
randomProcessDefinition = restClient.withWorkflowAPI().getAllProcessDefinitions().getOneRandomEntry().onModel();
|
||||
randomProcessDefinition.setId("invalidID");
|
||||
|
||||
restClient.withWorkflowAPI()
|
||||
.usingProcessDefinitions(randomProcessDefinition).getProcessDefinition();
|
||||
restClient.assertStatusCodeIs(HttpStatus.NOT_FOUND)
|
||||
@@ -44,13 +43,12 @@ public class GetProcessDefinitionCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify network admin is able to get a process definition using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE, TestGroup.NETWORKS })
|
||||
public void networkAdminGetProcessDefinition() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
restClient.authenticateUser(adminUser)
|
||||
.usingTenant().createTenant(adminTenantUser);
|
||||
|
||||
randomProcessDefinition = restClient.authenticateUser(adminTenantUser).withWorkflowAPI().getAllProcessDefinitions().getOneRandomEntry().onModel();
|
||||
returnedProcessDefinition = restClient.withWorkflowAPI().usingProcessDefinitions(randomProcessDefinition).getProcessDefinition();
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
@@ -60,15 +58,13 @@ public class GetProcessDefinitionCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify network user is able to get a process definition using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE, TestGroup.NETWORKS })
|
||||
public void networkUserGetProcessDefinition() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
restClient.authenticateUser(adminUser)
|
||||
.usingTenant().createTenant(adminTenantUser);
|
||||
|
||||
UserModel tenantUser = dataUser.usingUser(adminTenantUser).createUserWithTenant("uTenant");
|
||||
|
||||
randomProcessDefinition = restClient.authenticateUser(adminTenantUser).withWorkflowAPI()
|
||||
.getAllProcessDefinitions().getOneRandomEntry().onModel();
|
||||
returnedProcessDefinition = restClient.authenticateUser(tenantUser).withWorkflowAPI()
|
||||
@@ -76,5 +72,4 @@ public class GetProcessDefinitionCoreTests extends RestTest
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
returnedProcessDefinition.assertThat().field("name").is(randomProcessDefinition.getName());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+3
-7
@@ -15,7 +15,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 12/6/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public class GetProcessDefinitionImageCoreTests extends RestTest
|
||||
{
|
||||
private UserModel adminUser, adminTenantUser;
|
||||
@@ -30,12 +29,12 @@ public class GetProcessDefinitionImageCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify if get process definition image returns status code 404 when invalid processDefinitionId is used")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public void getProcessDefinitionImageUsingInvalidProcessDefinitionId() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(adminUser);
|
||||
randomProcessDefinition = restClient.withWorkflowAPI().getAllProcessDefinitions().getOneRandomEntry();
|
||||
randomProcessDefinition.onModel().setId("invalidID");
|
||||
|
||||
restClient.withWorkflowAPI()
|
||||
.usingProcessDefinitions(randomProcessDefinition).getProcessDefinitionImage();
|
||||
restClient.assertStatusCodeIs(HttpStatus.NOT_FOUND)
|
||||
@@ -45,14 +44,13 @@ public class GetProcessDefinitionImageCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify network admin is able to get a process definition image using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE, TestGroup.NETWORKS })
|
||||
@Bug(id = "MNT-17243")
|
||||
public void networkAdminGetProcessDefinitionImage() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
restClient.authenticateUser(adminUser)
|
||||
.usingTenant().createTenant(adminTenantUser);
|
||||
|
||||
randomProcessDefinition = restClient.authenticateUser(adminTenantUser).withWorkflowAPI().getAllProcessDefinitions().getOneRandomEntry();
|
||||
restClient.withWorkflowAPI().usingProcessDefinitions(randomProcessDefinition).getProcessDefinitionImage()
|
||||
.assertResponseContainsImage();
|
||||
@@ -62,16 +60,14 @@ public class GetProcessDefinitionImageCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify network user is able to get a process definition image using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE, TestGroup.NETWORKS })
|
||||
@Bug(id = "MNT-17243")
|
||||
public void networkUserGetProcessDefinitionImage() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
restClient.authenticateUser(adminUser)
|
||||
.usingTenant().createTenant(adminTenantUser);
|
||||
|
||||
UserModel tenantUser = dataUser.usingUser(adminTenantUser).createUserWithTenant("uTenant");
|
||||
|
||||
randomProcessDefinition = restClient.authenticateUser(adminTenantUser).withWorkflowAPI()
|
||||
.getAllProcessDefinitions().getOneRandomEntry();
|
||||
restClient.authenticateUser(tenantUser).withWorkflowAPI()
|
||||
|
||||
+6
-3
@@ -13,7 +13,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 10/13/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
|
||||
public class GetProcessDefinitionImageSanityTests extends RestTest
|
||||
{
|
||||
private UserModel testUser;
|
||||
@@ -27,7 +26,9 @@ public class GetProcessDefinitionImageSanityTests extends RestTest
|
||||
randomProcessDefinition = restClient.withWorkflowAPI().getAllProcessDefinitions().getOneRandomEntry();
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION }, executionType = ExecutionType.SANITY, description = "Verify Any user gets a specific process definition image for non-network deployments using REST API and status code is OK (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify Any user gets a specific process definition image for non-network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
|
||||
public void anyUserGetsProcessDefinitionImage() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(testUser);
|
||||
@@ -36,7 +37,9 @@ public class GetProcessDefinitionImageSanityTests extends RestTest
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION }, executionType = ExecutionType.SANITY, description = "Verify Admin user gets a specific process definition image for non-network deployments using REST API and status code is OK (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify Admin user gets a specific process definition image for non-network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
|
||||
public void adminGetsProcessDefinitionImage() throws Exception
|
||||
{
|
||||
restClient.withWorkflowAPI().usingProcessDefinitions(randomProcessDefinition).getProcessDefinitionImage()
|
||||
|
||||
+2
-1
@@ -13,7 +13,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 10/13/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
|
||||
public class GetProcessDefinitionSanityTests extends RestTest
|
||||
{
|
||||
private UserModel testUser;
|
||||
@@ -30,6 +29,7 @@ public class GetProcessDefinitionSanityTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.SANITY,
|
||||
description = "Verify Admin user gets a specific process definition for non-network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
|
||||
public void adminGetsProcessDefinition() throws Exception
|
||||
{
|
||||
returnedProcessDefinition = restClient.withWorkflowAPI().usingProcessDefinitions(randomProcessDefinition).getProcessDefinition();
|
||||
@@ -40,6 +40,7 @@ public class GetProcessDefinitionSanityTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.SANITY,
|
||||
description = "Verify Any user gets a specific process definition for non-network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
|
||||
public void anyUserGetsProcessDefinition() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(testUser);
|
||||
|
||||
+4
-5
@@ -16,7 +16,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 12/6/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public class GetProcessDefinitionStartFormModelCoreTests extends RestTest
|
||||
{
|
||||
private UserModel adminUser, adminTenantUser;
|
||||
@@ -33,10 +32,10 @@ public class GetProcessDefinitionStartFormModelCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify any user gets a model of the start form type definition for non-network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public void nonNetworkUserGetsStartFormModel() throws Exception
|
||||
{
|
||||
UserModel nonNetworkUser = dataUser.createRandomTestUser();
|
||||
|
||||
randomProcessDefinition = allProcessDefinitions.getOneRandomEntry();
|
||||
restClient.authenticateUser(nonNetworkUser).withWorkflowAPI()
|
||||
.usingProcessDefinitions(randomProcessDefinition).getProcessDefinitionStartFormModel()
|
||||
@@ -48,6 +47,7 @@ public class GetProcessDefinitionStartFormModelCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify if get request returns status code 404 when invalid processDefinitionId is used")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public void getStartFormModelUsingInvalidProcessDefinitionId() throws Exception
|
||||
{
|
||||
randomProcessDefinition = allProcessDefinitions.getOneRandomEntry();
|
||||
@@ -63,6 +63,7 @@ public class GetProcessDefinitionStartFormModelCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify if get request returns status code 404 when empty processDefinitionId is used")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public void getStartFormModelUsingEmptyProcessDefinitionId() throws Exception
|
||||
{
|
||||
randomProcessDefinition = allProcessDefinitions.getOneRandomEntry();
|
||||
@@ -77,15 +78,13 @@ public class GetProcessDefinitionStartFormModelCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify Tenant User gets a model of the start form type definition for network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE, TestGroup.NETWORKS })
|
||||
public void networkUserGetsStartFormModel() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
restClient.authenticateUser(adminUser)
|
||||
.usingTenant().createTenant(adminTenantUser);
|
||||
|
||||
UserModel tenantUser = dataUser.usingUser(adminTenantUser).createUserWithTenant("uTenant");
|
||||
|
||||
randomProcessDefinition = restClient.authenticateUser(adminTenantUser).withWorkflowAPI()
|
||||
.getAllProcessDefinitions().getOneRandomEntry();
|
||||
restClient.authenticateUser(tenantUser).withWorkflowAPI()
|
||||
|
||||
+2
-2
@@ -13,7 +13,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 10/18/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
|
||||
public class GetProcessDefinitionStartFormModelSanityTests extends RestTest
|
||||
{
|
||||
private UserModel adminUserModel, adminTenantUser;
|
||||
@@ -30,6 +29,7 @@ public class GetProcessDefinitionStartFormModelSanityTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.SANITY,
|
||||
description = "Verify Admin gets a model of the start form type definition for non-network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
|
||||
public void nonNetworkAdminGetsStartFormModel() throws Exception
|
||||
{
|
||||
randomProcessDefinition = restClient.withWorkflowAPI().getAllProcessDefinitions().getOneRandomEntry();
|
||||
@@ -40,7 +40,7 @@ public class GetProcessDefinitionStartFormModelSanityTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.SANITY,
|
||||
description = "Verify Tenant Admin gets a model of the start form type definition for network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY, TestGroup.NETWORKS })
|
||||
public void networkAdminGetsStartFormModel() throws Exception
|
||||
{
|
||||
restClient.usingTenant().createTenant(adminTenantUser);
|
||||
|
||||
+4
-2
@@ -10,7 +10,6 @@ import org.springframework.http.HttpStatus;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public class GetProcessDefinitionsCoreTests extends RestTest
|
||||
{
|
||||
private UserModel adminUserModel;
|
||||
@@ -28,6 +27,7 @@ public class GetProcessDefinitionsCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify any user gets process definitions for non-network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public void nonNetworkUserGetsProcessDefinitions() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(userModel)
|
||||
@@ -39,7 +39,7 @@ public class GetProcessDefinitionsCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify get process definitions using any network user for network enabled deployments with REST API status code is OK (200)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE, TestGroup.NETWORKS})
|
||||
public void networkUserGetsProcessDefinitions() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(adminUserModel).usingTenant().createTenant(adminTenantUser);
|
||||
@@ -53,6 +53,7 @@ public class GetProcessDefinitionsCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify call to get process definitions with invalid orderBy parameter with REST API and status code is BAD_REQUEST (400)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public void userGetProcessDefinitionsWithInvalidOrderBy() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(userModel)
|
||||
@@ -66,6 +67,7 @@ public class GetProcessDefinitionsCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify call to get process definitions with invalid where parameter with REST API and status code is BAD_REQUEST (400)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.CORE })
|
||||
public void userGetProcessDefinitionsWithInvalidWhere() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(userModel)
|
||||
|
||||
+2
-4
@@ -14,7 +14,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 10/13/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
|
||||
public class GetProcessDefinitionsSanityTests extends RestTest
|
||||
{
|
||||
@Autowired
|
||||
@@ -32,6 +31,7 @@ public class GetProcessDefinitionsSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.SANITY, description = "Verify Admin user gets process definitions for non-network deployments using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY })
|
||||
public void nonNetworkAdminGetsProcessDefinitions() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(adminUserModel);
|
||||
@@ -39,11 +39,9 @@ public class GetProcessDefinitionsSanityTests extends RestTest
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
}
|
||||
|
||||
// works on alfresco.server=172.29.100.215
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESS_DEFINITION },
|
||||
executionType = ExecutionType.SANITY, description = "Verify Tenant Admin user gets process definitions for network deployments using REST API and status code is OK (200)")
|
||||
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESS_DEFINITION, TestGroup.SANITY, TestGroup.NETWORKS})
|
||||
public void networkAdminGetsProcessDefinitions() throws Exception
|
||||
{
|
||||
restClient.usingTenant().createTenant(adminTenantUser);
|
||||
|
||||
@@ -21,7 +21,6 @@ import org.testng.annotations.Test;
|
||||
* @author Cristina Axinte
|
||||
*
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public class AddProcessCoreTests extends RestTest
|
||||
{
|
||||
private UserModel assignee, adminUser;
|
||||
@@ -30,6 +29,7 @@ public class AddProcessCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify non network admin is able to start new process using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void nonNetworkAdminUserStartsNewProcess() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
adminUser = dataUser.getAdminUser();
|
||||
@@ -52,6 +52,7 @@ public class AddProcessCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify start new process with empty request body using REST API returns status code is Bad Request (400)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void startNewProcessWithEmptyProcessBody() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
adminUser = dataUser.getAdminUser();
|
||||
@@ -67,6 +68,7 @@ public class AddProcessCoreTests extends RestTest
|
||||
@Bug(id = "ACE-5671")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify start new process with invalid request body using REST API returns status code is Bad Request (400)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void startNewProcessWithInvalidProcessDefInProcessBody() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
adminUser = dataUser.getAdminUser();
|
||||
@@ -80,6 +82,7 @@ public class AddProcessCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify start new process with invalid request body using REST API returns status code is Bad Request (400)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void startNewProcessWithInvalidVariablesInProcessBody1() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
adminUser = dataUser.getAdminUser();
|
||||
@@ -94,6 +97,7 @@ public class AddProcessCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify start new process with invalid request body using REST API returns status code is Bad Request (400)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void startNewProcessWithInvalidVariablesInProcessBody2() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
adminUser = dataUser.getAdminUser();
|
||||
@@ -108,6 +112,7 @@ public class AddProcessCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES },
|
||||
executionType = ExecutionType.REGRESSION, description = "Verify start new process with invalid request body using REST API returns status code is Bad Request (400)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void startNewProcessWithInvalidVariablesInProcessBody3() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
adminUser = dataUser.getAdminUser();
|
||||
|
||||
@@ -38,8 +38,9 @@ public class AddProcessItemCoreTests extends RestTest
|
||||
dataWorkflow.usingUser(userWhoStartsProcess).usingSite(siteModel).usingResource(document).createNewTaskAndAssignTo(assignee);
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Add process item using by the user who started the process.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Add process item using by the user who started the process.")
|
||||
public void addProcessItemByUserThatStartedTheProcess() throws Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(userWhoStartsProcess).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
@@ -49,11 +50,11 @@ public class AddProcessItemCoreTests extends RestTest
|
||||
processItem.assertThat().field("createdAt").isNotEmpty().and().field("size").is("19").and().field("createdBy").is(adminUser.getUsername()).and()
|
||||
.field("modifiedAt").isNotEmpty().and().field("name").is(document.getName()).and().field("modifiedBy").is(userWhoStartsProcess.getUsername())
|
||||
.and().field("id").isNotEmpty().and().field("mimeType").is(document.getFileType().mimeType);
|
||||
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Add process item by a random user.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Add process item by a random user.")
|
||||
public void addProcessItemByAnyUser() throws Exception
|
||||
{
|
||||
anotherUser = dataUser.createRandomTestUser();
|
||||
@@ -66,8 +67,9 @@ public class AddProcessItemCoreTests extends RestTest
|
||||
.containsSummary(String.format(RestErrorModel.ACCESS_INFORMATION_NOT_ALLOWED, processModel.getId()));
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Add process item using by the admin in same network.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE, TestGroup.NETWORKS })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Add process item using by the admin in same network.")
|
||||
public void addProcessItemByAdminSameNetwork() throws Exception
|
||||
{
|
||||
restClient.authenticateUser(adminUser);
|
||||
@@ -87,11 +89,11 @@ public class AddProcessItemCoreTests extends RestTest
|
||||
processItem.assertThat().field("createdAt").isNotEmpty().and().field("size").is("19").and().field("createdBy").is(adminUser.getUsername()).and()
|
||||
.field("modifiedAt").isNotEmpty().and().field("name").is(document.getName()).and().field("modifiedBy").is(adminUser.getUsername()).and()
|
||||
.field("id").isNotEmpty().and().field("mimeType").is(document.getFileType().mimeType);
|
||||
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Add process item using by admin in other network.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE, TestGroup.NETWORKS })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Add process item using by admin in other network.")
|
||||
public void addProcessItemByAdminInOtherNetwork() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
@@ -107,48 +109,47 @@ public class AddProcessItemCoreTests extends RestTest
|
||||
restClient.assertStatusCodeIs(HttpStatus.FORBIDDEN).assertLastError().containsSummary(RestErrorModel.PROCESS_RUNNING_IN_ANOTHER_TENANT);
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Adding process item is falling in case of invalid process id is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Adding process item is falling in case of invalid process id is provided")
|
||||
public void failedAddingProcessItemIfInvalidProcessIdIsProvided() throws Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(adminUser).withParams("maxItems=1").withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
processModel.setId("invalidProcessId");
|
||||
processItem = restClient.withWorkflowAPI().usingProcess(processModel).addProcessItem(document);
|
||||
|
||||
restClient.assertStatusCodeIs(HttpStatus.NOT_FOUND).assertLastError()
|
||||
.containsSummary(String.format(RestErrorModel.ENTITY_NOT_FOUND, "invalidProcessId"));
|
||||
}
|
||||
|
||||
@Bug(id = "ACE-5683")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Adding process item is falling in case of invalid body item is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Adding process item is falling in case of invalid body item is provided")
|
||||
public void failedAddingProcessItemIfInvalidItemBodyIsProvided() throws Exception
|
||||
{
|
||||
document.setNodeRef("invalidNodeRef");
|
||||
processItem = restClient.withWorkflowAPI().usingProcess(processModel).addProcessItem(document);
|
||||
|
||||
restClient.assertStatusCodeIs(HttpStatus.NOT_FOUND).assertLastError().containsSummary(String.format(RestErrorModel.ENTITY_NOT_FOUND, "invalidId"));
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Adding process item is falling in case of empty body item value is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Adding process item is falling in case of empty body item value is provided")
|
||||
public void failedAddingProcessItemIfEmptyItemBodyIsProvided() throws Exception
|
||||
{
|
||||
document.setNodeRef("");
|
||||
processItem = restClient.withWorkflowAPI().usingProcess(processModel).addProcessItem(document);
|
||||
|
||||
restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST).assertLastError().containsSummary(String.format(RestErrorModel.REQUIRED_TO_ADD, "itemId"));
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Adding process item is falling in case of incomplete body (empty) is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Adding process item is falling in case of incomplete body (empty) is provided")
|
||||
public void failedAddingProcessItemIfIncompleteBodyIsProvided() throws Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(adminUser).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
|
||||
RestRequest request = RestRequest.requestWithBody(HttpMethod.POST, "{}", "processes/{processId}/items", processModel.getId());
|
||||
restClient.processModel(RestItemModel.class, request);
|
||||
|
||||
restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST).assertLastError().containsSummary(String.format(RestErrorModel.REQUIRED_TO_ADD, "itemId"));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* @author iulia.cojocea
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY})
|
||||
public class AddProcessItemSanityTests extends RestTest
|
||||
{
|
||||
private FileModel document, document2;
|
||||
@@ -42,6 +41,7 @@ public class AddProcessItemSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Create non-existing process item")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY})
|
||||
public void addProcessItem() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
document2 = FileModel.getRandomFileModel(FileType.TEXT_PLAIN, "file content");
|
||||
@@ -66,6 +66,7 @@ public class AddProcessItemSanityTests extends RestTest
|
||||
@Bug(id= "MNT-16966")
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Add process item that already exists")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY})
|
||||
public void addProcessItemThatAlreadyExists() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
document2 = dataContent.usingSite(siteModel).createContent(DocumentType.XML);
|
||||
|
||||
@@ -15,7 +15,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 10/18/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class AddProcessSanityTests extends RestTest
|
||||
{
|
||||
private UserModel userWhoStartsProcess, assignee;
|
||||
@@ -24,7 +23,9 @@ public class AddProcessSanityTests extends RestTest
|
||||
private RestProcessModelsCollection processes;
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify non network user is able to start new process using REST API and status code is OK (200)")
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify non network user is able to start new process using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void nonNetworkUserStartsNewProcess() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
userWhoStartsProcess = dataUser.createRandomTestUser();
|
||||
@@ -41,8 +42,9 @@ public class AddProcessSanityTests extends RestTest
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify network user is able to start new process using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify network user is able to start new process using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY, TestGroup.NETWORKS })
|
||||
public void networkUserStartsNewProcess() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
|
||||
+19
-10
@@ -39,8 +39,9 @@ public class AddProcessVariableCoreTests extends RestTest
|
||||
dataWorkflow.usingUser(userWhoStartsProcess).usingSite(siteModel).usingResource(document).createNewTaskAndAssignTo(assignee);
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Add process variable using by the user who started the process.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Add process variable using by the user who started the process.")
|
||||
public void addProcessVariableByUserThatStartedTheProcess() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
@@ -52,8 +53,9 @@ public class AddProcessVariableCoreTests extends RestTest
|
||||
.is(processVariable.getValue());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Add process variable using by a random user.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Add process variable using by a random user.")
|
||||
public void addProcessVariableByAnyUser() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
@@ -65,8 +67,9 @@ public class AddProcessVariableCoreTests extends RestTest
|
||||
.is(processVariable.getValue());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Add process variable using by admin in other network.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE, TestGroup.NETWORKS })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Add process variable using by admin in other network.")
|
||||
public void addProcessVariableByAdminInOtherNetwork() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
@@ -84,8 +87,9 @@ public class AddProcessVariableCoreTests extends RestTest
|
||||
restClient.assertStatusCodeIs(HttpStatus.FORBIDDEN).assertLastError().containsSummary(RestErrorModel.PROCESS_RUNNING_IN_ANOTHER_TENANT);
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Adding process variable is falling in case invalid type is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Adding process variable is falling in case invalid type is provided")
|
||||
public void failedAddingProcessVariableIfInvalidTypeIsProvided() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:textarea");
|
||||
@@ -96,9 +100,10 @@ public class AddProcessVariableCoreTests extends RestTest
|
||||
restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST).assertLastError().containsSummary("Unsupported type of variable: 'd:textarea'.");
|
||||
}
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@Bug(id = "ACE-5674")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Adding process variable is falling in case invalid type prefix is provided")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Adding process variable is falling in case invalid type prefix is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void failedAddingProcessVariableIfInvalidTypePrefixIsProvided() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("ddt:text");
|
||||
@@ -109,8 +114,9 @@ public class AddProcessVariableCoreTests extends RestTest
|
||||
restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST).assertLastError().containsSummary("Namespace prefix ddt is not mapped to a namespace URI");
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Adding process variable is falling in case invalid value is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Adding process variable is falling in case invalid value is provided")
|
||||
public void failedAddingProcessVariableIfInvalidValueIsProvided() throws Exception
|
||||
{
|
||||
RestProcessVariableModel variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:int");
|
||||
@@ -122,8 +128,9 @@ public class AddProcessVariableCoreTests extends RestTest
|
||||
restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST).assertLastError().containsSummary("For input string: \"invalidValue\"");
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Adding process variable is falling in case missing required variable body (name) is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Adding process variable is falling in case missing required variable body (name) is provided")
|
||||
public void failedAddingProcessVariableIfMissingRequiredVariableBodyIsProvided() throws Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(adminUser).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
@@ -135,8 +142,9 @@ public class AddProcessVariableCoreTests extends RestTest
|
||||
restClient.assertStatusCodeIs(HttpStatus.BAD_REQUEST).assertLastError().containsSummary("Variable name is required.");
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Adding process variable is falling in case invalid variableBody (adding extra parameter in body) is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Adding process variable is falling in case invalid variableBody (adding extra parameter in body) is provided")
|
||||
public void failedAddingProcessVariableIfInvalidBodyIsProvided() throws Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(adminUser).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
@@ -149,8 +157,9 @@ public class AddProcessVariableCoreTests extends RestTest
|
||||
.containsSummary("Could not read content from HTTP request body: Unrecognized field \"scope\"");
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Adding process variable is falling in case empty name is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION, description = "Adding process variable is falling in case empty name is provided")
|
||||
public void failedAddingProcessVariableIfEmptyNameIsProvided() throws Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(adminUser).withWorkflowAPI().addProcess("activitiAdhoc", assignee, false, Priority.Normal);
|
||||
|
||||
+4
-2
@@ -19,7 +19,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* @author iulia.cojocea
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class AddProcessVariableSanityTests extends RestTest
|
||||
{
|
||||
private FileModel document;
|
||||
@@ -41,6 +40,7 @@ public class AddProcessVariableSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Create non-existing variable")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void addProcessVariable() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
@@ -58,6 +58,7 @@ public class AddProcessVariableSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Update existing variable")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void updateExistingProcessVariable() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
@@ -75,9 +76,9 @@ public class AddProcessVariableSanityTests extends RestTest
|
||||
processVariable.assertThat().field("value").is(newValue);
|
||||
}
|
||||
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Add process variable using admin user from same network")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY, TestGroup.NETWORKS })
|
||||
public void addProcessVariableByAdmin() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
@@ -97,6 +98,7 @@ public class AddProcessVariableSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Adding process variable is falling in case invalid variableBody is provided")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void failedAddingProcessVariableIfInvalidBodyIsProvided() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("incorrect type");
|
||||
|
||||
@@ -12,7 +12,6 @@ import org.springframework.http.HttpStatus;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public class DeleteProcessCoreTests extends RestTest
|
||||
{
|
||||
private UserModel userWhoAddsProcess, assignee;
|
||||
@@ -28,6 +27,7 @@ public class DeleteProcessCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify admin user is able to delete a process started by another user.")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void deleteProcessByAdminUser() throws Exception
|
||||
{
|
||||
process = restClient.authenticateUser(userWhoAddsProcess).withWorkflowAPI().addProcess("activitiAdhoc", assignee, false, Priority.Normal);
|
||||
@@ -42,6 +42,7 @@ public class DeleteProcessCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify User is not able to delete process with invalid id")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void deleteProcessWithInvalidId() throws Exception
|
||||
{
|
||||
process = restClient.authenticateUser(userWhoAddsProcess).withWorkflowAPI().addProcess("activitiAdhoc", assignee, false, Priority.Normal);
|
||||
@@ -55,6 +56,7 @@ public class DeleteProcessCoreTests extends RestTest
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify User is not able to delete process with empty id")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void deleteProcessWithEmptyId() throws Exception
|
||||
{
|
||||
process = restClient.authenticateUser(userWhoAddsProcess).withWorkflowAPI().addProcess("activitiAdhoc", assignee, false, Priority.Normal);
|
||||
|
||||
@@ -17,7 +17,6 @@ import org.springframework.http.HttpStatus;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public class DeleteProcessItemCoreTests extends RestTest
|
||||
{
|
||||
private FileModel document, secondDoc;
|
||||
@@ -40,6 +39,7 @@ public class DeleteProcessItemCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Delete process item with invalid id")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void deleteProcessItemWithInvalidItemId() throws Exception
|
||||
{
|
||||
restProcessModel = restClient.authenticateUser(userWhoStartsTask).withWorkflowAPI()
|
||||
@@ -54,6 +54,7 @@ public class DeleteProcessItemCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Delete process item with empty id")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void deleteProcessItemWithEmptyItemId() throws Exception
|
||||
{
|
||||
restProcessModel = restClient.authenticateUser(userWhoStartsTask).withWorkflowAPI()
|
||||
@@ -68,6 +69,7 @@ public class DeleteProcessItemCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Delete process item twice")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void deleteProcessItemTwice() throws Exception
|
||||
{
|
||||
restProcessModel = restClient.authenticateUser(userWhoStartsTask).withWorkflowAPI()
|
||||
|
||||
+2
-1
@@ -17,7 +17,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* @author iulia.cojocea
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class DeleteProcessItemSanityTests extends RestTest
|
||||
{
|
||||
private FileModel document, document2;
|
||||
@@ -39,6 +38,7 @@ public class DeleteProcessItemSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Delete existing process item")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void deleteProcessItem() throws Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(adminUser).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
@@ -53,6 +53,7 @@ public class DeleteProcessItemSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Try to delete existing process item using invalid processId")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void deleteProcessItemUsingInvalidProcessId() throws Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(adminUser).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
|
||||
@@ -14,7 +14,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 10/12/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class DeleteProcessSanityTests extends RestTest
|
||||
{
|
||||
private UserModel userWhoAddsProcess, assignee, anotherUser;
|
||||
@@ -28,8 +27,9 @@ public class DeleteProcessSanityTests extends RestTest
|
||||
anotherUser = dataUser.createRandomTestUser();
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify User is able to delete process started by him using REST API and status code is OK (204)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify User is able to delete process started by him using REST API and status code is OK (204)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void deleteProcessByUserWhoStartedProcess() throws Exception
|
||||
{
|
||||
process = restClient.authenticateUser(userWhoAddsProcess).withWorkflowAPI().addProcess("activitiAdhoc", assignee, false, Priority.Normal);
|
||||
@@ -41,8 +41,9 @@ public class DeleteProcessSanityTests extends RestTest
|
||||
restClient.withWorkflowAPI().getProcesses().assertThat().entriesListDoesNotContain("id", process.getId());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify User is able to delete process assigned to him using REST API and status code is OK (204)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify User is able to delete process assigned to him using REST API and status code is OK (204)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void deleteProcessByAssignedUser() throws Exception
|
||||
{
|
||||
process = restClient.authenticateUser(userWhoAddsProcess).withWorkflowAPI().addProcess("activitiAdhoc", assignee, false, Priority.Normal);
|
||||
@@ -54,7 +55,9 @@ public class DeleteProcessSanityTests extends RestTest
|
||||
restClient.withWorkflowAPI().getProcesses().assertThat().entriesListDoesNotContain("id", process.getId());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify User that is not involved in a process is not authorized to delete it using REST API and status code is 403")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify User that is not involved in a process is not authorized to delete it using REST API and status code is 403")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void deleteProcessByAnotherUser() throws Exception
|
||||
{
|
||||
process = restClient.authenticateUser(userWhoAddsProcess).withWorkflowAPI().addProcess("activitiAdhoc", assignee, false, Priority.Normal);
|
||||
|
||||
+3
-1
@@ -21,7 +21,6 @@ import org.testng.annotations.Test;
|
||||
* @author bogdan.bocancea
|
||||
*
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public class DeleteProcessVariableCoreTests extends RestTest
|
||||
{
|
||||
private FileModel document;
|
||||
@@ -44,6 +43,7 @@ public class DeleteProcessVariableCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Delete invalid process variable")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void deleteInvalidProcessVariable() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("x:InvalidVar");
|
||||
@@ -56,6 +56,7 @@ public class DeleteProcessVariableCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Delete empty process variable")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void deleteEmptyProcessVariable() throws Exception
|
||||
{
|
||||
variableModel = new RestProcessVariableModel("","", "d:text");
|
||||
@@ -68,6 +69,7 @@ public class DeleteProcessVariableCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Delete process variable twice")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void deleteProcessVariableTwice() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
|
||||
+2
-1
@@ -15,7 +15,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* @author iulia.cojocea
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class DeleteProcessVariableSanityTests extends RestTest
|
||||
{
|
||||
private FileModel document;
|
||||
@@ -37,6 +36,7 @@ public class DeleteProcessVariableSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Delete existing variable")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void deleteProcessVariable() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
@@ -51,6 +51,7 @@ public class DeleteProcessVariableSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Try to delete existing variable using invalid processId")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void deleteProcessVariableUsingInvalidProcessId() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
|
||||
@@ -18,8 +18,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* @author iulia.cojocea
|
||||
*/
|
||||
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class GetProcessItemsSanityTests extends RestTest
|
||||
{
|
||||
private FileModel document;
|
||||
@@ -40,6 +38,7 @@ public class GetProcessItemsSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify that user that started the process gets all process items")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessItemsUsingTheUserWhoStartedProcess() throws Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(userWhoStartsTask).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
@@ -50,6 +49,7 @@ public class GetProcessItemsSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify that user that is involved in the process gets all process items")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessItemsUsingUserInvolvedInProcess() throws Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(assignee).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
@@ -58,9 +58,9 @@ public class GetProcessItemsSanityTests extends RestTest
|
||||
items.assertThat().entriesListIsNotEmpty();
|
||||
}
|
||||
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Get process items using admin from same network")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY, TestGroup.NETWORKS })
|
||||
public void getProcessItemsUsingAdminUserFromSameNetwork() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
|
||||
@@ -14,7 +14,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 10/19/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class GetProcessSanityTests extends RestTest
|
||||
{
|
||||
private UserModel userWhoStartsProcess, assignee;
|
||||
@@ -28,8 +27,9 @@ public class GetProcessSanityTests extends RestTest
|
||||
addedProcess = restClient.authenticateUser(userWhoStartsProcess).withWorkflowAPI().addProcess("activitiAdhoc", assignee, false, CMISUtil.Priority.High);
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify user is able to get the process started by him using REST API and status code is OK (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify user is able to get the process started by him using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessByOwner() throws Exception
|
||||
{
|
||||
process = restClient.authenticateUser(userWhoStartsProcess).withWorkflowAPI().usingProcess(addedProcess).getProcess();
|
||||
@@ -38,8 +38,9 @@ public class GetProcessSanityTests extends RestTest
|
||||
.and().field("startUserId").is(addedProcess.getStartUserId());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify user is able to get the process assigned to him using REST API and status code is OK (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify user is able to get the process assigned to him using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessByAssignee() throws Exception
|
||||
{
|
||||
process = restClient.authenticateUser(assignee).withWorkflowAPI().usingProcess(addedProcess).getProcess();
|
||||
@@ -48,8 +49,9 @@ public class GetProcessSanityTests extends RestTest
|
||||
.and().field("startUserId").is(addedProcess.getStartUserId());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify admin is able to get any process using REST API and status code is OK (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify admin is able to get any process using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessByAdmin() throws Exception
|
||||
{
|
||||
process = restClient.authenticateUser(dataUser.getAdminUser()).withWorkflowAPI().usingProcess(addedProcess).getProcess();
|
||||
|
||||
@@ -16,7 +16,6 @@ import org.testng.annotations.Test;
|
||||
*
|
||||
* @author Cristina Axinte
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class GetProcessTasksSanityTests extends RestTest
|
||||
{
|
||||
private FileModel document;
|
||||
@@ -38,7 +37,9 @@ public class GetProcessTasksSanityTests extends RestTest
|
||||
.createMoreReviewersWorkflowAndAssignTo(assignee1, assignee2, assignee3);
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify user who started the process gets all tasks of started process with Rest API and response is successfull (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify user who started the process gets all tasks of started process with Rest API and response is successfull (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void userWhoStartedProcessCanGetProcessTasks() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
processTasks = restClient.authenticateUser(userModel).withWorkflowAPI().usingProcess(process).getProcessTasks();
|
||||
@@ -50,7 +51,9 @@ public class GetProcessTasksSanityTests extends RestTest
|
||||
.entriesListContains("assignee", assignee2.getUsername());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify any assignee user of the process gets all tasks of the process with Rest API and response is successfull (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify any assignee user of the process gets all tasks of the process with Rest API and response is successfull (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void assigneeUserCanGetAllProcessTasks() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
processTasks = restClient.authenticateUser(assignee1).withWorkflowAPI().usingProcess(process).getProcessTasks();
|
||||
@@ -61,7 +64,9 @@ public class GetProcessTasksSanityTests extends RestTest
|
||||
.entriesListContains("assignee", assignee2.getUsername());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify any assignee user of the process gets all tasks of the process with Rest API and response is successfull (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify any assignee user of the process gets all tasks of the process with Rest API and response is successfull (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void involvedUserCanGetAllProcessTasks() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
ProcessModel process = dataWorkflow.usingUser(userModel).usingSite(siteModel).usingResource(document)
|
||||
|
||||
+2
-1
@@ -18,7 +18,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* @author iulia.cojocea
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class GetProcessVariablesSanityTests extends RestTest
|
||||
{
|
||||
private FileModel document;
|
||||
@@ -39,6 +38,7 @@ public class GetProcessVariablesSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify that user that started the process gets all process variables")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessVariablesUsingTheUserWhoStartedProcess() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(userWhoStartsTask).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
@@ -49,6 +49,7 @@ public class GetProcessVariablesSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify get all process variables call using a user that is involved in the process")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessVariablesUsingUserInvolvedInProcess() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
processModel = restClient.authenticateUser(assignee).withWorkflowAPI().getProcesses().getOneRandomEntry().onModel();
|
||||
|
||||
@@ -25,7 +25,6 @@ import org.testng.annotations.Test;
|
||||
* @author Cristina Axinte
|
||||
*
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public class GetProcessesCoreTests extends RestTest
|
||||
{
|
||||
private FileModel document;
|
||||
@@ -46,10 +45,10 @@ public class GetProcessesCoreTests extends RestTest
|
||||
task2 = dataWorkflow.usingUser(userWhoStartsTask).usingSite(siteModel).usingResource(document).createNewTaskAndAssignTo(adminUser);
|
||||
process3 = dataWorkflow.usingUser(userWhoStartsTask).usingSite(siteModel).usingResource(document).createSingleReviewerTaskAndAssignTo(assignee);
|
||||
}
|
||||
|
||||
@Test(groups = { TestGroup.NETWORKS })
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify admin gets all processes from same network")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE, TestGroup.NETWORKS })
|
||||
public void getProcessFromSameNetworkUsingAdmin() throws Exception
|
||||
{
|
||||
adminTenantUser = UserModel.getAdminTenantUser();
|
||||
@@ -63,9 +62,10 @@ public class GetProcessesCoreTests extends RestTest
|
||||
|
||||
tenantProcesses.assertThat().entriesListContains("id", process.getId());
|
||||
}
|
||||
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify user gets all processes started by him ordered descending by id")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void getProcessesOrderedByIdDESC() throws Exception
|
||||
{
|
||||
RestProcessModelsCollection processes = restClient.authenticateUser(userWhoStartsTask).withParams("orderBy=id DESC")
|
||||
@@ -80,6 +80,7 @@ public class GetProcessesCoreTests extends RestTest
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.REGRESSION,
|
||||
description = "Verify user gets processes that matches a where clause")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.CORE })
|
||||
public void getProcessesWithWhereClauseAsParameter() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
RestProcessModelsCollection processes = restClient.authenticateUser(userWhoStartsTask).where("processDefinitionKey='activitiReview'")
|
||||
|
||||
@@ -13,7 +13,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* Created by Claudia Agache on 10/11/2016.
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class GetProcessesSanityTests extends RestTest
|
||||
{
|
||||
private FileModel document;
|
||||
@@ -33,8 +32,9 @@ public class GetProcessesSanityTests extends RestTest
|
||||
task = dataWorkflow.usingUser(userWhoStartsTask).usingSite(siteModel).usingResource(document).createNewTaskAndAssignTo(assignee);
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify User gets all processes started by him using REST API and status code is OK (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify User gets all processes started by him using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessesByUserWhoStartedProcess() throws Exception
|
||||
{
|
||||
allProcesses = restClient.authenticateUser(userWhoStartsTask).withWorkflowAPI().getProcesses();
|
||||
@@ -42,8 +42,9 @@ public class GetProcessesSanityTests extends RestTest
|
||||
allProcesses.assertThat().entriesListContains("id", task.getNodeRef());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify User gets all processes assigned to him using REST API and status code is OK (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify User gets all processes assigned to him using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessesByAssignedUser() throws Exception
|
||||
{
|
||||
allProcesses = restClient.authenticateUser(assignee).withWorkflowAPI().getProcesses();
|
||||
@@ -51,8 +52,9 @@ public class GetProcessesSanityTests extends RestTest
|
||||
allProcesses.assertThat().entriesListContains("id", task.getNodeRef());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify User that is not involved in a process can not get that process using REST API and status code is OK (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify User that is not involved in a process can not get that process using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessesByAnotherUser() throws Exception
|
||||
{
|
||||
allProcesses = restClient.authenticateUser(anotherUser).withWorkflowAPI().getProcesses();
|
||||
@@ -60,8 +62,9 @@ public class GetProcessesSanityTests extends RestTest
|
||||
allProcesses.assertThat().entriesListDoesNotContain("id", task.getNodeRef());
|
||||
}
|
||||
|
||||
@TestRail(section = { TestGroup.REST_API,
|
||||
TestGroup.PROCESSES }, executionType = ExecutionType.SANITY, description = "Verify Admin gets all processes, even if he isn't involved in a process, using REST API and status code is OK (200)")
|
||||
@TestRail(section = { TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify Admin gets all processes, even if he isn't involved in a process, using REST API and status code is OK (200)")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void getProcessesByAdmin() throws Exception
|
||||
{
|
||||
allProcesses = restClient.authenticateUser(dataUser.getAdminUser()).withWorkflowAPI().getProcesses();
|
||||
|
||||
+3
-1
@@ -17,7 +17,6 @@ import org.testng.annotations.Test;
|
||||
/**
|
||||
* @author iulia.cojocea
|
||||
*/
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public class UpdateProcessVariableSanityTests extends RestTest
|
||||
{
|
||||
private FileModel document;
|
||||
@@ -40,6 +39,7 @@ public class UpdateProcessVariableSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Create non-existing variable using put call")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void addProcessVariable() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
@@ -53,6 +53,7 @@ public class UpdateProcessVariableSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Update existing variable using put call")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void updateProcessVariable() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
@@ -67,6 +68,7 @@ public class UpdateProcessVariableSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = {TestGroup.REST_API, TestGroup.PROCESSES }, executionType = ExecutionType.SANITY,
|
||||
description = "Try to add process variable using an invalid processId")
|
||||
@Test(groups = { TestGroup.REST_API, TestGroup.WORKFLOW, TestGroup.PROCESSES, TestGroup.SANITY })
|
||||
public void addProcessVariableUsingInvalidProcessId() throws Exception
|
||||
{
|
||||
variableModel = RestProcessVariableModel.getRandomProcessVariableModel("d:text");
|
||||
|
||||
Reference in New Issue
Block a user