chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
Hi,

Starting working with Isolator 5.3.3 we've encountered problems when debugging our UT.
When debugging a successful test, after the test has finished running, we get a ThreadInterruptedException exception indicates that the thread was interrupted from waiting state.
The call stack looks something like this:

...Thread.SleepInternal
...Thead.Sleep
...Microsoft.VisualStudio.TestTools.Agent.AgentObject.HeartbeatThread

When running the tests without debugging (by simply clicking "run") everything is OK.
We've encountered this issue since moving to 5.3.3 version and it happens on all our development machines.
It is very hard to work like this..

Moving to version 5.4.4 didn't fix the problem.
Is this a known bug?
asked by benb (720 points)

5 Answers

0 votes
Hi Ben,

Can you please post a test that reproduces this issue or send a repro solution to Typemock support? It's not a known issue, it's the first time we see this error.

Regards,
Elisha
Typemock Support
answered by Elisha (12k points)
0 votes
I'm looking to a solution for the same issue. Even commenting all the code out of the test method and debugging an empty method causes this to occur...
I'll try to post up the rest of the code.
answered by etropic (1.8k points)
0 votes
Hi,

Do you mean that a test like this one throws the exception?

[TestFixture]
public class TestsClass
{
   [Test]
   [Isolated]
   public void Test() {}
}


If so, can you please tell what Windows version are you using? Is it x86 or x64? What version of Isolator are you using?

Regards,
Elisha,
Typemock Support
answered by Elisha (12k points)
0 votes
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace FlipTagTests
{
    /// <summary>
    /// Summary description for UnitTest1
    /// </summary>
    [TestClass]
    public class UnitTest1
    {
        public UnitTest1()
        {

        }

        [TestMethod]
        public void TestMethod1()
        {
            //
            // TODO: Add test logic   here
            //
        }
    }
}



That code will produce the error.

(Notice no AAA or Isolated.)
If I disable Isolator, I can run the test without the error.

Win 7 Ultimate, 64BIT
VS 2008 - 9.0.30729.1 SP1
Isolator 5.4.3.0
answered by etropic (1.8k points)
0 votes
Hi,

I am still having hard time reproducing this error. Can you please execute the test with Isolator log enabled? (Typemock -> Configure Typemock Isolator -> Visual Studio -> Write Typemock Isolator Log).

Please send the log to our support email and I'll continue investigating it.

Regards,
Elisha
Typemock Support
answered by Elisha (12k points)
...