The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

Pages: 1 | 2 | >> (show all)
oie_terrence
Newbie


Reged: 01/27/12
Posts: 6
QTP 11 cannot recognize .NET or WPF objects
      #696927 - 01/27/12 10:43 AM

All,

I've been battling a problem with QTP 11 object recognition on Win 7 (x64). Also, WPF has been added to the application and QTP only recognizes the entire application window as WinObject, no child objects. This is a client WPF/.NET application, not a web application.

Situation:
- .NET loading application works fine all objects are recognized as SwFObjects (So, QTP 11.0 is working with .NET objects)
- WPF portion of applicaiton, QTP only recognizes WinObject for main window. No child objects recognized.
- .NET data collection application (launched from loader application), no objects are recognized as SwFObjects only as WinObjects
- QTP 10.0 scripts were developed on Win XP 32 bit and worked perfectly for years.
- QTP 10.0 on Win 7 (x64) did not recognize objects either.
- Installed QTP_00709 patch without resolution
- Contacted HP support, and absolutely no response on multiple occasions.
- Recording with .NET, Visual Basic, WPF, and Silverlight add-ins enabled. And every combination of the 4 add-ins.
- QTP_00699.EXE patch
- QTPNET_0051.exe patch
- QTPNET_00062.exe patch
- QTPWEB_00073.exe patch

Please let me know if anyone has any ideas that may help. Thanks in advance.


Post Extras: Print Post   Remind Me!   Notify Moderator  
lockdown
Member


Reged: 02/07/07
Posts: 393
Loc: London
Re: QTP 11 cannot recognize .NET or WPF objects [Re: oie_terrence]
      #697019 - 01/30/12 06:00 AM

I had to install the QTPNET_00082 patch to get QTP 11 & Windows 7 to recognise wpf/.net applications (both 32 and 64 bit). This was in conjunction with the patches above.

I'm not sure if this is a public patch or if it can only be downloaded through raising a HP support ticket. I've found HP support (I'm UK based) to be very responsive recently so give them another try.

After installing the patches I had to put QTP into record mode and click on the application before before the object spy picked up the objects. This was a one of activity per machine.

Good luck!

--------------------
Automation Blog


Post Extras: Print Post   Remind Me!   Notify Moderator  
oie_terrence
Newbie


Reged: 01/27/12
Posts: 6
Re: QTP 11 cannot recognize .NET or WPF objects [Re: lockdown]
      #697029 - 01/30/12 08:28 AM

Thanks so much for the response. I will try to get that patch and will respond with result.

Just wondering though did you install all of the patches listed below:
- QTP_00709.exe patch
- QTP_00699.EXE patch
- QTPNET_0051.exe patch
- QTPNET_00062.exe patch
- QTPWEB_00073.exe patch

I ran into an issue and QTP wouldn't even start when 00709 was applied after the other patches were installed.


Post Extras: Print Post   Remind Me!   Notify Moderator  
lockdown
Member


Reged: 02/07/07
Posts: 393
Loc: London
Re: QTP 11 cannot recognize .NET or WPF objects [Re: oie_terrence]
      #697104 - 01/31/12 01:26 AM

I've just checked, the patches I had installed and the order was:

QTP_00699
QTP_00709
QTPWEB_00078
QTPNET_00099
QTPWEB_00086
QTPNET_00082

--------------------
Automation Blog


Post Extras: Print Post   Remind Me!   Notify Moderator  
Mefario
Member


Reged: 02/12/09
Posts: 51
Loc: Ohio
Re: QTP 11 cannot recognize .NET or WPF objects [Re: lockdown]
      #697189 - 01/31/12 01:27 PM

I could not find that patch on HP's support site. I opened a ticket to them to let me know where I can get it. Was this rolled up into another patch? Only seeing 21 patches for QTP 11 on their site.

--------------------
-------------
Thanks,

Bernard Szymczak


Post Extras: Print Post   Remind Me!   Notify Moderator  
lockdown
Member


Reged: 02/07/07
Posts: 393
Loc: London
Re: QTP 11 cannot recognize .NET or WPF objects [Re: Mefario]
      #697228 - 02/01/12 03:43 AM

I found out the other day that some patches are hotfixes and are not formally released - I guess these eventually get rolled up into a patch, so the only way to get them is to contact support.

--------------------
Automation Blog


Post Extras: Print Post   Remind Me!   Notify Moderator  
Tarun LalwaniModerator
Veteran


Reged: 07/21/05
Posts: 15329
Loc: Milwaukee, Wisconsin
Re: QTP 11 cannot recognize .NET or WPF objects [Re: lockdown]
      #698134 - 02/10/12 06:01 AM

Making this a sticky post for now

--------------------
Regards,
Tarun
** First ever technical novel - And I thought I knew QTP! **
** Download QTP Unplugged 2nd Edition eBook for FREE **

KnowledgeInbox RSS


Post Extras: Print Post   Remind Me!   Notify Moderator  
ShanmugapriyaB
Newbie


Reged: 02/09/12
Posts: 4
Re: QTP 11 cannot recognize .NET or WPF objects [Re: Tarun Lalwani]
      #698240 - 02/12/12 11:10 PM

I am also facing the same kind of issue.
We have an 64 bit application developed in DotNet 4.0 and WPF is installed in 64 bit vista OS.
QTP 11 with QTP_00709.exe & QTP_00699.EXE patches recognizes those DotNet 4.0 as SWF objects but WPF objects as Win objects.
Plz let me know if anyone has any ideas that may help.
thanks in advance.


Post Extras: Print Post   Remind Me!   Notify Moderator  
oie_terrence
Newbie


Reged: 01/27/12
Posts: 6
Re: QTP 11 cannot recognize .NET or WPF objects [Re: ShanmugapriyaB]
      #698284 - 02/13/12 06:35 AM

These are the patches that I installed (and in this order) to get it working with WPF and .NET 4.0 (My AUT is not a web application, there may be other patches necessary for web apps):
- QTP_00699.EXE
- QTPNET_00082.exe (Must contact HP for this)
- QTPNET_00096.exe (Must contact HP for this)
- QTPNET_00099.exe (Must contact HP for this)

Prior to patch installation I did a clean install (directions from HP below):

A)
To rule out an installation corruption, please perform a "Clean" uninstall of QTP: first, uninstall QTP and then remove the following two registry folders:
HKEY_CURRENT_USER/Software/Mercury Interactive/QuickTest * <--(delete any folders that start with name "Quicktest")
and
HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest *
(or the following if you are on a 64bit machine:)
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercury Interactive\QuickTest Professional

