|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transaction
Aggregate information about a transaction in a script. This object contains basic timing information, such as the start and end time, as well as the total number of bytes transferred during the transaction. It also holds a flag that indicates if the transaction is considered a success or a failure.
Method Summary | |
---|---|
long |
getBytes()
The total number of bytes received via HTTP requests while this transaction was active. |
java.util.Date |
getEnd()
Returns the time the transaction ended, or null if the step has not yet ended. |
java.util.Date |
getStart()
Returns the time the transaction started. |
long |
getTimeActive()
The time spent actively running the script, such as time spent waiting for a page to finish loading. |
long |
getTimePaused()
The time spent actively paused due to an explicit call to pause() by the script author. |
boolean |
isSuccess()
Returns true if the transaction is going to be considered "successful". |
java.lang.String |
put(java.lang.String name,
java.lang.String value)
Associates a generic name/value pair with this transaction. |
void |
setBytes(long bytes)
Set the total number of bytes received while this transaction was active. |
void |
setSuccess(boolean success)
Sets the "success" parameter of the transaction, which will be stored with the overall test records and charts. |
void |
setTimeActive(long timeActive)
Sets the time you want recorded for the transaction. |
void |
setTimePaused(long timePaused)
Sets the time spent actively paused. |
Method Detail |
---|
java.lang.String put(java.lang.String name, java.lang.String value)
name
- the unique name of the name/value pairvalue
- the value to be stored
java.util.Date getStart()
java.util.Date getEnd()
long getBytes()
void setBytes(long bytes)
bytes
- the number of bytes received.boolean isSuccess()
void setSuccess(boolean success)
success
- true if the transaction should be considered a success.long getTimePaused()
void setTimePaused(long timePaused)
timePaused
- the time, in milliseconds, that this transaction was paused.long getTimeActive()
void setTimeActive(long timeActive)
timeActive
- the time, in milliseconds, that this transaction was actively running.
|
© 2023 Vercara, LLC. All Rights Reserved. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |