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:
- Open FireFox, type "about:config" in the address bar and press Enter,
- Click the I’ll be careful, I promise! button,
- Specify the string "network.a" in the Filter,
- Double-click on "network.automatic-ntlm-auth.trusted.uris",
- 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?
To specify the trusted NTLM resource when developing an AJAX TruClient protocol script, do the following:
- Open the file "user.js" located in "%lr_path%\dat\LrWeb2MasterProfile",
- Locate the preference setting "network.automatic-ntlm-auth.trusted.uris",
- Specify the URL of the trusted resource as the value of this setting,
- 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.