lr.start_transaction

Marks the beginning of a transaction.

JavaScript

function lr.start_transaction(  transaction_name  )

VBScript

Function lr.start_transaction(  transaction_name  )
Example: Transaction Duration, set_transaction, and waste timeTransaction Functions

Arguments

NameComments
transaction_nameThe name of the transaction.

The lr.start_transaction function marks the beginning of a transaction. To indicate a transaction to be analyzed, use the lr.start_transaction and lr.end_transaction functions. These functions are inserted immediately before and after the transaction.

Transactions can be nested, but each lr.start_transaction statement must be associated with an lr.end_transaction statement or it will be interpreted as an illegal command.

Note: For information on allowed characters and maximum length for transaction names, see the transaction guidelines in the VuGen Help Center.

Return Values

On success, returns 0. Returns -1 if the transaction name is illegal.

Parameterization

Standard parameterization is not available for this function.