{"id":4943,"date":"2012-06-05T20:52:53","date_gmt":"2012-06-05T20:52:53","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2012\/06\/05\/enabling-coded-ui-test-playback-logs-in-visual-studio-2012-release-candidate\/"},"modified":"2019-02-14T17:59:21","modified_gmt":"2019-02-15T01:59:21","slug":"enabling-coded-ui-test-playback-logs-in-visual-studio-2012-release-candidate","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/enabling-coded-ui-test-playback-logs-in-visual-studio-2012-release-candidate\/","title":{"rendered":"Enabling Coded UI Test playback logs in Visual Studio 2012 Release Candidate"},"content":{"rendered":"<p>In Jason Zander\u2019s blog post: <a href=\"http:\/\/blogs.msdn.com\/b\/jasonz\/archive\/2012\/05\/31\/announcing-the-release-candidate-rc-of-visual-studio-2012-and-net-framework-4-5.aspx\">Announcing the Release Candidate (RC) of Visual Studio 2012 and .NET Framework 4.5<\/a> he showed a new Coded UI feature&#160; -capturing playback logs. <\/p>\n<p>&#160;<\/p>\n<p>Please note this blog post has been updated.&#160; Please see: <\/p>\n<h3><a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2012\/11\/08\/enabling-htmllogger-in-coded-ui-test.aspx\">Enabling Tracing and HtmlLogger in Coded UI Test<\/a><\/h3>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>Unfortunately CodedUI doesn\u2019t do this by default and finding the logs isn\u2019t always obvious.&#160;&#160; <\/p>\n<p>To enable CodedUI Test Playback logs you need to set some configuration settings in the file <strong><em>QTAgent32.exe.config<\/em><\/strong> to make this work.&#160; This file can be found at: <\/p>\n<p>C:Program Files (x86)Microsoft Visual Studio 11.0Common7IDE <\/p>\n<p>The settings are: <\/p>\n<blockquote>\n<p><font color=\"#0000ff\"><font color=\"#c0504d\">&lt;system.diagnostics&gt;          <br \/>&#160;&#160; &lt;switches&gt;<\/font>         <br \/><\/font><font color=\"#9bbb59\">&#160;&#160;&#160;&#160; &lt;!&#8211; You must use integral values for &quot;value&quot;.        <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Use 0 for off, 1 for error, 2 for warn, 3 for info, and 4 for verbose. &#8211;&gt;<\/font>       <br \/><font color=\"#0000ff\">&#160;&#160;&#160;&#160; &lt;<font color=\"#c0504d\">add<\/font> <font color=\"#ff0000\">name<\/font>=&quot;EqtTraceLevel&quot; <font color=\"#ff0000\">value<\/font>=&quot;<font color=\"#ff0000\" size=\"5\">4<\/font>&quot; \/&gt;         <br \/><font color=\"#c0504d\">&#160;&#160; &lt;\/switches&gt;          <br \/>&lt;\/system.diagnostics&gt;<\/font>         <br \/><\/font><\/p>\n<\/blockquote>\n<p><font color=\"#0000ff\"><font color=\"#000000\">and:<\/font> <\/font><\/p>\n<blockquote><\/blockquote>\n<p>&lt;appSettings&gt;    <\/p>\n<p><font color=\"#0000ff\">&lt;<font color=\"#c0504d\">appSettings<\/font>&gt;       <br \/><font size=\"5\">&#160;<\/font><\/font><font size=\"5\">&lt;<font color=\"#ff0000\">add key<\/font><font color=\"#0000ff\">=&quot;EnableHtmlLogger&quot;<\/font> <font color=\"#ff0000\">value<\/font>=&quot;true&quot;\/&gt;       <br \/>&lt;<font color=\"#ff0000\">add key<\/font><font color=\"#0000ff\">=&quot;EnableSnapshotInfo&quot;<\/font> <font color=\"#ff0000\">value<\/font>=&quot;true&quot;\/&gt;<\/font>     <br \/><font color=\"#0000ff\">&lt;<font color=\"#ff0000\">add key<\/font>=&quot;StopTestRunCallTimeoutInSeconds&quot; value=&quot;5&quot;\/&gt;       <br \/>&#160; &lt;<font color=\"#ff0000\">add key<\/font>=&quot;LogSizeLimitInMegs&quot; <font color=\"#ff0000\">value<\/font>=&quot;20&quot;\/&gt;       <br \/>&#160; &lt;<font color=\"#ff0000\">add key<\/font>=&quot;CreateTraceListener&quot; <font color=\"#ff0000\">value<\/font>=&quot;no&quot;\/&gt;       <br \/>&#160; &lt;<font color=\"#ff0000\">add key<\/font>=&quot;GetCollectorDataTimeout&quot; <font color=\"#ff0000\">value<\/font>=&quot;300&quot;\/&gt;       <br \/>&lt;<font color=\"#c0504d\">\/appSettings<\/font>&gt;       <br \/><\/font><font color=\"#0000ff\"><font color=\"#000000\"><\/font><\/font><\/p>\n<\/p>\n<p><font color=\"#0000ff\"><font color=\"#000000\">Now when you run a codedUI Test (even successful ones with the trace level set to \u201cverbose\u201d) you will see there is an output link in the Test Explorer results<\/font><\/font> <\/p>\n<blockquote><\/blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/45\/92\/metablogapi\/0513.image_7A56BD38.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/06\/8623.image_thumb_0EDC0CB7.png\" width=\"215\" height=\"491\" \/><\/a><\/p>\n<\/p>\n<p>Which in turn will take you to the Test output containing the <font color=\"#0000ff\">UITestActionLog.html<\/font><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/45\/92\/metablogapi\/3821.image_5558FCBF.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/06\/1185.image_thumb_471A83CF.png\" width=\"495\" height=\"401\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<p>-Which contains the CodeUI Test Log Jason showed in his blog.<\/p>\n<p>&#160;<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/45\/92\/metablogapi\/8130.image_14B6B050.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/06\/6560.image_thumb_2D464DA0.png\" width=\"494\" height=\"227\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Jason Zander\u2019s blog post: Announcing the Release Candidate (RC) of Visual Studio 2012 and .NET Framework 4.5 he showed a new Coded UI feature&#160; -capturing playback logs. &#160; Please note this blog post has been updated.&#160; Please see: Enabling Tracing and HtmlLogger in Coded UI Test &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [&hellip;]<\/p>\n","protected":false},"author":81,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4943","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>In Jason Zander\u2019s blog post: Announcing the Release Candidate (RC) of Visual Studio 2012 and .NET Framework 4.5 he showed a new Coded UI feature&#160; -capturing playback logs. &#160; Please note this blog post has been updated.&#160; Please see: Enabling Tracing and HtmlLogger in Coded UI Test &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/4943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=4943"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/4943\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=4943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=4943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=4943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}