org.testng.remote.strprotocol
Class TestResultMessage
java.lang.Object
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
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. |
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
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)
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.