software testing genius

How to Tackle the Issue of QTP Dot Net Addin not Recognizing the NET 4.0 controls

Welcome to “Software Testing Genius”. Subscribe to my RSS feed for latest content on Software Testing.

How to Tackle the Issue of QTP Dot Net Addin not Recognizing the NET 4.0 controls

Recently, we had couple of requests from our readers, seeking clue to an erratic behavior by QTP.

The problem statement goes like:

QTP Dot Net addin seems to have an issue with NET 4.0 applications.

Till .NET 3.5 and below, it was working fine. However, objects from .NET 4.0 application is showing a very strange behavior. Most of the objects are getting recognized as "SwfObjects".

Till .NET 3.5 and below, we could get the hierarchy as:


After moving to .NET 4.0, we are getting hierarchy like this:


Now the question arises

Why SwfWindow objects are being viewed as Window. We have done the installation of .NET framework 4.0 very recently.

The solution / answer goes like this:


The .NET Framework version 4.0 was installed after QuickTest Professional was installed which is the possible issue for this QTP behavior.

When you desire to work on .NET 4.0, then itís better to firstly install this before the installation of QuickTest Professional. If .NET 4.0 is installed after QuickTest, then you need to register following two .NET DLL files as per the procedure given below.:

1. If working on a 64 bit operating system, you will be required to install patch QTP_00709.

2. Open a command prompt (Start > Run > type "cmd" > Click "Ok")

3. Navigate to GlobalAssemblyCacheNet4

4. Run the following two commands:

1. ....binGACRegUtil4x86.exe -i Mercury.QTP.Agent.dll
2. ....binGACRegUtil4x86.exe -i Mercury.QTP.WpfAgent.dll

The above mentioned steps should fix this issue.

However, just in case if it doesnít happen, we would recommend to carryout clean uninstalling of HP QuickTest Professional. 

(We will be posting detailed steps to do a clean uninstall very soon in an upcoming article on QTP)

Many More Articles on HP QuickTest Professional 

Download Full Study Material - HP QTP & QC Certification Exams

Practical Roadmap to QTP Certification

Rehearsal of QTP in 1 Hr. -  Interview Questions

What Successful Testers say about the Quality of this website

If you want to keep track of further articles on Software Testing,
I suggest you to subscribe my
RSS feed

You can also Subscribe by E-mail
and get All New articles delivered directly to your Inbox.

Quick Navigation of Software Testing Genius

Get your Absolutely Free Copy of Several MS PowerPoint Presentations & E-Books related to ISTQB, HP Load Runner, IBM RFT, HP QTP & QC Certification Exams, prepared by Popular Writers & Trainers, by writing to:

Full Study Material for International Certification Exams:

Largest Database of Sample Papers - 1000+ Unique Questions for ISTQB Foundation Exam

ISTQB Foundation Exam - Full Crash Course for Download

ISTQB Advanced CTAL Test Analysts Exam - Full Crash Course for Download

ISTQB Advanced CTAL Test Manager Exam - Full Crash Course for Download

Consolidated Study Material - All ISTQB Certification Exams

Practical Roadmap to CSTE Certification

Full Study Material to prepare for other Automation Tools & QA:

Study Material - IBM RFT Certification Exam

Study Material - HP LoadRunner Certification Exams for All Modules

Consolidated Study Material - Testing & QA

Rehearsal of LoadRunner in 1 Hr. -  Interview Questions


Comments :


# 1 John Chaw on 2012-01-17 22:43:07
Can anyone please tell me what type of modifications are to be done while the IE recorded scripts to be run in Firefox?

# 2 Yogindernath on 2012-01-18 08:34:35
Hi John,

Please let me know what error/issue you are getting while playing back the QTP scripts on firefox browser?

# 3 subbareddy on 2012-01-20 17:01:34
awsome information .about qtp .thanks for sharing yogindranath

# 4 Radhika Acharya on 2012-01-25 20:05:30

I am looking for interview questions in Software Testing. Can anyone please help me in this? Also can you suggest some software testing institutes in Delhi?


# 5 Justin C on 2012-01-25 20:09:12
Does Quality Assurance removes the need for Quality Control? Can anyone throw some light on it.

# 6 Mansi on 2012-01-25 20:18:39
There is lot of confusion on these terms. From my experience in Software Testing, Quality Control or QC is more common in manufacturing industry. In software testing, it means checking the software against some requirement already set.

Please correct me if my understanding is wrong.


# 7 Rajesh on 2012-01-25 20:21:56
I dont think so. In my organization we have separate QA and QC teams. what one can do is to have a team blend of QA and QC. We can also do that instead of having separate team we can hire few individuals and train them to perform both Quality Assurance and Quality Control activities.

# 8 Neha Gupta on 2012-01-25 20:27:18
QA outlines how it is to be done. QC ensures its done exactly that way. QA is usually verification while QC is validation.

# 9 Mahima on 2012-01-25 20:31:03
Let me share a very silly but a very realistic example which will highlight the difference between Quality Assurance and Quality Control.

QA is preventive measure for example vaccinations given to small kids to protect in future, so that viruses do not harm them. This is usually done in requirements phase.

QC is after you fall ill, you visit to doctor for curing the illness. This is in testing phase done after software is deployed in QA environment.

Let me know if this difference is not clear.

# 10 Yogindernath on 2012-01-25 20:34:48
Fantastic examples Mahima. Kudos to you!!

One more point which I would like to add is having a strong QA is a testimony of a mature organization. Some people consider QA as a waste of time and sometimes lend up paying huge failure costs in later stages. Better prevention than cure I will say.

# 11 sohaib on 2012-07-05 13:07:11

Can anyone tell me is it possible to automate any Dot Net Application of 4.0 framework using QTP 9.0???
And If the answer is yes then please let me know What pre work i need to do before i can automate?


Leave Your Comments: (*) Marked Fields are Mandatory

You can apply basic formatting to the text

Name *
Email Address *
Speak your mind
sex hikayeleri