"C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDETCM.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:testtest /builddir:\wxxxBuildsSQLLive "/testenvironment:Soak" /include
它运行测试计划中的所有测试 我只想从此测试计划内的测试套件运行测试,应该查询什么?
有人知道吗?
您可以使用调用 tcm 的参数/suiteid 运行属于特定测试套件的测试用例.exe:
TCM.exe run /create /title:<Title> /planid:<PlanId> /suiteid:<SuiteId> /collection:http://hahaha:8080/tfs/DevelopmentCollection /teamproject:SQL /settingsname:SoakTest /owner:testtest /builddir:\wxxxBuildsSQLLive /testenvironment:Soak /include
用
tcm.exe suites /list /planid:<your plan id> /collection:<CollectionURL> /teamproject:<Team Project name>
列出属于特定测试计划的所有测试套件。
这就是找出测试套件 ID 否的方法
cd C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDE
TCM suites /list /planid:8 /collection:your peoject TFS URL /teamproject:Project Name