51Testing软件测试论坛

标题: 请教大师,帮忙解决。为什么LoadRunner12录制的脚本中都是web_custom_request [打印本页]

作者: 球球234    时间: 2015-7-3 14:27
标题: 请教大师,帮忙解决。为什么LoadRunner12录制的脚本中都是web_custom_request
本帖最后由 球球234 于 2015-7-3 14:29 编辑

我用的是LoadRunner 12录制脚本,协议是HTTP。录制页面上的创建事务。录制完成后,脚本中没有参数,全部都是web_custom_request,请大师们帮忙指教一下,为什么会是这个问题。
web_custom_request("InfoServer.do",
        "URL=http://10.238.19.147:8080/PPLUS/InfoServer.do?method=getCurrentUser&timestamp=1435895916994",
        "Method=POST",
        "Resource=1",
        "Referer=http://10.238.19.147:8080/PPLUS/client/frames/default/pageTop.jsp",
        "Snapshot=t423.inf",
        "EncType=text/html;charset=GBK",
        "Body={}",
        LAST);

    web_custom_request("InfoServer.do_2",
        "URL=http://10.238.19.147:8080/PPLUS/InfoServer.do?method=getCurrentUser&timestamp=1435895917662",
        "Method=POST",
        "Resource=1",
        "Referer=http://10.238.19.147:8080/PPLUS/client/frames/default/bottom.jsp",
        "Snapshot=t424.inf",
        "EncType=text/html;charset=GBK",
        "Body={}",
        LAST);



作者: zhanglei-zl    时间: 2015-7-3 15:12
你确定你录的时候成功了呢?
作者: zhanglei-zl    时间: 2015-7-3 15:12
你确定你录的时候成功了呢?
作者: 球球234    时间: 2015-7-3 15:36
谢谢第一位好人。是的,提示录制成功。F5时也通过了……这个问题困扰我两天了
作者: shinyxiang    时间: 2015-7-7 15:19
说明你调用的这个接口不需要参数
作者: Kathy_qu    时间: 2015-10-22 15:45
我录制的也全是web_custom_request,只是“Body={}”处大括号里有参数
作者: Luke116    时间: 2015-10-23 17:37
你一定是选择了"use web custom request only"选项 (步骤:recording option ->general recording -> URL-Base script)
作者: funly    时间: 2015-11-4 16:44
看一下你选择录制脚本的方式是什么吧。
作者: stone0214    时间: 2015-11-4 20:32
协议不是标准的http协议而已,如果用的不是浏览器录制或者在浏览器录制之前有需要安装插件,custom request就会出来
这样情况重点关注body




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2