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,
Deployment deployment)
Executes a command.
|
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.
|
public static boolean executeCommand(String command, File workingDirectory) throws CommandExecutionException
command - Command to executeCommandExecutionExceptionpublic static String executeCommand(String command, File workingDirectory, Deployment deployment) throws CommandExecutionException
command - Command to execute.workingDirectory - Directory the command is executed.deployment - Deployment details for environment.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 directoryCopyright © 2018 WSO2. All rights reserved.