Insert transactions in scripts
A transaction measures the time between two points in a business process. This topic describes how to use transactions in your TruClient scripts.
About using transactions
Add transactions so that you can analyze the time spent in different sections of the process after running the test.
For example, a transaction might start when sending credit card information and end when receiving authorization.
Transactions for steps are not sequential. You can use the same transaction name in different sections of the script to join the times of actions that are not one after another. To use the same name in different places, use TC.startTransaction(name) and TC.endTransaction(name, status) functions.
You can use the Transaction editor to add transactions for steps that are adjacent.
Transaction editor
Click Transactions editor in the Development window Toolbar to open the editor.
User interface elements are described below:
UI Element |
Description
|
---|---|
Adds a new transaction.
|
|
Deletes the selected transaction.
|
|
Name |
Enables you to edit the name of the transaction. The name must be unique. Transaction names can contain letters or numbers. Do not use the following characters: . , : # / \ " < @ &. |
Start/End step
|
The steps that mark the start and the end of the transaction.
|
See also: