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.

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-11-11
  • 2021-06-07
猜你喜欢
  • 2021-09-16
  • 2021-08-18
  • 2021-11-05
  • 2021-11-26
  • 2021-12-20
  • 2022-12-23
  • 2021-04-05
相关资源
相似解决方案