Docs & Support
Get A Free Trial
close mobile menu
Testing Framework Forum
Feed for this thread
1 posts, 0 answers
Posted 29 Jun 2010
Link to this post
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 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)
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.
Back to Top