NUnit Test suite is hung frequently while interacting with WPF application

4 posts, 0 answers
  1. Kateryna
    Kateryna avatar
    11 posts
    Member since:
    Aug 2015

    Posted 01 Nov 2015 Link to this post

    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
  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 05 Nov 2015 Link to this post

    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
     
  3. Kateryna
    Kateryna avatar
    11 posts
    Member since:
    Aug 2015

    Posted 05 Nov 2015 in reply to Ivaylo Link to this post

    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 

     

     

  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 10 Nov 2015 Link to this post

    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
     
Back to Top