ThreadAbortException: Thread was being aborted when running on remote computer.

4 posts, 0 answers
  1. Anton
    Anton avatar
    54 posts
    Member since:
    Sep 2011

    Posted 23 Aug 2012 Link to this post

    Hello.

    i run my tests with jenkins configured building and running tests on remote computer.

    tests all ok but each test throw exception

     

    Internal error: An unhandled exception occurred.
    The exception occurred while test step 'test10' was running.
    System.Threading.ThreadAbortException: Thread was being aborted.
       at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.AsyncListenerThreadEntry()
       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()

    tests runs without exception on local computer.
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 28 Aug 2012 Link to this post

    Hello Anton,

    I apologize for the delay getting back to you. We don't have a Jenkins server setup to try and reproduce this. What sort of tests are you trying to run... coded unit tests or Test Studio tests (i.e. .tstest files)? What are you using for a test runner, ArtOfTest.Runner.exe or MSTest or something different? What happens if you try to manually execute your tests from the command line on the Jenkins server? Do you get a similar error?

    Kind regards,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Anton
    Anton avatar
    54 posts
    Member since:
    Sep 2011

    Posted 31 Aug 2012 Link to this post

    I have coded ui tests using WebAii.

    TestRunner: Gallio 3.3.1

    if i manually start test on this machine, all good.

    I point you that tests trow exception not on jenkins server but on jenkins SLAVE NODE.

    I can try this scenario with TeamCity on remote agent on monday.

  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 05 Sep 2012 Link to this post

    Hello Anton,

    Were you able to try TeamCity? Does that work any better than Jenkins?

    Kind regards,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top