SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Exist Timeout Issue

    I have some code that checks to see if a WebEdit field exists such as

    If Browser.Page.WebEdit.Exist(0)Then
    'do something

    The problem I have is when the object doesn't exist it take about 5 to 10 seconds before QTP moves to the next line of code in my script. By passing 0 to Exist I thought that True or False would be returned immediately.

    Anyone have any ideas on why it's taking so long?

  2. #2
    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

    Re: Exist Timeout Issue

    Search the forum, this has been explained a few times already

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

    Re: Exist Timeout Issue

    I guess I'll search again. But if anyone has an answer while I'm searching that would be appreciated ............

  4. #4
    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: Exist Timeout Issue

    Are you using Descriptive programming and CreationTime:=0 for the browser?

  5. #5
    Member
    Join Date
    Jan 2007
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exist Timeout Issue

    [ QUOTE ]
    I have some code that checks to see if a WebEdit field exists such as

    If Browser.Page.WebEdit.Exist(0)Then
    'do something

    The problem I have is when the object doesn't exist it take about 5 to 10 seconds before QTP moves to the next line of code in my script. By passing 0 to Exist I thought that True or False would be returned immediately.

    Anyone have any ideas on why it's taking so long?

    [/ QUOTE ]

    just search for my posts in this forum... I asked the same question a week or so ago.

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

    Re: Exist Timeout Issue

    I did find some of the threads regarding a 10 second delay but from what I read they refer to a problem when using CreationTime:=0

    What i actually have in my code is:
    Browser("micClass:=Browser").Page("micClass:=Page" ).WebEdit("name:=Product").Exist(0)

    I still get a 10 second delay with this.

  7. #7
    Senior Member
    Join Date
    Feb 2007
    Location
    Pittsburgh, USA
    Posts
    429
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exist Timeout Issue

    I had same issue.

    I am running same script on 2 different machines. It's working fine on one machine(waiting zero seconds), but the second machine is waiting for about 10 seconds.

    All the QTP settings are same for both the machines.

    Any thoughts on this?
    -Reddy

  8. #8
    Member
    Join Date
    Jan 2007
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exist Timeout Issue

    I turned off smart Identification for my browser object in my object repository. Then in QTP under File > Test Settings > Run I checked "Disable Smart Indentification during the run session".

    this seemed to cut the time in half for me

  9. #9
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exist Timeout Issue

    The search string to use is: "exist(0)" to bring up a ton of threads on the ongoing bug with QTP. Here a function I wrote that might help:

    http://www.sqaforums.com/showthreade...age=0&vc=1

    You will probably need to fiddle with this code to get it meet your needs, but is should serve as a starting point.

    -Terry Horwath

 

 

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:40 AM.

Copyright BetaSoft Inc.