How can a trusted URL be specified when developing an AJAX TruClient script to prevent the NTLM “Authentication Required” popup appearing?

How can a trusted URL be specified when developing an AJAX TruClient script to prevent the NTLM "Authentication Required" popup appearing?

When developing an AJAX TruClient protocol script that accesses a URL that requires NTLM authentication, the FireFox browser displays a popup dialog titled "Authentication Required" that requests a user name and password. While this data may be specified during script recording, it is not retained and as a result the script will not replay.

It is possible to specify the URL as a trusted NTLM resource using the "about:config" preference setting tool in a standalone FireFox instance as follows:

  1. Open FireFox, type "about:config" in the address bar and press Enter,
  2. Click the I’ll be careful, I promise! button,
  3. Specify the string "network.a" in the Filter,
  4. Double-click on "network.automatic-ntlm-auth.trusted.uris",
  5. Specify the URL of the trusted resource and click "OK".

However performing these same steps in the AJAX TruClient FireFox browser does not result in the trusted resource URL being retained. How can the trusted resource be specified so that it applies during both script recording and replay?

Solution

To specify the trusted NTLM resource when developing an AJAX TruClient protocol script, do the following:

  1. Open the file "user.js" located in "%lr_path%\dat\LrWeb2MasterProfile",
  2. Locate the preference setting "network.automatic-ntlm-auth.trusted.uris",
  3. Specify the URL of the trusted resource as the value of this setting,
  4. Save the file "user.js".

The trusted NTLM resource specified will now apply during AJAX TruClient script recording and replay. This specification is only necessary on the system where VuGen is used to develop the script. It is saved with the script and applies during any subsequent load test.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s