TCA.setTransactionStatusByName
Sets the default end status of a single open transaction by the transaction name. The transaction must have Auto status in its TCA.endTransaction statement.
TCA.setTransactionStatusByName(status, name);
Note: If you make a series of calls to modify the Auto status, then the last call before TCA.endTransaction is the one that effectively changes the status.
Arguments
Name | Description |
---|---|
status | One of the following transaction status values: Pass, Fail. The Auto status is not applicable. |
name | (string) The name of the transaction to set. |
Return value
A promise that will be fulfilled with no arguments.
Example
TCA.setTransactionStatusByName("Fail", "T1").then(function(){
TCA.done();
}).catch(function (error) {
TCA.doneWithError(error);
});