lr_vuser_status_message函数

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.

posted on 2013-04-02 10:09  淘果果  阅读(351)  评论(0编辑  收藏  举报

导航