4 มกราคม 2555 21:47How 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?
- ย้ายโดย Vicky SongModerator 9 มกราคม 2555 8:28 (From:Visual Studio UI Automation Testing (includes CodedUI))
9 มกราคม 2555 8:28ผู้ดูแล
I am moving your case to the VSTS forum so that you can get better support.
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
10 มกราคม 2555 3:02
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.
10 มกราคม 2555 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?
10 เมษายน 2555 13:32
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.
Deepak D R
12 เมษายน 2555 2: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
23 สิงหาคม 2555 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.
23 สิงหาคม 2555 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.