org.testng.remote.adapter
Class DefaultMastertAdapter
java.lang.Object
org.testng.remote.adapter.DefaultMastertAdapter
- All Implemented Interfaces:
- IMasterAdapter
public class DefaultMastertAdapter
- extends Object
- implements IMasterAdapter
Default Master adapter, provides an adapter based on hosts file.
- Author:
- Guy Korland
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HOSTS
public static final String HOSTS
- See Also:
- Constant Field Values
DefaultMastertAdapter
public DefaultMastertAdapter()
init
public void init(Properties properties)
- Description copied from interface:
IMasterAdapter
- Initializes the Master adapter.
- Specified by:
init
in interface IMasterAdapter
runSuitesRemotely
public void runSuitesRemotely(XmlSuite suite,
RemoteResultListener listener)
throws IOException
- Description copied from interface:
IMasterAdapter
- Run a suite remotely.
- Specified by:
runSuitesRemotely
in interface IMasterAdapter
- Parameters:
suite
- the suite to send.listener
- the corresponded listener, should be called when result is ready.
- Throws:
IOException
- might be thrown on IO error.
awaitTermination
public void awaitTermination(long timeout)
throws InterruptedException
- Description copied from interface:
IMasterAdapter
- A blocking wait for the remote results to return.
- Specified by:
awaitTermination
in interface IMasterAdapter
- Parameters:
timeout
- the maximum time to wait for all the suites to return a result.
- Throws:
InterruptedException
Copyright © 2010. All Rights Reserved.