Share this page

# TC.setTransactionStatusByName

Sets the default end status of a single open transaction by the transaction name. The transaction must have Auto status in its TC.endTransaction statement.

    TC.setTransactionStatusByName(name, status);

Note: If you make a series of calls to modify the Auto status, then the last call before TC.endTransaction is the one that effectively changes the status.

## Arguments

Name | Description
--- | ---
name | (string) The name of the transaction to set.
status | One of the following transaction status values: Pass, Fail. The Auto status is not applicable.

## Return value

A promise that will be fulfilled with no arguments.

## Example

Copy code

    (async ()=>{
        await TC.setTransactionStatusByName("T1", "Pass");
    })();

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: