JavaScript is disabled on your browser.
Method Detail
getStatus
int getStatus()
Returns:
The status of this result, using one of the constants above.
getParameters
Object [] getParameters()
Returns:
The parameters this method was invoked with.
getTestClass
IClass getTestClass()
Returns:
The test class used this object is a result for.
getThrowable
Throwable getThrowable()
Returns:
The throwable that was thrown while running the method, or null if no exception was
thrown.
getStartMillis
long getStartMillis()
Returns:
the start date for this test, in milliseconds.
getEndMillis
long getEndMillis()
Returns:
the end date for this test, in milliseconds.
getName
String getName()
Returns:
The name of this TestResult, typically identical to the name of the method.
isSuccess
boolean isSuccess()
Returns:
true if if this test run is a SUCCESS
getHost
String getHost()
Returns:
The host where this suite was run, or null if it was run locally. The returned string
has the form: host:port
getInstance
Object getInstance()
Returns:
The instance on which this method was run.
getTestName
String getTestName()
Returns:
The test name if this result's related instance implements ITest or
use @Test(testName=...), null otherwise.
getInstanceName
String getInstanceName()
wasRetried
boolean wasRetried()
Returns:
- true if the test was retried again by an implementation of IRetryAnalyzer
id
String id()
Returns:
- A unique id for the current JVM that represents a unique way of identifying a
specific test method's result.
Copyright © 2025. All rights reserved.