51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3019|回复: 9
打印 上一主题 下一主题

[原创] 各位帮忙看一下,用LR9.1试用版录制脚本,做参数化后报错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-6-22 15:45:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
hi 各位,

    我用LR9.1录制注册的脚本,然后将注册码进行了参数化,然后运行时出现了如下的错误,请各位帮忙解决一下,我用的试用版,怎么关联的按钮是灰色的呢。这个用作关联吗??

Action.c(412): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister2.aspx?RegidterCode=MTA5NDQyMDUwNQ%3d%3d&subjectid=1"          [MsgId: MERR-26612]
Action.c(412): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState9". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1500 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
Action.c(412): web_submit_data("UserRegister2.aspx") highest severity level was "ERROR", 8970 body bytes, 240 header bytes          [MsgId: MMSG-26388]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2011-6-22 15:47:22 | 只看该作者
各位朋友,帮帮忙看看吧
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2011-6-22 15:55:20 | 只看该作者
所有的log如下:
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 9.0.0 for WINXP; WebReplay82 build 5727          [MsgId: MMSG-27143]
Run-Time Settings file: "D:\Program Files\Mercury\LoadRunner\scripts\registerscript\\default.cfg"          [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): web_add_cookie was successful          [MsgId: MMSG-26392]
Action.c(6): web_add_cookie was successful          [MsgId: MMSG-26392]
Action.c(8): web_add_cookie was successful          [MsgId: MMSG-26392]
Action.c(10): web_add_cookie was successful          [MsgId: MMSG-26392]
Action.c(12): web_set_max_html_param_len was successful          [MsgId: MMSG-26392]
Action.c(14): web_url("index.aspx") was successful, 196604 body bytes, 223 header bytes          [MsgId: MMSG-26386]
Action.c(23): web_concurrent_start was successful          [MsgId: MMSG-26392]
Action.c(25): Registering web_url("style.css") was successful          [MsgId: MMSG-26390]
Action.c(33): Registering web_url("SpryMenuBarHorizontal.css") was successful          [MsgId: MMSG-26390]
Action.c(41): Registering web_url("bjzy_07.gif") was successful          [MsgId: MMSG-26390]
Action.c(49): Registering web_url("bj1_25.gif") was successful          [MsgId: MMSG-26390]
Action.c(57): Registering web_url("bj2_27.gif") was successful          [MsgId: MMSG-26390]
Action.c(65): Registering web_url("zjtd.gif") was successful          [MsgId: MMSG-26390]
Action.c(73): Registering web_url("Login.aspx") was successful          [MsgId: MMSG-26390]
Action.c(82): Registering web_url("nav_bg032.gif") was successful          [MsgId: MMSG-26390]
Action.c(90): Registering web_url("nav_bg042.gif") was successful          [MsgId: MMSG-26390]
Action.c(98): Registering web_url("HelpBook.aspx") was successful          [MsgId: MMSG-26390]
Action.c(107): Registering web_url("gfmore1.gif") was successful          [MsgId: MMSG-26390]
Action.c(115): Registering web_url("IndexFlash.aspx") was successful          [MsgId: MMSG-26390]
Action.c(124): Registering web_url("bj3_28.gif") was successful          [MsgId: MMSG-26390]
Action.c(132): Registering web_url("zxsp_index.jpg") was successful          [MsgId: MMSG-26390]
Action.c(140): Registering web_url("bzzx.gif") was successful          [MsgId: MMSG-26390]
Action.c(148): Registering web_url("bottom.js") was successful          [MsgId: MMSG-26390]
Action.c(156): Registering web_url("bj4_32.gif") was successful          [MsgId: MMSG-26390]
Action.c(164): web_concurrent_end was successful, 57036 body bytes, 4312 header bytes          [MsgId: MMSG-26386]
Action.c(166): web_url("sytop_02.gif") was successful, 10218 body bytes, 251 header bytes          [MsgId: MMSG-26386]
Action.c(174): web_concurrent_start was successful          [MsgId: MMSG-26392]
Action.c(176): Registering web_url("gfbg01.gif") was successful          [MsgId: MMSG-26390]
Action.c(184): Registering web_url("login.js") was successful          [MsgId: MMSG-26390]
Action.c(192): Registering web_url("ImageLog.aspx") was successful          [MsgId: MMSG-26390]
Action.c(200): Registering web_url("sidebar_tag02.gif") was successful          [MsgId: MMSG-26390]
Action.c(208): Registering web_url("sidebar_tag03.gif") was successful          [MsgId: MMSG-26390]
Action.c(216): web_concurrent_end was successful, 4380 body bytes, 1217 header bytes          [MsgId: MMSG-26386]
Action.c(218): web_url("gfbg02.gif") was successful, 3279 body bytes, 250 header bytes          [MsgId: MMSG-26386]
Action.c(226): web_url("sidebar_tag04.gif") was successful, 435 body bytes, 249 header bytes          [MsgId: MMSG-26386]
Action.c(234): web_concurrent_start was successful          [MsgId: MMSG-26392]
Action.c(236): Registering web_url("flash.js") was successful          [MsgId: MMSG-26390]
Action.c(244): Registering web_url("lanrentuku.css") was successful          [MsgId: MMSG-26390]
Action.c(252): web_concurrent_end was successful, 5777 body bytes, 513 header bytes          [MsgId: MMSG-26386]
Action.c(254): web_url("sidebar_bg09.gif") was successful, 3696 body bytes, 250 header bytes          [MsgId: MMSG-26386]
Action.c(262): web_concurrent_start was successful          [MsgId: MMSG-26392]
Action.c(264): Registering web_url("sidebar_bg101.gif") was successful          [MsgId: MMSG-26390]
Action.c(272): Registering web_url("gfbg03.gif") was successful          [MsgId: MMSG-26390]
Action.c(280): web_concurrent_end was successful, 12436 body bytes, 500 header bytes          [MsgId: MMSG-26386]
Action.c(286): Registering web_reg_save_param was successful          [MsgId: MMSG-26390]
Action.c(296): web_url("UserRegister1.aspx") was successful, 13326 body bytes, 222 header bytes          [MsgId: MMSG-26386]
Action.c(305): web_concurrent_start was successful          [MsgId: MMSG-26392]
Action.c(307): Registering web_url("alertMsg.js") was successful          [MsgId: MMSG-26390]
Action.c(315): Registering web_url("button22.gif") was successful          [MsgId: MMSG-26390]
Action.c(323): Registering web_url("button09.gif") was successful          [MsgId: MMSG-26390]
Action.c(331): Registering web_url("dot1.gif") was successful          [MsgId: MMSG-26390]
Action.c(339): Registering web_url("ImageRegister.aspx") was successful          [MsgId: MMSG-26390]
Action.c(347): web_concurrent_end was successful, 3645 body bytes, 1216 header bytes          [MsgId: MMSG-26386]
Action.c(353): Registering web_reg_save_param was successful          [MsgId: MMSG-26390]
Action.c(363): web_submit_data("UserRegister1.aspx_2") was successful, 13443 body bytes, 222 header bytes          [MsgId: MMSG-26386]
Action.c(380): web_concurrent_start was successful          [MsgId: MMSG-26392]
Action.c(382): Registering web_url("BtnPre1.gif") was successful          [MsgId: MMSG-26390]
Action.c(390): Registering web_url("BtnNext1.gif") was successful          [MsgId: MMSG-26390]
Action.c(398): web_concurrent_end was successful, 700 body bytes, 498 header bytes          [MsgId: MMSG-26386]
Action.c(404): Registering web_reg_save_param was successful          [MsgId: MMSG-26390]
Action.c(412): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister2.aspx?RegidterCode=MTA5NDQyMDUwNQ%3d%3d&subjectid=1"          [MsgId: MERR-26612]
Action.c(412): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState9". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1500 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
Action.c(412): web_submit_data("UserRegister2.aspx") highest severity level was "ERROR", 8970 body bytes, 240 header bytes          [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2011-6-22 19:37:07 | 只看该作者
看不懂,参数还不会弄
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2011-6-23 09:40:34 | 只看该作者
Action.c(412): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister2.aspx?RegidterCode=MTA5NDQyMDUwNQ%3d%3d&subjectid=1"          [MsgId: MERR-26612]
这条很简单,就是HTTP500的错误,服务器内部错误,你确定这个域名是否能够访问。建议你手动去点击访问一下这个页面。
Action.c(412): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState9". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1500 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
这个就是你的参数化错误,你的设置的参数是否对应了相应的值。检查一下,或许参数数量不够。
第三条没遇到过,我也不清楚
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2011-6-23 10:18:34 | 只看该作者
谢谢talerance,我录制的是注册的过程,如下是注册页面的脚步,做了注册码的参数化
        web_submit_data("UserRegister1.aspx_2",
                "Action=http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister1.aspx",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister1.aspx",
                "Snapshot=t138.inf",
                "Mode=HTTP",
                ITEMDATA,
                "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState5}", ENDITEM,
                "Name=txtRegidterCode", "Value={NewParam_2}", ENDITEM,
                "Name=subjectID", "Value=1", ENDITEM,
                "Name=txtImageCode", "Value=8038", ENDITEM,
                "Name=__EVENTVALIDATION", "Value=/wEWBwL/r4XwAwLFzvmwAQL0iKvzDQLriKvzDQLqiKvzDQLp48PGBALG17zjBuCjF3I7vk9R1ltX8KWDyOCmA+rx", ENDITEM,
                "Name=ImgbtnSubmit.x", "Value=24", ENDITEM,
                "Name=ImgbtnSubmit.y", "Value=12", ENDITEM,
                LAST);
输入注册码和学科的信息后,点击确定,会出现刚才选择的信息的页面。

        web_submit_data("{WCSParam_Diff1}",
                "Action=http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister2.aspx?RegidterCode=MTA5NDQyMDUwNQ%3d%3d&subjectid=1",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister2.aspx?RegidterCode=MTA5NDQyMDUwNQ==&subjectid=1",
                "Snapshot=t141.inf",
                "Mode=HTTP",
                ITEMDATA,
                "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState7}", ENDITEM,
这里面的Action=http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister2.aspx?RegidterCode=MTA5NDQyMDUwNQ%3d%3d&subjectid=1",
中的RegidterCode总是第一次录制时的信息,按道理来说应该变化才对,而且这个值是服务器传过来的,请各位再帮忙看看,怎么能让RegidterCode的值每次都变化。
回复 支持 反对

使用道具 举报

该用户从未签到

7#
发表于 2011-6-23 10:49:39 | 只看该作者
RegidterCod这个只能看你前面哪一步操作执行后服务器返回的信息里面有这个东东了
然后就在这步操作前使用web_reg_save_param保存下来
回复 支持 反对

使用道具 举报

该用户从未签到

8#
 楼主| 发表于 2011-6-23 11:06:41 | 只看该作者
我点击脚本时遇到如下提示“synchronous call using IFrameXMLHttp is not supported”,从网上查“不支持对 IFrameXMLHttp 对象的同步调用(这表示该网页的脚本代码——一种程序代码,有错误)
不知你用什么浏览器?
这是网站方编写网页Javascript脚本代码时没有考虑到Javascript在不同网页浏览器的兼容性问题。”
那这个是我测试的网页的程序代码的问题吗
回复 支持 反对

使用道具 举报

该用户从未签到

9#
发表于 2011-6-23 14:36:06 | 只看该作者
这个问题我之前也遇到过,要将定义关联函数大小的函数放到第一行,不然LR会认为超出大小,这是自动关联中的BUG
回复 支持 反对

使用道具 举报

该用户从未签到

10#
 楼主| 发表于 2011-6-23 18:43:44 | 只看该作者
Action.c(412): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState9". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1500 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]

谢谢xiongyijie217 ,我就是将关联函数放到使用该函数的web_url前才解决了上面的问题的。谢谢谢谢了
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-13 04:05 , Processed in 0.089200 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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