51Testing软件测试论坛

标题: LR脚本回放时问题请教 [打印本页]

作者: lijingprince5    时间: 2012-5-10 18:03
标题: LR脚本回放时问题请教
以下为脚本回放的replay log.请大侠们帮我看看大致是哪方面的问题.
谢谢了 很急的.
Virtual User Script started at : 2012-05-10 17:46:19
Starting action vuser_init.
Web Turbo Replay of LoadRunner 11.0.0 for WINXP; build 9409 (Jan 11 2012 11:34:16)          [MsgId: MMSG-27143]
Run Mode: HTML          [MsgId: MMSG-26000]
Run-Time Settings file: "C:\Documents and Settings\lijing\Local Settings\Temp\noname13\\default.cfg"          [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): web_submit_data("check_outchain.php") was successful, 21 body bytes, 196 header bytes, 15 chunking overhead bytes          [MsgId: MMSG-26385]
Action.c(23): web_submit_data("check_outchain.php_2") was successful, 21 body bytes, 196 header bytes, 15 chunking overhead bytes          [MsgId: MMSG-26385]
Action.c(42): web_add_cookie was successful          [MsgId: MMSG-26392]
Action.c(44): Registering web_reg_find was successful          [MsgId: MMSG-26390]
Action.c(50): Registering web_reg_save_param_ex was successful          [MsgId: MMSG-26390]
Action.c(60): Found resource "http://10.35.2.248/esystem/Layout/CSS/LG/login.css" in HTML "http://10.35.2.248/esystem/Layout/BaseLayout/Login.aspx"          [MsgId: MMSG-26659]
Action.c(60): Found resource "http://10.35.2.248/esystem/Layout/Css/IsUsb.js" in HTML "http://10.35.2.248/esystem/Layout/BaseLayout/Login.aspx"          [MsgId: MMSG-26659]
Action.c(60): Found resource "http://10.35.2.248/esystem/WebResource.axd?d=2jY_LNCXT_ia-wZ9Gm98zWRBiVlqumnWeK6nlmXfGWk1&t=634593647720000000" in HTML "http://10.35.2.248/esystem/Layout/BaseLayout/Login.aspx"          [MsgId: MMSG-26659]
Action.c(60): Found resource "http://10.35.2.248/esystem/WebResource.axd?d=2jY_LNCXT_ia-wZ9Gm98zaixZKxFl9s_AaZYPDP-wGiKuevkaQ2Rk0w3bpXHw6hy0&t=634593647720000000" in HTML "http://10.35.2.248/esystem/Layout/BaseLayout/Login.aspx"          [MsgId: MMSG-26659]
Action.c(60): Found resource "http://10.35.2.248/esystem/ScriptResource.axd?d=3QYPzTWLubSCvCRCjpq7r7GZkVy7eo5eKaaTlDfPxK2WFXGbo0hkJOwdF3Oo9xED0&t=fffffffff9da21zh-CHS.js" in HTML "http://10.35.2.248/esystem/Layout/BaseLayout/Login.aspx"          [MsgId: MMSG-26659]
Action.c(60): Found resource "http://10.35.2.248/esystem/Layout/CSS/DevTime/Images/login/icon1.gif" in HTML "http://10.35.2.248/esystem/Layout/BaseLayout/Login.aspx"          [MsgId: MMSG-26659]
Action.c(60): Found resource "http://10.35.2.248/esystem/Layout/CSS/DevTime/images/Login/icon1.gif" in HTML "http://10.35.2.248/esystem/Layout/BaseLayout/Login.aspx"          [MsgId: MMSG-26659]
Action.c(60): Found resource "http://10.35.2.248/esystem/Layout/CSS/DevTime/Images/login/point.gif" in HTML "http://10.35.2.248/esystem/Layout/BaseLayout/Login.aspx"          [MsgId: MMSG-26659]
Action.c(60): Found resource "http://10.35.2.248/esystem/Layout/CSS/DevTime/Images/login/spacer.gif" in HTML "http://10.35.2.248/esystem/Layout/BaseLayout/Login.aspx"          [MsgId: MMSG-26659]
Action.c(60): Found resource "http://10.35.2.248/esystem/Layout/BaseLayout/images/LoginButton.jpg" in HTML "http://10.35.2.248/esystem/Layout/BaseLayout/Login.aspx"          [MsgId: MMSG-26659]
Action.c(60): Error -35061: No match found for the requested parameter "Siebel_Analytic_ViewState1". 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-35061]
Action.c(60): Error -26366: "Text=
        ?E??
" not found for web_reg_find          [MsgId: MERR-26366]
Action.c(60): web_url("Login.aspx") highest severity level was "ERROR", 156322 body bytes, 3255 header bytes          [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
作者: jj_ljw    时间: 2012-5-10 20:47
红字是关联没做好。web_reg_save_param,查查左右边界,一般是左右边界设定错误
作者: lijingprince5    时间: 2012-5-10 22:20
回复 2# jj_ljw


    你好,我的脚本里录制的只有函数web_reg_save_param_ex()
没有web_reg_save_param() 请问是什么原因
作者: 云层    时间: 2012-5-10 23:00
你的自动关联错误的关联了数据,导致脚本运行的时候关联不到正确的内容出错了,当然这个问题很基础,我估计你没怎么认真看过书
作者: jj_ljw    时间: 2012-5-11 10:00
lr11?
手动改下关联函数的边界,看看取到你需要的值没
作者: lijingprince5    时间: 2012-6-9 17:13
谢谢大家了,最后问题解决了:修改了函数的边界.
回复晚了 对不住大家了.




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