lijingprince5 发表于 2012-5-10 18:03:00

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)       
Run Mode: HTML       
Run-Time Settings file: "C:\Documents and Settings\lijing\Local Settings\Temp\noname13\\default.cfg"       
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       
Action.c(23): web_submit_data("check_outchain.php_2") was successful, 21 body bytes, 196 header bytes, 15 chunking overhead bytes       
Action.c(42): web_add_cookie was successful       
Action.c(44): Registering web_reg_find was successful       
Action.c(50): Registering web_reg_save_param_ex was successful       
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"       
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"       
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"       
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"       
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"       
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"       
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"       
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"       
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"       
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"       
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       
Action.c(60): Error -26366: "Text=
        ?E??
" not found for web_reg_find       
Action.c(60): web_url("Login.aspx") highest severity level was "ERROR", 156322 body bytes, 3255 header bytes        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:11

红字是关联没做好。web_reg_save_param,查查左右边界,一般是左右边界设定错误

lijingprince5 发表于 2012-5-10 22:20:50

:(回复 2# jj_ljw


    你好,我的脚本里录制的只有函数web_reg_save_param_ex()
没有web_reg_save_param() 请问是什么原因

云层 发表于 2012-5-10 23:00:38

你的自动关联错误的关联了数据,导致脚本运行的时候关联不到正确的内容出错了,当然这个问题很基础,我估计你没怎么认真看过书

jj_ljw 发表于 2012-5-11 10:00:38

lr11?
手动改下关联函数的边界,看看取到你需要的值没

lijingprince5 发表于 2012-6-9 17:13:27

谢谢大家了,最后问题解决了:修改了函数的边界.
回复晚了 对不住大家了.
页: [1]
查看完整版本: LR脚本回放时问题请教