How to enable test controller logs
Here are the steps which you should perform to enable test controller logs.
1. Go to your test controller installation directory (typically it is something like C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\).
2. Open the controller configuration file (QTController.exe.config) and change the trace level to 4 and enable the trace listener as shown below:
<system.diagnostics>
<switches>
<!-- You must use integral values for "value".
Use 0 for off, 1 for error, 2 for warn, 3 for info, and 4 for verbose. -->
<add name="EqtTraceLevel" value="4" />
</switches>
</system.diagnostics>
.....
<add key="CreateTraceListener" value="yes"/>
</appSettings>
</configuration>
3. Restart the test controller service.
After this the log file (Vsttcontroller.log) should get generated in the same installation directory.
Comments
Anonymous
June 13, 2014
We're using TFS 2013 and found the config file at "C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEQTController.exe.config". Thanks for the article! :)Anonymous
September 16, 2014
@deadlydog..Did it work for you ?As for my TFS 2013 it did not.Please confirm..thanksAnonymous
September 16, 2014
Rahul,Tfs does not contain the test controller. Have you installed test controller?RegardsAseem BansalAnonymous
September 16, 2014
Hi Aseem,Thanks for the reply,my enviornment is Up and running withTwo test agents and a Test controller Configured on different Virtual machines.Build for the source code created but,when I try to run the test case from MTM Iface the following error message.""Error adding test case [16431] to test run: Unable to load the test container 'C:WindowsTEMPMicrosoftTeamTestQTControllerBuildDownloads15797search panel.dll' or one of its dependencies. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITesting, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."I tried implementing the solution mentioned by you but it did not work for me,please suggest.ThanksRahulAnonymous
September 18, 2014
Hi Aseem,Any suggestion.Thanks,Rahul YadavAnonymous
September 18, 2014
Rahul,Can you please try out the suggestion(s) mentioned in this thread where another customer faced similar issue?social.msdn.microsoft.com/.../build-deploy-test-workflow-could-not-load-file-or-assemblyThe gist of the above thread is : -Install Visual studio on the test controller machine of the same version as your test controller.If 1 does not help and there is a version mismatch, then copy the appropriate version of uitest related assemblies to test controller installation directory and then it should work. RegardsAseem BansalAnonymous
September 19, 2014
Thanks Aseem for your help ..I just replcaed my locally compied code with the Build drop loaction code and it worked fine for me.Anonymous
September 21, 2014
Good to know that it is working for you now, Rahul.