org.testng.remote
Class RemoteTestNG

java.lang.Object
  extended by org.testng.TestNG
      extended by org.testng.remote.RemoteTestNG

public class RemoteTestNG
extends TestNG

Extension of TestNG registering a remote TestListener.

Developer note: be aware that a copy of this source is distributed along with the Eclipse plugin to assure backward compatibility.

Author:
Alexandru Popescu

Nested Class Summary
 
Nested classes/interfaces inherited from class org.testng.TestNG
TestNG.ExitCodeListener
 
Field Summary
protected  String m_host
           
protected  int m_port
           
 
Fields inherited from class org.testng.TestNG
DEFAULT_COMMAND_LINE_SUITE_NAME, DEFAULT_COMMAND_LINE_TEST_NAME, DEFAULT_OUTPUTDIR, HAS_FAILURE, HAS_FSP, HAS_NO_TEST, HAS_SKIPPED, JAVADOC_ANNOTATION_TYPE, JDK_ANNOTATION_TYPE, m_cmdlineSuites, m_excludedGroups, m_hasTests, m_includedGroups, m_invokedMethodListeners, m_outputDir, m_sourceDirs, m_status, m_suiteListeners, m_suites, m_testListeners, m_testRunnerFactory, m_useDefaultListeners, SRC_SEPARATOR
 
Constructor Summary
RemoteTestNG()
           
 
Method Summary
protected  ITestRunnerFactory buildTestRunnerFactory()
          Override by the plugin if you need to configure differently the TestRunner (usually this is needed if different listeners/reporters are needed).
 void configure(Map cmdLineArgs)
          Configure the TestNG instance by reading the settings provided in the map.
static void main(String[] args)
           
 void run()
          Run TestNG.
 void setConnectionParameters(String host, int port)
           
 
Methods inherited from class org.testng.TestNG
addClassLoader, addInvokedMethodListener, addListener, addListener, addListener, addListener, addListener, addMethodSelector, checkConditions, createSuiteRunner, getAnnotationTransformer, getConfigFailurePolicy, getDefault, getDefaultSuiteName, getDefaultTestName, getOutputDirectory, getReporters, getStatus, getSuiteListeners, getTestListeners, hasFailure, hasFailureWithinSuccessPercentage, hasSkip, initializeSuitesAndJarFile, isJdk14, privateMain, runSuitesLocally, setAnnotations, setAnnotationTransformer, setCommandLineSuite, setConfigFailurePolicy, setDataProviderThreadCount, setDefaultSuiteName, setDefaultTestName, setExcludedGroups, setGroups, setHasFailure, setHasFailureWithinSuccessPercentage, setHasSkip, setJUnit, setListenerClasses, setMaster, setMethodInterceptor, setObjectFactory, setObjectFactory, setOutputDirectory, setParallel, setSkipFailedInvocationCounts, setSlave, setSourcePath, setStatus, setTarget, setTestClasses, setTestJar, setTestNGVersion, setTestRunnerFactory, setTestRunnerFactoryClass, setTestSuites, setThreadCount, setUseDefaultListeners, setVerbose, setXmlSuites, validateCommandLineParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_host

protected String m_host

m_port

protected int m_port
Constructor Detail

RemoteTestNG

public RemoteTestNG()
Method Detail

setConnectionParameters

public void setConnectionParameters(String host,
                                    int port)

configure

public void configure(Map cmdLineArgs)
Description copied from class: TestNG
Configure the TestNG instance by reading the settings provided in the map.

Overrides:
configure in class TestNG
Parameters:
cmdLineArgs - map of settings
See Also:
for setting keys

run

public void run()
Description copied from class: TestNG
Run TestNG.

Overrides:
run in class TestNG

buildTestRunnerFactory

protected ITestRunnerFactory buildTestRunnerFactory()
Override by the plugin if you need to configure differently the TestRunner (usually this is needed if different listeners/reporters are needed). Note: you don't need to worry about the wiring listener, because it is added automatically.


main

public static void main(String[] args)


Copyright © 2010. All Rights Reserved.