Package org.testng
Class SuiteRunnerWorker
java.lang.Object
org.testng.SuiteRunnerWorker
An
IWorker
that is used to encapsulate and run Suite Runners-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private final String
private final SuiteRunner
private final SuiteRunnerMap
private final Integer
-
Constructor Summary
ConstructorsConstructorDescriptionSuiteRunnerWorker
(ISuite suiteRunner, SuiteRunnerMap suiteRunnerMap, int verbose, String defaultSuiteName) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.testng.thread.IWorker
completed, getCurrentThreadId, getThreadIdToRunOn, setThreadIdToRunOn
-
Field Details
-
LINE
- See Also:
-
m_suiteRunner
-
m_verbose
-
m_defaultSuiteName
-
m_suiteRunnerMap
-
-
Constructor Details
-
SuiteRunnerWorker
public SuiteRunnerWorker(ISuite suiteRunner, SuiteRunnerMap suiteRunnerMap, int verbose, String defaultSuiteName)
-
-
Method Details
-
runSuite
Runs a suite- Parameters:
suiteRunnerMap
- map of suiteRunners that are updated with test resultsxmlSuite
- XML suites to run
-
run
public void run() -
compareTo
- Specified by:
compareTo
in interfaceComparable<IWorker<ISuite>>
-
getTasks
-
toString
-
getTimeOut
public long getTimeOut()- Specified by:
getTimeOut
in interfaceIWorker<ISuite>
- Returns:
- the maximum time allowed for the worker to complete the task.
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceIWorker<ISuite>
- Returns:
- the priority of this task.
-