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

NUnit Test suite is hung frequently while interacting with WPF application

3 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kateryna
Top achievements
Rank 1
Kateryna asked on 02 Nov 2015, 04:55 AM
Hi All,

I'm using Telerik testing framework to automate WPF application tests for quite some time (3 years). All the time as of version 2012.2.1204. It's an old one, but the most stable so far. I was trying to update to some latest 2015, but there is a critical bug, that I will clarify separately.
So this version is quite stable, except one issue that we've been experiencing from time to time. Lately, it's started happening every night and creates a real problem. We have several sets of tests running every night. Each set has approximately 20 tests of 2-7 minutes each. At the middle of a test (different test all the time), the tests stop running with the exception below. Even NUnit timeout attribute in tests with the value of 10 minutes doesn't help. All tests are hung with a circle of exceptions until TeamCity stops it.

Could you advise what might be wrong and what can I do to avoid this exception and make test running smoothly?
Thank you.


Thread id=4684
M-->U
[IL Method without Metadata]
at System.IO.Pipes.PipeStream.WriteFileNative(Microsoft.Win32.SafeHandles.SafePipeHandle handle, System.Byte[] buffer, System.Int32 offset, System.Int32 count, System.Threading.NativeOverlapped* overlapped, System.Int32& hr) 
at System.IO.Pipes.PipeStream.WriteCore(System.Byte[] buffer, System.Int32 offset, System.Int32 count) 
at System.IO.Pipes.PipeStream.Write(System.Byte[] buffer, System.Int32 offset, System.Int32 count) 
at Telerik.TestingFramework.WpfExtension.WpfCommunication._browserRemoteClient_BrowserRequest(System.Object sender, ArtOfTest.WebAii.EventsArgs.BrowserCommandEventArgs e) 
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoteClient.ProcessBrowserRequest(System.Object sender, ArtOfTest.WebAii.EventsArgs.BrowserCommandEventArgs e) 
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoteClient.ListenThreadEntry(System.Object objParam) 
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object state) 
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) 
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) 
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) 
at System.Threading.ThreadHelper.ThreadStart(System.Object obj) 
U-->M


Thread id=7984
at System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle waitableSafeHandle, System.Int64 millisecondsTimeout, System.Boolean hasThreadAffinity, System.Boolean exitContext) 
at System.Threading.WaitHandle.WaitOne(System.Int32 millisecondsTimeout, System.Boolean exitContext) 
at System.Threading.WaitHandle.WaitOne() 
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.AsyncPipeRead(System.IO.Pipes.PipeStream pipe, System.Byte[] bytes, System.Int32 offset, System.Int32 count) 
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.ReadCommandFromPipe<ArtOfTest.WebAii.Messaging.Process.PipeCommand>(System.IO.Pipes.PipeStream pipe) 
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoteClient.ListenThreadEntry(System.Object objParam) 
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object state) 
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) 
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) 
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) 
at System.Threading.ThreadHelper.ThreadStart(System.Object obj) 
U-->M

3 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 05 Nov 2015, 07:28 AM
Hello Kateryna,

I am sorry to hear you are experiencing this problem. To be honest with you there is no way we can debug, investigate and fix a problem of version 2012, this is way too old version and all our environments are updated to versions of 2015. 

The best approach here will be if you provide more information about the critical bug you are experiencing so we can fix it in the latest version.

Thank you for your understanding regarding this matter.

Regards,
Ivaylo
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Kateryna
Top achievements
Rank 1
answered on 05 Nov 2015, 10:32 PM

Hi Ivaylo,

This is clearly understandable. 

Another issue that I have in newest versions is described there http://www.telerik.com/forums/waitforwindow-fails-even-the-window-exists. Will be working on it in that thread.

Thank you.

Kate 

 

 

0
Ivaylo
Telerik team
answered on 10 Nov 2015, 02:22 PM
Hello Kateryna,

Thank you for your update. I am closing this case in order to avoid duplicates.

Regards,
Ivaylo
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Kateryna
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Kateryna
Top achievements
Rank 1
Share this question
or