Customizing an Existing Build Template

If you do not want to use the build template that comes with Typemock Isolator, you can modify the existing template to support running tests.

To customize an existing build template:

1.  Open your custom template in a text editor.

2.  Add the following namespace to the <Activity> element as follows:

For Team Foundation Server 2012:

<xmlns:tm="clr-namespace:TypeMock.TFS2012;assembly=TypeMock.TFS2012" />

For Team Foundation Server 2013:

<xmlns:tm="clr-namespace:TypeMock.TFS2013;assembly=TypeMock.TFS2013" />

3.  Add the following properties to the <x:Members> element:

<x:Property Name="Company" Type="InArgument(x:String)" />
<x:Property Name="License" Type="InArgument(x:String)" />
<x:Property Name="AutoDeployDir" Type="InArgument(x:String)" />

4.  Add the following elements to the <mtbw:ProcessParameterMetadataCollection> element:

<mtbw:ProcessParameterMetadata Category="#400 Typemock" Description="This path defines the server path to the Typemock binaries path, for example: '$/MyTeamProject/TypemockAutoDeploy'.
If the location of the custom activities (defined in the build controller) is the same as the binaries directory then this field can be left empty." 
DisplayName="Binaries Directory" ParameterName="AutoDeployDir" />

<mtbw:ProcessParameterMetadata Category="#400 Typemock" DisplayName="Company" ParameterName="Company" Required="True" />

<mtbw:ProcessParameterMetadata Category="#400 Typemock" DisplayName="Server License" ParameterName="License" Required="True" />

5.  Save the custom template.

6.  Check-in the changes.