IE popup window disappears while QTP Script Execution!!

by: Lakshminarasimha Manjunatha Mohan

A strange problem of Mercury QuickTest Pro 9.2 with Internet Explorer 7.0 is discussed with solution.

Problem: While executing scripts in IE 7.0 if another browser is opened by the script as a result of an operation or test step, the pop up window automatically disappears. The issues looks strange but the window disappears without any clue.  

Example scenario: A QTP 9.2 automation script for the following scenario in the admin mode of EPiServerCMS web site fails to execute on IE 7.0.

Steps for Simulation:

  1. Login to EPiServerCMS Admin Mode (Ensure that the Role and membership providers are set to Multiplexing providers with SQL Server providers as default provider)
  2. Click on Administer Groups
  3. Create a new Group
  4. Click on the Delete button corresponding to the newly created Group the pop up window disappears only when a QTP script for this scenario is executed. However, the scenario works perfectly fine on manual execution of the same steps.

 

Solution: The solution for this problem is just enable the "BHOManager Class" Add-on in the IE. (This can be done by going to IE-> Tools -> Manage Add-ons -> Enable/Disable Add-ons...)

What is "BHOManager Class" add-on or BHOManager.DLL?

A Browser Helper Object, or BHO, is just a small program that runs automatically every time the Internet explorer browser is started.

BHOManager.DLL is installed on the system when QTP is installed. This is a helper class that assists QTP for execution of QTP scripts on the browser. BHOManager.DLL is located in the folder C:\Windows\System32. The unique ID or CLSID of this BHO is {474264BC-9571-47C1-85B9-780F756DC9CE}.

Additional Information about BHOs:

BHOs are not stopped by personal firewalls, because they are identified by the firewall as browser itself. They are also known to conflict with other running programs, causing a variety of page faults, run time errors, and the like, and generally impede browsing performance.

BHODemon is small tool that can be used to view, enable or disable all the BHO's on a computer. It is a free tool that can be downloaded from BHODemon.

Other known BHOs:

The other known BHOs include the following:

  1. Microsoft.VisualStudio.QualityTools.RecorderBarBHO.dll - This BHO is used by Visual Studio Team Suite for web tests

For more information BHOManager.dll and other BHOs refer to

http://www.file.net/process/bhomanager.dll.html

http://www.sysinfo.org/bhoinfo.html

05 January 2008


Comments

  1. Due to this issue there are many other problems including problem in executing Navigate method of IE object etc., I have not tested it on IE6. However, the problem might also exist in IE6 as well.
  2. The AUT I am testing only supports IE 6. I get the pop up message saying that IE has an error and needs to close. Will using the information in this message help me?
  3. Kevin, Sorry, I did not see your comment until now and hence delay in answering. YES, possibly BHO in your IE is disabled. On enabling it, the problem may get solved. The other solution that I can think of with the provided information is, your IE may be corrupt. Try repairing the same. It should solve the problem. Regards, LN In God I TRUST everything else I TEST.
  4. Hi, I am working on web application.My doubt is how to get the content of pop-up using QTP in order to verify the content of pop-up...Please look into my issue...
  5. Solution to your problem depends on the type of pop-up your are working with. However, for most of the pop-ups in EPiServer you could use GetROProperty for the InnerText property to get the runtime value of the pop-up content then compare it with the expected value.
  6. QTP Object Spy recognizes web Browser as Windows Internet Explorer instead of 'Browser'. Please advice.
Post a comment    
User verification Image for user verification  
Lakshminarasimha Manjunatha Mohan

About me

I am working as a leader for the EPiServerCMS Testing Team in India since Jan-07. 

I have extensive experience and expertise in Manual, Automation, Performance and Security Testing. EC-Council Certified Ethical Hacker (CEH v5).

My intersts include testing, automation and performance testing with QTP, Visual Studio Team Suite, LoadRunner, TestPartner, TestComplete etc.,
Security/Penetration testing (Ethical Hacking) based on OWASP and WASC methodologies.

Also,  I write in my personal blog LN’s Testing Blog and I plan to crosspost.


Syndications


Archive


Tag cloud

EPiTrace logger