51Testing软件测试论坛
标题:
LoadRunner 回放 提示 服务器已过早关闭连接
[打印本页]
作者:
cindylu520
时间:
2015-1-16 16:45
标题:
LoadRunner 回放 提示 服务器已过早关闭连接
我刚刚入门LoadRunner,今天对于它自带的应用做了一个录制。回放总是失败,提示服务器已过早关闭连接
Server has shut down the connection prematurely
Action()
{
web_url("WebTours",
"URL=http://IP:49168/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("welcome.pl",
"URL=http://IP:49177/WebTours/welcome.pl?signOff=true",
"Resource=0",
"RecContentType=text/html",
"Referer=http://IP:1080/WebTours/",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=http://IP:49181/WebTours/images/webtours.png", "Referer=http://IP:1080/WebTours/header.html", ENDITEM,
LAST);
web_url("nav.pl",
"URL=http://IP:49168/WebTours/nav.pl?in=home",
"Resource=0",
"RecContentType=text/html",
"Referer=http://IP:1080/WebTours/welcome.pl?signOff=true",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=http://IP:49181/WebTours/images/mer_login.gif", "Referer=http://IP:1080/WebTours/nav.pl?in=home", ENDITEM,
LAST);
lr_think_time(5);
web_submit_form("login.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=61", ENDITEM,
"Name=login.y", "Value=8", ENDITEM,
LAST);
web_url("nav.pl_2",
"URL=http://IP:49181/WebTours/nav.pl?page=menu&in=home",
"Resource=0",
"RecContentType=text/html",
"Referer=http://IP:1080/WebTours/login.pl",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=http://IP:49168/WebTours/images/flights.gif", "Referer=http://IP:1080/WebTours/nav.pl?page=menu&in=home", ENDITEM,
"Url=http://IP:49220/WebTours/images/in_home.gif", "Referer=http://IP:1080/WebTours/nav.pl?page=menu&in=home", ENDITEM,
"Url=http://IP:49224/WebTours/images/signoff.gif", "Referer=http://IP:1080/WebTours/nav.pl?page=menu&in=home", ENDITEM,
LAST);
web_custom_request("q.cgi",
"URL=http://masterconn.qq.com:49241/q.cgi",
"Method=POST",
"Resource=1",
"Referer=",
"Snapshot=t6.inf",
"EncType=",
"BodyBinary=\\x00\\x02\\x00\\xA6\\x00\\x00\\x00\\x01\\x00\\x00\\x01\n\\x00\\x00\\x07\\xDA\\x04\\x82\r噽谱\\x8A\\x14讞\\xE0$鼼馽+a\r\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x06襂远僗\\xE88\\x08羅\\x97\\x02\\xB9)攍宯Q\\xE9\\x0E\\xAA6蟓!妷銴馛\\x1A\nW荨\\x05趈ZX^Y\\x18瓈N7塙6Hm司M霾dnb\\x86.狖o溼\\xCC+\\xCD\\x16醵饱\\xAF\\x1B'柒嗲Nl掐V萜\\x10\\xC2:\\xFB\\x05D9G洇蘙浘亂s诚b夽)1敃u["
":y\\x00异\\x14谻\\xDE.\\xDE=16出S|勒\\x9B\\x1Bf\\x1B0г4\\x1Ar\\x0B禪戸/1聍,_\\x1F\\x82\\x16\\xB3\\x01硹Q\\x17烚馺\\x01\\x8A3襽籰鳒\"坑",
LAST);
return 0;
}
复制代码
作者:
jj_ljw
时间:
2015-1-16 19:53
记得自带的有错误,你录制百度页面试试
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2