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);

posted on 2006-06-05 13:22  测试者家园  阅读(2182)  评论(3编辑  收藏  举报

导航