org.testng.remote.adapter
Class DefaultWorkerAdapter

java.lang.Object  extended by org.testng.remote.adapter.DefaultWorkerAdapter
All Implemented Interfaces:
IWorkerAdapter

public class DefaultWorkerAdapter
extends Object
implements IWorkerAdapter

Default Slave adapter, provides an adapter based on static port.

Author:
Guy Korland


Field Summary
static StringSLAVE_PORT
           
 
Constructor Summary
DefaultWorkerAdapter()
           
 
Method Summary
 XmlSuitegetSuite(long timeout)
          A blocking call to get the next Suite to test.
 voidinit(Properties prop)
          Initializes the worker adapter.
 voidreturnResult(ISuite result)
          Return a suite result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SLAVE_PORT

public static final String SLAVE_PORT
See Also:
Constant Field Values
Constructor Detail

DefaultWorkerAdapter

public DefaultWorkerAdapter()
Method Detail

init

public void init(Properties prop)          throws Exception
Description copied from interface: IWorkerAdapter
Initializes the worker adapter.

Specified by:
init in interface IWorkerAdapter
Parameters:
prop - holds the properties loaded from the remote.properties file.
Throws:
Exception - adapter might throw any exception on initialization, which will abort this adapter.

getSuite

public XmlSuite getSuite(long timeout)                  throws InterruptedException,                         IOException
Description copied from interface: IWorkerAdapter
A blocking call to get the next Suite to test.

Specified by:
getSuite in interface IWorkerAdapter
Parameters:
timeout - the maximum time to wait for the next suite.
Returns:
the next suite avaliable or null if the timeout has reached.
Throws:
InterruptedException - if interrupted while waiting.
IOException - might be thrown on IO error.

returnResult

public void returnResult(ISuite result)                  throws IOException
Description copied from interface: IWorkerAdapter
Return a suite result.

Specified by:
returnResult in interface IWorkerAdapter
Parameters:
result - the result to return
Throws:
IOException - might be thrown on IO error.


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