This is a migrated thread and some comments may be shown as answers.

Catching application errors

3 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Corina
Top achievements
Rank 1
Corina asked on 14 May 2013, 02:14 PM
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

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 17 May 2013, 10:55 AM
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
0
Corina
Top achievements
Rank 1
answered on 17 May 2013, 11:45 AM
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
0
Boyan Boev
Telerik team
answered on 17 May 2013, 02:43 PM
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
Tags
General Discussions
Asked by
Corina
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Corina
Top achievements
Rank 1
Share this question
or