public class TestResultMessage extends Object implements IStringMessage
IStringMessage
implementation for test results events.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
protected int m_messageType
protected String m_suiteName
protected String m_testName
protected String m_testClassName
protected String m_testMethodName
protected String m_stackTrace
protected long m_startMillis
protected long m_endMillis
protected String[] m_parameters
protected String[] m_paramTypes
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)
public TestResultMessage(String suiteName, String testName, ITestResult result)
public TestResultMessage(ITestContext testCtx, ITestResult result)
public int getResult()
public String getMessageAsString()
getMessageAsString
in interface IStringMessage
public String getSuiteName()
public String getTestClass()
public String getMethod()
public String getName()
public String getStackTrace()
public long getEndMillis()
public long getStartMillis()
public String[] getParameters()
public String[] getParameterTypes()
public String getTestDescription()
public String toDisplayString()
public int getInvocationCount()
public int getCurrentInvocationCount()
public void setParameters(String[] params)
public String getInstanceName()
Copyright © 2013. All Rights Reserved.