51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2225|回复: 3
打印 上一主题 下一主题

[原创] web_reg_save_param关联函数出错,请教

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-2-7 11:06:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 guangziai 于 2012-2-7 11:08 编辑

最近接触性能测试,执行如下一脚本时,报错,好像是web_reg_save_param关联函数出问题了,但折腾很久找不出原因,请高手解答。
//{"total":0,"userdata":{},"page":0,"value":"","errCode":"1","records":0,"rows":[{"mainProdId":351010012,"productId":200461074,"prodTypeCd":"10","productRelId":"-200000041","relationTypeCd":"6","productName":"????VPN?","prodFuncType":"101","prodInstAttrList":[{"productId":200461074,"attrId":701,"attrValueId":867526,"productAttrId":867526,"statusCd":"10","valueType":"5","attrFormatDesc":"????????","attrName":"????","attrValue":"0","page":"1","rows":"10"},{"productId":200461074,"attrId":244,"attrValueId":867521,"productAttrId":867521,"statusCd":"10","valueType":"1","attrName":"????","attrValue":"0","page":"1","rows":"10"},{"productId":200461074,"attrId":1292,"attrValueId":867523,"productAttrId":867523,"statusCd":"10","valueType":"1","attrName":"????","attrValue":"0","page":"1","rows":"10"},{"productId":200461074,"attrId":16,"attrValueId":867524,"productAttrId":867524,"statusCd":"10","valueType":"2","attrName":"????","attrValue":"3","productAttrValueList":[{"productId":200461074,"productAttrId":867524,"prodAttrValueId":718825,"attrValueId":14,"ruleType":"1","attrValueDesc":"???","seqNbr":1,"attrValue":"3","page":"1","rows":"10"},{"productId":200461074,"productAttrId":867524,"prodAttrValueId":718826,"attrValueId":13,"ruleType":"1","attrValueDesc":"???","seqNbr":1,"attrValue":"0","page":"1","rows":"10"}],"page":"1","rows":"10"}],"page":"1","rows":"10"},{"mainProdId":351010012,"productId":352050101,"prodTypeCd":"10","productRelId":"-852414","relationTypeCd":"6","productName":"????","prodFuncType":"102","prodInstAttrList":
        // [{"productId":352050101,"attrId":800559,"attrValueId":110060060,"productAttrId":110060060,"statusCd":"10","valueType":"3","attrFormatDesc":"yyyy-mm-dd","attrName":"??????","page":"1","rows":"10"},{"productId":352050101,"attrId":800560,"attrValueId":110060061,"productAttrId":110060061,"statusCd":"10","valueType":"3","attrFormatDesc":"yyyy-mm-dd","attrName":"??????","page":"1","rows":"10"},{"productId":352050101,"attrId":12,"attrValueId":10004000,"productAttrId":10004000,"statusCd":"10","valueType":"5","attrFormatDesc":"????????","attrName":"??","attrValue":"111111","page":"1","rows":"10"}],"page":"1","rows":"10"},{"mainProdId":351010012,"productId":452050022,"prodTypeCd":"10","productRelId":"-2","relationTypeCd":"6","productName":"????","prodFuncType":"102","prodInstAttrList":[],"page":"1","rows":"10"},{"mainProdId":351010012,"productId":352050022,"prodTypeCd":"10","productRelId":"-3","relationTypeCd":"6","productName":"????","prodFuncType":"102","prodInstAttrList":[],"page":"1","rows":"10"},{"mainProdId":351010012,"productId":301100001,"prodTypeCd":"10","productRelId":"-100000023","relationTypeCd":"6","productName":"????","prodFuncType":"102","prodInstAttrList":[{"productId":301100001,"attrId":253,"attrValueId":1222,"productAttrId":1222,"statusCd":"10","valueType":"1","attrFormatDesc":"yyyy-mm-dd","attrName":"????","attrValue":"0","page":"1","rows":"10"}],"page":"1","rows":"10"},{"mainProdId":351010012,"productId":301100003,"prodTypeCd":"10","productRelId":"-100000026","relationTypeCd":"6","productName":"????","prodFuncType":"102","prodInstAttrList":[],"page":"1","rows":"10"},{"mainProdId":351010012,"productId":99110030,"prodTypeCd":"10","productRelId":"-100000027","relationTypeCd":"6","productName":"[?]????","prodInstAttrList":[{"productId":99110030,"attrId":16,"attrValueId":555,"productAttrId":555,"statusCd":"10","valueType":"2","attrFormatDesc":"abc","attrName":"????","attrValue":"3","productAttrValueList":[{"productId":99110030,"productAttrId":555,"prodAttrValueId":107,"attrValueId":14,"ruleType":"1","attrValueDesc":"???","seqNbr":1,"attrValue":"3","page":"1","rows":"10"},{"productId":99110030,"productAttrId":555,"prodAttrValueId":108,"attrValueId":13,"ruleType":"1","attrValueDesc":"???","seqNbr":2,"attrValue":"0","page":"1","rows":"10"}],"page":"1","rows":"10"}],"page":"1","rows":"10"},{"mainProdId":351010012,"productId":200468073,"prodTypeCd":"10","productRelId":"-852467","relationTypeCd":"6","productName":"?????","prodFuncType":"102","prodInstAttrList":[],"page":"1","rows":"10"}]}
        web_reg_save_param( "attr_id", "LB=\"attrId\":", "RB=,", "Ord=All", "IgnoreRedirections=Yes", "Search=Body", "RelFrameId=1", LAST );
        web_reg_save_param( "attr_value", "LB=\"attrValueId\":", "RB=,", "Ord=All", "IgnoreRedirections=Yes", "Search=Body", "RelFrameId=1", LAST );
        web_reg_save_param( "product_attr_id", "LB=\"productAttrId\":", "RB=,", "Ord=All", "IgnoreRedirections=Yes", "Search=Body", "RelFrameId=1", LAST );
        web_submit_data("QuerySubProductInfo!queryDefaultProduct.action",

回放时报错截取:
uery.c(190): Error -26377: No match found for the requested parameter "attr_id". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
query.c(190): Notify: Saving Parameter "attr_id_count = 0"
query.c(190): Error -26377: No match found for the requested parameter "attr_value". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
query.c(190): Notify: Saving Parameter "attr_value_count = 0"
query.c(190): Error -26377: No match found for the requested parameter "product_attr_id". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
query.c(190): Notify: Saving Parameter "product_attr_id_count = 0"
query.c(190): web_submit_data("QuerySubProductInfo!queryDefaultProduct.action") highest severity level was "ERROR", 5 body bytes, 309 header bytes          [MsgId: MMSG-26388]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2012-2-7 13:30:25 | 只看该作者
web_reg_save_param要放在被关联的页面代码之前。你换下位置再试下。
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2012-2-7 16:22:53 | 只看该作者
位置不对,关联时多试几次,因为有时无法识别,有”“需要在前面加\
回复 支持 反对

使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    4#
    发表于 2012-2-7 21:59:03 | 只看该作者
    找不到,有时是正常的,看实际情况
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-9-27 15:38 , Processed in 0.078686 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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