Understanding the Toolkit Configuration XML File Structure > An Example of a Complete Toolkit Configuration File

An Example of a Complete Toolkit Configuration File

An example of a toolkit configuration file is shown below. This file maps the TTrackBar Delphi object to the new DelphiTrackBar test object class, and the DelphiTrackBar test object class to the existing WinObject test object class:

<?xml version="1.0"?>
  <!-- Mapping the window class of the application controls to the 
     custom Delphi test object classes that should represent them in UFT.-->
  <Key Name="Packages">
    <Key Name="DelphiPackage">
      <Key Name="ClassPatterns">
          <!-- Mapping the TTrackBar control to the DelphiTrackBar test object -->
          <Value Name="TTrackBar" Type="BSTR">DelphiTrackBar</Value>
  <!-- Mapping the custom Delphi test object classes to inner objects. -->
  <Key Name="Test Objects">
    <!-- The mapping definitions for the DelphiTrackBar test object -->
    <Key Name="DelphiTrackBar">
       <!- The name of the custom Delphi test object class being mapped.-->
       <Value Name="(Default)" Type="BSTR">DelphiTrackBar</Value>
       <!- The name (and ProgId) of the Standard Windows inner object.-->
       <Value Name="InnerProgId" Type="BSTR">Mercury.WinObject</Value>
       <Value Name="InnerMicClass" Type="BSTR">WinObject</Value>
       <!- ExtObjRecFilter Value element is set to 0: only messages addressed 
             to the control's window are passed to the Agent Object for 
             recording. -->
       <Value Name="ExtObjRecFilter" Type="I4">0</Value>
       <!- BottomLevelObject Value element is set to 1: Test objects of this
             class do not have child objects. -->
       <Value Name="BottomLevelObject" Type="I4">1</Value>
       <!- These elements are defined identically for every mapped test
        object class.-->
       <Value Name="tag query name" Type="BSTR">delphi_name</Value>
       <Value Name="CLSID" Type="BSTR>
       <Key Name="Info">
         <Value Name="package" Type="BSTR">DelphiPackage</Value>