|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Transaction
Aggregate information about a transaction in an RBU or VU script. This object contains basic timing information, such as the start and end time, as well as the total number of bytes transfered 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 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 |
setSuccess(boolean success)
Sets the "success" parameter of the transaction, which will be stored with the overall test records and charts. |
| 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()
boolean isSuccess()
void setSuccess(boolean success)
success - true if the transaction should be considered a success.long getTimePaused()
long getTimeActive()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||