SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Mar 2006
    Location
    Bristol, UK
    Posts
    1,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    QTP indentifying XAML generated objects

    Hi,

    The AUT I'm working on is written in WPF, and we have the correct add in installed.

    QTP can recognise "basic" WPF objects but has problems where the object is dynamically generated via XAML.

    Just wondered if anyone else has any experience/hints/tips in this area?

    We are currently awaiting help from Mercury but I won't hold my breath

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: QTP indentifying XAML generated objects

    You can always cast objects to other types.

    So if QTP recognizes a SwfEdit generated dynamically as something like below

    SwfWindow().SwfObject()....

    Then you can use DP and try to cast it as a SwfEdit
    SwfWindow().SwfEdit("x:=y").Set ...

  3. #3
    Advanced Member
    Join Date
    Mar 2007
    Location
    Salt Lake City, UT, USA
    Posts
    606
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP indentifying XAML generated objects

    Resurrecting this old post.

    I may be having this problem too. QTP 9.5 with .Net and WPF add-ins running.

    Our app uses XAML too. I can see many objects (identified as WpfEdit, WpfButton, etc.) but other objects, specifically those inside a WpfTabStrip, are invisible to qTP.

    It's not a matter of seeing them as a SwfObject and remapping them, but they are completely invisible to QTP. Spy can't see them. The OR cannot learn them. They don't record when I interact with them in record mode.

    Further, if I install a basic XAML application on my QTP box, I can see everything perfectly. 100% of all objects and their properties. But then I close the app and launch it again and the objects are now invisible to QTP - objects I just learned and recorded and interacted with.

    I have attached a little dummy application our developer wrote, a simple window with a few tab controls and other objects. Ugly, but handy little window for testing QTP functionality against this XAML code.

    Any ideas?

    Thanks in advance,
    Blake
    Attached Files Attached Files
    "The last 10% of any software project will take 90% of the budgeted time. The first 90% will take the other 90%"

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.11%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:05 PM.

Copyright BetaSoft Inc.