Class SuiteFixtureListener

java.lang.Object
org.opengis.cite.sensorml20.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, suite attributes are still accessible from lower contexts.
See Also:
  • ISuite interface
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFinish(org.testng.ISuite suite)
    void
    onStart(org.testng.ISuite suite)
    (package private) void
    processIUTParameter(org.testng.ISuite suite)
    Processes test suite arguments and sets suite attributes accordingly.
    (package private) void
    processSchematronSchema(org.testng.ISuite suite)
    Adds a URI reference specifying the location of a Schematron schema.
    (package private) void
    processXmlReference(org.testng.ISuite suite)
    Extracts schema references from the XML resource identified by the supplied test run argument.
    (package private) void
    registerClientComponent(org.testng.ISuite suite)
    A client component is added to the suite fixture as the value of the SuiteAttribute.CLIENT attribute; it may be subsequently accessed via the ITestContext.getSuite() method.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 test suite arguments and sets suite attributes accordingly. The entity referenced by the iut argument is parsed and the resulting Document is set as the value of the "testSubject" attribute.
      Parameters:
      suite - An ISuite object representing a TestNG test suite.
    • processXmlReference

      void processXmlReference(org.testng.ISuite suite)
      Extracts schema references from the XML resource identified by the supplied test run argument. If this is a XML 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.
    • registerClientComponent

      void registerClientComponent(org.testng.ISuite suite)
      A client component is added to the suite fixture as the value of the SuiteAttribute.CLIENT attribute; it may be subsequently accessed via the ITestContext.getSuite() method.
      Parameters:
      suite - The test suite instance.