TC.setTransactionStatus
Sets the default end status of currently open transactions which have Auto status in their TC.endTransaction statement.
TC.setTransactionStatus(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
status. One of the following transaction status values: Pass, Fail.
The Auto status is not applicable.
Return value
A promise that is fulfilled with undefined upon success.
Example
(async ()=>{
await TC.setTransactionStatus("Pass");
})();