How to emulate C function lr.vuser_status_message() in TruClient JavaScript code?

How to emulate C function lr.vuser_status_message() in TruClient JavaScript code?

How does one emulate the C function lr.vuser_status_message() — using the Ajax TruClient?

Using LR.log(“…”, “Status”) doesn’t’ work when “errors/warning only” log level is checked in run time settings.

You can use the C code function like the following:

void log_status()

{

lr_vuser_status_message( "%s", lr_eval_string( "{my_message}" ) );

}

Put the above in a C function file.

The usage from TruClient is in an “Evaluate JavaScript code” step with suitable code:

LR.setParam("my_message","text to show in Vuser status bar”);
LR.evalC("log_status");

Advertisements