Package org.opengis.cite.cat30
Class TestNGController
java.lang.Object
org.opengis.cite.cat30.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 oversees execution of TestNG test suites.
- 
Constructor Summary
ConstructorsConstructorDescriptionDefault 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 voidA convenience method for running the test suite using a command-line interface.(package private) voidvalidateTestRunArgs(Document testRunArgs) Validates the test run arguments. 
- 
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- 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 for running the test suite using a command-line interface. The default values of the test run arguments are as follows:- XML properties file: ${user.home}/test-run-props.xml
 - outputDir: ${user.home}
 
Synopsis
ets-cat30-${version}-aio.jar [-o|--outputDir $TMPDIR] [test-run-props.xml]- Parameters:
 args- Test run arguments (optional).- Throws:
 Exception- If the test run cannot be executed (usually due to unsatisfied pre-conditions).
 - 
getCode
- Specified by:
 getCodein interfacecom.occamlab.te.spi.jaxrs.TestSuiteController
 - 
getVersion
- Specified by:
 getVersionin interfacecom.occamlab.te.spi.jaxrs.TestSuiteController
 - 
getTitle
- Specified by:
 getTitlein interfacecom.occamlab.te.spi.jaxrs.TestSuiteController
 - 
doTestRun
- Specified by:
 doTestRunin interfacecom.occamlab.te.spi.jaxrs.TestSuiteController- Throws:
 Exception
 - 
validateTestRunArgs
Validates the test run arguments. The test run is aborted if any of these checks fail.- Parameters:
 testRunArgs- A DOM Document containing a set of XML properties (key-value pairs).- Throws:
 IllegalArgumentException- If any test run arguments are missing or invalid.
 
 -