Dela via


How To: Give alternate path for picking test dlls?

Microsoft Test Manager always uses the associated build information to find and load test dlls for running automation.  However, one user came up with the scenario where their test code is not build with the application (dev) code.  They are associating MTM properly with the application (dev) build because that is the build they are testing but this also means that the MTM is not able to find the test dlls because it is not there in the associated build.

The alternative here is to tcm.exe command line to run. Below is how you can achieve this -

tcm run /create /title:<run title> /planid:<plan’s ID> /collection:<collection name> /teamproject:<project name> /configid:<config’s ID> /suiteid:<suite’s id> /testenvironment:<environment name> /builddir:<path from where test dll is to be picked>

The tcm.exe has lot of other functionalities.  To know more about it, check the MSDN doc of tcm.exe.

This post is courtesy "Nivedita Bawa" in my team.

Comments

  • Anonymous
    August 07, 2011
    The comment has been removed

  • Anonymous
    August 08, 2011
    Can you give the exact commandline you are using and the exact error? Thanks.

  • Anonymous
    August 11, 2011
    Hi Gautm, Thanks for your reponse. We configure the TFS url and project name in TCM.exe.config file and our command is: tcm.exe run /create /title:RunTitle /planid:2 /suiteid:66 /build:fakebuild3 /builddefinition:fakeDefinition2 /flavor:Debug /platform:x86

  • Anonymous
    August 11, 2011
    What is the error?  Using the "Email Blog Author" link (at top right side), send me a mail on with following information -  1. Your scenario - what you are trying to do?  2. The commandline used  3. The exact error. Thanks.