lr

it2022-05-05  116

C Language

 

int lr_vuser_status_message (const char *format);

In this example, an Iteration Number type parameter called "iteration" was defined. The lr_vuser_status_message function sends a message to the LoadRunner Controller, or Application Management Admin Center indicating the current iteration number.

//在COntroller 监控窗口中显示当前参数值和当前vu迭代次数,在vugen调试窗口里面不会显示

lr_vuser_status_message("Para is:%s,%dTimes Iteration",lr_eval_string("{username}"),++iteration);

//在Controller运行窗口,运行场景时在run界面中单击Vusers按钮(开始方案按钮的下面),在弹出窗口中可看到动态的username信息。

The lr_vuser_status_message function sends a string to the Status area of the Controller. It also sends this string to the Vuser log. When run from VuGen, the message is sent to output.txt.

转载于:https://www.cnblogs.com/crystal-guoguo/archive/2013/04/02/2994891.html


最新回复(0)