SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Jun 2008
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    syncronization Issues at each object in the page

    I am using QTP 9.5 for automation and application is in the initial stages of development.
    I have syncronization issues for each and every object in the page i need to keep a wait statement underneath each line in the script, otherwise object disabled is getting displayed.
    can you suggest me any other way istead of adding a wait statement to each and everyline of code in the script.
    I appreciate if you can suggest me any other or common statement to use for syncronization.

  2. #2
    Senior Member
    Join Date
    Feb 2006
    Location
    Bangalore
    Posts
    593
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: syncronization Issues at each object in the page

    Refer: object.ReadyState

    Reference: MSDN Site or Google
    Vengat Ramanan.R

  3. #3
    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: syncronization Issues at each object in the pa

    Use RegisterUserFunc to override the methods and add wait statements inside the the overriden method. This way you won't have to write the wait statement every time.

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    London, U.K
    Posts
    1,804
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: syncronization Issues at each object in the pa

    kavir - Are you saying that every object gets updated when you interact with another object, or is it when the page first loads?

  5. #5
    Junior Member
    Join Date
    Jun 2008
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: syncronization Issues at each object in the pa

    Its everytime with most of the objects and in all the pages if i consider and end to end scenario

  6. #6
    Senior Member
    Join Date
    Feb 2007
    Posts
    252
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: syncronization Issues at each object in the pa

    [ QUOTE ]
    Use RegisterUserFunc to override the methods and add wait statements inside the the overriden method. This way you won't have to write the wait statement every time.

    [/ QUOTE ]

    That sounds interesting Tarun, Can you please elaborate little bit? I guess it will greatly help me to deal with the sync issue I have.

    Thanks in advance.

 

 

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.00%
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 03:59 AM.

Copyright BetaSoft Inc.