Insert transactions
In this topic:
Insert a transaction while recording
To | Do this |
---|---|
Mark the start of a transaction |
On the Recording toolbar, click the Start Transaction button When the script is generated, VuGen inserts an lr_start_transaction statement into the Vuser script. |
Mark the end of a transaction |
On the Recording toolbar, click the End Transaction button When the script is generated, VuGen inserts an lr_end_transaction statement into the Vuser script. |
Insert a transaction after recording
You use VuGen's Editor to insert a transaction after recording a Vuser script.
To | Do this |
---|---|
Mark the start of a transaction |
Locate the cursor in the script where you want to start the transaction and do one of the following:
VuGen inserts an lr_start_transaction statement into the Vuser script. Enter a transaction name into the new step. |
Mark the end of a transaction |
Locate the cursor in the script where you want to end the transaction and do one of the following:
VuGen inserts an lr_end_transaction statement into the Vuser script. Enter a transaction name into the new step. |
Simultaneously mark the start and end of a transaction |
VuGen inserts an lr_start_transaction statement before the first selected step, and an lr_end_transaction statement after the last selected step. |
Transaction guidelines
-
You can create nested transactions—transactions within transactions. If you nest transactions, close the inner transactions before closing the outer ones—otherwise the transactions cannot be analyzed properly. Nested transactions must be contained within a single action section.
- A failed transaction does not automatically set the script's Replay status to Failed.
-
Transaction names:
- Must be unique.
- Have a maximum length of 256 characters.
-
Must contain only printable characters, which can be any combination of letters, numbers, and punctuation marks.
See also: