public class TestNGController extends Object implements com.occamlab.te.spi.jaxrs.TestSuiteController
Constructor and Description |
---|
TestNGController()
Default constructor uses the location given by the "user.home" 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 to facilitate test development.
|
(package private) void |
validateTestRunArgs(Document testRunArgs)
Validates the given set of test run arguments.
|
public static final String TE_BASE
public TestNGController()
public TestNGController(String outputDir)
outputDir
- A file URI that specifies the location of the directory in
which test results will be written. It will be created if it
does not exist.public static void main(String[] args) throws Exception
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.TestSuiteController
public String getVersion()
getVersion
in interface com.occamlab.te.spi.jaxrs.TestSuiteController
public String getTitle()
getTitle
in interface com.occamlab.te.spi.jaxrs.TestSuiteController
public Source doTestRun(Document testRunArgs) throws Exception
doTestRun
in interface com.occamlab.te.spi.jaxrs.TestSuiteController
Exception
void validateTestRunArgs(Document testRunArgs)
TestRunArg.GML
or
TestRunArg.IUT
must be present.testRunArgs
- A DOM Document containing a set of XML properties (key-value
pairs).IllegalArgumentException
- If any arguments are missing or deemed to be invalid for some
reason.loadFromXML
Copyright © 2020 Open Geospatial Consortium. All rights reserved.