Top Description Fields Constructors Methods
org.testng

public Class SuiteRunnerWorker

Additional top-level class in compilation unit: SuiteResultCounts.

extends Object
implements IWorker<ISuite>
Class Inheritance
All Implemented Interfaces
org.testng.thread.IWorker, java.lang.Comparable, java.lang.Runnable
Imports
java.util.Collection, .List, .Map, javax.annotation.Nonnull, org.testng.collections.Lists, .Maps, .Objects, org.testng.internal.Utils, org.testng.internal.invokers.SuiteRunnerMap, org.testng.thread.IWorker, org.testng.xml.XmlSuite

An IWorker that is used to encapsulate and run Suite Runners
Author
cbeust, nullin

Field Summary

Modifier and TypeField and Description
private static final String
private final String
private final SuiteRunner
private final SuiteRunnerMap
private final Integer

Constructor Summary

AccessConstructor and Description
public
SuiteRunnerWorker(ISuite suiteRunner, SuiteRunnerMap suiteRunnerMap, int verbose, String defaultSuiteName)

Method Summary

Modifier and TypeMethod and Description
public int
compareTo(IWorker<ISuite>
the object to be compared.
arg0
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.
public int
public List<ISuite>
public long
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.
private void
runSuite(SuiteRunnerMap
map of suiteRunners that are updated with test results
suiteRunnerMap
,
XmlSuite
XML suites to run
xmlSuite
)

Runs a suite

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

LINEback to summary
private static final String LINE
m_defaultSuiteNameback to summary
private final String m_defaultSuiteName
m_suiteRunnerback to summary
private final SuiteRunner m_suiteRunner
m_suiteRunnerMapback to summary
private final SuiteRunnerMap m_suiteRunnerMap
m_verboseback to summary
private final Integer m_verbose

Constructor Detail

SuiteRunnerWorkerback to summary
public SuiteRunnerWorker(ISuite suiteRunner, SuiteRunnerMap suiteRunnerMap, int verbose, String defaultSuiteName)

Method Detail

compareToback to summary
public int compareTo(IWorker<ISuite> arg0)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
arg0:IWorker<ISuite>

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Annotations
@Override
getPriorityback to summary
public int getPriority()

Implements org.testng.thread.IWorker.getPriority.

Returns:int

Doc from org.testng.thread.IWorker.getPriority.

the priority of this task.

Annotations
@Override
getTasksback to summary
public List<ISuite> getTasks()

Implements org.testng.thread.IWorker.getTasks.

Returns:List<ISuite>

Doc from org.testng.thread.IWorker.getTasks.

list of tasks this worker is working on.

Annotations
@Override
getTimeOutback to summary
public long getTimeOut()

Implements org.testng.thread.IWorker.getTimeOut.

Returns:long

Doc from org.testng.thread.IWorker.getTimeOut.

the maximum time allowed for the worker to complete the task.

Annotations
@Override
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override
runSuiteback to summary
private void runSuite(SuiteRunnerMap suiteRunnerMap, XmlSuite xmlSuite)

Runs a suite

Parameters
suiteRunnerMap:SuiteRunnerMap

map of suiteRunners that are updated with test results

xmlSuite:XmlSuite

XML suites to run

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override