Share this page

# Example: lr.exit

In the following example, the script exits the replay when the login fails.

    public int login(string username, string password){//emulate failed loginreturn lr.FAIL;} int status = login("username","password");if (status == lr.FAIL) {lr.exit(lr.EXIT_VUSER,lr.FAIL);return 0;}

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: