|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.jmeter.samplers.SampleResult
This is a nice packaging for the various information returned from taking a sample of an entry.
Field Summary | |
static String |
BINARY
Data type value indicating that the response data is binary. |
static String |
TEXT
Data type value indicating that the response data is text. |
Constructor Summary | |
SampleResult()
|
Method Summary | |
void |
addAssertionResult(AssertionResult assertResult)
|
void |
addSubResult(SampleResult subResult)
|
void |
configure(org.apache.avalon.framework.configuration.Configuration info)
|
AssertionResult[] |
getAssertionResults()
Gets the assertion results associated with this sample. |
String |
getDataEncoding()
Returns the dataEncoding. |
String |
getDataType()
|
String |
getResponseCode()
|
byte[] |
getResponseData()
Gets the responseData attribute of the SampleResult object. |
String |
getResponseMessage()
|
String |
getSampleLabel()
|
String |
getSamplerData()
|
SampleResult[] |
getSubResults()
Gets the subresults associated with this sample. |
String |
getThreadName()
|
long |
getTime()
Get the time it took this sample to occur. |
long |
getTimeStamp()
|
boolean |
isMarked(String filename)
|
boolean |
isSuccessful()
|
void |
setDataEncoding(String dataEncoding)
Sets the dataEncoding. |
void |
setDataType(String dataType)
|
void |
setMarked(String filename)
|
void |
setResponseCode(String code)
|
void |
setResponseData(byte[] response)
Sets the responseData attribute of the SampleResult object. |
void |
setResponseMessage(String msg)
|
void |
setSampleLabel(String label)
|
void |
setSamplerData(String s)
|
void |
setSuccessful(boolean success)
Sets the successful attribute of the SampleResult object. |
void |
setThreadName(String threadName)
|
void |
setTime(long t)
Set the time this sample took to occur. |
void |
setTimeStamp(long timeStamp)
|
String |
toString()
Returns the display name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String TEXT
getDataType()
,
setDataType(java.lang.String)
,
Constant Field Valuespublic static final String BINARY
getDataType()
,
setDataType(java.lang.String)
,
Constant Field ValuesConstructor Detail |
public SampleResult()
Method Detail |
public void setMarked(String filename)
public boolean isMarked(String filename)
public String getResponseCode()
public void setResponseCode(String code)
public String getResponseMessage()
public void setResponseMessage(String msg)
public String getThreadName()
public void setThreadName(String threadName)
public long getTimeStamp()
public void setTimeStamp(long timeStamp)
public String getSampleLabel()
public void setSampleLabel(String label)
public void addAssertionResult(AssertionResult assertResult)
public AssertionResult[] getAssertionResults()
public void addSubResult(SampleResult subResult)
public SampleResult[] getSubResults()
public void configure(org.apache.avalon.framework.configuration.Configuration info)
public void setTime(long t)
public void setResponseData(byte[] response)
response
- the new responseData valuepublic byte[] getResponseData()
public void setSamplerData(String s)
public String getSamplerData()
public long getTime()
public boolean isSuccessful()
public void setDataType(String dataType)
public String getDataType()
public void setSuccessful(boolean success)
success
- the new successful valuepublic String toString()
toString
in class Object
public String getDataEncoding()
public void setDataEncoding(String dataEncoding)
dataEncoding
- the dataEncoding to set
|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |