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");

2 thoughts on “How to emulate C function lr.vuser_status_message() in TruClient JavaScript code?”

  1. Hi,
    Thanks for your valuable tips for new AJax true client protocol.

    We are facing an issue with using C functions in Ajax true client protocol, where we are using Web functions like Web_set_sockets_options in C code and while evaluating the C code using Lr.EvalC function we are getting the error as “unable to resolve symbol— . Please let me know if there is any work around for using web functions in Ajax true client protocol.

    Thank you,
    Nagendra

    Reply
  2. I’ve been inserting the following javascript into Truclient scripts.
    TC.vuserStatusMessage(TC.getParam(“UserID”) + ” Iteration #” + TC.getParam(“Iteration”));

    Reply

Leave a Comment