How to: Enable Tracing for CUIT using registry setting

This is Syed Aslam Basha here from Relationship experience division (RXD)  team.

 

Trace logs helps in debugging and identifying issues better. We can enable trace logs for coded UI tests as:

 

  • Launch regedit and navigate to [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\EnterpriseTools\QualityTools\Diagnostics]
  • Check the key values for

"EnableTracing"=dword:00000001
"TraceLevel"=dword:00000004

  • “1” indicates tracing is on “0” indicates tracing is off
  • Trace level
    • 1 indicates Errors only
    • 2 indicates Errors and Warnings
    • 3 indicates Errors, Warnings and Information
    • 4 indicates All including Verbose Information
  • If you don’t find the key download and run the EnableTraceLogs registry file. It enables tracing for all VS testing tools.
  • To disable tracing set EnableTracing to 0

The trace files are generated in %temp%\UITestLogs\LastRun\UITestLog.html. The LastRun contains the latest/last run details. The previous run details are stored as PreviousRunXX.

 

- Syed Aslam Basha ( syedab@microsoft.com )

Relationship experience division (RXD) Team

Test Lead

---------------------------------------------------------

Please leave a comment if the blog post has helped you.

EnableTraceLogs.reg