PRB: 401 Error Message When You Use Application Center Test with NTLM Authentication (322032)



The information in this article applies to:

  • Microsoft Application Center Test, Developer Edition

This article was previously published under Q322032

SYMPTOMS

After you run a successful test in Application Center Test, you may not be able to view the test results, and you may receive the following error message during each attempt to do so:
401 - The requested resource requires user authentication

CAUSE

HTTP version 1.0 does not support "keep-alive" connections. These type of connections are required to run a test against Integrated Windows authentication.

RESOLUTION

To work around this behavior, modify the script to use HTTP 1.1. Follow these steps to record and playback a test by using NTLM authentication:
  1. Turn on basic authentication on the Web site.
  2. Record a dynamic script by using Application Center Test.
  3. Turn on integrated authentication on the Web site.
  4. Comment out all of the lines in your recorded script that contain:
    oHeaders.Add "Authorization", "Basic..... "
  5. Add valid local or domain users. To do this, follow these steps:
    1. In the right pane of the ACT console, right-click the Users node to create a new users group, and then click Add.
    2. A user group that is named New Users Group is created. To rename this group, right-click New Users Group, and then click Rename.
    3. Click the new users group. You see the User Name column and the Password column in the right pane.
    4. Add user name and password pairs. For domain accounts, use the domain name\user name format. For computer-specific accounts, use the computer name\user name format. You can add as many accounts as you need in your test if the accounts are valid accounts that have user rights to the Web site in question.
  6. Associate the new users group with the test or tests, that will use these accounts. To do this, follow these steps:
    1. Right-click a test in the left pane, and then click Properties.
    2. Click the Users tab, and then click Specify Users.
    3. Click to select the check boxes for all user groups in the list that you want to use with this test, and then click OK. ACT will automatically use the credentials for each user when it is challenged by the Web server for authentication.
  7. For each request, change the following line in the script
    oRequest.HTTPVersion = "HTTP/1.0"
    to
    oRequest.HTTPVersion = "HTTP/1.1"
  8. Play back the script.

STATUS

This behavior is by design.

Modification Type:MajorLast Reviewed:3/7/2004
Keywords:kberrmsg kbprb KB322032 kbAudDeveloper