51Testing软件测试论坛

标题: web_reg_save_param关联函数出错,请教 [打印本页]

作者: guangziai    时间: 2012-2-7 11:06
标题: web_reg_save_param关联函数出错,请教
本帖最后由 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]

作者: daxiongfox    时间: 2012-2-7 13:30
web_reg_save_param要放在被关联的页面代码之前。你换下位置再试下。
作者: jh_soft    时间: 2012-2-7 16:22
位置不对,关联时多试几次,因为有时无法识别,有”“需要在前面加\
作者: msnshow    时间: 2012-2-7 21:59
找不到,有时是正常的,看实际情况




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