Emailing TRX file after running automation through a test agent

Locked Emailing TRX file after running automation through a test agent

  • mercoledì 4 gennaio 2012 21:47
     
     
    How would I go about emailing out the TRX file that is created for an automation run that is started in Visual Studio but ran in a remote test agent? I tried to use the cleanup script in the test settings file but the batch file specified there seems to be ran on the test agent and not the local computer running Visual Studio. Any idea?
    • Spostato Vicky SongModerator lunedì 9 gennaio 2012 08:28 (From:Visual Studio UI Automation Testing (includes CodedUI))
    •  

Tutte le risposte

  • lunedì 9 gennaio 2012 08:28
    Moderatore
     
     

    Hello Partner,

    I am moving your case to the VSTS forum so that you can get better support.

    Thanks.


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us
  • martedì 10 gennaio 2012 03:02
     
     

    Hi,

    You can find it in %localappdata%\VSEQT on the test agnet. So you could write a program which find the most recently modified trx file and emails it.

    Thanks,

    Anuj


    http://www.anujchaudhary.com
  • martedì 10 gennaio 2012 15:02
     
     

    I found the folder on the test agent but I do not see any results or a .trx file. I see the deployement files and the cleanup script though. Are there any settings that need to be set on the test controller/agent or do I have to do something in the test settings file?

    Thanks,

    Chris

  • martedì 10 aprile 2012 13:32
     
     

    Hi Anuj,

    I have the same question as Chris. Basically the folder is empty and it does not contain any trx file. Is there any configuration that needs to be done in MTM so that the trx gets placed.

    Please help.

    Thanks,

    Deepak.


    Deepak D R

  • giovedì 12 aprile 2012 02:40
     
     

    I think the trx file should be under %localappdata%\VSEQT\QTController\rm on the test controller machine if controllerjobspooling is true http://blogs.msdn.com/b/shivash/archive/2011/01/21/using-visual-studio-test-controller-with-mtm-and-disk-out-of-space-issues.aspx

    Thanks,

    Anuj


    http://www.anujchaudhary.com

  • giovedì 23 agosto 2012 17:58
     
     

    I don't see any TRX files there either and would love to know why.

    To your point Anuj - should the ControllerJobSpooling setting default to true? Because we have never added that key to our QTController.exe.config file and it appears from the comments in the file that you should only need to add it if you want to set it to false.

    Thanks,
    Paul

  • giovedì 23 agosto 2012 18:13
     
     

    So there are two scenarios:

    1) Running the test through Visual Studio using as remote test controller

    In this case the trx file can be found on the machine with Visual Studio from where the test was started in the TestResults folder

    2) Running the test through Test Manager/Buil-Deply-Test workflow using a test controller

    In this case, the tr_ file can be found in Test Manager->Analyze Test Runs->Attachments

    To report results for this run, you can refer http://social.technet.microsoft.com/wiki/contents/articles/how-to-create-reports-for-tfs-2010-test-results.aspx

    For sending the results in an email, see http://social.technet.microsoft.com/wiki/contents/articles/tfs-2010-send-email-after-test-run.aspx

    Hope this helps.

    Thanks,

    Anuj


    http://www.anujchaudhary.com