ayuicyi
ayuicyi

Reputation: 13

Where is test result stored in MTM 2010?

I am trying to provide a copy of the test result recorded using MTM 2010 to client, do you know where to grab the result?

Thanks.

Upvotes: 0

Views: 1479

Answers (2)

Ashish Bajpai
Ashish Bajpai

Reputation: 179

I follow either of below mentioned two ways to analyze my test runs :

  1. Run following command from "Run": start mtm://[tfsserver:portnumber/tfs/collectionname]/p:[teamproject]/testing/testrun/open?id=

  2. downloading results file (.trx) to my local system: tcm run /export /id:id /resultsfile:[my_local_path] /collection:CollectionURL /teamproject:project [/login:username,[password]] [/attachment:attachmentname]

Upvotes: 1

allen
allen

Reputation: 4647

The test run and its attachments are stored on the TFS server and available via the TFS SDK. See the TestManagementService apis where ITestRun.Attachments would contain all test run associated attachments

var testsvc = tfs.GetService<TestManagementService>()
IEnumerable<ITestRun> testRun = testsvc.GetTeamProject("myteamprojectname").TestRuns; // you can use the query/find 

Upvotes: 1

Related Questions