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

テスト計画内のすべてのテストを実行します。このテスト計画内のテスト スイートからのみテストを実行したいのですが、どのクエリを使用すればよいですか?

誰でも何か考えがありますか?

4

2 に答える 2

4

tcm.exe を呼び出すパラメーター /suiteid を使用して、特定のテスト スイートに属するテスト ケースを実行できます。

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>

特定のテスト計画に属するすべてのテスト スイートを一覧表示します。

于 2012-12-02T10:12:27.027 に答える
0

それがテストスイートID番号を見つける方法です

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
于 2013-01-29T09:40:34.303 に答える