2017-01-04 1 views
1

コマンドラインでテスト結果(* .trx)をMTMにプッシュしようとしました。私はmsttest /publishまたはtcm run /publishを使用しました。両方とも私は正しいプロジェクトパスを取得できません、誰もパスを見つける方法を知っていますか?mstest.exe/tcm.exeのプロジェクトパスが見つかりません

は未遂:

/collection:"mtms://companyName.visualstudio.com:443" 
    /teamproject:"MyProject/Testing/testplan" 

Error: TF249051: No URL can be found that corresponds to the following server name:

mtms://を削除しようとしましたとばかりhttps://companyName.visualstatudio.comを使用:

The following team project cannot be found:

は、どのように私は正しいプロジェクトパスであるかを見つけるのですか?

+0

問題を把握しましたか?コレクションには、/ collection:https://companyName.visualstatudio.com:443/YourCollectionのようなURLにコレクションを含める必要があります。**コレクションレベルのURL ** TFSサーバーのURLではありません。 '/ teamproject:" MyProject "' –

答えて

0

/publishコマンドを使用してにテスト実行/結果をビルドに関連付けます。 MTMは、ビルドからいくらか独立したテスト計画/スイートに関連付けられたテスト結果を表示しています。

/publish: [ server name]

Use the /publish option to publish test data to the database for the team project collection associated with the project's Team Foundation Server. When you use the /publish option, you must correctly specify the name of the Team Foundation Server. The correct format depends on whether the Team Foundation Server has been registered on the client computer, as described here: Command-Line options for publishing test results

結果が正常に公開結果をbuild.Theするために発行されますこのコマンドを使用すると、ビルドの要約に表示されていますが、彼らはMTMには表示されません。 MTMで結果を表示する方法はありません。 this同様の質問を参照してください。

TCMは、mstestと同様のテストを実行するコマンドラインインターフェイスですが、MTMで設定したインフラストラクチャを通じてテストを実行します。 .trxファイルをMTM/TFSに公開するには、mstest.exeではなく、tcm.exeを使用して後で取得する必要があります。以下のようにサンプル・コマンド:

tcm run /publish /suiteid:XXXX /configid:X /resultowner:"ABC XYZ" /resultsfile:C:\TempResult.trx /collection:http://<<TFS URL>> /teamproject:"My Project" /runowner:"ABC XYZ" /build:<<Build Number>> /builddefinition:<<Build Definition Name>> 

注:サーバーのURLが適切でダブルチェックしてください。

+0

こんにちはフェリックスのような/ teamprojectオプションのteamproject名を使用するだけで、この解決策があなたの問題を解決できるのでしょうか? –

関連する問題