VS2013 - 编码的UI测试 - 如何禁用日志记录

时间:2014-08-01 09:05:37

标签: visual-studio-2013 coded-ui-tests

将我的编码ui测试从VS2012迁移到VS2013后,我面临调试跟踪记录问题。什么曾经使用的配置我仍然得到调试跟踪消息! Test Output

我确实添加了以下配置:

 <system.diagnostics>
<switches>
  <!-- Trace settings for MTR -->
  <!-- Change the value to change the level of tracing you want.
        You must use integral values for "value".  
        0 ==> off,
        1 ==> error,
        2 ==> warn, 
        3 ==> info,
        4 ==> verbose.
        Note that each value is inclusive of the last.
    -->
  <add name="UITestTraceLevel" value="0" />
  <add name="EqtTraceLevel" value="0" />
  <add name="TestManagement" value="0" />
  <add name="TeamBuild" value="0" />
  <add name="TeamFoundationSoapProxy" value="0" />
</switches>
<trace autoflush="true"/>

以下所有文件:

  • 项目配置文件
  • QTAgent.exe.config
  • QTAgent_35.exe.config
  • QTAgent_40.exe.config
  • QTAgent32.exe.config
  • QTAgent32_35.exe.config
  • QTAgent32_40.exe.config

是否有人有任何提示或解决方法来禁用此调试跟踪?

1 个答案:

答案 0 :(得分:0)

确保将其设置为NO

<appSettings>
<add key="CreateTraceListener" value="no"/>