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 outputDirUri)
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 test run arguments.
|
public TestNGController()
public TestNGController(String outputDirUri)
outputDirUri - 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.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 © 2020 Open Geospatial Consortium. All rights reserved.