Share this page

# Report code samples (JavaScript SDK)

## Access current report status during runtime

This example shows how to access the current report status during runtime, and write different scenarios of the test execution according to the obtained value.

Copy code

    LFT.Reporter.getStatus().then(function(statusAsString) {
        if (statusAsString == LFT.Reporter.Status.Passed) {
            //continue test execution
        } else {
            //make custom action
        }
        //code to be executed regardless of status value
    });

Back to top

See also:

- JavaScript SDK
- JavaScript SDK code samples

https://admhelp.microfocus.com Functional Testing for Developers 8942
Tips to improve your search results... OpenText™ Functional Testing for Developers Help Center OpenText™ Functional Testing for Developers Help 25.2 All View Local Help Center View Online Help Center Version: