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
I get the following output from my automation:

Errors and Failures:
1) Test Error : MITimesExhangeServiceTestSuite.NotificationInterfaceTestSuite.prove_send_message_is_called
TypeMock.TypeMockException :
*** Unknown profiler is enabled please contanct typemock@support.com with the flowing data: unknown profiler clsid = {B146457E-9AED-4624-B1E5-968D274416EC}
at TypeMock.InterceptorsWrapper.VerifyInterceptorsIsLoaded()
at gt.e()
at TypeMock.MockManager.Init(Boolean collectAllCalls)
at TypeMock.MockManager.Mock(Type type, Constructor mockConstructors)
at TypeMock.MockManager.Mock[TMockedType]()
at MITimesExhangeServiceTestSuite.NotificationInterfaceTestSuite.prove_send_message_is_called() in c:Users treschDocumentsmitimesMitimesExchangeServiceMITimesExhangeServiceTestSuiteNotificationInterfaceTestSuite.cs:line 22
asked by ntresch (1.9k points)

9 Answers

0 votes
More information:

I can't install Typemock onto the AppVeyor server. What I can do is include any files I need, and do a registry import of any keys I need in order to get the profiler to work. I'm REALLY hoping that someone can tell me which keys I need to import and which files I'll need to include in my upload?
answered by ntresch (1.9k points)
0 votes
Hi,

You should copy AutoDeploy folder from Typemock installation directory to your source control.
Then you can use TmockRunner.exe (command line) on the server machine to run the tests.

The documentation on TmockRunner is available here.

Let me know if it helps.
answered by alex (17k points)
0 votes
Alex,

I did that, and I ran TMockRunner.exe and got the same error.
answered by ntresch (1.9k points)
0 votes
Hi,

Please make sure that in the first time you run TmockRunner you use the "Register" parameter with your license details.

Let me know if it helps.
answered by alex (17k points)
0 votes
That worked, but now I get another error:

Could not load file or assembly 'Configuration, Version=7.4.2.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2' or one of its dependencies. The system cannot find the file specified.

I tried running regsvc32 on Configuration.dll and that unfortunately didn't work.
answered by ntresch (1.9k points)
0 votes
Hi Nathan,

Did you change the references to Typemock to the dlls in the AutoDeploy folder that you copied to your source control?

Basically you have to make sure that Configuration.dll is located in the same directory with Typemock.ArrangeActAssert.dll. If for some reason your build doesn't copy Configuration.dll to the binaries folder' you have to do it manually.

Let me know if it helps.
answered by alex (17k points)
0 votes
Now that I have all of the DLL's in the right folder, I get the same error I was getting initially. The following command line:

call ".TMockRunner.exe" "-register" "nathant@mitimes.com" "(My correct license)" "nunit-console.exe" "..MITimesExhangeServiceTestSuiteinDebugMITimesExhangeServiceTestSuite.dll"

Produces:

Errors and Failures:
1) Test Error : MITimesExhangeServiceTestSuite.JobInterfaceTestSuite.prove_job_interface_calls_send
TypeMock.TypeMockException :
*** Unknown profiler is enabled please contanct typemock@support.com with the flowing data: unknown profiler clsid = {B146457E-9AED-4624-B1E5-968D274416EC}
at TypeMock.InterceptorsWrapper.VerifyInterceptorsIsLoaded()
at gt.e()
at TypeMock.MockManager.Init(Boolean collectAllCalls)
at g3.CreateFakeInstance[T](Members behavior, Constructor constructorFlag, Constructor baseConstructorFlag, Type baseType, Object[] ctorArgs)
at g3.Instance[T](Members behavior)
at MITimesExhangeServiceTestSuite.JobInterfaceTestSuite.prove_job_interface_calls_send() in d:Builds8646vwkccwsrcMITimesExhangeServiceTestSuiteJobInterfaceTestSuite.cs:line 33
answered by ntresch (1.9k points)
0 votes
Is there anything else I can try?
answered by ntresch (1.9k points)
0 votes
Hi,

Do you use Nant or MSBuild?

If so, you can use the auto deploy as documented here:
http://docs.typemock.com/Isolator/##Ref.chm/Documentation/Running.html

Let me know either way.
answered by alex (17k points)
...