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 Details

    • AbstractTestNGController

      public AbstractTestNGController()
      Default constructor uses the location given by the "user.home" system property as the root output directory.
    • AbstractTestNGController

      public AbstractTestNGController(String outputDirUri)
      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

      public String getCode()
      Specified by:
      getCode in interface com.occamlab.te.spi.jaxrs.TestSuiteController
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface com.occamlab.te.spi.jaxrs.TestSuiteController
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface com.occamlab.te.spi.jaxrs.TestSuiteController
    • doTestRun

      public Source doTestRun(Document testRunArgs) throws Exception
      Specified by:
      doTestRun in interface com.occamlab.te.spi.jaxrs.TestSuiteController
      Throws:
      Exception
    • validateTestRunArgs

      void validateTestRunArgs(Document testRunArgs) throws IllegalArgumentException
      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

      protected abstract void validateTestRunArgs(Map<String,String> args)
    • getTestNgConfiguration

      protected abstract URL getTestNgConfiguration()
    • findXmlArgs

      protected static File findXmlArgs(String[] args)