How to write test execution results to MTM using mstest.exe RRS feed

  • Question

  • HI,

    From MTM, i am able manually run automated testcases from TEst plan and respective results are dispalyed.
    but when i try the same using mstest.exe, it shows results published successfully, but i cannot see the results in
    Usually in MTM we have plan and environment that will have the results stored, but mstest does not have options to point to plan and specific environment in MTM

    i tried below commands
    MSTest /testcontainer:SampleUnitTest.
    dll /publish:myprojecturl /teamproject:projectname
     /publishbuild:"TestBuild_20130731.1" /platform:"Any CPU" /flavor:Release
    Microsoft (R) Test Execution Command Line Tool Version 11.0.60610.1
    Copyright (c) Microsoft Corporation. All rights reserved.

    Loading SampleUnitTest.dll...
    Starting execution...

    Results               Top Level Tests
    -------               ---------------
    Passed                SampleUnitTest.UnitTest1.TestAddition
    Passed                SampleUnitTest.UnitTest1.TestMultiplication
    Failed                SampleUnitTest.UnitTest1.TestSubtraction
    2/3 test(s) Passed, 1 Failed

    Test Run Failed.
      Passed  2
      Failed  1
      Total   3
    Results file:  D:\SampleUnitTest\SampleUnitTest\bin\Debug\TestResults\mylapTOP 2013-08-05 13_56_14_Any CPU_Release.trx
    Test Settings: Default Test Settings
    Waiting to publish...
    Publishing results of test run result 2013-08-05 13:56:14_Any CPU_Re
    lease to my tfs url...
    ...........Publish completed successfully.


    Monday, August 5, 2013 9:14 AM