Share this page

# Example: lr_set_transaction_status

In the following example, the status of transaction t1 is changed to a fail status because a general error has occurred. Note that the exit status of transaction t2 which is not defined as LR_AUTO is unaffected by the call to lr_set_transaction_status and it remains as LR_PASS.

    if (event == GENERAL_ERROR)
        lr_set_transaction_status(LR_FAIL);

    lr_end_transaction("t1", LR_AUTO);
    lr_end_transaction("t2", LR_PASS);

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: