|
使用LR8.1英文版,录制时使用URL录制的一个C#开发的WEB页面,用HTML录制也是出错
出错如下:
*********************************************************************
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 8.1.0 for WINXP; Web build 4788 [MsgId: MMSG-27143]
Run-Time Settings file: "C:\Documents and Settings\Administrator\Local Settings\Temp\noname5\\default.cfg" [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): Redirecting "http://192.168.1.200/crm" (redirection depth=0) [MsgId: MMSG-26694]
Action.c(4): To location "http://192.168.1.200/crm/" [MsgId: MMSG-26693]
Action.c(4): web_url("crm") was successful, 210 body bytes, 508 header bytes [MsgId: MMSG-26386]
Action.c(13): web_url("Login.aspx") was successful, 3496 body bytes, 295 header bytes [MsgId: MMSG-26386]
Action.c(22): web_concurrent_start was successful [MsgId: MMSG-26392]
Action.c(24): Registering web_url("denglu01.gif") was successful [MsgId: MMSG-26390]
Action.c(32): Registering web_url("denglu02.gif") was successful [MsgId: MMSG-26390]
Action.c(40): Registering web_url("jinru.gif") was successful [MsgId: MMSG-26390]
Action.c(48): Registering web_url("denglu04.gif") was successful [MsgId: MMSG-26390]
Action.c(56): Registering web_url("denglu06.gif") was successful [MsgId: MMSG-26390]
Action.c(64): Registering web_url("denglu07.gif") was successful [MsgId: MMSG-26390]
Action.c(72): Registering web_url("denglu08.gif") was successful [MsgId: MMSG-26390]
Action.c(80): Registering web_url("denglu03.gif") was successful [MsgId: MMSG-26390]
Action.c(88): Registering web_url("denglu05.gif") was successful [MsgId: MMSG-26390]
Action.c(96): web_concurrent_end was successful, 70804 body bytes, 2238 header bytes [MsgId: MMSG-26386]
Action.c(98): Redirecting "http://192.168.1.200/crm/Pages/Welcome.aspx" (redirection depth=0) [MsgId: MMSG-26694]
Action.c(98): To location "http://192.168.1.200/crm/Pages/Error.aspx?aspxerrorpath=/crm/Pages/Welcome.aspx" [MsgId: MMSG-26693]
Action.c(98): web_url("Welcome.aspx") was successful, 5600 body bytes, 613 header bytes [MsgId: MMSG-26386]
Action.c(107): web_concurrent_start was successful [MsgId: MMSG-26392]
Action.c(109): Registering web_url("QTLogo.gif") was successful [MsgId: MMSG-26390]
Action.c(117): Registering web_url("default.css") was successful [MsgId: MMSG-26390]
Action.c(125): web_concurrent_end was successful, 9060 body bytes, 498 header bytes [MsgId: MMSG-26386]
Action.c(127): web_concurrent_start was successful [MsgId: MMSG-26392]
Action.c(129): Registering web_url("img1.gif") was successful [MsgId: MMSG-26390]
Action.c(137): Registering web_url("verticalmenubg.jpg") was successful [MsgId: MMSG-26390]
Action.c(145): Registering web_url("img3.gif") was successful [MsgId: MMSG-26390]
Action.c(153): Registering web_url("img2.gif") was successful [MsgId: MMSG-26390]
Action.c(161): web_concurrent_end was successful, 5752 body bytes, 996 header bytes [MsgId: MMSG-26386]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
*********************************************************************
脚本代码如下:
*********************************************************************
Action()
{
web_url("crm",
"URL=http://192.168.1.200/crm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_url("Login.aspx",
"URL=http://192.168.1.200/crm/Pages/Login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("denglu01.gif",
"URL=http://192.168.1.200/crm/Images/denglu01.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Login.aspx",
"Snapshot=t3.inf",
LAST);
web_url("denglu02.gif",
"URL=http://192.168.1.200/crm/Images/denglu02.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Login.aspx",
"Snapshot=t4.inf",
LAST);
web_url("jinru.gif",
"URL=http://192.168.1.200/crm/Images/jinru.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Login.aspx",
"Snapshot=t5.inf",
LAST);
web_url("denglu04.gif",
"URL=http://192.168.1.200/crm/Images/denglu04.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Login.aspx",
"Snapshot=t6.inf",
LAST);
web_url("denglu06.gif",
"URL=http://192.168.1.200/crm/Images/denglu06.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Login.aspx",
"Snapshot=t7.inf",
LAST);
web_url("denglu07.gif",
"URL=http://192.168.1.200/crm/Images/denglu07.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Login.aspx",
"Snapshot=t8.inf",
LAST);
web_url("denglu08.gif",
"URL=http://192.168.1.200/crm/Images/denglu08.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Login.aspx",
"Snapshot=t9.inf",
LAST);
web_url("denglu03.gif",
"URL=http://192.168.1.200/crm/Images/denglu03.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Login.aspx",
"Snapshot=t10.inf",
LAST);
web_url("denglu05.gif",
"URL=http://192.168.1.200/crm/Images/denglu05.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Login.aspx",
"Snapshot=t11.inf",
LAST);
web_concurrent_end(NULL);
web_url("Welcome.aspx",
"URL=http://192.168.1.200/crm/Pages/Welcome.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t12.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("QTLogo.gif",
"URL=http://192.168.1.200/crm/Images/QTLogo.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Error.aspx?aspxerrorpath=/crm/Pages/Welcome.aspx",
"Snapshot=t13.inf",
LAST);
web_url("default.css",
"URL=http://192.168.1.200/crm/App_Themes/Default/default.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.200/crm/Pages/Error.aspx?aspxerrorpath=/crm/Pages/Welcome.aspx",
"Snapshot=t14.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("img1.gif",
"URL=http://192.168.1.200/crm/App_Themes/Default/images/img1.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Error.aspx?aspxerrorpath=/crm/Pages/Welcome.aspx",
"Snapshot=t15.inf",
LAST);
web_url("verticalmenubg.jpg",
"URL=http://192.168.1.200/crm/App_Themes/Default/images/verticalmenubg.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.1.200/crm/Pages/Error.aspx?aspxerrorpath=/crm/Pages/Welcome.aspx",
"Snapshot=t16.inf",
LAST);
web_url("img3.gif",
"URL=http://192.168.1.200/crm/App_Themes/Default/images/img3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Error.aspx?aspxerrorpath=/crm/Pages/Welcome.aspx",
"Snapshot=t17.inf",
LAST);
web_url("img2.gif",
"URL=http://192.168.1.200/crm/App_Themes/Default/images/img2.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.200/crm/Pages/Error.aspx?aspxerrorpath=/crm/Pages/Welcome.aspx",
"Snapshot=t18.inf",
LAST);
web_concurrent_end(NULL);
return 0;
}
********************************************************************* |
|