各位帮忙看一下,用LR9.1试用版录制脚本,做参数化后报错
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"
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
Action.c(412): web_submit_data("UserRegister2.aspx") highest severity level was "ERROR", 8970 body bytes, 240 header bytes 各位朋友,帮帮忙看看吧 所有的log如下:
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 9.0.0 for WINXP; WebReplay82 build 5727
Run-Time Settings file: "D:\Program Files\Mercury\LoadRunner\scripts\registerscript\\default.cfg"
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): web_add_cookie was successful
Action.c(6): web_add_cookie was successful
Action.c(8): web_add_cookie was successful
Action.c(10): web_add_cookie was successful
Action.c(12): web_set_max_html_param_len was successful
Action.c(14): web_url("index.aspx") was successful, 196604 body bytes, 223 header bytes
Action.c(23): web_concurrent_start was successful
Action.c(25): Registering web_url("style.css") was successful
Action.c(33): Registering web_url("SpryMenuBarHorizontal.css") was successful
Action.c(41): Registering web_url("bjzy_07.gif") was successful
Action.c(49): Registering web_url("bj1_25.gif") was successful
Action.c(57): Registering web_url("bj2_27.gif") was successful
Action.c(65): Registering web_url("zjtd.gif") was successful
Action.c(73): Registering web_url("Login.aspx") was successful
Action.c(82): Registering web_url("nav_bg032.gif") was successful
Action.c(90): Registering web_url("nav_bg042.gif") was successful
Action.c(98): Registering web_url("HelpBook.aspx") was successful
Action.c(107): Registering web_url("gfmore1.gif") was successful
Action.c(115): Registering web_url("IndexFlash.aspx") was successful
Action.c(124): Registering web_url("bj3_28.gif") was successful
Action.c(132): Registering web_url("zxsp_index.jpg") was successful
Action.c(140): Registering web_url("bzzx.gif") was successful
Action.c(148): Registering web_url("bottom.js") was successful
Action.c(156): Registering web_url("bj4_32.gif") was successful
Action.c(164): web_concurrent_end was successful, 57036 body bytes, 4312 header bytes
Action.c(166): web_url("sytop_02.gif") was successful, 10218 body bytes, 251 header bytes
Action.c(174): web_concurrent_start was successful
Action.c(176): Registering web_url("gfbg01.gif") was successful
Action.c(184): Registering web_url("login.js") was successful
Action.c(192): Registering web_url("ImageLog.aspx") was successful
Action.c(200): Registering web_url("sidebar_tag02.gif") was successful
Action.c(208): Registering web_url("sidebar_tag03.gif") was successful
Action.c(216): web_concurrent_end was successful, 4380 body bytes, 1217 header bytes
Action.c(218): web_url("gfbg02.gif") was successful, 3279 body bytes, 250 header bytes
Action.c(226): web_url("sidebar_tag04.gif") was successful, 435 body bytes, 249 header bytes
Action.c(234): web_concurrent_start was successful
Action.c(236): Registering web_url("flash.js") was successful
Action.c(244): Registering web_url("lanrentuku.css") was successful
Action.c(252): web_concurrent_end was successful, 5777 body bytes, 513 header bytes
Action.c(254): web_url("sidebar_bg09.gif") was successful, 3696 body bytes, 250 header bytes
Action.c(262): web_concurrent_start was successful
Action.c(264): Registering web_url("sidebar_bg101.gif") was successful
Action.c(272): Registering web_url("gfbg03.gif") was successful
Action.c(280): web_concurrent_end was successful, 12436 body bytes, 500 header bytes
Action.c(286): Registering web_reg_save_param was successful
Action.c(296): web_url("UserRegister1.aspx") was successful, 13326 body bytes, 222 header bytes
Action.c(305): web_concurrent_start was successful
Action.c(307): Registering web_url("alertMsg.js") was successful
Action.c(315): Registering web_url("button22.gif") was successful
Action.c(323): Registering web_url("button09.gif") was successful
Action.c(331): Registering web_url("dot1.gif") was successful
Action.c(339): Registering web_url("ImageRegister.aspx") was successful
Action.c(347): web_concurrent_end was successful, 3645 body bytes, 1216 header bytes
Action.c(353): Registering web_reg_save_param was successful
Action.c(363): web_submit_data("UserRegister1.aspx_2") was successful, 13443 body bytes, 222 header bytes
Action.c(380): web_concurrent_start was successful
Action.c(382): Registering web_url("BtnPre1.gif") was successful
Action.c(390): Registering web_url("BtnNext1.gif") was successful
Action.c(398): web_concurrent_end was successful, 700 body bytes, 498 header bytes
Action.c(404): Registering web_reg_save_param was successful
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"
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
Action.c(412): web_submit_data("UserRegister2.aspx") highest severity level was "ERROR", 8970 body bytes, 240 header bytes
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated. 看不懂,参数还不会弄 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"
这条很简单,就是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
这个就是你的参数化错误,你的设置的参数是否对应了相应的值。检查一下,或许参数数量不够。
第三条没遇到过,我也不清楚 谢谢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的值每次都变化。 RegidterCod这个只能看你前面哪一步操作执行后服务器返回的信息里面有这个东东了
然后就在这步操作前使用web_reg_save_param保存下来 我点击脚本时遇到如下提示“synchronous call using IFrameXMLHttp is not supported”,从网上查“不支持对 IFrameXMLHttp 对象的同步调用(这表示该网页的脚本代码——一种程序代码,有错误)
不知你用什么浏览器?
这是网站方编写网页Javascript脚本代码时没有考虑到Javascript在不同网页浏览器的兼容性问题。”
那这个是我测试的网页的程序代码的问题吗 这个问题我之前也遇到过,要将定义关联函数大小的函数放到第一行,不然LR会认为超出大小,这是自动关联中的BUG 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
谢谢xiongyijie217 ,我就是将关联函数放到使用该函数的web_url前才解决了上面的问题:handshake的。谢谢谢谢了
页:
[1]