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:
SwfWindow(“…”).SwfButton(“…”)
After moving to .NET 4.0, we are getting hierarchy like this:
Window(“…”).SwfObject(“…”)
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
An expert on R&D, Online Training and Publishing. He is M.Tech. (Honours) and is a part of the STG team since inception.
Hi,
Can anyone please tell me what type of modifications are to be done while the IE recorded scripts to be run in Firefox?
Hi John,
Please let me know what error/issue you are getting while playing back the QTP scripts on firefox browser?
awsome information .about qtp .thanks for sharing yogindranath
Hi,
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?
Thanks,
Radhika
Does Quality Assurance removes the need for Quality Control? Can anyone throw some light on it.
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.
Mansi
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.
QA outlines how it is to be done. QC ensures its done exactly that way. QA is usually verification while QC is validation.
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.
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.
Hi,
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?
Thanks
Sohaib