microsoft-test-managertcm

How to run test cases from a Testsuite inside a Testplan through command line


"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TCM.exe" run /create "/title:Overnight Build Run" /planid:8 /collection:http://hahaha:8080/tfs/DevelopmentCollection /teamproject:SQL"/querytext:SELECT * FROM TestSuite WHERE Planid='8'" "/settingsname:SoakTest" /owner:test\test /builddir:\\wxxx\Builds\SQL\Live "/testenvironment:Soak" /include

It runs all Tests in Test Plan I only want to Run Tests from Test Suites inside this Test Plan, what should be the query?

Anyone have any idea?


Solution

  • That's how to find out Test Suite ID No

    cd C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
    
    TCM suites  /list  /planid:8 /collection:your peoject TFS URL /teamproject:Project Name