简体   繁体   中英

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?

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM