Solved: Error creating a new Test Case in VS 2010

You receive the error message:

Work item type is not valid. You must specify a valid work item type.

You cannot create a new Test Case work item

Solution:

You need to import work item categories using witadmin like this:

importcategories /collection:http://server:8080/tfs/collection /p:Project /f:categories.xml

MSDN docs: http://msdn.microsoft.com/en-us/library/dd273721.aspx

You can extract the categories.xml from the Process Template definition.

(Thanks to Ruiz Yi from MSDN Subscriber Support for his post with the solution)


2 thoughts on “Solved: Error creating a new Test Case in VS 2010”

  1. Wouldnt you only have this problem if you half upgraded an Agile or CMMI 4.2 team project template. All of the new templates would come with this out of the box. If you are not upgrading your 4.2 projects correctly you are going to have more problems.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>