FIX: Think times for redirect requests are ignored in Visual Studio 2008 Service Pack 1 even if the Think profile is turned on

Article translations Article translations
Article ID: 956397 - View products that this article applies to.
Expand all | Collapse all

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
After you log on, you can download the hotfix from the following link:
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
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 tableExpand this table
File nameFile versionFile sizeDateTime
Microsoft.VisualStudio.QualityTools.LoadTest.dll9.0.30729.122737,28002-Sept-2 00805:12:54 PM

WORKAROUND

To work around this problem, follow these steps:
  1. Create a customized Web test plug-in by using the following code:
    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;
                    }
                }
            }
        }
    }
    
    For more information about how to create a Web test plug-in, visit the following Microsoft Developer Network (MSDN) Web site:
    http://msdn.microsoft.com/en-us/library/ms243191.aspx
  2. 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
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
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Steps to reproduce the problem

  1. Create a test project on a computer that has Visual Studio 2008 SP1 installed.
  2. Create two Web tests, and then add a redirect request to one test.
  3. Set the Think Time value in the request properties to a specified value.
  4. Create a load test, and then add the two Web tests to the load test.
  5. Under Scenario Properties, set the value of the Think Profile option to On.
  6. Run the load test, and then check the running time for the test project in the test results.

Properties

Article ID: 956397 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft Visual Studio 2008 Professional Edition
  • Microsoft Visual Studio 2008 Standard Edition
  • Microsoft Visual Studio Team System 2008 Team Suite
Keywords: 
kbexpertiseadvanced kbfix kbqfe KB956397

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com