51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1549|回复: 6
打印 上一主题 下一主题

[求助] 紧急求助,手动关联回放出错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-9-26 11:48:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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;
}
上面是脚本
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2012-9-26 12:08:56 | 只看该作者
关联位置写错了
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2012-9-26 13:22:36 | 只看该作者
我是初学者,应该写哪里?谢谢
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2012-9-26 13:22:51 | 只看该作者
我是初学者,应该写哪里?谢谢
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2012-9-26 13:23:25 | 只看该作者
我是初学者,应该写哪里?谢谢
回复 支持 反对

使用道具 举报

该用户从未签到

6#
发表于 2012-9-26 14:12:54 | 只看该作者
写在URL请求之前
回复 支持 反对

使用道具 举报

该用户从未签到

7#
 楼主| 发表于 2012-9-26 15:43:09 | 只看该作者
关联改到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.
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-14 11:00 , Processed in 0.073222 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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