I found a solution for the problem in the end.
With my analysis I noticed that QTP is having some problem in reading the controls of .Net framework 4.0 or above.
Suggested Solutions:
Generally QTP fails to detect .Net framework 4.0 version if .Net framework is installed on machine after QTP installation. A clean installation from scratch may help to resolve the issue. Uninstall both QTP and .Net framework and then install .Net framework first and then QTP).
In order to manually resolve the issue, we must register 2 dlls manually. They are Mercury.QTP.Agent.dll and Mercury.QTP.WpfAgent.dll. Follow the below steps to register the dlls.
- Install QTP_00709 patch if you are using 64 bit OS.
- Open command prompt in Administrator mode.
- Navigate to the location where Mercury.QTP.Agent.dll and Mercury.QTP.WpfAgent.dll are placed.
- Type
..\..\bin\GACRegUtil4x86.exe -i Mercury.QTP.Agent.dll
..\..\bin\GACRegUtil4x86.exe -i Mercury.QTP.WpfAgent.dll
Hope it helps.