Share this page

# TC.endTransaction

Ends a transaction.

    TC.endTransaction(name, status);

## Arguments

Name | Description
--- | ---
name | (string) Name of the transaction to end.
status | One of the following status values: Pass, Fail, Auto

If the value passed to status is `Auto`, then the actual value of status is automatically assigned. By default, this value is Pass, signifying a successful transaction. However, if prior to TC.endTransaction, you change the default value by using TC.setTransactionStatus or TC.setTransactionStatusByName, or the system detects an error on script execution (so that the system sets all open transactions to Fail), then this is the value which is passed as status in TC.endTransaction.

## Return value

(void) undefined

## Example

Copy code

    TC.endTransaction("login_tr1", "Auto");

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: