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
Trying to get typemock to work in workflow and I'm getting the following error
Could not load file or assembly 'TypeMock.CLI.Common, Version=7.0.5.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.


I've integrated the typemock activities in a custom workflow, added the typemock.2010.dll to the controllers to send out the agents.
Code snippet from my workflow:
.....
       <If Condition="[Not DisableTests]" DisplayName="If Not DisableTests" sap:VirtualizedContainerService.HintSize="464,206" mtbwt:BuildTrackingParticipant.Importance="Low">
                            <If.Then>
                              <Sequence DisplayName="Run Tests" sap:VirtualizedContainerService.HintSize="222,361" mtbwt:BuildTrackingParticipant.Importance="Low">
                                <sap:WorkflowViewStateService.ViewState>
                                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                  </scg:Dictionary>
                                </sap:WorkflowViewStateService.ViewState>
                                <tt:TypeMockStart EvaluationFolder="{x:Null}" Link="{x:Null}" LogLevel="{x:Null}" LogPath="{x:Null}" ProfilerLaunchedFirst="{x:Null}" Target="{x:Null}" Version="{x:Null}" sap:VirtualizedContainerService.HintSize="200,22" />
.....                     


and
                                        </TryCatch>
                                      </ActivityAction>
                                    </ForEach>
                                  </If.Then>
                                </If>
                                <tt:TypeMockStop sap:VirtualizedContainerService.HintSize="200,22" />
....

I'm not calling register and undeploy on the TypeMockStop activity, since TypeMock Server 7.0.5 is installed on the build server.

What am I missing?
asked by jnus (3.9k points)

12 Answers

0 votes
Hi,

What is the version of Isolator used by the tests? What is the version of Isolator which is used for the build activity?

Can you please attach the log result from TFS?

Regards,
Elisha,
Typemock Support
answered by Elisha (12k points)
0 votes
I'm using 7.0.5 on both the server (installed) and typemock.tfs2010.dll is also 7.0.5.
Should the controller push anything other our than the typemock.tfs2010.dll?
answered by jnus (3.9k points)
0 votes
Is Isolator TFS activities assembly checked into the source control? If so, is the TypeMock.CLI.Common.dll checked too?

Regards,
Elisha,
Typemock Support
answered by Elisha (12k points)
0 votes
For the project, I've added typemock.dll, arrangeactassert.dll and configuration (7.0.5) to source control and relevant projects reference the the bins directly to this directory. The build activity typemock.tfs2010.dll (7.0.5) is also checked into source control and the tfs controller point to this locations (it is the only assembly in this folder)
answered by jnus (3.9k points)
0 votes
Any suggestions here?
answered by jnus (3.9k points)
0 votes
Hi,

Is the TypeMock.CLI.Common.dll checked also into the source control and placed next to typemock.tfs2010.dll?

Regards,
Elisha,
Typemock Support
answered by Elisha (12k points)
0 votes
Not - I'm not using this assembly in the projekt and it is not checked in the shared assembly directory for the controllers - should it?
answered by jnus (3.9k points)
0 votes
Hi,

Yes, the assembly is required. The required dependencies are listed here:
http://docs.typemock.com/Isolator/##typemock.chm/Documentation/InstallingAutoDeploy.html.
Since you're not going using register some of them are redundant, in fact we're working on improving the build server setup documentation.

The assemblies required in your case to add while not using register are:
  • TypeMock.CLI.Common.dll
  • TypeMock.Integration.dll
  • Configuration.dll
  • Typemock.dll

Regards,
Elisha,
Typemock Support
answered by Elisha (12k points)
0 votes
Hi Elisha

Note that Typemock 7.0.5 is already installed on the build server, meaning that I'm not supposed to use the autodeploy feature, right?
I've only added the typemock.tfs2010.dll to be deployed by the controller.
answered by jnus (3.9k points)
0 votes
Hi,

That's right. There's no need to deploy since you've got everything in place. Meaning, there's no need to call register task since the license is already set on the installed version and the environment is already prepared. All needed is to use the Start & Stop tasks.
answered by Elisha (12k points)
...