public abstract class AbstractRemoteTestNG extends org.testng.TestNG implements IRemoteTestNG
Modifier and Type | Field and Description |
---|---|
protected org.testng.ITestRunnerFactory |
m_customTestRunnerFactory |
Constructor and Description |
---|
AbstractRemoteTestNG() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.testng.ITestRunnerFactory |
buildTestRunnerFactory()
Override by the plugin if you need to configure differently the
TestRunner
(usually this is needed if different listeners/reporters are needed). |
protected boolean |
canRun()
run after
initialize() , tell if it's ready for running the test |
void |
configure(org.testng.CommandLineArgs cla) |
protected abstract org.testng.ITestRunnerFactory |
createDelegatingTestRunnerFactory(org.testng.ITestRunnerFactory trf,
MessageHub smsh) |
static String |
defaultIfStringEmpty(String s,
String defaultValue) |
void |
dontExit(boolean dontExit) |
protected String |
getHost() |
protected int |
getPort() |
protected void |
initialize() |
static boolean |
isStringEmpty(String s) |
void |
run() |
void |
setAck(boolean ack) |
void |
setDebug(boolean debug) |
void |
setHost(String host) |
void |
setPort(Integer port) |
void |
setProtocol(String protocol) |
void |
setSerPort(Integer serPort) |
static void |
validateCommandLineParameters(org.testng.CommandLineArgs args) |
addAlterSuiteListener, addClassLoader, addExecutionListener, addInvokedMethodListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addMethodSelector, configure, getAnnotationTransformer, getConfigFailurePolicy, getConfiguration, getDefault, getDefaultSuiteName, getDefaultTestName, getEnd, getOutputDirectory, getReporters, getServiceLoaderListeners, getStart, getStatus, getSuiteListeners, getSuiteThreadPoolSize, getTestListeners, hasFailure, hasFailureWithinSuccessPercentage, hasSkip, initializeEverything, initializeSuitesAndJarFile, isJdk14, main, privateMain, runSuites, runSuitesLocally, setAnnotationTransformer, setCommandLineSuite, setConfigFailurePolicy, setConfigFailurePolicy, setDataProviderThreadCount, setDefaultSuiteName, setDefaultTestName, setExcludedGroups, setGroupByInstances, setGroups, setHasFailure, setHasFailureWithinSuccessPercentage, setHasSkip, setJUnit, setListenerClasses, setMethodInterceptor, setMixed, setObjectFactory, setObjectFactory, setOutputDirectory, setParallel, setParallel, setPreserveOrder, setRandomizeSuites, setServiceLoaderClassLoader, setSkipFailedInvocationCounts, setSourcePath, setSuiteThreadPoolSize, setTestClasses, setTestJar, setTestNames, setTestNGVersion, setTestRunnerFactory, setTestSuites, setThreadCount, setUseDefaultListeners, setVerbose, setXmlPathInJar, setXmlSuites
protected org.testng.ITestRunnerFactory m_customTestRunnerFactory
public void dontExit(boolean dontExit)
dontExit
in interface IRemoteTestNG
public void setDebug(boolean debug)
setDebug
in interface IRemoteTestNG
public void setAck(boolean ack)
setAck
in interface IRemoteTestNG
public void setHost(String host)
setHost
in interface IRemoteTestNG
public void setSerPort(Integer serPort)
setSerPort
in interface IRemoteTestNG
public void setProtocol(String protocol)
setProtocol
in interface IRemoteTestNG
public void setPort(Integer port)
setPort
in interface IRemoteTestNG
public void configure(org.testng.CommandLineArgs cla)
configure
in interface IRemoteTestNG
configure
in class org.testng.TestNG
public static void validateCommandLineParameters(org.testng.CommandLineArgs args)
public static boolean isStringEmpty(String s)
public void run()
run
in interface IRemoteTestNG
run
in class org.testng.TestNG
protected void initialize()
protected boolean canRun()
initialize()
, tell if it's ready for running the testtrue
for ready.protected abstract org.testng.ITestRunnerFactory buildTestRunnerFactory()
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.protected String getHost()
protected int getPort()
protected abstract org.testng.ITestRunnerFactory createDelegatingTestRunnerFactory(org.testng.ITestRunnerFactory trf, MessageHub smsh)
Copyright © 2018. All rights reserved.