public class TestNGController extends Object implements com.occamlab.te.spi.jaxrs.TestSuiteController
Constructor and Description |
---|
TestNGController()
Default constructor uses the location given by the "java.io.tmpdir"
system property as the root output directory.
|
TestNGController(String outputDir)
Construct a controller that writes results to the given output directory.
|
TestNGController(String outputDir,
boolean generateHtmlReport)
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 for running the test suite using a command-line
interface.
|
(package private) void |
validateTestRunArgs(Document testRunArgs)
Validates the test run arguments.
|
public TestNGController()
public TestNGController(String outputDir)
outputDir
- The location of the directory in which test results will be
written (a file system path or a 'file' URI). It will be
created if it does not exist.public TestNGController(String outputDir, boolean generateHtmlReport)
outputDir
- The location of the directory in which test results will be
written (a file system path or a 'file' URI). It will be
created if it does not exist.generateHtmlReport
- Enable HTML report generation.public static void main(String[] args) throws Exception
Synopsis
ets-*-aio.jar [-o|--outputDir $TMPDIR] [-d|--deleteSubjectOnFinish] [-h|--generateHtmlReport] [test-run-props.xml]
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
/srv/jenkins/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)
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 © 2024 Open Geospatial Consortium. All rights reserved.