B)
Find the QTP 11.0 download file and verify that it has not been corrupted by doing an MD5 checksum:

For verification of the QTP 11.0 downloaded iso file:

File: Software_QTP_11.0_English_T6510_15066.iso (QTP 11.0 dvd image file)
MD5 Check Sum to match: 4AED13FF8EB6E7E0B4BF209C814905AF
Size: 3.61 GB (3,878,158,336 bytes)

For a free Microsoft MD5 utility please see:
http://support.microsoft.com/kb/841290

C)
Please "unzip" the QTP 11.0 .iso file with a utility that is known to work successfully in our lab: http://www.7-zip.org. (We have seen a number of other .iso "unzipping" utilities such as "magicISO" corrupt the .iso image upon unzipping it.)

D)
Install QTP 11.0 with the newly unzipped installation files. Please make sure to install as an "administrator" on the machine... please see:
What are the minimum permissions required for using QuickTest Professional
http://support.openview.hp.com/selfsolve/document/KM183747


Post Extras: Print Post   Remind Me!   Notify Moderator  
oie_terrence
Newbie


Reged: 01/27/12
Posts: 6
Re: QTP 11 cannot recognize .NET or WPF objects [Re: oie_terrence]
      #698285 - 02/13/12 06:38 AM

Another 2 things I had to get WPF working:
1. Had to Record and Play one time to start object recogniztion. Haven't had to do this since.
2. Set Record and Run Settings for "Applications opened by QuickTest" and "Application specified below:"

Hope this works for you.


Post Extras: Print Post   Remind Me!   Notify Moderator  
ShanmugapriyaB
Newbie


Reged: 02/09/12
Posts: 4
Re: QTP 11 cannot recognize .NET or WPF objects [Re: oie_terrence]
      #698517 - 02/15/12 01:05 AM

Thanks for your information. But It did not work for me.

As you said, I installed the following patches in the same order.QTP_00699.EXE
- QTPNET_00082.exe
- QTPNET_00096.exe
- QTPNET_00099.exe

But QTP 11 is recognise the WPF objects in 64 bit application installed in Win 2008 R2 as Win object not as WPF.
Please let me know If I missed anything.


Post Extras: Print Post   Remind Me!   Notify Moderator  
SHANMUGAVEL_C
Member


