public class TestNGController extends Object implements com.occamlab.te.spi.jaxrs.TestSuiteController
| Constructor and Description |
|---|
TestNGController()
Default constructor uses the location given by the "java.io.tmpdir" system property
as the root output directory.
|
TestNGController(String outputDir)
Construct a controller that writes results to the given output directory.
|
| Modifier and Type | Method and Description |
|---|---|
Source |
doTestRun(Document testRunArgs) |
String |
getCode() |
String |
getTitle() |
String |
getVersion() |
static void |
main(String[] args)
A convenience method for running the test suite using a command-line interface.
|
(package private) void |
validateTestRunArgs(Document testRunArgs)
Validates the test run arguments.
|
public TestNGController()
public TestNGController(String outputDir)
outputDir - The location of the directory in which test results will be
written (a file system path or a 'file' URI). It will be created if it does not
exist.public static void main(String[] args) throws Exception
Synopsis
ets-*-aio.jar [-o|--outputDir $TMPDIR] [-d|--deleteSubjectOnFinish] [test-run-props.xml]
args - Test run arguments (optional). The first argument must refer to an XML
properties file containing the expected set of test run arguments. If no argument
is supplied, the file located at ${user.home}/test-run-props.xml will be used.Exception - If the test run cannot be executed (usually due to unsatisfied
pre-conditions).public String getCode()
getCode in interface com.occamlab.te.spi.jaxrs.TestSuiteControllerpublic String getVersion()
getVersion in interface com.occamlab.te.spi.jaxrs.TestSuiteControllerpublic String getTitle()
getTitle in interface com.occamlab.te.spi.jaxrs.TestSuiteControllerpublic Source doTestRun(Document testRunArgs) throws Exception
doTestRun in interface com.occamlab.te.spi.jaxrs.TestSuiteControllerExceptionvoid validateTestRunArgs(Document testRunArgs)
testRunArgs - A DOM Document containing a set of XML properties (key-value
pairs).IllegalArgumentException - If any arguments are missing or invalid for some
reason.Copyright © 2024 Open Geospatial Consortium. All rights reserved.