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
TC.endTransaction("login_tr1", "Auto");