Class LightAirNGListener

java.lang.Object
net.sf.lightair.LightAirNGListener
All Implemented Interfaces:
org.testng.IInvokedMethodListener, org.testng.ITestListener, org.testng.ITestNGListener

public class LightAirNGListener extends Object implements org.testng.IInvokedMethodListener, org.testng.ITestListener
Light air TestNG listener.

To enable Light air on a TestNG test, annotate it as follows:

@Listeners(LightAirNGListener.class)
public class MyTest {
}

Then use annotations @Setup, @Verify to define actions Light air should take on the test.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterInvocation(org.testng.IInvokedMethod iInvokedMethod, org.testng.ITestResult iTestResult)
    Method executed after every test method handling db verification
    void
    beforeInvocation(org.testng.IInvokedMethod iInvokedMethod, org.testng.ITestResult iTestResult)
    Method executed before every test method handling db setup and base url for JWebUnit
    void
    onFinish(org.testng.ITestContext iTestContext)
     
    void
    onStart(org.testng.ITestContext iTestContext)
     
    void
    onTestFailedButWithinSuccessPercentage(org.testng.ITestResult iTestResult)
     
    void
    onTestFailure(org.testng.ITestResult iTestResult)
     
    void
    onTestSkipped(org.testng.ITestResult iTestResult)
     
    void
    onTestStart(org.testng.ITestResult iTestResult)
     
    void
    onTestSuccess(org.testng.ITestResult iTestResult)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.testng.IInvokedMethodListener

    afterInvocation, beforeInvocation

    Methods inherited from interface org.testng.ITestListener

    onTestFailedWithTimeout

    Methods inherited from interface org.testng.ITestNGListener

    isEnabled
  • Constructor Details

    • LightAirNGListener

      public LightAirNGListener()
  • Method Details

    • beforeInvocation

      public void beforeInvocation(org.testng.IInvokedMethod iInvokedMethod, org.testng.ITestResult iTestResult)
      Method executed before every test method handling db setup and base url for JWebUnit
      Specified by:
      beforeInvocation in interface org.testng.IInvokedMethodListener
    • afterInvocation

      public void afterInvocation(org.testng.IInvokedMethod iInvokedMethod, org.testng.ITestResult iTestResult)
      Method executed after every test method handling db verification
      Specified by:
      afterInvocation in interface org.testng.IInvokedMethodListener
    • onFinish

      public void onFinish(org.testng.ITestContext iTestContext)
      Specified by:
      onFinish in interface org.testng.ITestListener
    • onTestStart

      public void onTestStart(org.testng.ITestResult iTestResult)
      Specified by:
      onTestStart in interface org.testng.ITestListener
    • onTestSuccess

      public void onTestSuccess(org.testng.ITestResult iTestResult)
      Specified by:
      onTestSuccess in interface org.testng.ITestListener
    • onTestFailure

      public void onTestFailure(org.testng.ITestResult iTestResult)
      Specified by:
      onTestFailure in interface org.testng.ITestListener
    • onTestSkipped

      public void onTestSkipped(org.testng.ITestResult iTestResult)
      Specified by:
      onTestSkipped in interface org.testng.ITestListener
    • onTestFailedButWithinSuccessPercentage

      public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult iTestResult)
      Specified by:
      onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListener
    • onStart

      public void onStart(org.testng.ITestContext iTestContext)
      Specified by:
      onStart in interface org.testng.ITestListener