none
Test results fail to publish properly to builds RRS feed

  • Question

  • Here are my steps

    1. open test plan and run test(s) with options and select a given build
    2. run the test and close the test runner
    3. go to the build details for the given build used above
    4. we can see the test run summary but upon click the 'View Test Results' link the following dialogue message is displayed (however, if we publish test results via Visual Studio to a build then there are not problems downloading the test results):

     

    ---------------------------

    Microsoft Visual Studio

    ---------------------------

    Downloading the selected test run failed. Test run 254 does not have a run summary attachment. The .trx file is either not published or upgraded.

    ---------------------------

    OK   

    ---------------------------

    Has anyone else encountered this error?  Thanks.

     

    Monday, October 24, 2011 3:23 PM

Answers

  • I logged an incident request for this and the answer is that for manual test runs a trx file is not generated; however, when you run automated tests, a trx file is generated, which is then published to the build.  Mstest.exe is what ultimately generates a trx file and is used under the hood for test manager when running an automated test.

    We were hoping to have a complete test summary view for any given build of the tests that were run, from unit tests to integration tests, regardless of whether they were manual or automated (we have a mix).  But given the current architecture this isn't possible.

    • Marked as answer by Brian Elstner Thursday, November 3, 2011 1:29 PM
    • Unmarked as answer by Brian Elstner Thursday, November 3, 2011 1:30 PM
    • Edited by Brian Elstner Thursday, November 3, 2011 1:35 PM
    • Marked as answer by Brian Elstner Thursday, November 3, 2011 1:35 PM
    Tuesday, October 25, 2011 7:48 PM

All replies

  • Hi,

    You can publish the results for a test run using tcm run /publish

    See http://msdn.microsoft.com/en-us/library/ff942469.aspx

    Thanks,

    Anuj


    http://www.anujchaudhary.com
    Tuesday, October 25, 2011 2:44 AM
  • You can also try using MsTest.exe to execute and publish your results

    Ref http://msdn.microsoft.com/en-us/library/ms182489(v=vs.80).aspx 


    Sarveshk
    Tuesday, October 25, 2011 5:14 AM
  • I logged an incident request for this and the answer is that for manual test runs a trx file is not generated; however, when you run automated tests, a trx file is generated, which is then published to the build.  Mstest.exe is what ultimately generates a trx file and is used under the hood for test manager when running an automated test.

    We were hoping to have a complete test summary view for any given build of the tests that were run, from unit tests to integration tests, regardless of whether they were manual or automated (we have a mix).  But given the current architecture this isn't possible.

    • Marked as answer by Brian Elstner Thursday, November 3, 2011 1:29 PM
    • Unmarked as answer by Brian Elstner Thursday, November 3, 2011 1:30 PM
    • Edited by Brian Elstner Thursday, November 3, 2011 1:35 PM
    • Marked as answer by Brian Elstner Thursday, November 3, 2011 1:35 PM
    Tuesday, October 25, 2011 7:48 PM