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

Browser Console logs

3 Answers 222 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 19 Jul 2012, 04:57 PM
Hi,

I'mdoing a eval for my company of Test Studio, and so far the bake tests are going well wiht the functions that we would like to implement it.  I just have one quesiton:  Is there a way to capture the javascript console normally captured in IE's Developer Tools or FireFox (via Firebug) logs.

Is this something that can be done within Test Studio or should I look to try and solve this issue with C#? 

Thank you,
Carl

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 24 Jul 2012, 08:32 PM
Hi,

My apologies for the delay getting back to you on this. Unfortunately Test Studio does not have a way to hook into or capture the JavaScript console output. We can invoke JavaScript and even hook into JavaScript event handlers. You can also write JavaScript that will write directly into the tests log file. We just haven't implemented any access to the JavaScript console you seek, I am sorry.

Just for my own understanding, what is your test case for wanting to do this?

Kind regards,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
ivan
Top achievements
Rank 1
answered on 30 May 2018, 01:54 AM

Hi,
maybe something was changed with it for now?
I need to have access to the javaScript console too.

0
Elena
Telerik team
answered on 30 May 2018, 02:11 PM
Hi Ivan,

Thank you for your interest in Test Studio. 

The console in the browser cannot be accessed by the Test Studio recorder - it communicates with the page and the elements in its DOM tree. Since the browser console is not part of the application under test it cannot be accessed directly. 

What is still possible is what Cody had listed - invoke JavaScript (which is also available in the Step Builder), use JavaScript event handlers, and write JavaScript to write in the log file. 

I hope any of these could be helpful for you. Please accept our apology in case of any inconvenience caused. 

Thanks! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Carl
Top achievements
Rank 1
Answers by
Cody
Telerik team
ivan
Top achievements
Rank 1
Elena
Telerik team
Share this question
or