2017-01-04 4 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에 컬렉션을 포함해야합니다. ** collection level url ** TFS 서버 URL이 아닙니다. 또한/teamproject 옵션에 teamproject 이름을 사용하십시오 (예 :'/ 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

그들은 MTM에 나타나지 않습니다 결과가 성공적으로 빌드 요약에서 볼 게시 된 결과를 build.The에 게시합니다이 명령을 사용하지만. 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

안녕하세요 펠릭스,이 솔루션으로 문제를 해결할 수 있습니까? –