Execution Delay

6 posts, 0 answers
  1. Talal
    Talal avatar
    19 posts
    Member since:
    Jan 2012

    Posted 14 Feb 2012 Link to this post

    Hi there,

    I am checking for element in the screen not exist, I used "Wait element not exist", the element in the screen was exist, I expect this test should fail, but the check is pass, but when I add Execution Delay "Wait for '500' " before the checking, the test for element not exist is fail as expected. My questions are, how I know I need to add exection delay? and do I used the wright command for checking on element does not exist?   

    Your help and support is much appreciated

    Talal
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 15 Feb 2012 Link to this post

    Hello Talal,

    I can confirm you are using the right approach. The only reason I can think of to explain why adding a 500ms delay would make a difference is if the element was being added at the time your wait for element not exist was executing. For example:

    Step 14 click a button which causes the UI to change, adding the element that step 15 will check
    Step 15 Wait for element exists not

    Step 15 may unexpectedly pass because it's easy for the test script to outrun the application you're testing. In this case adding the 500ms delay is the right thing to do.

    Kind regards,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Talal
    Talal avatar
    19 posts
    Member since:
    Jan 2012

    Posted 15 Feb 2012 Link to this post

    Thanks Cody for you explanation, in the example I mentioned even the 500ms delay some times not working I have to increasd to 1000ms, my question is how much the suitable ms delay we have to add, is any standerd things we need to follow or just "try and error"  

    Regards
    Talal
  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 15 Feb 2012 Link to this post

    Hello Talal,

    Unfortunately every application is unique. As a result there is no such thing as a standard delay you can use. I'd like to better understand the problem you are running into. Is there any way I can access your application directly so i can see the problem you're running into first hand? Can you give me specific repro steps for me to follow?

    All the best,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Theja
    Theja avatar
    2 posts
    Member since:
    Apr 2013

    Posted 19 Apr 2013 Link to this post

    I am facing a similar problem and here is the link for the post.
    http://www.telerik.com/automated-testing-tools/community/forums/test-studio/general-discussions/waituntilready-is-not-working-as-expected.aspx
    Your help would be greatly appreciated
    Thanks
  6. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 24 Apr 2013 Link to this post

    Hi Theja,

    I apologize for the delay. I just responded to your own form post on this subject. Let's continue our discussion there.

    Greetings,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top