1. lr_eval_string (); reference the current value
2. lr_out_message (); Output Information
3. lr_save_param (); save it to the variable
View the parameters in the current script and the VU iterations script instance in the Controller window:
# Include "as_web.h"
Static int iteration;
Action ()
{
Char * PP;
// Customize the parameter file newparam
Pp = "value = {newparam }";
// Display the current parameter value in the vugen debugging window, which is not displayed in the Controller window
Lr_output_message ("Para is: % s", lr_eval_string ("{newparam }"));
// The current parameter value and current VU iterations are displayed in the Controller monitoring window, which is not displayed in the vugen debugging window.
Lr_vuser_status_message ("Para is: % s, % dtimes iteration", lr_eval_string ("{newparam}"), ++ iteration );
Return 0;
}
When running a scenario, click vusers In the controller running window (under the START scheme button). The information is displayed in the pop-up window.
Transferred from blog.csdn.net/wyingquan/