Cannot Deploy Custom Test Type Sample

I'm able to build the Custom Test Type Sample MyTestSample.Sln but cannot deploy it. The project contains conflicting comments on the correct procedure for getting the custom test type to appear.

Comments in MyTestWizard.cs read as follows:

1. Add the AddNewItemTemplates attribute to your package class forproject type you would like your wizard to show up for.
2. Create a .vsdir file in the directory specified in the AddNewItemTemplates
directory with lines of the form:Wizard/File Template (MyTest.vsz)|Package-GUID|Wizard name or resource reference (#n)|Priority?|Wizard description or resource reference|0|Icon resource reference (#n)|
0|Base file name or resource reference
3. For a simple file template, create the file with the appropriate contents.
4. For a wizard, create a wizard file of the following form:
VSWIZARD 7.0
Wizard=[ProgId for wizard]

While the readme.txt contains a completely different procedure.

__
Here are a list of issues:

- There is no sample or docs on the params to give to the AddNewItemTemplates attribute. Specifically the nameId and priority params.
[AddNewItemTemplates(string projectGuid,int nameId,string templateDir,intpriority)]

- There is no sample vsdir file. Assuming I create one based on step 2 what should go in MyTest.vsz

- What is the role of the .vstemplate and .mytest files

Is there an updated sln file that contains the missing links? If not could you list the exacts steps to get the new test type to show up under the new tests once the project is built? (Note I have already added a post build event to the project that uses regpkg.exe to add the assembly to the experimental hive).

Thnx in advance.

[2509 byte] By [KJ-JC1974] at [2007-12-16]
# 1
I am sorry to hear that you are experiencing trouble to get the custom test type working. The comments in MyTestWizard.cs are out-of-date. We are writing a new sample for the RTM release. Meanwhile, let me try to help you setup the custom test type.

To deploy your test type, you don't need AddNewItemTemplates attribute, .vsdir and .vsz files any more. We now use .zip file. A zip file contains .vstemplate file and the template file. .vstemplate file stores information such as description, icon and so on about a template. (Check any .vstemplate file under VSINSTALLDIR\Common7\IDE\ItemTemplatesCache\CSharp\1033). .mytest is the real template of the test type. It will be customized and copied to the project when you add this test type.

To deploy a test type you need to
1. Implement your test type in your package
2. Register your test type and package
3. Put your zipped template file under ItemTemplates directory.
4. Run devenv /setup /resetuserdata

Please let us know if you have any further questions.

Leo Huang
Dev, VSTS

LeoHuang at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...

Visual Studio Team System

Site Classified