Package org.opengis.cite.iso19136
Class TestNGController
java.lang.Object
org.opengis.cite.iso19136.TestNGController
- All Implemented Interfaces:
com.occamlab.te.spi.jaxrs.TestSuiteController
public class TestNGController
extends Object
implements com.occamlab.te.spi.jaxrs.TestSuiteController
Main test run controller that executes TestNG test suites.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault 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. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
getTitle()
static void
A convenience method to facilitate test development.(package private) void
validateTestRunArgs
(Document testRunArgs) Validates the given set of test run arguments.
-
Field Details
-
TE_BASE
- See Also:
-
-
Constructor Details
-
TestNGController
public TestNGController()Default constructor uses the location given by the "user.home" system property as the root output directory. -
TestNGController
Construct a controller that writes results to the given output directory.- Parameters:
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.
-
-
Method Details
-
main
A convenience method to facilitate test development.- Parameters:
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.- Throws:
Exception
- If the test run cannot be executed (usually due to unsatisfied pre-conditions).
-
getCode
- Specified by:
getCode
in interfacecom.occamlab.te.spi.jaxrs.TestSuiteController
-
getVersion
- Specified by:
getVersion
in interfacecom.occamlab.te.spi.jaxrs.TestSuiteController
-
getTitle
- Specified by:
getTitle
in interfacecom.occamlab.te.spi.jaxrs.TestSuiteController
-
doTestRun
- Specified by:
doTestRun
in interfacecom.occamlab.te.spi.jaxrs.TestSuiteController
- Throws:
Exception
-
validateTestRunArgs
Validates the given set of test run arguments. The test run is aborted if any of the checks fail. At least one of the test run argumentsTestRunArg.GML
orTestRunArg.IUT
must be present.- Parameters:
testRunArgs
- A DOM Document containing a set of XML properties (key-value pairs).- Throws:
IllegalArgumentException
- If any arguments are missing or deemed to be invalid for some reason.- See Also:
-