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  long m_endMillis
           
protected  int m_messageType
           
protected  String[] m_parameters
           
protected  String[] m_paramTypes
           
protected  String m_stackTrace
           
protected  long m_startMillis
           
protected  String m_suiteName
           
protected  String m_testClassName
           
protected  String m_testMethodName
           
protected  String m_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
 boolean equals(Object o)
           
 int getCurrentInvocationCount()
           
 long getEndMillis()
           
 String getInstanceName()
           
 int getInvocationCount()
           
 String getMessageAsString()
           
 String getMethod()
           
 String getName()
           
 String[] getParameters()
           
 String[] getParameterTypes()
           
 int getResult()
           
 String getStackTrace()
           
 long getStartMillis()
           
 String getSuiteName()
           
 String getTestClass()
           
 String getTestDescription()
           
 int hashCode()
           
 void setParameters(String[] params)
           
 String toDisplayString()
           
 String toString()
           
 
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.