[wtr-general] Re: Getting the line number of the error of the web application we are testing using watir. Is it possible?

2015-02-20 Thread Chuck van der Linden
if you can get cooperation from your developers there are some tactics 
where by you can get information about any JS errors.   I do something like 
that, and for all failing tests one of the things the code does is check to 
see if there was a JS error that occured, and report the details if there 
was. 

reference: 
  
http://itreallymatters.net/post/384269592/capturing-javascript-errors-with-watir#.VObrjfnF_uM
 
 
 and
  
http://watirmelon.com/2012/12/19/using-webdriver-to-automatically-check-for-javascript-errors-on-every-page/

On Thursday, February 19, 2015 at 5:17:30 PM UTC-8, Ping-0t wrote:

 Good Day!


 Hi guys, I am really confuse about my task. It is by getting the line 
 number of the error from the web application we are testing not from the 
 script we are using to test the web application. I am just wondering if is 
 it possible to happen using watir?

 Any help is greatly appreciated. Thanks in advance :)


 Best regards,

 Ping


-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Re: Getting the line number of the error of the web application we are testing using watir. Is it possible?

2015-02-19 Thread Selenium Framework
I think what you are asking for is to be able to pin-point the source code 
line of error when a GUI test fails ?
If that is the case, watir ONLY knows DOM as it is only a layer on top of 
Selenium api's. When something fails, the way we would correlate the error 
in one layer of application with the line of code in another layer is by 
implementing log monitors and correlating it -- This is an extremely big 
area and there is no one solution for it. Monitors have to be implemented 
at each layer and correlating them requires another tool/library.
Splunk for example does this to an extent. 
Rest I would ask you to talk to your developers, dev ops guys to know more

cheers,
www.seleniumframework.com

On Friday, February 20, 2015 at 6:47:30 AM UTC+5:30, Ping-0t wrote:

 Good Day!


 Hi guys, I am really confuse about my task. It is by getting the line 
 number of the error from the web application we are testing not from the 
 script we are using to test the web application. I am just wondering if is 
 it possible to happen using watir?

 Any help is greatly appreciated. Thanks in advance :)


 Best regards,

 Ping


-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.