【问题标题】:VS2013 - Coded UI Tests - how to disable loggingVS2013 - 编码的 UI 测试 - 如何禁用日志记录
【发布时间】:2014-08-01 09:05:36
【问题描述】:

将我的编码 ui 测试从 VS2012 迁移到 VS2013 后,我遇到了调试跟踪日志记录问题。无论使用什么配置,我仍然收到调试跟踪消息!!!

我确实添加了以下配置:

 <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

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

【问题讨论】:

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


    【解决方案1】:

    确保将其设置为 NO

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

    【讨论】:

    • 也无济于事:(
    • 告诉我更多关于你运行测试的方式(从 VS 或 MTM..Release 或 Debug 模式......)。你用的是最新的VS2013吗?任何特定的插件
    • 我正在调试模式下运行 VS 2013(更新 2)的测试。在同一台机器上,我确实安装了“Microsoft Visual Studio 2013 Coded UI Test Plugin for Silverlight”
    • 如果我查看您的调试跟踪,似乎 SL (silverlight) 负责该跟踪。该插件还必须有自己的配置文件,就像 QTAgent 一样。此外,如果您在“发布”模式下运行测试,会发生什么?
    • 谢谢。我确实向插件开发人员发布了一个问题。等待他的答复。
    猜你喜欢
    • 2015-07-08
    • 1970-01-01
    • 2011-01-08
    • 1970-01-01
    • 2011-03-03
    • 1970-01-01
    • 1970-01-01
    • 2018-12-24
    • 2020-01-17
    相关资源
    最近更新 更多