Test Case Manager: Customize Failure and Resolution Type

Testing
1389 Views

In Test Case Manager, you can open a test run that has failed and set the Failure and Resolution types for the failure.

image

I’ve had a lot of customers ask me if it’s possible to customize the lists. Up until now, the answer has been no. However, in the middle of a bunch of improvements released in the CTPs of QU2 (Quarterly Update 2), Brian Harry mentioned that it is now possible to customize the lists. The CTP he was referring to is NOT A GO LIVE CTP, so rather download CTP4 of the update (which IS GO LIVE) if you want to try this on a production server.

The customization is only possible via the command line. And even that is hard to figure out. So here are the 4 commands that you need.

Export the Current Lists

Open a developer command prompt, and type the following commands (substituting your collection URL and team project accordingly):

tcm fieldmapping /export /collection:collectionURL /teamproject:Project /type:FailureType /mappingFile:FailureTypes.xml

tcm fieldmapping /export /collection:collectionURL /teamproject:Project /type:ResolutionType /mappingFile:ResolutionTypes.xml

This will export the two lists for you. They are pretty straight-forward and self-explanatory:
















Now edit the lists, and then use the import commands:


tcm fieldmapping /import /collection:collectionURL /teamproject:Project /type:FailureType /mappingFile:FailureTypes.xml


tcm fieldmapping /import /collection:collectionURL /teamproject:Project /type:ResolutionType /mappingFile:ResolutionTypes.xml


That’s it – restart (not just refresh) Test Case Manager and you’re good to go.


image


Of course they new values appear in the Plan Results page, and though I haven’t tested it, I presume they’ll be in the warehouse too:


image


Happy testing!