Joy_z 发表于 2006-6-15 10:52:19

使用了代理,录制的时候成功,但在vuser单用户回放报错.

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

[ 本帖最后由 Joy_z 于 2006-6-15 15:49 编辑 ]

Joy_z 发表于 2006-6-15 13:03:21

没有人遇到吗?
还是我没有描述清楚.给点建议也好啊。
想学习,可连录制都进行不了,
超级郁闷~~~~~~~~~

Joy_z 发表于 2006-6-15 16:09:29

可能是标题不醒目,改了一下标题
下午又试了一次,录制成功,但回放报错。
详细过程如下:
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       
Run-Time Settings file: "C:\Documents and Settings\Administrator\Local Settings\Temp\noname9\\default.cfg"       
vuser_init.c(12): web_add_cookie was successful       
vuser_init.c(14): web_add_cookie was successful       
vuser_init.c(16): web_add_cookie was successful       
vuser_init.c(18): web_add_cookie was successful       
vuser_init.c(20): web_add_cookie was successful       
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/top.swf" (specified by argument number 9)       
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/middle_1.swf" (specified by argument number 12)       
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/albbend.swf" (specified by argument number 15)       
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/middle_3.swf" (specified by argument number 18)       
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/middle_2.swf" (specified by argument number 21)       
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/left.swf" (specified by argument number 24)       
vuser_init.c(22): Downloading resource "http://www.51testing.com/php/modpage/img/E_learning.swf" (specified by argument number 27)       
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/"       
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"       
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"       
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"       
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"       
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"       
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"       
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"       
vuser_init.c(22): web_url("www.51testing.com") highest severity level was "ERROR", 38032 body bytes, 8682 header bytes       
Abort was called from an action.

andy 发表于 2006-6-15 16:40:56

你选了哪个选项?
没遇到过这样的情况

Joy_z 发表于 2006-6-15 17:18:21

试了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:07

非常感谢楼主,困扰好多天的问题终于解决了:victory:
页: [1]
查看完整版本: 使用了代理,录制的时候成功,但在vuser单用户回放报错.