51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2098|回复: 2
打印 上一主题 下一主题

[原创] LR12中Java over http 协议录制自带订票,outboundFlight和returnFlight关联不到。

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2014-12-1 11:01:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
LR12中Java over http 协议录制自带订票,outboundFlight和returnFlight关联不到。
     web.reg_save_param ("S_outboundFlight",

    new String []{

        "LB=outboundFlight\" value=\"",

        "RB=\" checked" ,

        "LAST"} );


    web.reg_save_param ("S_returnFlight",

    new String []{

        "LB=returnFlight value=",

        "RB= checked" ,

        "LAST"} );

    _webresult = lrapi.web.submit_data("reservations.pl_2",
        "Action=http://127.0.0.1:1080/cgi-bin/reservations.pl", new String[]{
        "Method=POST",
        "TargetFrame=",
        "RecContentType=text/html",
        "Referer=http://127.0.0.1:1080/cgi-bin/reservations.pl",
        "Snapshot=t18.inf",
        "Mode=HTML",
        }, new String[]{ // ITEM DATA
        "Name=outboundFlight", "Value={S_outboundFlight}", ENDITEM,
        "Name=returnFlight", "Value={S_returnFlight}", ENDITEM,
        "Name=numPassengers", "Value=1", ENDITEM,
        "Name=advanceDiscount", "Value=0", ENDITEM,
        "Name=seatType", "Value=Coach", ENDITEM,
        "Name=seatPref", "Value=None", ENDITEM,
        "Name=reserveFlights.x", "Value=65", ENDITEM,
        "Name=reserveFlights.y", "Value=7", ENDITEM,
        LAST});
错误:Error -26377: No match found for the requested parameter "S_outboundFlight". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
Error -26377: No match found for the requested parameter "S_returnFlight". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    奋斗
    2015-5-5 09:03
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]测试小兵

    2#
    发表于 2014-12-2 10:32:18 | 只看该作者
    这个是你的关联函数位置放错了,web.reg_save_param ()这个函数必须放在你请求的当前页面的前面,意思就是放在“” 这个URL请求页面,在不清楚看按F1 看帮助文档
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
     楼主| 发表于 2014-12-2 11:00:02 | 只看该作者
    femir 发表于 2014-12-2 10:32
    这个是你的关联函数位置放错了,web.reg_save_param ()这个函数必须放在你请求的当前页面的前面,意思就是 ...

    多谢,12和11还是有很多不同的
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-10-5 10:18 , Processed in 0.081167 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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