51Testing软件测试论坛

标题: 紧急求助,手动关联回放出错 [打印本页]

作者: lsjliloveyou    时间: 2012-9-26 11:48
标题: 紧急求助,手动关联回放出错
Action()
{

       

        web_url("lTree-list-active.gif",
                "URL=http://192.168.0.28:7001/ty-delta-user/css/images/lTree-list-active.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://192.168.0.28:7001/ty-delta-user/indexAction.action",
                "Snapshot=t8.inf",
                LAST);

        web_url("invoice.action",
                "URL=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.0.28:7001/ty-delta-user/indexAction.action",
                "Snapshot=t9.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=css/fp_template/sdpt.png", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
                "Url=css/images/error.png", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
                "Url=css/images/symbolIcon.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
                "Url=css/images/percentIcon.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
                "Url=css/images/formBtn.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
                "Url=libz/ligerUI/skins/Aqua/images/win/dialog-bc.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
                "Url=libz/ligerUI/skins/Aqua/images/win/dialog-tc.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
                "Url=libz/ligerUI/skins/Aqua/images/win/box.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
                "Url=libz/ligerUI/skins/Aqua/images/win/dialog-icons.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
                "Url=libz/ligerUI/skins/Aqua/images/win/dialog.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
                LAST);

        lr_rendezvous("kaip001");

        lr_start_transaction("kaip002");

    web_reg_save_param("invoice_code",
   "LB=<input type=\"hidden\" name=\"INVOICE_CODE\" value=\"",
   "RB=\">",
   LAST);

        web_reg_save_param("invoice_no",
   "LB=<input type=\"hidden\" name=\"INVOICE_NO\" value=\"",
   "RB=\">",
   LAST);

        web_submit_data("blueInvoice.action",
                "Action=http://192.168.0.28:7001/ty-delta-user/blueInvoice.action?sign=blueInvoice",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue",
                "Snapshot=t10.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=USER_NAME", "Value=001", ENDITEM,
                "Name=USER_ID", "Value=2", ENDITEM,
                "Name=CLIENT_ID", "Value=2", ENDITEM,
                "Name=TAXPAYER_ID", "Value=2", ENDITEM,
                "Name=TAX_ORGAN_CODE", "Value=13716020001", ENDITEM,
                "Name=TAX_ORGAN_NAME", "Value=", ENDITEM,
                "Name=PAYEE_NAME", "Value=性能测试2", ENDITEM,
                "Name=PAYEE_REGISTER_NO", "Value=0000000002", ENDITEM,
                "Name=TAX_REGISTER_NO", "Value=0000000002", ENDITEM,
                "Name=TRADE_CODE", "Value=1", ENDITEM,
                "Name=TRADE_CODE_TYPE", "Value=销售或进口货物", ENDITEM,
                "Name=INVOICE_TYPE_CODE", "Value=1", ENDITEM,
                "Name=TAX_FLAG", "Value=1", ENDITEM,
                "Name=divsize", "Value=", ENDITEM,
                "Name=INVOICE_CODE", "Value={invoice_code}", ENDITEM,
                "Name=INVOICE_NO", "Value={invoice_no}", ENDITEM,
                "Name=PAYER_NAME", "Value=中润四方", ENDITEM,
                "Name=ITEM_NAME", "Value=主板", ENDITEM,
                "Name=UNIT", "Value=个", ENDITEM,
                "Name=NUMS", "Value=10", ENDITEM,
                "Name=PRICE", "Value=102.00", ENDITEM,
                "Name=AMT", "Value=1020.00", ENDITEM,
                "Name=DISCOUNT", "Value=0", ENDITEM,
                "Name=DISCOUNT_AMT", "Value=0", ENDITEM,
                "Name=INVOICE_AMT", "Value=1020.00", ENDITEM,
                "Name=AMT_UPPER", "Value=壹仟零贰拾元整", ENDITEM,
                "Name=REMARK", "Value=备注", ENDITEM,
                "Name=INVOICING_LIMIT", "Value=10000", ENDITEM,
                "Name=DIV", "Value=", ENDITEM,
                LAST);

        web_submit_data("printConfiguration.action",
                "Action=http://192.168.0.28:7001/ty-delta-user/printConfiguration.action",
                "Method=POST",
                "Referer=http://192.168.0.28:7001/ty-delta-user/blueInvoice.action?sign=blueInvoice",
                "Snapshot=t11.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=INVOICE_TYPE_CODE", "Value=1", ENDITEM,
                LAST);


        web_url("invoice.action_2",
                "URL=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.0.28:7001/ty-delta-user/blueInvoice.action?sign=blueInvoice",
                "Snapshot=t12.inf",
                "Mode=HTML",
                LAST);

        lr_end_transaction("kaip002",LR_AUTO);

        return 0;
}
上面是脚本
作者: 云层    时间: 2012-9-26 12:08
关联位置写错了
作者: lsjliloveyou    时间: 2012-9-26 13:22
我是初学者,应该写哪里?谢谢
作者: lsjliloveyou    时间: 2012-9-26 13:22
我是初学者,应该写哪里?谢谢
作者: lsjliloveyou    时间: 2012-9-26 13:23
我是初学者,应该写哪里?谢谢
作者: pdlmg    时间: 2012-9-26 14:12
写在URL请求之前
作者: lsjliloveyou    时间: 2012-9-26 15:43
关联改到url之前了,可是回放还是报错,错误信息如下:
Action.c(26): Warning -26627: HTTP Status-Code=404 (Not Found) for "http://192.168.0.28:7001/ty-delta-user/js/date.js"          [MsgId: MWAR-26627]
Action.c(26): Error -26377: No match found for the requested parameter "invoice_code". 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]
Action.c(26): Error -26377: No match found for the requested parameter "invoice_no". 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]
Action.c(26): web_url("invoice.action") highest severity level was "ERROR", 121084 body bytes, 4664 header bytes, 56 chunking overhead bytes          [MsgId: MMSG-26387]
Ending action Action.




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