org.testng.remote.strprotocol
Class TestResultMessage

java.lang.Object  extended by org.testng.remote.strprotocol.TestResultMessage
All Implemented Interfaces:
Serializable, IMessage, IStringMessage

public class TestResultMessage
extends Object
implements IStringMessage

An IStringMessage implementation for test results events.

Author:
Alexandru Popescu
See Also:
Serialized Form


Field Summary
protected  longm_endMillis
           
protected  intm_messageType
           
protected  String[]m_parameters
           
protected  String[]m_paramTypes
           
protected  Stringm_stackTrace
           
protected  longm_startMillis
           
protected  Stringm_suiteName
           
protected  Stringm_testClassName
           
protected  Stringm_testMethodName
           
protected  Stringm_testName
           
 
Constructor Summary
TestResultMessage(int resultType, String suiteName, String testName, String className, String methodName, String testDescriptor, String instanceName, String[] params, long startMillis, long endMillis, String stackTrace, int invocationCount, int currentInvocationCount)
          This constructor is used by the Eclipse client to initialize a result message based on what was received over the network.
TestResultMessage(ITestContext testCtx, ITestResult result)
           
TestResultMessage(String suiteName, String testName, ITestResult result)
          This constructor is used by RemoteTestNG to initialize a result message from an ITestResult.
 
Method Summary
 booleanequals(Object o)
           
 intgetCurrentInvocationCount()
           
 longgetEndMillis()
           
 StringgetInstanceName()
           
 intgetInvocationCount()
           
 StringgetMessageAsString()
           
 StringgetMethod()
           
 StringgetName()
           
 String[]getParameters()
           
 String[]getParameterTypes()
           
 intgetResult()
           
 StringgetStackTrace()
           
 longgetStartMillis()
           
 StringgetSuiteName()
           
 StringgetTestClass()
           
 StringgetTestDescription()
           
 inthashCode()
           
 voidsetParameters(String[] params)
           
 StringtoDisplayString()
           
 StringtoString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_messageType

protected int m_messageType

m_suiteName

protected String m_suiteName

m_testName

protected String m_testName

m_testClassName

protected String m_testClassName

m_testMethodName

protected String m_testMethodName

m_stackTrace

protected String m_stackTrace

m_startMillis

protected long m_startMillis

m_endMillis

protected long m_endMillis

m_parameters

protected String[] m_parameters

m_paramTypes

protected String[] m_paramTypes
Constructor Detail

TestResultMessage

public TestResultMessage(int resultType,                         String suiteName,                         String testName,                         String className,                         String methodName,                         String testDescriptor,                         String instanceName,                         String[] params,                         long startMillis,                         long endMillis,                         String stackTrace,                         int invocationCount,                         int currentInvocationCount)
This constructor is used by the Eclipse client to initialize a result message based on what was received over the network.


TestResultMessage

public TestResultMessage(String suiteName,                         String testName,                         ITestResult result)
This constructor is used by RemoteTestNG to initialize a result message from an ITestResult.


TestResultMessage

public TestResultMessage(ITestContext testCtx,                         ITestResult result)
Method Detail

getResult

public int getResult()

getMessageAsString

public String getMessageAsString()
Specified by:
getMessageAsString in interface IStringMessage

getSuiteName

public String getSuiteName()

getTestClass

public String getTestClass()

getMethod

public String getMethod()

getName

public String getName()

getStackTrace

public String getStackTrace()

getEndMillis

public long getEndMillis()

getStartMillis

public long getStartMillis()

getParameters

public String[] getParameters()

getParameterTypes

public String[] getParameterTypes()

getTestDescription

public String getTestDescription()

toDisplayString

public String toDisplayString()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getInvocationCount

public int getInvocationCount()

getCurrentInvocationCount

public int getCurrentInvocationCount()

toString

public String toString()
Overrides:
toString in class Object

setParameters

public void setParameters(String[] params)

getInstanceName

public String getInstanceName()


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