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

Stopping test if there are any errors in console?

5 Answers 163 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
veri555999
Top achievements
Rank 1
veri555999 asked on 16 Oct 2015, 10:02 AM

Hi, hospital form guy here, searched and didn't find anything

Just wondering, is there any way to stop a test if any errors appear in the console? Like is there a way to check? And I mean any errors, not just JavaScript ones or anything like that. And I'm not talking about logging the errors, just stopping the test and showing the console errors.

 

Thanks in advance.

5 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 16 Oct 2015, 06:53 PM
Hello,

Before I can say Yes or No, I need to understand what exactly you mean by a "console error". Can you show me an example of this? I know what the console is, for displaying text output from a DOS application. But I don't understand what a "console error" is.

Regards,
Cody
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
veri555999
Top achievements
Rank 1
answered on 17 Oct 2015, 04:36 PM
Sorry for not being clear enough. By console I mean the one that you open with, e.g., F12 in Chrome.
0
veri555999
Top achievements
Rank 1
answered on 17 Oct 2015, 06:09 PM
The browser console, basically.
0
Accepted
Cody
Telerik team
answered on 19 Oct 2015, 02:58 PM
Hi,

Ah you're referring to the browser console window. That makes more sense. Thank you for the clarification. Unfortunately Test Studio is unable to hook into this output for any purpose, including detecting errors.

Regards,
Cody
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
veri555999
Top achievements
Rank 1
answered on 20 Oct 2015, 10:15 AM
That's a shame.

Thanks again.
Tags
General Discussions
Asked by
veri555999
Top achievements
Rank 1
Answers by
Cody
Telerik team
veri555999
Top achievements
Rank 1
Share this question
or