生命如此短暂,掌握技艺却要如此长久

风流不在谈锋胜, 袖手无言味最长。**_** 莫言大道人难得,自是功夫不到头。

导航

Coded UI automation - HTML log with control image

Set the following configuration in to correct Agent configuration.

My example is QTAgent32.exe.config under C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE .

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

 

  <appSettings>
    <add key="EnableHtmlLogger" value="true"/>
    <add key="EnableSnapshotInfo" value="true"/>
  </appSettings>

 

Issue 1: Reset the recorded ui parameters will cause the HTML log can't be generated. Seems a microsoft's bug.

ALogin.DoLoginParams.UITxtPasswordEditSendKeys =Playback.EncryptText(AppConfigurationData.GetAppSetting<string>("PWD"));

 

posted on 2014-03-21 10:04  拼命郎  阅读(122)  评论(0)    收藏  举报