"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
它运行测试计划中的所有测试我只想在此测试计划中运行来自测试套件的测试,该查询应该是什么?
有人有任何想法吗?
答案 0 :(得分:4)
您可以使用参数/ suiteid调用tcm.exe来运行属于特定Test Suite的测试用例:
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
使用
tcm.exe suites /list /planid:<your plan id> /collection:<CollectionURL> /teamproject:<Team Project name>
列出属于特定测试计划的所有测试套件。
答案 1 :(得分:0)
这是如何找出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