51Testing软件测试论坛

标题: 使用了代理,录制的时候成功,但在vuser单用户回放报错. [打印本页]

作者: Joy_z    时间: 2006-6-15 10:52
标题: 使用了代理,录制的时候成功,但在vuser单用户回放报错.
本人想通过录制外网的网站来学习LR工具
装有LR的机器是通过代理服务器上网,(浏览器已设置登陆外网的帐号和密码)
但用Vuser录制时,却是无法显示该网页,在浏览器中可以成功访问.
且在vuser的run time setting中分别试了三种方式.然后再录制,仍然不行.
有人遇到过吗?

[ 本帖最后由 Joy_z 于 2006-6-15 15:49 编辑 ]
作者: Joy_z    时间: 2006-6-15 13:03
没有人遇到吗?
还是我没有描述清楚.给点建议也好啊。
想学习,可连录制都进行不了,
超级郁闷~~~~~~~~~
作者: Joy_z    时间: 2006-6-15 16:09
可能是标题不醒目,改了一下标题
下午又试了一次,录制成功,但回放报错。
详细过程如下:
1。过程:选择HTTP协议,录制时所有的设置都取默认项。录制51testing的浏览动作。录制时成功,(注LR中默认的代理服务器设置为不使用代理,录制前未修改设置,但录制完成后,查看Vuser中代理服务器的设置,却显示选中的是第三项使用代理,试过多次,每次都这样)。
2。单用户执行,报错,执行日志为:
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 8.0.0 for WINXP; Web build 4141          [MsgId: MMSG-27143]
Run-Time Settings file: "C:\Documents and Settings\Administrator\Local Settings\Temp\noname9\\default.cfg"          [MsgId: MMSG-27141]
vuser_init.c(12): web_add_cookie was successful          [MsgId: MMSG-26392]
vuser_init.c(14): web_add_cookie was successful          [MsgId: MMSG-26392]
vuser_init.c(16): web_add_cookie was successful          [MsgId: MMSG-26392]
vuser_init.c(18): web_add_cookie was successful          [MsgId: MMSG-26392]
vuser_init.c(20): web_add_cookie was successful          [MsgId: MMSG-26392]
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/top.swf" (specified by argument number 9)          [MsgId: MMSG-26577]
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/middle_1.swf" (specified by argument number 12)          [MsgId: MMSG-26577]
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/albbend.swf" (specified by argument number 15)          [MsgId: MMSG-26577]
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/middle_3.swf" (specified by argument number 18)          [MsgId: MMSG-26577]
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/middle_2.swf" (specified by argument number 21)          [MsgId: MMSG-26577]
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/left.swf" (specified by argument number 24)          [MsgId: MMSG-26577]
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/E_learning.swf" (specified by argument number 27)          [MsgId: MMSG-26577]
vuser_init.c(22): Error -26624: HTTP Status-Code=407 (Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )) for "http://www.51testing.com/"          [MsgId: MERR-26624]
vuser_init.c(22): Warning -26624: HTTP Status-Code=407 (Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )) for "http://www.51testing.com/php/modpage/img/top.swf"          [MsgId: MWAR-26624]
vuser_init.c(22): Warning -26624: HTTP Status-Code=407 (Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )) for "http://www.51testing.com/php/modpage/img/middle_1.swf"          [MsgId: MWAR-26624]
vuser_init.c(22): Warning -26624: HTTP Status-Code=407 (Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )) for "http://www.51testing.com/php/modpage/img/albbend.swf"          [MsgId: MWAR-26624]
vuser_init.c(22): Warning -26624: HTTP Status-Code=407 (Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )) for "http://www.51testing.com/php/modpage/img/middle_3.swf"          [MsgId: MWAR-26624]
vuser_init.c(22): Warning -26624: HTTP Status-Code=407 (Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )) for "http://www.51testing.com/php/modpage/img/middle_2.swf"          [MsgId: MWAR-26624]
vuser_init.c(22): Warning -26624: HTTP Status-Code=407 (Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )) for "http://www.51testing.com/php/modpage/img/left.swf"          [MsgId: MWAR-26624]
vuser_init.c(22): Warning -26624: HTTP Status-Code=407 (Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )) for "http://www.51testing.com/php/modpage/img/E_learning.swf"          [MsgId: MWAR-26624]
vuser_init.c(22): web_url("www.51testing.com") highest severity level was "ERROR", 38032 body bytes, 8682 header bytes          [MsgId: MMSG-26388]
Abort was called from an action.
作者: andy    时间: 2006-6-15 16:40
你选了哪个选项?
没遇到过这样的情况
作者: Joy_z    时间: 2006-6-15 17:18
试了N多次,一直起来困惑了很久的问题终于解决了。。这个时候很舒服~~~~~~~~
下面小结下:
装有LR的机器如果是使用了代理,且要录制外网的东东,在Vuser中的run time setting--proxy中需进行设置,
第一种方式:选择obtain the proxy setting from the default blowser(获取默认浏览器),此时需要设置authentication身份验证(即使正常访问浏览器时已设置了用户名和密码),如果装有LR的机器是在域中,别忘了在用户名前加域。录制后执行成功!

第二种方式:就是选择user custom proxy(自定义代理服务器),勾选user proxy server,设置如附件图:
此时也同样需要设置authentication身份验证,别忘了用户名前也要加域,录制后执行也是成功的!
作者: jljs_lp    时间: 2011-7-5 17:39
非常感谢楼主,困扰好多天的问题终于解决了




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2