Share this page

# Report code samples (JavaScript SDK)

In this topic:

## 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.

    var reportStatus =  LFT.Reporter.getStatus();
    if (reportStatus == LFT.Reporter.Status.Passed) {
    	//continue test execution
    } else {
    	//make custom action
    }

Back to top

See also:

- UFT Developer JavaScript SDK Reference
- UFT Developer JavaScript SDK code samples

Tips to improve your search results... UFT Developer JavaScript SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: