loadrunner脚本练习 软件测试
loadrunner脚本练习
#include "web_api.h"
Action()
{
char* abort="aborting...";
char * my_host;
char *ip;
ip = lr_get_vuser_ip();
if (ip)
lr_output_message("The IP address is %s", ip);
else
lr_output_message("IP spoofing disabled");
lr_message ("login failed: %s", abort);
lr_save_datetime("Tomorrow is %B %d %Y", DATE_NOW +ONE_DAY, "next");
lr_output_message(lr_eval_string("{next}"));
my_host = lr_get_host_name( );
lr_output_message("您的机器名称:%s", my_host);
}