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 login

return lr.FAIL;

}

 

int status = login("username","password");

if (status == lr.FAIL) {

lr.exit(lr.EXIT_VUSER,lr.FAIL);

return 0;

}