Package de.latlon.ets.core
Class AbstractTestNGController
java.lang.Object
de.latlon.ets.core.AbstractTestNGController
- All Implemented Interfaces:
com.occamlab.te.spi.jaxrs.TestSuiteController
public abstract class AbstractTestNGController
extends Object
implements com.occamlab.te.spi.jaxrs.TestSuiteController
Main test run controller oversees execution of TestNG test suites.
- Author:
- Lyn Goltz
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor uses the location given by the "user.home" system property as the root output directory.AbstractTestNGController(String outputDirUri) Construct a controller that writes results to the given output directory. -
Method Summary
Modifier and TypeMethodDescriptionprotected static FilefindXmlArgs(String[] args) getCode()protected abstract URLgetTitle()protected abstract voidvalidateTestRunArgs(Map<String, String> args) (package private) voidvalidateTestRunArgs(Document testRunArgs) Validates the given set of test run arguments.
-
Constructor Details
-
AbstractTestNGController
public AbstractTestNGController()Default constructor uses the location given by the "user.home" system property as the root output directory. -
AbstractTestNGController
Construct a controller that writes results to the given output directory.- Parameters:
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.
-
-
Method Details
-
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 given set of test run arguments. The test run is aborted if any checks fail.- Parameters:
testRunArgs- a DOM Document containing a set of XML properties (key-value pairs)- Throws:
IllegalArgumentException- if any required arguments are missing or invalid for some reason
-
validateTestRunArgs
-
getTestNgConfiguration
-
findXmlArgs
-