Friday 16 September 2022

Active screen Error in Load runner | "Please enter the User Name and Password to be used when accessing password protected pages in the Active Screen."

Sometimes when you replay your vugen script or stop the replay, you may see the active screen error pop up or the error "Please enter the User Name and Password to be used when accessing password protected pages in the Active Screen." or you may keeps getting ActiveScreen dialog box.


To resolve this we have below solutions:

Method 1: Set the Internet Explorer to not prompt for a Certificate. 

  • Go to Internet Explorer --Tools-- Internet Options -- Security tab
  • For the Local Intranet and Internet, Hit Custom Level--Enable "don't prompt for client certificate selection when no certificates or only one certificate exists..."--Close the browser and run the script.

Method 2:

  • Go to run-time-setting--preferences--Check-in WIninet replay instead of Socket(Window only)
  • Go to run-time-settings--preferences--options-- take value yes for Authentication: use window native NTML implementation and override credentials in window native implementation
Method 3:

  •  In VuGen Disable the Runtime Viewer 
  •  Go to Tools--General options --Display --and uncheck "Show browser during replay"
  • When the script is load tested in LRE or Controller, by default Runtime Viewer is disabled. so you may not see this error there.
Method 4:
  • Open the registry (Start Menu -- run -- regedit)
  • Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microfocus\Interactive\LoadRunner\Vugen\Thumbnails
  • Set the GenerateThumbs key to 0 (the default value is 1)

Thursday 15 September 2022

Get the current iteration number in neoload | iteration number in neoload using javascript

You can get the current iteration number using the NeoLoad Javascript API.

context.currentVU.getCurrentIteration();

Unless your test is run iteratively, in which case you may predict the final iteration number, you cannot know the last iteration.

Friday 2 September 2022

How to Clear the Cache and Cookies in Neoload | web_cache_cleanup(); & web_cleanup_cookies() in Neoload

In general for clear cookies and cache in your we use the functions web_cache_cleanup(); & web_cleanup_cookies();. The same we can implement in NeoLoad script with a simple java script. just add these below 2 lines in your java script and run the script.



context.currentVU.clearCache();

context.currentVU.clearCookies();