locked
open a TRX into a running visual studio from a cmd script RRS feed

  • Question

  • Hi there,

    is there a way to open a TRX into a running visual studio instance from a cmd script?

    This is to visualize the test results in the Test Results panel

    "devenv FILE.TRX" will always open a new instance
    "devenv /Edit FILE.TRX" will open the file in the text editor

    A vbscript perhaps? Code snippet would be great there!

    Big thanx!
    Thursday, March 4, 2010 1:43 PM

Answers

  • Hello,

    If we double-click the .trx file in the shell, the test result will be shown in the existing instance of Visual Studio, do you just need this effect? if so, we could just type the file name in the command prompt:
    C:\>xxx.trx

    Sincerely,
    Wesley Yao [MSFT]
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact: msdnmg @ microsoft.com
    Please mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by Wesley Yao Tuesday, March 9, 2010 12:49 PM
    Friday, March 5, 2010 8:00 AM

All replies

  • Hello,

    If we double-click the .trx file in the shell, the test result will be shown in the existing instance of Visual Studio, do you just need this effect? if so, we could just type the file name in the command prompt:
    C:\>xxx.trx

    Sincerely,
    Wesley Yao [MSFT]
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact: msdnmg @ microsoft.com
    Please mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by Wesley Yao Tuesday, March 9, 2010 12:49 PM
    Friday, March 5, 2010 8:00 AM
  • It woks! Thank you very much!

    (I thought that kind of behavior was obtained with the start command in cmd...oh well, it's always good to see the solution is actually simpler than you thought!)
    Tuesday, March 9, 2010 8:46 AM
  • Yes, sometimes we just forgot the simplest way. :)
    Please mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, March 9, 2010 12:48 PM