2012-11-29 219 views
2
"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

這就是如何找出測試套件號

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 
4

可以使用參數/ suiteid調用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 

使用

tcm.exe suites /list /planid:<your plan id> /collection:<CollectionURL> /teamproject:<Team Project name> 

列出屬於特定測試的所有測試套件計劃。

+0

艾琳娜,你的例子告訴我如何讓我的收藏網址。非常感謝!有很多示例告訴你使用收集URL,但你的解釋如何... – Ewan