Re: Using Log4Net with Selenium

2016-01-06 Thread superfreak3
I was just about to replay that it was as easy as throw. Thank you so much for the replies! On Wed, Jan 6, 2016 at 9:40 AM, Jim Scott-8 [via Apache Logging] < ml-node+s6191n60863...@n7.nabble.com> wrote: > try > { > //test > } > catch(Exception ex) > { > log.Error(ex); // log your exc

RE: Using Log4Net with Selenium

2016-01-06 Thread Jim Scott
try { //test } catch(Exception ex) { log.Error(ex); // log your exception throw; // allow exception to continue } -Original Message- From: "superfreak3" Sent: ‎1/‎6/‎2016 6:57 AM To: "log4net-user@logging.apache.org" Subject: Re: Using Log4Net with Selenium I've found t

Re: Using Log4Net with Selenium

2016-01-06 Thread superfreak3
I've found that sending exceptions to the log in the catch block will cause the test to be seen as successful overall. How can I also set the test result for Selenium in that block. pseudo code: Set MyTestResult = Failed. ?? On Tue, Jan 5, 2016 at 10:00 PM, mawa316 . wrote: > Here's the file