How to: Specify the Maximum Size for the Log File

This topic applies to:

Visual Studio Ultimate

Visual Studio Premium

Visual Studio Professional 

Visual Studio Express

Topic applies Topic does not apply Topic does not apply Topic does not apply

By default, the maximum size of the log file that is used for load tests is set to 20 megabytes. You can optionally change this value by editing the configuration file associated with the controller service.

Specifying the Maximum Log File Size for Load Test

  1. Open the QTCcontroller.exe.config XML configuration file located in <drive letter:>\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\QTCcontroller.exe.config.

  2. Locate <add key="LogSizeLimitInMegs" value="20"/> entry under the <appSettings> tag.

    <appSettings>
        <add key="LogSizeLimitInMegs" value="20"/>
        <add key="AgentConnectionTimeoutInSeconds" value="120"/>
        <add key="AgentSyncTimeoutInSeconds" value="300"/>
        <add key="ControllerServicePort" value="6901"/>
        <add key="ControllerUsersGroup" value="TeamTestControllerUsers"/>
        <add key="ControllerAdminsGroup" value="TeamTestControllerAdmins"/>
        <add key="CreateTraceListener" value="no"/>
      </appSettings>
    
  3. Modify value ="20" to the maximum allowable size you want to specify for the log file.

    Note

    Entering a value of "0" specifies that the log file is only limited in size by available disk space.

See Also

Concepts

Configuring a Test Controller and Test Agent Across a Firewall

Other Resources

Modifying Load Test Logging Settings