Reged: 09/30/10
Posts: 241
Loc: TN, India
Re: QTP 11 cannot recognize .NET or WPF objects [Re: ShanmugapriyaB]
      #698518 - 02/15/12 01:09 AM

Have you tried like
1. Opening QTP with Run As Administrator
2. Then opening AUT with Run As Administrator
And then try to spy the object and see.

Thanks...

--------------------
I am speaking for myself, not for my employer nor any one.
Automation Ecstasy


Post Extras: Print Post   Remind Me!   Notify Moderator  
ShanmugapriyaB
Newbie


Reged: 02/09/12
Posts: 4
Re: QTP 11 cannot recognize .NET or WPF objects [Re: SHANMUGAVEL_C]
      #698523 - 02/15/12 01:57 AM

Yes.. I am opening QTP and application as Run as Administrator only. But No luck.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Asdf66
Newbie


Reged: 02/27/12
Posts: 1
Re: QTP 11 cannot recognize .NET or WPF objects [Re: ShanmugapriyaB]
      #699617 - 02/27/12 03:07 AM

Hi Shanmugapriya

Can i know where did you get the patches QTP_00699.EXE
- QTPNET_00082.exe
- QTPNET_00096.exe
- QTPNET_00099.exe download. i am in need of these patches. can you provide me the link ?

waiting for ur reply....


Post Extras: Print Post   Remind Me!   Notify Moderator  
SBsteve
Advanced Member


Reged: 05/11/07
Posts: 467
Loc: Dublin, OH USA
Re: QTP 11 cannot recognize .NET or WPF objects [Re: Asdf66]
      #699794 - 02/28/12 06:41 AM

I easily found all of the patches online by using Google, except:

QTPNET_00099
QTPNET_00082

After installing these patches, it did fix my issue.

THANK YOU VERY MUCH FOR THIS POST!!

SBsteve


Post Extras: Print Post   Remind Me!   Notify Moderator  
IncantatrixQA
Member


Reged: 10/22/07
Posts: 29
Re: QTP 11 cannot recognize .NET or WPF objects [Re: SBsteve]
      #702605 - 03/26/12 02:01 PM

I've just gotten hold of the QTP 11 trial and among other problems, it doesn't seem to record anything when ran against our software. The app's .NET based so I'm guessing it's related to this issue but despite spending hours going in circles on the HP support site I can't for the life of me figure out how to access patches. I've tried googling, I've ran the in-app updater and no joy.

Any ideas?


Post Extras: Print Post   Remind Me!   Notify Moderator  
IncantatrixQA
Member


Reged: 10/22/07
Posts: 29
Re: QTP 11 cannot recognize .NET or WPF objects [Re: IncantatrixQA]
      #702653 - 03/27/12 03:49 AM

Quote:

I've just gotten hold of the QTP 11 trial and among other problems, it doesn't seem to record anything when ran against our software. The app's .NET based so I'm guessing it's related to this issue but despite spending hours going in circles on the HP support site I can't for the life of me figure out how to access patches. I've tried googling, I've ran the in-app updater and no joy.

Any ideas?


Disregard the above. I've managed to get it recording but QTP's just crashing, for presumably unrelated reasons. It's not the tool for us I think.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Rastek
Member


Reged: 12/27/10
Posts: 269
Loc: Istanbul
Re: QTP 11 cannot recognize .NET or WPF objects [Re: IncantatrixQA]
      #703212 - 04/02/12 05:37 AM

You need to check WPF in startup , few month before, I chedked WPF plugin and used it with QTP 11 with no problem et all..

--------------------
I look serious because I am serious.


Post Extras: Print Post   Remind Me!   Notify Moderator  
SBsteve
Advanced Member


Reged: 05/11/07
Posts: 467
Loc: Dublin, OH USA
Re: QTP 11 cannot recognize .NET or WPF objects [Re: Rastek]
      #703332 - 04/03/12 09:01 AM

"IncantatrixQA",

Question for you, what version of .Net are you using with your trial version of QTP11?

SBsteve


Post Extras: Print Post   Remind Me!   Notify Moderator  
QTP_Guru
Newbie


Reged: 04/20/12
Posts: 1
Re: QTP 11 cannot recognize .NET or WPF objects [Re: oie_terrence]
      #704842 - 04/21/12 10:13 AM

we are using the dot net 4.0 version and sometimes i do face the same kind ifof problem , try by using the gettextloaction method and then click.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1 | 2 | >> (show all)



Extra information
0 registered and 61 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating: ***
Topic views: 37815

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5