51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2133|回复: 2

[求助] loadrunner检查点失败

[复制链接]

该用户从未签到

发表于 2013-11-16 16:31:03 | 显示全部楼层 |阅读模式
求高手帮忙,recording options中选择的是  url_based script  同时  html_based advanced中选择的是 a script containing explict,执行日志中提示  :Action.c(300): Registered web_reg_find successful for "Text=172.16.20.1" (count=1)          ,但是:后面的写的检查语句却输出了“检查点失败”的检查语句:
if (atoi (lr_eval_string ("{172.16.20.1_count}"))==1) {
        lr_output_message ("检查点成功");
}
else {
        lr_output_message ("检查点失败");
}
return 0;

下面是我的脚本:
web_reg_find("Search=All",
                "Text=172.16.20.1",
                LAST);
        web_url("Index.aspx",
                "URL=http://172.16.0.96//Index.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t31.inf",
                "Mode=HTTP",
                LAST);

        web_concurrent_start(NULL);

        web_url("anchor.png",
                "URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/icons/anchor.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=http://172.16.0.96//Index.aspx",
                "Snapshot=t91.inf",
                LAST);

        web_url("tree_elbow.png",
                "URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/default/images/tree_elbow.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=http://172.16.0.96//Index.aspx",
                "Snapshot=t92.inf",
                LAST);

        web_url("tree_file.gif",
                "URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/default/images/tree_file.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://172.16.0.96//Index.aspx",
                "Snapshot=t93.inf",
                LAST);

        web_url("anchor.png_2",
                "URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/icons/anchor.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=http://172.16.0.96//Index.aspx",
                "Snapshot=t94.inf",
                LAST);


        web_concurrent_start(NULL);

        web_url("reload.png_3",
                "URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/icons/reload.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=http://172.16.0.96//Index.aspx",
                "Snapshot=t112.inf",
                LAST);

        web_url("panel_tools.gif_3",
                "URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/default/images/panel_tools.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://172.16.0.96//Index.aspx",
                "Snapshot=t113.inf",
                LAST);

        web_url("panel_tools.gif_4",
                "URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/default/images/panel_tools.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://172.16.0.96//Index.aspx",
                "Snapshot=t114.inf",
                LAST);

        web_concurrent_end(NULL);

        web_url("ywts.htm",
                "URL=http://172.16.0.96/layout/portal/ywts.htm?_=1384588508810",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://172.16.0.96//Index.aspx",
                "Snapshot=t115.inf",
                "Mode=HTTP",
                LAST);

        web_url("ywts.htm_2",
                "URL=http://172.16.0.96/layout/portal/ywts.htm?_=1384588508810",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://172.16.0.96//Index.aspx",
                "Snapshot=t116.inf",
                "Mode=HTTP",
                LAST);

        web_url("czrz.htm",
                "URL=http://172.16.0.96/layout/portal/czrz.htm?_=1384588508856",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://172.16.0.96//Index.aspx",
                "Snapshot=t117.inf",
                "Mode=HTTP",
                LAST);

lr_end_transaction("lg", LR_AUTO);

if (atoi (lr_eval_string ("{172.16.20.1_count}"))==1) {
        lr_output_message ("检查点成功");
}
else {
        lr_output_message ("检查点失败");
}
return 0;
}
回复

使用道具 举报

  • TA的每日心情
    无聊
    昨天 09:11
  • 签到天数: 932 天

    连续签到: 4 天

    [LV.10]测试总司令

    发表于 2013-11-18 09:11:18 | 显示全部楼层
    求高手帮忙,recording options中选择的是  url_based script  同时  html_based advanced中选择的是 a scr ...
    bdjx1106 发表于 2013-11-16 16:31



        LZ售价是别人给你积分哦,现在已经为你改过来了!
    回复 支持 反对

    使用道具 举报

    该用户从未签到

     楼主| 发表于 2013-11-19 17:50:22 | 显示全部楼层
    ????
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-4-19 05:58 , Processed in 0.069533 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表