org.testng.remote.strprotocol
Class TestResultMessage

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

public class TestResultMessage
extends Object
implements IStringMessage

An IStringMessage implementation for test results events.

Author:
Alexandru Popescu

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(ITestContext testCtx, ITestResult result)
           
TestResultMessage(String suiteName, String testName, ITestResult result)
           
 
Method Summary
 boolean equals(Object o)
           
 long getEndMillis()
           
 String getMessageAsString()
           
 String getMethod()
           
 String getName()
           
 String[] getParameters()
           
 String[] getParameterTypes()
           
 int getResult()
           
 String getStackTrace()
           
 long getStartMillis()
           
 String getSuiteName()
           
 String getTestClass()
           
 String getTestDescription()
           
 int hashCode()
           
 String toDisplayString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, 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(String suiteName,
                         String testName,
                         ITestResult result)

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


Copyright © 2010. All Rights Reserved.