Donovan Brown

Technology blog

Command line tool for Work Item Queries

Problem I need to script my work item query administation. Solution Use the Work Item Query Administration tool from CodePlex http://wiqadmin.codeplex.com/ Examples This will list out all the queries and the paths you need to export them wiqadmin list /collection:http://MytfsUrl:8080/tfs/defaultcollection /p:MyProject /recursiveThis is how you can export one once you know the path. Make sure you use “ on the path wiqadmin export /collection:http://MytfsUrl:8080/tfs/defaultcollection /p:MyProject /n:"Team Queries/Iteration 1/Active Bugs" /f:bugs.wiql

Full Text Error when using Search Work Items for TFS 2010 plugin

Problem Every time I run the Search Work Items for TFS 2010 plugin I get the following TF248015 error: Solution Add the account running the SQL Full-text Filter Daemon Launcher (MSSQLSERVER) service to the SQLServerFDHostUser$instance_name$MSSQLSERVER group (via computer management console) and restarting SQL Server service.

Where do I place pre-conditions for test cases in MTM

Problem: I have preconditions for a test case in Microsoft Test Manager (MTM) but I don’t know where to store or how to notify the tester before executing the test. Solution: Attach a preconditions document to the first step of your test case or create the preconditions as a shared step. Explanation: When creating a Test Case in MTM you can have attachments on each test step in a test case.  One solution to the problem of preconditions is to attach a document that contains the preconditions to the first step of your test case.  Now when the tester begins the test case the first step will be presented with a link to the preconditions document.  From there the tester can simply click the link to open the document and perform the necessary preconditions for the test case. This same method can be used for any post conditions as well be attaching a document to the final step of the test case. Another option is to create the preconditions as shared steps and include them as the first step in the test case.