org.opengis.cite.owc
Class SuiteFixtureListener

java.lang.Object
  extended by org.opengis.cite.owc.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
SuiteFixtureListener()
           
 
Method Summary
 void onFinish(org.testng.ISuite suite)
           
 void onStart(org.testng.ISuite suite)
           
(package private)  void processSuiteParameters(org.testng.ISuite suite)
          Processes test suite parameters and sets suite attributes accordingly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuiteFixtureListener

public SuiteFixtureListener()
Method Detail

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

processSuiteParameters

void processSuiteParameters(org.testng.ISuite suite)
Processes test suite parameters and sets suite attributes accordingly. For example, parsing the entity referenced by the "iut" parameter value and setting the resulting Document as the value of the "testSubject" attribute.

Parameters:
suite - An ISuite object representing a TestNG test suite.


Copyright © 2014. All Rights Reserved.