Article ID: 956397 - Last Review: November 21, 2008 - Revision: 1.1
FIX: Think times for redirect requests are ignored in Visual Studio 2008 Service Pack 1 even if the Think profile is turned on
On This Page
SYMPTOMS
Think times for redirect requests are ignored on a project
that uses Microsoft Visual Studio 2008 Service Pack 1
even if the Think profile is turned
on.
RESOLUTION
Hotfix information
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio 2008 service pack that contains this hotfix.To resolve this problem immediately, log on to the following Microsoft Connect site by using a Microsoft Live ID or Hotmail account:
http://connect.microsoft.com/default.aspx
(http://connect.microsoft.com/default.aspx)
After you log on, you can download the hotfix from the following link: http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=15510
(http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=15510)
If you cannot download the fix or if it does not resolve the problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:http://support.microsoft.com/contactus/?ws=support
(http://support.microsoft.com/contactus/?ws=support)
Note In special cases, charges that are ordinarily incurred for
support calls may be canceled if a Microsoft Support Professional determines
that a specific update will resolve your problem. The usual support costs will
apply to additional support questions and issues that do not qualify for the
specific update in question.Prerequisites
You must have Visual Studio 2008 Service Pack 1 installed to apply this hotfix.Restart requirement
You do not have to restart the computer after you apply this hotfix.Hotfix replacement information
This hotfix does not replace any other hotfixes.File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.Collapse this table
| File name | File version | File size | Date | Time |
|---|---|---|---|---|
| Microsoft.VisualStudio.QualityTools.LoadTest.dll | 9.0.30729.122 | 737,280 | 02-Sept-2 008 | 05:12:54 PM |
WORKAROUND
To work around this problem, follow these steps:
- Create a customized Web test plug-in by using the following
code:For more information about how to create a Web test plug-in, visit the following Microsoft Developer Network (MSDN) Web site:
using Microsoft.VisualStudio.TestTools.WebTesting; namespace TestProject1 // Change the namespace as appropriate { public class WebTestPlugin_FixThinkTime : WebTestPlugin { private WebTestRequest m_currentPageOriginalRequest; public override void PostRequest(object sender, PostRequestEventArgs e) { base.PostRequest(sender, e); if (!e.Request.IsRedirectFollow) { m_currentPageOriginalRequest = e.Request; } else { if (m_currentPageOriginalRequest.ThinkTime == 0 && e.Request.ThinkTime != 0) { m_currentPageOriginalRequest.ThinkTime = e.Request.ThinkTime; } } } } }http://msdn.microsoft.com/en-us/library/ms243191.aspx (http://msdn.microsoft.com/en-us/library/ms243191.aspx) - Add the Web test plug-in to each Web test.
STATUS
Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.
MORE INFORMATION
For more information about think times, visit the following
MSDN Web site:
http://msdn.microsoft.com/en-us/library/ms184790.aspx
(http://msdn.microsoft.com/en-us/library/ms184790.aspx)
For more information about how to work with load tests, visit the
following MSDN Web site:http://msdn.microsoft.com/en-us/library/ms182561.aspx
(http://msdn.microsoft.com/en-us/library/ms182561.aspx)
For more information about software update terminology, click the
following article number to view the article in the Microsoft Knowledge Base:824684
(http://support.microsoft.com/kb/824684/LN/
)
Description of the standard terminology that is used to describe Microsoft software updates
Steps to reproduce the problem
- Create a test project on a computer that has Visual Studio 2008 SP1 installed.
- Create two Web tests, and then add a redirect request to one test.
- Set the Think Time value in the request properties to a specified value.
- Create a load test, and then add the two Web tests to the load test.
- Under Scenario Properties, set the value of the Think Profile option to On.
- Run the load test, and then check the running time for the test project in the test results.
Note: This article is from Microsoft Knowledage Base
Related problems posted by other users | |
| more... |

