需要验证,请使用"web_set_user"解决方案不起作用 [英] Authentication required, please use "web_set_user" solution not working
问题描述
我正在尝试loadRunner(Vugen)12.53.我记录了一个非常简单的HP Web Tours App导航.这种最简单的导航(在浏览器中打开网站)在重放时给我以下错误:
I'm trying loadRunner (Vugen) 12.53. I recorded a very simple navigation to HP Web Tours App. This simplest navigation (site opens up in the browser) gives me the following error while replaying:
需要验证,请使用"web_set_user",例如web_set_user("domain \ user","password","host:port");[MsgId:MERR-26547]
Authentication required, please use "web_set_user", e.g. web_set_user("domain\user", "password", "host:port"); [MsgId: MERR-26547]
我对loadRunner很陌生.因此,我在编辑器的开头使用了web_set_user:
I'm very new to loadRunner. Hence, I used web_set_user at the beginning of the editor as:
web_set_user("localhost\\jojo", "bean", "localhost:1080");
我尝试在运行时设置中启用"WinInet",但是没有运气.HP VuGEN帮助中心似乎未在其指南中解决此常见问题.
I tried enabling "WinInet" at runtime setting but no luck. HP VuGEN Help Center does not seem to address this common issue in their guide.
推荐答案
实际上,此行不执行任何操作:
Actually, this line does nothing:
web_set_user("localhost\\jojo", "bean", "localhost:1080");
您正在尝试使用用户作为本地主机,但这没有任何意义.
You are trying to use a user for local host but that doesnt make any sense.
您的错误消息可能来自2个地方:
Your error message can come from 2 places:
- 该站点需要身份验证.
- 您位于需要身份验证的代理后面.
如果您在运行时设置下使用代理服务器,请填写您的用户名和密码以进行代理身份验证.
If you are using a proxy server under run-time settings, please fill in your user and password for proxy authentication.
如果您不使用代理,则需要提供远程站点的密码,而不是localhost.尝试将web_set_user命令更改为:
If you are not using a proxy, you need to provide the remote site your password, not localhost. try changing the web_set_user command to:
web_set_user("<domain name>\\<user in domain>", "<password>", "<site address server name>:80");
或
web_set_user("<domain name>\\<user in domain>", "<password>", "<site address server name>:8080");
例如:
web_set_user("IAN_Net\\james", "bobo1", "MercuryTours.com:8080");
web_set_user("IAN_Net\\james", "bobo1", "localserver:8080");
web_set_user("IAN_Net\\james", "bobo1", "10.2.33.222:8080");
web_set_user("IAN_Net\\james", "bobo1", "10.2.33.222:80");
祝你好运.
这篇关于需要验证,请使用"web_set_user"解决方案不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!