public final class TestGridUtil extends Object
| Constructor and Description |
|---|
TestGridUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
executeCommand(String command,
File workingDirectory)
Executes a command.
|
static String |
executeCommand(String command,
File workingDirectory,
DeploymentCreationResult deploymentCreationResult)
Executes a command.
|
static String |
getDeploymentPatternName(TestPlan testPlan)
Return the deployment pattern name under the DeploymentConfig of a
TestPlan. |
static String |
getParameterString(String fileInput,
Properties properties)
This method builds and returns the parameter string from given properties.
|
static String |
getTestGridHomePath()
Returns the path of the test grid home.
|
static Path |
getTestPlanDirectory()
Returns the directory location where the test-plans are stored.
|
static Path |
getTestRunArtifactsDirectory(TestPlan testPlan)
Returns the directory location where the test run artifacts resides.
|
static TestPlan |
toTestPlanEntity(DeploymentPattern deploymentPattern,
TestPlan testPlan)
This method generates TestPlan object model that from the given input parameters.
|
public static boolean executeCommand(String command, File workingDirectory) throws CommandExecutionException
command - Command to executeCommandExecutionExceptionpublic static String executeCommand(String command, File workingDirectory, DeploymentCreationResult deploymentCreationResult) throws CommandExecutionException
command - Command to execute.workingDirectory - Directory the command is executed.deploymentCreationResult - Deployment creation output.CommandExecutionException - When there is an error executing the command.public static String getTestGridHomePath() throws IOException
IOExceptionpublic static Path getTestPlanDirectory() throws IOException
IOException - thrown when error on calculating test plan artifacts directorypublic static Path getTestRunArtifactsDirectory(TestPlan testPlan) throws TestGridException
testPlan - test plan for getting the test run artifacts locationTestGridException - thrown when error on calculating test run artifacts directorypublic static String getParameterString(String fileInput, Properties properties)
properties - Properties with required paramters as key value pairspublic static TestPlan toTestPlanEntity(DeploymentPattern deploymentPattern, TestPlan testPlan) throws CommandExecutionException
deploymentPattern - deployment patterntestPlan - testPlan objectCommandExecutionExceptionpublic static String getDeploymentPatternName(TestPlan testPlan)
TestPlan.
If not found, return the provisioner name under Infrastructure.testPlan - the test-plan configCopyright © 2018 WSO2. All rights reserved.