LogTrackingSettings Object > Properties > EnableAutoConfig Property
EnableAutoConfig Property
Description
Indicates whether UFT configures the log framework (via its log configuration file) at the beginning of every run session.
Property type
Read-write property
Syntax
Visual Basic
Public Property EnableAutoConfig As Boolean
Remarks

LogTracking properties can be set only before a run session begins. Therefore, if you use this automation property within a UFT test or component, you can only retrieve the value.

Prerequisites for this property:
  • All logging prerequisites must be met, for example, you may need to set registry values that are specific to your application.
  • The log framework's configuration file must be writable and in a location that UFT can access.
  • Your application's log framework must be configured to use the same file you specify in the ConfigFile property.
  • Your application's log framework must be able to monitor changes in the configuration file. If not, then you must make sure that your application always starts after the run session begins so that UFT can modify the configuration file. For details on starting your application, see the SystemUtil.Run topic in the Unified Functional Testing Object Model Reference. You can also use any standard VB Script command that starts an application.
  • Note: If your application's log framework monitors your configuration file infrequently (for example, once per minute), make sure that your application starts immediately after the run session begins. This enables UFT to modify the configuration file in time to receive the log messages generated during the run session.
Example
See Also