Marks the end of a transaction.


void lr.end_transaction( string transaction_name, int status);


Sub lr.end_transaction( ByVal transaction_name As String, ByVal status As Integer )
Example: lr.end_transactionTransaction Functions


transaction_name The name of an open transaction.
status The Transaction Status

The lr.end_transaction function marks the end of a transaction and records the amount of time it took to perform the transaction. To indicate a transaction to be analyzed, place the lr.start_transaction function before the transaction, and the lr.end_transaction function after the transaction.

You can manually set the status of the transaction or you can allow the script to detect it automatically. To manually set the status, you perform a manual check within the code of your script (see example) evaluating the return code of a function. For the "succeed" return code, set the status to LR_PASS. For a "fail" return code, set the status to LR_FAIL. For an "aborted" return code, set the status to LR_STOP.

If status is LR_AUTO, then the value of status is automatically assigned. By default, this value is LR_PASS signifying a successful transaction.

Return Values

No value returned.


You cannot use standard parameterization for any arguments in this function.