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
Hello,

I am using the version 6.0.5.0 of typemock in order to mock our unit tests.

I have a little problem when I try to launch the same team build at the same time for different agents. One of the build ends correctly but the other returns the following error:

'Unable to create collection settings, diagnostics and data collection may not take place. This can be caused by having more than one instance of Microsoft Test Manager being run at the same time, or by having two or more collectors set to collect information from IIS.'

I have the same problem if I have two instances of Visual Studio with the same solution open. If I try to launch the tests of the two instances at the same time I get the same error.

It seems that occurs for having linked typemock with Visual Studio 2010 profilers in order to pass the tests. If I link typemock I have to activate the Test Impact or InelliTrace options for the tests settings in order to pass the tests.

If I uncheck these options for passing the tests, the mocked tests fail. I have tried to launch two team builds for a solution which does not use typemock and works fine. I don´t have to check any option in order to pass the tests.

How can I solve this?

Regards.
asked by almarma4 (680 points)

4 Answers

0 votes
Hello,

Thank you very much for contacting us.

Let me investigate this, and I will return to you as soon as I have an answer!
answered by igal (5.7k points)
0 votes
Hello igal,

Have you found a solution for the problem?

I am waiting your response.
answered by almarma4 (680 points)
0 votes
Hi,

I apologize for not getting back to you faster
Just to make sure I understand you correctly: Are you running each build on a different machine?

If both builds are running together on the same machine than it can explain the problem since linking a profiler changes settings in the registry which are shared for all the processes on the machine.
The solution in that case will be to run the two builds on different machines or one by one.
answered by ohad (35.4k points)
0 votes
Hi,

Thanks for your response. Yes you have understood me correctly. I launch the builds on the same machine.

So, the only solution would be run the builds one by one or on different machine but, if the team build is launched by different users on the same machine, Would I have the same problem?
answered by almarma4 (680 points)
...