Top Description Fields Constructors Methods
org.testng

pack-priv Class SuiteResult

extends Object
implements ISuiteResult, Comparable<SuiteResult>
Class Inheritance
All Implemented Interfaces
java.lang.Comparable, org.testng.ISuiteResult
Imports
javax.annotation.Nonnull, org.testng.collections.Objects, org.testng.log4testng.Logger, org.testng.xml.XmlSuite

This class logs the result of an entire Test Suite (defined by a property file).

Field Summary

Modifier and TypeField and Description
private final XmlSuite
private final ITestContext

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public int
compareTo(SuiteResult
the object to be compared.
other
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.
public XmlSuite

Returns:

Returns the suite.
getSuite
()

public ITestContext

Returns:

Returns the singleTestRunner.
getTestContext
()

Implements org.testng.ISuiteResult.getTestContext.

public String
toString()

Overrides java.lang.Object.toString.

Returns the test context name.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

m_suiteback to summary
private final XmlSuite m_suite
m_testContextback to summary
private final ITestContext m_testContext

Constructor Detail

SuiteResultback to summary
protected SuiteResult(XmlSuite suite, ITestContext tr)

Method Detail

compareToback to summary
public int compareTo(SuiteResult other)

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
other:SuiteResult

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
getSuiteback to summary
public XmlSuite getSuite()
Returns:XmlSuite

Returns the suite.

getTestContextback to summary
public ITestContext getTestContext()

Implements org.testng.ISuiteResult.getTestContext.

Returns:ITestContext

Returns the singleTestRunner.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns the test context name. Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override