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

Ignore ThreadAbortException

0 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 29 Jun 2010, 12:31 PM
After every test I run with WebAii as soon as I close the browser or clean up the test I get the following exception :

---- UNHANDLED EXCEPTION ----
Thread Name: RemotedAsyncCommandListener
System.Threading.ThreadAbortException: Thread was being aborted.
   at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.AsyncListener()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()


I get this even though the test itself has passed.

I would like to hide this exception or at least not display in the console.writeline as it suggests the test has failed when it has not.

I have tried playing with various settings including lots of configurations like Initialize(settings, new TestContextWriteLine(WriteLine));

I have also tried catching the ThreadAbortException but it seems this is already being caught inside the WebAii internals and then the above log gets written each time.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Share this question
or