Class SuiteFixtureListener

java.lang.Object
org.opengis.cite.iso19136.SuiteFixtureListener
All Implemented Interfaces:
org.testng.ISuiteListener, org.testng.ITestNGListener

public class SuiteFixtureListener extends Object implements org.testng.ISuiteListener
A listener that performs various tasks before and after a test suite is run, usually concerned with maintaining a shared test suite fixture. Since this listener is loaded using the ServiceLoader mechanism, its methods will be called before those of other suite listeners listed in the test suite definition and before any annotated configuration methods. Attributes set on an ISuite instance are not inherited by constituent test group contexts (ITestContext). However, they are still accessible from lower contexts.
See Also:
  • ISuite interface
  • Constructor Details

    • SuiteFixtureListener

      public SuiteFixtureListener()
  • Method Details

    • onStart

      public void onStart(org.testng.ISuite suite)
      Specified by:
      onStart in interface org.testng.ISuiteListener
    • onFinish

      public void onFinish(org.testng.ISuite suite)
      Specified by:
      onFinish in interface org.testng.ISuiteListener
    • processIUTParameter

      void processIUTParameter(org.testng.ISuite suite)
      Processes the TestRunArg.IUT test suite parameter that refers to a POSTed message entity. Its value is a URI referring to either an application schema or a GML document. If the resource is an XML Schema the TestRunArg.XSD parameter is set; otherwise it is assumed to be a GML data resource.
      Parameters:
      suite - An ISuite object representing a TestNG test suite.
    • processVersionParameter

      void processVersionParameter(org.testng.ISuite suite)
      Processes the TestRunArg.VERSION test suite parameter that refers to a POSTed message entity. Its value is a String representing the version of the GML to be tested.
      Parameters:
      suite - An ISuite object representing a TestNG test suite.
    • processGmlReference

      void processGmlReference(org.testng.ISuite suite)
      Extracts schema references from the GML resource identified by the supplied test run argument. If this is a GML instance document, the value of the standard xsi:schemaLocation attribute is used to locate the application schema(s). The schema references are added as the suite attribute SCHEMA_LOC_SET (of type Set<URI>).
      Parameters:
      suite - An ISuite object representing a TestNG test suite.
    • processSchematronSchema

      void processSchematronSchema(org.testng.ISuite suite)
      Adds a URI reference specifying the location of a Schematron schema.
      Parameters:
      suite - An ISuite object representing a TestNG test suite.
    • isXMLSchema

      boolean isXMLSchema(File file)
      Determines if the content of the given file represents an XML Schema. The document element must be {"http://www.w3.org/2001/XMLSchema"}schema.
      Parameters:
      file - A File object.
      Returns:
      true if the file contains an XML Schema; false otherwise.