org.testng
Interface ITestResult

All Superinterfaces:
Comparable<ITestResult>, IAttributes, Serializable

public interface ITestResult
extends IAttributes, Comparable<ITestResult>

This class describes the result of a test.

Since:
May 2, 2004
Version:
$Revision: 721 $, $Date: 2009-05-23 09:55:46 -0700 (Sat, 23 May 2009) $
Author:
Cedric Beust, May 2, 2004


Field Summary
static intFAILURE
           
static intSKIP
           
static intSTARTED
           
static intSUCCESS
           
static intSUCCESS_PERCENTAGE_FAILURE
           
 
Method Summary
 longgetEndMillis()
           
 StringgetHost()
           
 ObjectgetInstance()
          The instance on which this method was run.
 StringgetInstanceName()
           
 ITestNGMethodgetMethod()
           
 StringgetName()
           
 Object[]getParameters()
           
 longgetStartMillis()
           
 intgetStatus()
           
 IClassgetTestClass()
           
 ITestContextgetTestContext()
           
 StringgetTestName()
          If this result's related instance implements ITest, returns its test name, otherwise returns null.
 ThrowablegetThrowable()
           
 booleanisSuccess()
           
 voidsetEndMillis(long millis)
           
 voidsetParameters(Object[] parameters)
           
 voidsetStatus(int status)
           
 voidsetThrowable(Throwable throwable)
           
 
Methods inherited from interface org.testng.IAttributes
getAttribute, getAttributeNames, removeAttribute, setAttribute
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

SUCCESS

static final int SUCCESS
See Also:
Constant Field Values

FAILURE

static final int FAILURE
See Also:
Constant Field Values

SKIP

static final int SKIP
See Also:
Constant Field Values

SUCCESS_PERCENTAGE_FAILURE

static final int SUCCESS_PERCENTAGE_FAILURE
See Also:
Constant Field Values

STARTED

static final int STARTED
See Also:
Constant Field Values
Method Detail

getStatus

int getStatus()
Returns:
The status of this result, using one of the constants above.

setStatus

void setStatus(int status)

getMethod

ITestNGMethod getMethod()
Returns:
The test method this result represents.

getParameters

Object[] getParameters()
Returns:
The parameters this method was invoked with.

setParameters

void setParameters(Object[] parameters)

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.

setThrowable

void setThrowable(Throwable throwable)

getStartMillis

long getStartMillis()
Returns:
the start date for this test, in milliseconds.

getEndMillis

long getEndMillis()
Returns:
the end date for this test, in milliseconds.

setEndMillis

void setEndMillis(long millis)

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()
The instance on which this method was run.


getTestName

String getTestName()
If this result's related instance implements ITest, returns its test name, otherwise returns null.


getInstanceName

String getInstanceName()

getTestContext

ITestContext getTestContext()
Returns:
the ITestContext for this test result.


Copyright © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14