Reputation: 39
"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?
Upvotes: 2
Views: 2078
Reputation: 39
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
Upvotes: 0
Reputation: 1956
You can run Test Cases which belong to a particular Test Suite using parameter /suiteid calling tcm.exe:
TCM.exe run /create /title:<Title> /planid:<PlanId> /suiteid:<SuiteId> /collection:http://hahaha:8080/tfs/DevelopmentCollection /teamproject:SQL /settingsname:SoakTest /owner:test\test /builddir:\\wxxx\Builds\SQL\Live /testenvironment:Soak /include
Use
tcm.exe suites /list /planid:<your plan id> /collection:<CollectionURL> /teamproject:<Team Project name>
to list all Test Suites belonging to the particular Test Plan.
Upvotes: 4