How to import testing result using API/Cmdline in MTM?
-
Friday, July 20, 2012 2:02 AM
Hi,guys
I want to checkin my automation testing result against test case in MTM?
Is there API or command line to support this function in TFS or MTM?
Thanks
- Moved by Vicky SongOwner Tuesday, July 24, 2012 9:06 AM (发件人:微软敏捷软件开发与TFS (Team Foundation Server))
- Moved by Sheng Jiang 蒋晟MVP Thursday, July 26, 2012 3:01 AM English (From:一般性问题讨论区)
All Replies
-
Tuesday, July 24, 2012 9:06 AMOwner
Hi Milo,
I am sorry that here is the Chinese forum. And for your concern, it is better if you can reopen one new case on the MTM queue in English forum here: http://social.msdn.microsoft.com/Forums/en-US/vsmantest/threads
Thanks.
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
-
Monday, July 30, 2012 7:55 AM
The scenario like: there are some scripts design by Selenium webdriver+Unit. We want to check in automation test script result to same ID manual case against test plan in MTM.
Anybody knows how to do it using API or which article can be reference?
Thanks !
-
Monday, July 30, 2012 9:36 AMOwner
Hi Milo,
I understand your issue as that you would like to import test results to existing test cases programmatically. If so, please see this sample code for further information: http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-31-99-Sample+Run+Creation/0815.SampleRunCreation.zip
Thanks.
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
- Proposed As Answer by Ritwik SaxenaMicrosoft Employee Monday, August 06, 2012 5:31 AM
- Marked As Answer by Vicky SongOwner Tuesday, August 07, 2012 3:19 AM
-
Tuesday, July 31, 2012 1:29 AM
Since you are using selenium, you should first create a generic test http://msdn.microsoft.com/en-us/library/ms182626(v=vs.80).aspx
And then associate it to your test case http://msdn.microsoft.com/en-us/library/ms182626(v=vs.80).aspx
Then you can run the generic test and publish the results using tcm run /publish http://msdn.microsoft.com/en-us/library/ff942469.aspx
Thanks,
http://www.anujchaudhary.com
- Proposed As Answer by Ritwik SaxenaMicrosoft Employee Monday, August 06, 2012 5:31 AM
- Marked As Answer by Vicky SongOwner Tuesday, August 07, 2012 3:19 AM
-
Tuesday, July 31, 2012 8:11 AM
Thanks for Vicky & Anuj's replying, I will refer to above article to try it.
It should be amazing workfolw if worked.

