MTM 2010 を使用して記録されたテスト結果のコピーをクライアントに提供しようとしています。結果を取得する場所を知っていますか?
ありがとう。
MTM 2010 を使用して記録されたテスト結果のコピーをクライアントに提供しようとしています。結果を取得する場所を知っていますか?
ありがとう。
テスト実行を分析するには、以下の 2 つの方法のいずれかに従います。
「ファイル名を指定して実行」から次のコマンドを実行します: start mtm://[tfsserver:portnumber/tfs/collectionname]/p:[teamproject]/testing/testrun/open?id=
結果ファイル (.trx) をローカル システムにダウンロード: tcm run /export /id:id /resultsfile:[my_local_path] /collection:CollectionURL /teamproject:project [/login:username,[password]] [/attachment:attachmentname]
テストの実行とその添付ファイルは TFS サーバーに保存され、TFS SDK を介して利用できます。ITestRun.Attachmentsにすべてのテスト実行に関連付けられた添付ファイルが含まれる TestManagementService APIを参照してください。
var testsvc = tfs.GetService<TestManagementService>()
IEnumerable<ITestRun> testRun = testsvc.GetTeamProject("myteamprojectname").TestRuns; // you can use the query/find