Basic Authentication is disabled by default in IE Security Settings. If we want to test Websites with Basic Authentication in your Local Environment, you need to enable it first in the IE Security settings.
We can do it in two ways:
I. Using the Security Settings in IE's Internet Options
II. Editing the Registry for IE Settings
I. Using the Security Settings in IE's Internet Options(Easy Method via GUI)
1. Click on Settings(the gear icon) on the top right corner of IE window and select 'Internet Options' from the drop-down menu.
2. Select the Security Tab, Select the zone (Internet, Local Intranet, Trusted Sites or Restricted Sites) where you want to change the settings. We will be modifying the settings for Internet Zone(default).
3. Keep everything else as it is. Click on 'Custom level' to open another window 'Security Settings - Internet Zone'
4. Scroll all the way down to 'User Authentication' > 'Logon'
5. 'Anonymous Logon' will be selected by default. Change it to any of the other options. We would suggest to select the last option 'Prompt for user name and password'.
6. Click 'OK' on both windows and restart the computer for the changes to take effect.
II. Editing the Registry for IE Settings(For SysAdmins - Moderate Difficulty)
1. Run regedit.exe
2. Navigate to the following Registry Paths(if they exist in your System):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE
And create the following two keys as 'DWORD 32 bit value' and value '0'
After enabling Basic Authentication in IE using the above method, please check the below article for more details on using Basic Authentication in Testsigma with Custom Functions:
How to perform Basic Authentication for Web pages in Testsigma?