Catching application errors

4 posts, 0 answers
  1. Corina
    Corina avatar
    17 posts
    Member since:
    Feb 2013

    Posted 14 May 2013 Link to this post

    Hello,

    I recently performed a test using Telerik Test Studio, and I came over an exception caught by it. The test executed successfully, but at the end, an Internet Explorer window opened containing an application specific JavaScript error.

    This is the error (just as an example):

    17:12:27 FATAL - Uncaught error Unable to get property 'read' of undefined or null reference in http://mes-devpc7/RnDSuite/Scripts/Custom/Wizards/Shared/FilterCriteria.js, line 229.
     
    I was wondering if this kind of errors can be caught and included in the Telerik test result log, and maybe even determine the test to fail in case such an error is caught.

    Edit: There is another functionality that I need to address. The application I am testing displays a loading icon whenever an action is taking some time to load. Is there a way to check how long the loading icon is displayed? Also, is there a possibility to do something like this: "If load-icon visible for more than 10 seconds, fail test"? 

    Regards,
    Corina Forna

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 17 May 2013 Link to this post

    Hi Corina,

    Please check out this article on how to verify dialog text and write it to the log of the test.

    Note that this is possible only in Internet Explorer.

    Regarding the second question, what kind of application are you testing?

    First option is to use a performance test which shows the time of every request of your application.

    Another option to achieve this is to use a coded step. Basically that step should contain a stopwatch which will measures the time until the WaitForExists verification for the loader icon returns false.

    However to give the concrete code please grant us access to your application. If direct access is not possible (eg. app is local and/or private), please capture a Fiddler trace and attach it to this ticket in a ZIP file. If you are unfamiliar with how to do so, this link will provide you with step-by-step instructions for download and use.

    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
  3. Corina
    Corina avatar
    17 posts
    Member since:
    Feb 2013

    Posted 17 May 2013 Link to this post

    Hello,

    Regarding the first problem: the error is generated in an Internet Explorer window, not in a dialog or alert. Does this still work with the solution offered by you?

    For the second problem: thank you for the suggestions, I only needed to know if it was possible to do that.

    I would also have another question: in the application we have some drop-down lists. I was wondering how exactly does the application capture the value selected from the drop down list. Is it by position or by text? I need to be able to select values dynamically, by their text, since the values in the drop-down lists can change from time to time.

    Thank you,
    Corina
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 17 May 2013 Link to this post

    Hello Corina,

    It is even easier if it generated in Internet Explorer window. Test Studio connects to every Internet Explorer window so you can perform all regular actions against it.

    Regarding the additional question this is a completely different issue so I split it out to a new ticket. The new ticket is with ID: 694428.

    It's a good practice to split different issues in different tickets so we can keep better track and handle them more quickly.

    Thank you for your understanding.

    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