org.testng.remote.strprotocol
Class RemoteTestListener

java.lang.Object  extended by org.testng.remote.strprotocol.RemoteTestListener
All Implemented Interfaces:
IConfigurationListener, IConfigurationListener2, org.testng.internal.IResultListener, org.testng.internal.IResultListener2, ITestListener, ITestNGListener

public class RemoteTestListener
extends Object
implements org.testng.internal.IResultListener2

A special listener that remote the event with string protocol.

Author:
Alexandru Popescu


Constructor Summary
RemoteTestListener(ISuite suite, XmlTest test, MessageHub msh)
           
 
Method Summary
 voidbeforeConfiguration(ITestResult tr)
          Invoked before a configuration method is invoked.
 voidonConfigurationFailure(ITestResult itr)
          Invoked whenever a configuration method failed.
 voidonConfigurationSkip(ITestResult itr)
          Invoked whenever a configuration method was skipped.
 voidonConfigurationSuccess(ITestResult itr)
          Invoked whenever a configuration method succeeded.
 voidonFinish(ITestContext testCtx)
          Invoked after all the tests have run and all their Configuration methods have been called.
 voidonStart(ITestContext testCtx)
          Invoked after the test class is instantiated and before any configuration method is called.
 voidonTestFailedButWithinSuccessPercentage(ITestResult testResult)
          Invoked each time a method fails but has been annotated with successPercentage and this failure still keeps it within the success percentage requested.
 voidonTestFailure(ITestResult testResult)
          Invoked each time a test fails.
 voidonTestSkipped(ITestResult testResult)
          Invoked each time a test is skipped.
 voidonTestStart(ITestResult testResult)
          Invoked each time before a test will be invoked.
 voidonTestSuccess(ITestResult testResult)
          Invoked each time a test succeeds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteTestListener

public RemoteTestListener(ISuite suite,                          XmlTest test,                          MessageHub msh)
Method Detail

onStart

public void onStart(ITestContext testCtx)
Description copied from interface: ITestListener
Invoked after the test class is instantiated and before any configuration method is called.

Specified by:
onStart in interface ITestListener

onFinish

public void onFinish(ITestContext testCtx)
Description copied from interface: ITestListener
Invoked after all the tests have run and all their Configuration methods have been called.

Specified by:
onFinish in interface ITestListener

onTestStart

public void onTestStart(ITestResult testResult)
Description copied from interface: ITestListener
Invoked each time before a test will be invoked. The ITestResult is only partially filled with the references to class, method, start millis and status.

Specified by:
onTestStart in interface ITestListener
Parameters:
testResult - the partially filled ITestResult
See Also:
ITestResult.STARTED

beforeConfiguration

public void beforeConfiguration(ITestResult tr)
Description copied from interface: IConfigurationListener2
Invoked before a configuration method is invoked.

Specified by:
beforeConfiguration in interface IConfigurationListener2

onTestFailedButWithinSuccessPercentage

public void onTestFailedButWithinSuccessPercentage(ITestResult testResult)
Description copied from interface: ITestListener
Invoked each time a method fails but has been annotated with successPercentage and this failure still keeps it within the success percentage requested.

Specified by:
onTestFailedButWithinSuccessPercentage in interface ITestListener
Parameters:
testResult - ITestResult containing information about the run test
See Also:
ITestResult.SUCCESS_PERCENTAGE_FAILURE

onTestFailure

public void onTestFailure(ITestResult testResult)
Description copied from interface: ITestListener
Invoked each time a test fails.

Specified by:
onTestFailure in interface ITestListener
Parameters:
testResult - ITestResult containing information about the run test
See Also:
ITestResult.FAILURE

onTestSkipped

public void onTestSkipped(ITestResult testResult)
Description copied from interface: ITestListener
Invoked each time a test is skipped.

Specified by:
onTestSkipped in interface ITestListener
Parameters:
testResult - ITestResult containing information about the run test
See Also:
ITestResult.SKIP

onTestSuccess

public void onTestSuccess(ITestResult testResult)
Description copied from interface: ITestListener
Invoked each time a test succeeds.

Specified by:
onTestSuccess in interface ITestListener
Parameters:
testResult - ITestResult containing information about the run test
See Also:
ITestResult.SUCCESS

onConfigurationFailure

public void onConfigurationFailure(ITestResult itr)
Description copied from interface: IConfigurationListener
Invoked whenever a configuration method failed.

Specified by:
onConfigurationFailure in interface IConfigurationListener
See Also:
IConfigurationListener.onConfigurationFailure(org.testng.ITestResult)

onConfigurationSkip

public void onConfigurationSkip(ITestResult itr)
Description copied from interface: IConfigurationListener
Invoked whenever a configuration method was skipped.

Specified by:
onConfigurationSkip in interface IConfigurationListener
See Also:
IConfigurationListener.onConfigurationSkip(org.testng.ITestResult)

onConfigurationSuccess

public void onConfigurationSuccess(ITestResult itr)
Description copied from interface: IConfigurationListener
Invoked whenever a configuration method succeeded.

Specified by:
onConfigurationSuccess in interface IConfigurationListener
See Also:
IConfigurationListener.onConfigurationSuccess(org.testng.ITestResult)


Copyright © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14