总是有使用VSTS WebTest的同学问,我的Web测试记录器无效了,弹出IE后,记录的按钮老是灰色的。前面我写过一篇文章VSTS 启动web测试记录器无效 里面提供了一些解决的方法,但反馈是无效。后面我自己试用了一个方法,比较土,就是如果你安装的是IE6.0,碰到此问题可以安装IE7.0解决,解决后如果你觉得IE7.0不好用,可以把IE7.0卸载掉,问题也不会出现,这个方法我在2台电脑上实验过,都成功了。
刚好,今天又看到了一篇文章(怎么不早点看到呢),在Michael Taute's Blog上专门写了一篇Diagnosing and fixing Web Test recorder bar issues ,里面详细分析了在不同IDE,不同操作系统碰到此问题如何解决的方法,有现成的了,那也不翻译了,转贴在下面,再碰到此问题的同学可以参照修复。
Diagnosing and fixing Web Test recorder bar issues.
Since VSTS 2005 shipped there have been a variety of different questions raised by customers over the years. One topic which comes up somewhat frequently is a disabled or nonexistent web test recorder bar when recording web tests. Since it can be frustrating to diagnose and fix these problems, I’ve compiled a list of the most common reasons for this to happen and potential fixes for each.
If you know of something that fits the “My web test recorder bar isn’t working” criteria and isn’t on the list, please let me know and I’ll try to add it.
VSTS 2005 : Any OS : Recorder bar is not displaying when recording a webtest.
Fix: Upgrade to VSTS 2005 SP1. There are a few bugs preventing the webtest recorder bar from displaying under certain circumstances that were fixed in SP1. If you're having trouble in VS 2005 and haven't yet upgraded to SP1, that's your first step.
VSTS 2005 : Vista : Recorder bar displays, but the controls are disabled.
Fix: Webtest recording using VS 2005 on Vista only works when running in elevated mode. [When launching VS 2005, right click the icon and choose to run as administrator]
VSTS 2005, 2008 : Windows 2003 / Vista : Recorder bar comes up, but the controls are disabled.
Fix : the web test recorder bar does not work with IE enhanced security enabled. (VSTS 2008 will actually display an error message telling you this) IE enhanced security can be removed from within the Control panel / Add Remove Programs / Windows Setup
VSTS 2008 : Vista (64 bit) : Recorder bar does not appear when recording a new webtest
Fix: This is actually a Vista bug. The fix is to delete your Vista user profile settings and then log back in. After your user profile is recreated, webtest recording works again. Here are the detailed resolution steps:
1) Go to control panel
2) Open system
3) Click advanced
4) Click User Profiles
5) Find yours and delete it
6) Log back into the machine with your account and create a web test.
VSTS 2005, 2008 : Any OS : Recorder bar does not appear when recording a new webtest
Fix: Make sure that you don’t have browser add-ons disabled. Specifically, the web test recorder helper add-on needs to be enabled. For Internet Explorer 7, you can find this setting in Tools / Internet options / Program [tab] / Manage add-ons. From there, verify that Microsoft Web Test Recorder Helper is enabled.
VSTS 2008 : Any OS (IE 7) : When recording, a new web browser opens up and the new browser doesn’t have a recorder bar.
Fix: The reason for this is that by default, about:Blank is displayed in the browser when you start recording. This website is (by default) in the internet security zone (protected mode: on). When you open a website in a different zone (without protected mode) it will be handled by a new instance of internet explorer.
The fix is to do one of 2 things: a) Move about:blank into the zone where you’re attempting to record from or b) Change the default web page which is brought up when you start recording to something in the same zone as you’re trying to record. You can accomplish this by setting the following registry key
[HKEY_CURRENT_USER"Software"Microsoft"VisualStudio"9.0"EnterpriseTools"QualityTools"WebLoadTest]
"StartingLocation"="http://server/website"
Published Friday, November 09, 2007 5:20 PM by Mike Taute