Help on QTP with WPF

1,139 views
Skip to first unread message

QTP MASTER

unread,
Sep 4, 2009, 11:47:46 AM9/4/09
to QTP - HP Quick Test Professional - Automated Software Testing
Hi all,
We are trying to automate a Screen based on WPF (Windows Presentation
Foundation) and Infrigistic technology. We are using QTP Ver 9.5
with .Net and WPF add in for that. WPF addin recognizes objects in the
Screen. But if the objects are inside a Table, the Objects are getting
recognized but there are problems in using any properties or any
functions related to the object inside the table. The Wpf Table is not
identified as a Table or as Grid but only as a WpfObject.

For Example if there is a WpfEdit box inside a WpfGrid, then the
Properties related to WpfEdit such as setText, type, etc., are not
working. Also that WpfGrid is not getting recognized.
It is only working when we record it in Low level recording mode.

We have also tried this with Descriptive Programming, but we cant find
a solution.

Please let me know if WPF add in with QTP 9.5 is enough for automating
these screens or is some other Emulator or an Upgrade of QTP or any
additional add in is required for getting this done.

--
With Best Thanks and Regards,
Prasanna Narayanan Srinivasan
Testing Consultant.

QTP

unread,
Oct 29, 2009, 10:56:49 AM10/29/09
to QTP - HP Quick Test Professional - Automated Software Testing
Hi Prasanna,

Which AddIns are you using for this project.
We are using the same dev technologies(WPF infragistics) in our
project.
Let me know if you have resolved the issue.

Thanks,
Chandra


On Sep 4, 3:47 pm, QTP MASTER <prasanna.perso...@gmail.com> wrote:
> Hi all,
> We are trying to automate a Screen based onWPF(Windows Presentation
> Foundation) and Infrigistic technology. We are using QTP Ver 9.5
> with .Net andWPFadd in for that.WPFaddin recognizes objects in the
> Screen. But if the objects are inside a Table, the Objects are getting
> recognized but there are problems in using any properties or any
> functions related to the object inside the table. TheWpfTable is not
> identified as a Table or as Grid but only as a WpfObject.
>
> For Example if there is a WpfEdit box inside a WpfGrid, then the
> Properties related to WpfEdit such as setText, type, etc., are not
> working. Also that WpfGrid is not getting recognized.
> It is only working when we record it in Low level recording mode.
>
> We have also tried this with Descriptive Programming, but we cant find
> a solution.
>
> Please let me know ifWPFadd in with QTP 9.5 is enough for automating

Prasanna Narayanan

unread,
Oct 30, 2009, 1:15:25 PM10/30/09
to mercu...@googlegroups.com, cad...@gmail.com

Hi Cadari

Thanks for your reply.
We are currently using WPF Addin not infrigistics. I think there is no addin for Infrigistics but there is one for WPF with QTP. We are still not able to resole it. But we are trying to do the same with a tool called TestComplete.(www.automatedqa.com). We still have no idea whether an upgrade of QTP wil work out. We are planning to take this with HP. Please let me know if you are able to successfully do this piece of automation.

Thanks,
Prasanna.

--
With Best Regards,
Prasanna Narayanan Srinivasan
prasanna...@gmail.com

QTP

unread,
Nov 12, 2009, 11:52:35 AM11/12/09
to QTP - HP Quick Test Professional - Automated Software Testing
Hi Prasanna,

If you want, I can share my experience with you.
I can be contacted directly at cad...@gmail.com.

Regards,
Chandra Adari


On Oct 30, 5:15 pm, Prasanna Narayanan <prasanna.perso...@gmail.com>
wrote:
> prasanna.perso...@gmail.com

Selvam

unread,
Nov 16, 2009, 12:45:41 AM11/16/09
to QTP - HP Quick Test Professional - Automated Software Testing
Hi preasanna,

If your application using Infragistics controls, and if you want to
automate it, all you need is Test Advantage for QTP. this
Testadvantage is also kind of pulgin for the QTP. this will help you
to recoganize the correct objects. Test advantages is also from
Infragistics

Regards,
V.Selvam
> > prasanna.perso...@gmail.com- Hide quoted text -
>
> - Show quoted text -

manjunath biradar

unread,
Nov 18, 2009, 5:08:33 AM11/18/09
to mercu...@googlegroups.com
If the use of WPF grid is limited to the selection of text (instead of anything to be entered) we can use Row and Column count function and try to select them.

Alternate solution:
When you try to identify the objects in QTP see the flow of the objects above the Wpf object. with my experience i can say u will be seeing WPF table just above the wpf object. Select that and it will automatically detect any of the edit boxes if present in the table for user purpose.

Just give it a try BOL 




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---


Prasanna Narayanan

unread,
Nov 18, 2009, 10:35:36 AM11/18/09
to mercu...@googlegroups.com
Hi all,
My Application is developed in WPF(Front End) and Infrigistics(Back End). So It's very hard to automate even if u do all those row, column things in WPF grid.

My Appln is recognising it as a WPF Object and not as the WPF grid. So i have to either use X, Y coordinates and thats also not possible as the application position cant be made Stable as there are nested scrollbars.
One more thing Please confirm if the Test Advantage can help in Automating WPF as well. I t was mentioned that it will support Infrigistics and not WPF. Please Clarify this.

Many objects that are identified by QTP's WPF addin do not support its properties.
For ex: A WPF Text Box (WPFEdit) is not supporting either Type or Set Property when that particular object is there inside a WPF grid. 
If Test Advantage can support this as well, it will be well and good. Or else will any Emulator or Addins such as Stringray support QTP automation for this WPF.

I heard that Test Complete will support WPF but that is also not for sure till whcih extent it will support. Please Clarify if any one is working on this.


Thanks,
Prasanna.

--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--
With Best Regards,
Prasanna Narayanan Srinivasan

santosh kumar

unread,
Dec 5, 2009, 2:13:39 AM12/5/09
to mercu...@googlegroups.com
Hi Prasanna,

We also faced the same type of problem for SWF & WPF windows.

Then we tried with QTP-10.0 and installed patch QTPWEB_00047.some what it worked.

Where ever it is not working,use       --------- wpfobject(objectname).Gettextlocation "textname",l,t,r,b and write wfbobject().click r+5,t

Regards,
Santosh




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---




--
Regards,
Santosh
Reply all
Reply to author
Forward
0 new messages