How to collect WebDriverHost Logs?

  • KM03770066
  • 28-Dec-2020
  • 28-Dec-2020

Summary

From 14.53 onwards, these logs are not are not enabled y default so there are a few steps that can help to get this logs.

Reference

How to collect WebDriverHost Logs?

These logs are useful wen troubleshooting cases that involve pronlems with Chromium Emmbedded Frameworks, Chrome Browser or Chromium Edge.

If you are still in 14.50 the log should be there, but if you upgraded to 14.53 on any patch or 15 to generate the log you need to complete below changes, please confirm. 

Steps:

Go to path C:\Program Files (x86)\Micro Focus\Unified Functional Testing\bin and edit the file “log.config.xml” and add below configuration

 

<appender name="RollingFileAppender_WebDriverHost" type="log4net.Appender.RollingFileAppender">

     <file type="log4net.Util.PatternString" value="${APPDATA}\Hewlett-Packard\UFT\Logs\HP.WebDriverHost.log" />

     <!--file type="log4net.Util.PatternString" value="${APPDATA}\Hewlett-Packard\UFT\Logs\HP.WebDriverHost_%processid.log" /-->

     <appendToFile value="true" />

     <rollingStyle value="Size" />

     <maxSizeRollBackups value="10" />

     <maximumFileSize value="5MB" />

     <staticLogFileName value="true" />

     <lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>

     <layout type="log4net.Layout.PatternLayout">

       <conversionPattern value="%date %-8logger [%4thread] %-5level %message%newline%exception" />

     </layout>

     <!--layout type="log4net.Layout.XmlLayoutSchemaLog4j" /-->

   </appender>

 

<logger name="LogCatPackWebDriverHost">

     <level value="DEBUG" />

     <appender-ref ref="RollingFileAppender_WebDriverHost" />

   </logger>

 

If the two sections already exists, just change level value to DEBUG. If they don't exist, add these two parts under the root element of log.config.xml.

Log Collection: 

Once the log is configured, user should reproduce the issue and gather the logs from folder %Appdata%\Hewlett-Packard\UFT\Logs