Enhanced Integrated Windows Authentication Support in Load Tester 4.2 - Web Performance
Menu

Enhanced Integrated Windows Authentication Support in Load Tester 4.2

Load Tester 4.2 offers a substantial number of enhancements over the 4.1 release. One of the last features, which was not available in the 4.2 beta cycle, is completely redesigned support for Connection Authentication Negotiation. For IIS users, just think of “Connection Authentication Negotiation” as support for IIS’ “Integrated Windows Authentication”. Load Tester’s CAN support is a bit more abstract to encompass other servers as well. In fact, the term “Connection Authentication Negotiation” is used to provide support for negotiation of an authentication scheme at the HTTP layer, which may be used to authenticate the browser’s connection to the server. For Load Tester 4.2, CAN supports NTLM and Negotiate using NTLM.

Let’s start by looking at a recording which uses NTLM. When we go to our server, we get a prompt for credentials from the browser instead of a web page, since the authentication is being performed at the HTTP layer.Recording NTLM

Note that for some sites, this prompt may not even appear at all (the browser may use your local account credentials or other cached credentials).

Once you enter your credentials and finish your recording, you will wind up with a testcase in Load Tester which looks something like this:testcase displaying recorded NTLM transactions

The “401 – Unauthorized” may look strange here, but it’s actually normal. This is how robots (such as Google) will see your page. When the server sends this page, the browser recognizes the HTTP headers as a request for credentials and displays the Username & Password pop-up instead.

For more information on what to expect when looking at a “raw” authenticated recording, see “How HTTP Authentication works and why load testers should care“.

Now that the recorder has recorded what actually happened, we want to configure the testcase to represent what we intend to happen: we request the home page, and authenticate if & when required. To get started, start the Testcase Configuration Wizard from the Wizard launch button.Testcase Configuration Wizard menu item
Pressing one of the green play buttons to run a replay will cause the same wizard to be launched, since this testcase has not yet been configured for replay.Testcase Configuration Wizard

On this wizard, the “Configure user identity for connection authentication” is selected so we can enter user identities for virtual users to use when the server requires them to authenticate.CAN Wizard - Configure Identities

The next step allows us to define if the same credentials can be used for simultaneous sessions. There are a couple options:

Next, we just need to enter some user names, and press Finish.CAN Wizard - Creating a Dataset

Now, the testcase editor shows just the pages that the browser showed during the recording, with the hidden pages returned by the server tucked away.Testcase with NTLM transactions tucked away

Of course, users who still want to see or diagnose authentication can still look up the same information in a couple of ways:

  1. From the Headers ViewHeaders View selecting CAN transactions
  2. Inside the testcase editor: enable the option to “show connection negotiation transactions” by opening the editor properties: Opening the testcase editor properties
    Enabling display of connection negotiation transactions in the testcase editor properties dialog
    With this option enabled, the testcase editor will show the transactions that the browser either performs automatically or otherwise would hide as separate pieces necessary to complete a URL.Testcase Editor expanding CAN Summarized Transaction

We hope that you will find that using connection authentication is much easier in Load Tester 4.2. Of course, if you have any questions, our friendly support staff will be more than happy to answer.

Happy Testing!

-Frank
Engineer at Web Performance

Add Your Comment

You must be logged in to post a comment.

Resources

Copyright © 2024 Web Performance, Inc.

A Durham web design company

×

(1) 919-845-7601 9AM-5PM EST

Just complete this form and we will get back to you as soon as possible with a quote. Please note: Technical support questions should be posted to our online support system.

About You
How Many Concurrent Users