Monday 30 June 2014

HTTP Status-Code=401 (Unauthorized) error during script replay - HTTP/HTML protocol in Loadrunner





Try below options to rectify the error:


  • Option 1: Add web_set_user(username,password,host:port );
  • Option 2: Record the script after changing the capture level to Wininet level data in Recording option> Network > Port mapping > capture level
  • Option 3: Run the script after enabling Wininet replay instead of sockets option in Run time settings > Internet Protocol > Preferences> Advanced
  • Option 4 : If none of the above option works, record the business flow with fiddler and compare the requests in LoadRunner and fiddler. Identify if any request/header/cookie is missing in the load runner script and creating the issue.

No comments:

Post a Comment