回放LR8.1自带的脚本老是出错,大家帮我分析一下什么原因吧
刚装的LR8.1, 在VuGen里打开LR8.1自带的脚本basic_script脚本回放,但是在回放老是通不过,执行到Login这个事务这里就报错了,不知道什么原因,大家帮我分析一下。以下是replay log:Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 8.1.0 for WINXP; WebReplay81 build 5495
Run-Time Settings file: "C:\Program Files\Mercury\LoadRunner\tutorial\basic_script\\default.cfg"
vuser_init.c(11): Notify: Transaction "S01_T01_HomePage" started.
vuser_init.c(13): Detected non-resource "http://127.0.0.1:1080/MercuryWebTours/header.html" in "http://127.0.0.1:1080/MercuryWebTours/"
vuser_init.c(13): Detected non-resource "http://127.0.0.1:1080/MercuryWebTours/welcome.pl?signOff=true" in "http://127.0.0.1:1080/MercuryWebTours/"
vuser_init.c(13): Found resource "http://127.0.0.1:1080/MercuryWebTours/images/mercury_logo.gif" in HTML "http://127.0.0.1:1080/MercuryWebTours/header.html"
vuser_init.c(13): Detected non-resource "http://127.0.0.1:1080/MercuryWebTours/nav.pl?in=home" in "http://127.0.0.1:1080/MercuryWebTours/welcome.pl?signOff=true"
vuser_init.c(13): Detected non-resource "http://127.0.0.1:1080/MercuryWebTours/home.html" in "http://127.0.0.1:1080/MercuryWebTours/welcome.pl?signOff=true"
vuser_init.c(13): Found resource "http://127.0.0.1:1080/MercuryWebTours/images/fma-gateway.jpg" in HTML "http://127.0.0.1:1080/MercuryWebTours/home.html"
vuser_init.c(13): Found resource "http://127.0.0.1:1080/MercuryWebTours/JSFormSubmit.js" in HTML "http://127.0.0.1:1080/MercuryWebTours/nav.pl?in=home"
vuser_init.c(13): Found resource "http://127.0.0.1:1080/MercuryWebTours/images/mer_login.gif" in HTML "http://127.0.0.1:1080/MercuryWebTours/nav.pl?in=home"
vuser_init.c(13): web_url("mercuryWebTours") was successful, 52637 body bytes, 1812 header bytes
vuser_init.c(22): Notify: Transaction "S01_T01_HomePage" ended with "Pass" status (Duration: 21.1863).
vuser_init.c(26): Notify: Transaction "S01_T02_LogIn" started.
vuser_init.c(28): Submitting form to "http://127.0.0.1:1080/MercuryWebTours/error.pl", Target Frame="body"
vuser_init.c(28): Found resource "http://127.0.0.1:1080/MercuryWebTours/images/splash_error2.jpg" in HTML "http://127.0.0.1:1080/MercuryWebTours/error.pl"
vuser_init.c(28): Found resource "http://127.0.0.1:1080/MercuryWebTours/images/startover.gif" in HTML "http://127.0.0.1:1080/MercuryWebTours/error.pl"
vuser_init.c(28): Warning -26627: HTTP Status-Code=404 (Not found) for "http://127.0.0.1:1080/MercuryWebTours/images/startover.gif"
vuser_init.c(28): Warning -26627: HTTP Status-Code=404 (Not found) for "http://127.0.0.1:1080/MercuryWebTours/images/splash_error2.jpg"
vuser_init.c(28): web_submit_form("login.pl") highest severity level was "warning", 1140 body bytes, 514 header bytes
vuser_init.c(37): Notify: Transaction "S01_T02_LogIn" ended with "Pass" status (Duration: 12.2143).
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(3): Notify: Transaction "S01_T03_SearchFlight" started.
Action.c(5): Error -27987: Requested image not found
Action.c(5): web_image("Search Flights Button") highest severity level was "ERROR", 0 body bytes, 0 header bytes
Action.c(5): Notify: Transaction "S01_T03_SearchFlight" ended with "Fail" status (Duration: 0.5933).
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
vuser_end.c(3): Notify: Transaction "S01_T07_SignOff" started.
vuser_end.c(4): Error -27987: Requested image not found
vuser_end.c(4): web_image("SignOff Button") highest severity level was "ERROR", 0 body bytes, 0 header bytes
vuser_end.c(4): Notify: Transaction "S01_T07_SignOff" ended with "Fail" status (Duration: 0.5600).
Ending action vuser_end.
Vuser Terminated.
之前回放也不成功,但是在Run time setting 里面设定noproxy后回放成功了。
今天上午优化了一下系统,把一些临时文件给删了就不行了,不知道什么原因。 刚才在同事的机子上试了一下,回放是没有错误的,晕死了,不会要卸了它重装吧。 我在HTML-based script 的高级设置里设成A script containing explicit URLs only模式后再按照教程里的步骤录制一下脚本并回放,结果回放成功了,但是在replay summary里面看到的快照,左边的recording的快照和右边的replay的快照是不一样的,replay的快照都是最上面的MercuryWebTour的快照。这个是怎么回事呢?另外,为什么在html-based script的高级设置里用A script describing user actions却回放不成功呢?
前辈们多指教啊。 再看了一下LoadRunner自带的脚本,并重新回放了一下,发现只要有web_image、web_submit_form的地方都报错:
Action.c(5): Continuing after Error -27987: Requested image not found
Action.c(20): Continuing after Error -27979: Requested form not found
不知道是什么原因。 怎么没有人回答啊,是我这问题太简单了么。 发现问题可能是由于清除了IE的COOKIE造成的,因为把extended log 打印出来看了一下,发现第一次报错的信息是这样的:Cookie: MSO=SID&1182491657&MSO_JSFormSubmit1&on&MSO_ServerErrorsProb&50&MSO_ServerLoadProb 比较了一下回放的LOG文件和生成时的LOG文件,发现COOKIE是有差别的:
replay log 中
vuser_init.c(17): Set-cookie: MTUserInfo=; path=/; expires=Thu, 21-Jun-2007 09:25:47 GMT\r\n
vuser_init.c(17): Set-cookie: MSO=SID&1182504347&MSO_JSFormSubmit2&on&MSO_ServerErrorsProb&50&MSO_ServerLoad (红色文字)
generation log 中
Cookie: MSO=SID&1120027162
Set-cookie: MTUserInfo=hash&47&firstName&Joseph&expDate&%0A&creditCard&&address1&234%20Willow%20Drive&lastName&Marshall%0A&address2&San%20Jose%2FCA%2F94085&username&jojo; path=/
怎么不让LOADRUNNER 自动set cookie呢?
有可能是cookies问题
我的也是明明开始时间可以录制,可是删除了临时文件和cookies文件,打不开那个默认页了。不知道如何解决。 同求答案啊
页:
[1]