Share this page

# lr.start_transaction

Marks the beginning of a transaction.

## C#

    void lr.start_transaction( string transaction_name );

## VB.NET

    Sub lr.start_transaction( ByVal transaction_name As String )

Transaction Functions

## Arguments

Name | Comments
--- | ---
transaction_name | The 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 Transaction guidelines in the Virtual User Generator Help Center.

## Return Values

No value returned.

## Parameterization

Standard parameterization is not available for this function.

## Example

The following example starts the Test transaction.

    lr.start_transaction("Test");lr.think_time(1);

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: