SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Jul 2002
    Location
    Palm Bay, FL USA
    Posts
    2,346
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    QTP 9 not recording child browser windows...

    Ok, so I'm typically not a QTP guy, but I've never had any difficulty using it before.

    Today, I was doing a Proof of Concept for a client. I'm testing an application that spawns a child browser window at various points during the process.

    I figure I must be missing something simple, but for the life of me, I couldn't figure out how to get QTP to record anything done in the child window. I got it to recognize the new window as the active window, but it still didn't capture any activity in that window (to include closing it).

    Anyone care to share the "secret record child browser windows handshake" with me?
    Scott Barber
    Chief Technologist, PerfTestPlus
    Executive Director, Association for Software Testing
    Co-Author, Performance Testing Guidance for Web Applications
    sbarber@perftestplus.com

    If you can see it in your mind...
    you will find it in your life.

  2. #2
    Senior Member
    Join Date
    May 2004
    Location
    Lakeland, FL
    Posts
    299
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9 not recording child browser windows...

    Hey Scott,
    Long time no talk ... Under Test => Record and run settings, is quicktest configured to record on any open browser or a specific browser URL when session begins?
    JFry

  3. #3
    Senior Member
    Join Date
    Jul 2002
    Location
    Palm Bay, FL USA
    Posts
    2,346
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9 not recording child browser windows...

    Hey buddy! How are things?!? You still working at the same place?

    I've tried it both ways - no luck either way. I know this app is using Ajax, but I didn't expect that to through off a UI level tool.

    Like I said, I'm either doing something really silly, or there is something quirky with this app that I haven't figured out yet. If it wasn't only accessable via VPN, I'd just send you a link, but it's all "secret" for some reason that's completely beyond me. [img]/images/graemlins/wink.gif[/img]
    Scott Barber
    Chief Technologist, PerfTestPlus
    Executive Director, Association for Software Testing
    Co-Author, Performance Testing Guidance for Web Applications
    sbarber@perftestplus.com

    If you can see it in your mind...
    you will find it in your life.

  4. #4
    Senior Member
    Join Date
    May 2004
    Location
    Lakeland, FL
    Posts
    299
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9 not recording child browser windows...

    Doin all right man ... yep at the same place ... expanded a tad into the realm of performance testing (still a bit of a noob, but getting there) ... Hmm ... Are the child windows modal dialogs? Or a complete browser window where the parent window isn't locked down? Either way, there shouldn't really be any issues with this ... what version of QTP is your client using? Also how involved is the object manipulation that needs to happen in the child windows?
    JFry

  5. #5
    Senior Member
    Join Date
    Jul 2002
    Location
    Palm Bay, FL USA
    Posts
    2,346
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9 not recording child browser windows...

    Perf is the way to go man - at least for a technical guy like yourself.

    The child window is modal (no browser tool bars, menus etc.) QTP 9. Object manipulation should be minimal - looks like normal webforms to me.
    Scott Barber
    Chief Technologist, PerfTestPlus
    Executive Director, Association for Software Testing
    Co-Author, Performance Testing Guidance for Web Applications
    sbarber@perftestplus.com

    If you can see it in your mind...
    you will find it in your life.

  6. #6
    Senior Member
    Join Date
    May 2004
    Location
    Lakeland, FL
    Posts
    299
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9 not recording child browser windows...

    Only on 8.2, but have had no issues recording on a quite a few apps that spawn modal dialogs ... could try recording up to the point where the modal dialog gets spawned, stop, add some of the modal dialog objects manually, manually insert some code to handle the dialog action and try to re-run, and see if the script bombs out when the dialog gets spawned. If that happens, then my guess would be that there is some java script from the parent document that is hanging (waiting on some return value from the modal dialog?) (I remember running into something similar before, but I think it was a VB program and not QTP ... have to go back and look at some notes...) which is preventing execution/recording. If it doesn't bomb on running it, and modal dialog interaction is minimal, I would just manually add/code around this instead of relying on recording.
    JFry

  7. #7
    Senior Member
    Join Date
    Jul 2002
    Location
    Palm Bay, FL USA
    Posts
    2,346
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9 not recording child browser windows...

    Yeah, that's kinda the direction I was leaning. I always script these things manually the second time, but it's usually easier to record a path straight through first to see how it all interacts - ya'know?

    I'll let you know how it turns out.
    Scott Barber
    Chief Technologist, PerfTestPlus
    Executive Director, Association for Software Testing
    Co-Author, Performance Testing Guidance for Web Applications
    sbarber@perftestplus.com

    If you can see it in your mind...
    you will find it in your life.

  8. #8
    Senior Member
    Join Date
    May 2004
    Location
    Lakeland, FL
    Posts
    299
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9 not recording child browser windows...

    know what ya mean ... if all else fails, could just try to reset object recognition to the default and re-run C:\Program Files\Mercury Interactive\QuickTest Professional\bin\QuickTestProfessional.bat (or wherever QTP is installed) ... I've experienced some really strange things with this tool lately ...
    JFry

  9. #9
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9 not recording child browser windows...

    Scott, could always try low-level recording just for the child window manipulation then switch back to "normal" recording. Best to max the window if possible.

    Not keen on using low-level but sometimes needs must.

    Mark Smith.

  10. #10
    Senior Member
    Join Date
    Jul 2003
    Location
    Denver
    Posts
    210
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9 not recording child browser windows...

    Hi Scott,

    Your PerfTestPlus website is great!

    Does object spy recognize objects in that window as webobjects? Can those objects be added to object repository?
    You may run into Internet Explorer_Server window object. QTP can't record on that window and can't recognize any objects inside of that window.

    Igor

 

 

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 10.71%
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 02:01 PM.

Copyright BetaSoft Inc.