loadrunner Just before recording is completed for web(HTTP/HTML) script I am...

  • perf-test.com need your contributions to build up a strong repository of performance engineering resources.

V

Vinod AR

Guest
Just before recording is completed for web(HTTP/HTML) script I am getting one prompt message as "Provide User Name and Password to play back the script" (NTLM Authentication) In the script it recorded as very first script as web_set_user("{UserName}",lr_decrypt("{DecriptedPassword"}),{url}); However when I a play back the script in VuGen am getting below error Error name is "Error -26630: HTTP Status-Code=401 (Unauthorized)" against URL mentioned in web_set_user function web_set_user("{UserName}",lr_decrypt("{DecriptedPassword"}),{url}); Can you please help me by suggesting a fix to this problem Note : LR used : 11.52
 
Please learn how to use web_set_user.. LR help file example is best.. As per my knowledge you would've passed the entire URL.. Edit the function as web_set_user("domain\\username","password","hostname:port"); This will work if your application is up and running from server side and your network doesn't have any firewall restrictions to access that target site ;).. Happy scripting
 
Entire URL will give incorrect results! web_set_user() requires domain name and not the URL (both are quite different in practice!). Secondly, if you script has succeeded NTLM authentication without asking for specific credentials during recording, then username, password and hostname:port are only required. If you have inserted the function manuall, then specify domain name and use function as given by Antony. Lastly, do check your parameter file for a new line presence post parameter value. Its a must!