How can a trusted URL be specified when developing an AJAX TruClient script to prevent the NTLM ”Authentication Required” popup appearing?
Question ID: 104931
2
0
Marked as spam
Posted by (Questions: 17, Answers: 266)
Asked on March 29, 2013 6:00 pm
271 views
Answers (1)
3
Private answer

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%datLrWeb2MasterProfile'',
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.

Marked as spam
Posted by (Questions: 4, Answers: 41)
Answered on March 29, 2013 6:01 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top