Recently while recording a script on LoadRunner 9.0, I got a Microsoft Visual C++ Runtime Library “Runtime Error” on the program C:Program FilesInternet Exploreriexplore.exe as shown below.
I did a a Google search for this error and found that many people who have either upgraded to QTP 9.5 from 9.2 or are using LoadRunner have encountered the same error. Some hit and try revealed that BHO(Browser Helper Object) is the culprit. I would not go into details about what BHO is. For our sake, “BHO is a small program that runs automatically every time you start your Internet browser. Usually, a BHO is installed on your system by another software program.” You can read details here.
Here are the steps to recover from this error:
- Go to IE–> Tools > Manage Add-ons
- Select “Add-ons currently loaded in Internet Explorer” (In case it is not selected by default)
- Check for “Browser Helper Object” under “Type” column
- Select and disable them one by one with the help of “Disable” radio button given below.
- Record/Run your script to verify whether your problem is resolved.
- If it is resolved, you should be sure that BHO is indeed the culprit.
- Now you need to pin point the name of add on responsible for this error.
- One by one start enabling the BHO add-ons, disabled above, repeating step 5) each time.
- Wherever you encounter the previous error that’s the problem causing add-on.
- Simply disable that add-on and enable all others( As they might be helpful in other programs running on your system).
Let me know through the comments below if this article was helpful.
Update: If you get the same error message while trying to identify a radio button, apply HP patch QTPWEB_00003 – Prevent Internet Explorer Crash During QuickTest Identification of Radio Button
Thanks Jimmy, for the update.
If you want to keep track of further articles on UFT (QTP). I recommend you to subscribe by Email and have new UFT articles sent directly to your inbox.