test pass in Test Studio, Fail in runtime

2 posts, 0 answers
  1. ryszard
    ryszard avatar
    1 posts
    Member since:
    Mar 2011

    Posted 01 Mar 2013 Link to this post

    Hi
    I have a test, that pass without any failes when I run it in Test studio. Same test gets failed when I run it in run-time.
    This is error mess:
    Step Exception:

    Element was not found. Criteria: Element Exists. Page being searched
     
    Page (...nteractive.com/en-US/home.aspx). Unable to locate element. Details: Attempting
     
    to nd Html element using Find logic (Html): HtmlPath Contains /bodyid=ctl00PageBody/formid=aspnetAND TextContent Exact ADMIN
     
    Unable to locate element. Search failed!

    I use "Edit in live" option for that element in Test Studio, locating element and validation is possitive. Could you tell me why in run-time that element couldn't be found? and how to resolve it.
    login and password for test user also I attached zip file

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 01 Mar 2013 Link to this post

    Hi Ryszard,

    I am sorry to hear you are running into this problem.

    Unfortunately I was not able to reproduce the issue. 

    In order to assist you best please elaborate a bit more on your scenario:

    1. Are you executing the tests remotely in a test list? Test Studio (and most other UI automation tools) tests cannot run in non-interactive mode. The technical problem is that in non-interactive mode there is no Windows desktop object. It requires a real (unlocked) desktop. See this KB article for more information.

    2. Please record a short video to show us the issue you are experiencing. Jing is great for this.

    There are several things you can try:
     
    1. Please try to increase the execution delay (e.g. 1000) from the test list settings (see the second screen shot).

    2. If you haven't done so already, please configure your browser on the execution machine as seen in this article.

    3. Try to add an WaitForExists step to the element you are clicking on.

    Hope to hear from you soon.

    Regards,

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