t;>> http://apache-logging.6191.n7.nabble.com/Using-Log4Net-with-Selenium-tp59639p60848.html
>>> To unsubscribe from Using Log4Net with Selenium, click here.
>>> NAML
>>> <http://apache-logging.6191.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=i
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
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
Here's the file I spoke of...
On Tue, Jan 5, 2016 at 9:01 PM, superfreak3 [via Apache Logging] <
ml-node+s6191n60848...@n7.nabble.com> wrote:
> I noticed something strange that has happened since adding logging with
> log4Net. When exceptions occur, they are caught and written as desired to
>
I noticed something strange that has happened since adding logging with
log4Net. When exceptions occur, they are caught and written as desired to
the log. However, running via both mstest and Visual Studio 2015, despite
the fact exceptions occur, the tests are still seen as successful.
I verifie
I was able to get everything to work by changing the Copy to Output Directory
property to Copy always. Once the app.config file was actually present, the
log was created and updated as hoped.
Now if I can only get the Microsoft Test Tools unit test exception for my
web app tests, I'll be all set,