|
测试环境:
Client
OS:XP with SP2
IE:6.0.2900.2180
LoadRunner: 8.1.0.0
Server
OS:Solaris 10
Weblogic 9.2 MP3
Oracle 9i
脚本如下:
web_url("index.jsp",
"URL=http://IP:1101/athena/jsp/index.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=../images/login-button-b.jpg", "Referer=http://IP:7001/athena/jsp/index.jsp", ENDITEM,
LAST);
可是我同事用LR8.0版本录制的脚本如下:
web_url("index.jsp",
"URL=http://IP:7001/athena/jsp/index.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=../images/login-button-b.jpg", ENDITEM,
LAST);
为什么同样的系统,用不同的LR录出的脚本就不同,主要区别就在端口号上,如红字标出。然后我Replay我录制的脚本时,运行到这一行就会报错,错误信息为"Action.c(18): Error -27796: Failed to connect to server "IP:1101": [10061] Connection refused [MsgId: MERR-27796] "
我手动把端口号改成7001后就可以跑过。请问这是为什么?为什么用LR8.1录制会出现个1101的端口,LR8.0却没有此问题? |
|