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
    Jun 2001
    Location
    Bend, Oregon
    Posts
    102
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    SwfToolbar("X").Press "Forward" How to know if it happened?

    In my AUT there is a SwfToolbar object with several items (buttons). The doc says Press has no return value!

    There are times when the press forward arrow fails and the test halts.

    Does anyone know a work around to capture if the toolbar item has been pressed?
    Social Engineering - do they ever use QA?

  2. #2
    Super Member
    Join Date
    Oct 2004
    Posts
    1,222
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SwfToolbar("X").Press "Forward" How to know if it happened?

    That would depend purely on the nature of your application. Surely the press action should cause a change in the app. Say for instance if the press causes a new page to load, check for the existence of the page.

    The other thing you'd like to do is take steps to ensure the button is clicked. Make sure you sync for the elements to load completely and check for the existence of the forward button before you click it.
    (I'm hiring Software Development Engineers in Test in Seattle, WA)

  3. #3
    Senior Member
    Join Date
    Jun 2001
    Location
    Bend, Oregon
    Posts
    102
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SwfToolbar("X").Press "Forward" How to know if it happened?

    I guess the sync idea is what seems best. I have added the code and will wait to see how it behaves.

    As for your 1st comment: No the Press event is failing, which gives an error from QTP telling me it can not find the object. Since there is no return value I can not code for a failed Press event, it seems.

    Thanks for your comment.
    Social Engineering - do they ever use QA?

 

 

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.54%
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 12:02 PM.

Copyright BetaSoft Inc.