org.testng.remote.strprotocol
Class AbstractRemoteTestRunnerClient

java.lang.Object
  extended by org.testng.remote.strprotocol.AbstractRemoteTestRunnerClient

public abstract class AbstractRemoteTestRunnerClient
extends Object

The client side of the RemoteTestRunner. Handles the marshaling of the different messages.


Nested Class Summary
 class AbstractRemoteTestRunnerClient.ServerConnection
          Reads the message stream from the RemoteTestRunner
 
Field Summary
protected  IRemoteSuiteListener[] m_suiteListeners
          An array of listeners that are informed about test events.
protected  IRemoteTestListener[] m_testListeners
           
 
Constructor Summary
AbstractRemoteTestRunnerClient()
           
 
Method Summary
 IRemoteSuiteListener[] getSuiteListeners()
           
 IRemoteTestListener[] getTestListeners()
           
 boolean isRunning()
           
protected abstract  void notifyResultEvents(TestResultMessage testResultMessage)
           
protected abstract  void notifyStart(GenericMessage genericMessage)
           
protected abstract  void notifySuiteEvents(SuiteMessage suiteMessage)
           
protected abstract  void notifyTestEvents(TestMessage testMessage)
           
 void startListening(IRemoteSuiteListener[] suiteListeners, IRemoteTestListener[] testListeners, AbstractRemoteTestRunnerClient.ServerConnection serverConnection)
          Start listening to a test run.
 void stopTest()
          Requests to stop the remote test run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_suiteListeners

protected IRemoteSuiteListener[] m_suiteListeners
An array of listeners that are informed about test events.


m_testListeners

protected IRemoteTestListener[] m_testListeners
Constructor Detail

AbstractRemoteTestRunnerClient

public AbstractRemoteTestRunnerClient()
Method Detail

startListening

public void startListening(IRemoteSuiteListener[] suiteListeners,
                           IRemoteTestListener[] testListeners,
                           AbstractRemoteTestRunnerClient.ServerConnection serverConnection)
Start listening to a test run. Start a server connection that the RemoteTestRunner can connect to.


getSuiteListeners

public IRemoteSuiteListener[] getSuiteListeners()

getTestListeners

public IRemoteTestListener[] getTestListeners()

isRunning

public boolean isRunning()

stopTest

public void stopTest()
Requests to stop the remote test run.


notifyStart

protected abstract void notifyStart(GenericMessage genericMessage)

notifySuiteEvents

protected abstract void notifySuiteEvents(SuiteMessage suiteMessage)

notifyTestEvents

protected abstract void notifyTestEvents(TestMessage testMessage)

notifyResultEvents

protected abstract void notifyResultEvents(TestResultMessage testResultMessage)


Copyright © 2012. All Rights Reserved.