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:

      <!-- 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" />


    <add key="CreateTraceListener" value="yes"/>

3. Restart the test controller service.

After this the log file (Vsttcontroller.log) should get generated in the same installation directory.

Comments (8)
  1. deadlydog says:

    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! 🙂

  2. Rahul says:

    @deadlydog..Did it work for you ?

    As for my TFS 2013 it did not.

    Please confirm..thanks

  3. Rahul,

    Tfs does not contain the test controller. Have you installed test controller?


    Aseem Bansal

  4. Rahul says:

    Hi Aseem,

    Thanks for the reply,my enviornment is Up and running with

    • Two 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=, 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.



  5. Rahul says:

    Hi Aseem,

    Any suggestion.


    Rahul Yadav

  6. Rahul,

    Can you please try out the suggestion(s) mentioned in this thread where another customer faced similar issue?…/build-deploy-test-workflow-could-not-load-file-or-assembly

    The gist of the above thread is : –

    1. Install Visual studio on the test controller machine of the same version as your test controller.
    2. 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.


    Aseem Bansal

  7. Rahul says:

    Thanks Aseem for your help ..I just replcaed my locally compied code with the Build drop loaction code and it worked fine for me.

  8. Good to know that it is working for you now, Rahul.

Comments are closed.

Skip to main content