Stage 1: Expanding the Toolkit Support Set to Support an Additional Control

To add support for the UsedBooks control, you first add the definition for the WebExtUsedBooks test object class to the WebExtSampleTestObjects.xml file.

To expand the toolkit support set to support the UsedBooks control:

  1. Copy the icon file for the UsedBooks control, WebBookList.ico, from %ALLUSERSPROFILE%\Documents\ExtAccTool\Samples\WebExtSample\Res to the <toolkit support set folder>\Toolkits\WebExtSample\Res folder.

  2. Add the following definition for the WebExtUsedBooks test object class to the WebExtSampleTestObjects.xml file (within the TypeInformation element, after the ClassInfo element for the WebExtBook test object class):

    <ClassInfo BaseClassInfoName="WebTable" 
               GenericTypeID="Table" 
               Name="WebExtUsedBooks"
               DefaultOperationName="SelectBook">
     <IconInfo IconFile="INSTALLDIR\dat\Extensibility\Web\Toolkits\WebExtSample\Res\WebBookList.ico"/>
       <TypeInfo>
          <Operation ExposureLevel="CommonUsed" 
                     Name="SelectBook" 
                     PropertyType="Method">
             <Description>
                 Selects the radio button for the specified book and clicks Select.
             </Description>
             <Documentation>
                <![CDATA[Select the radio button for the book with index %a1 and click Select.]]>
             </Documentation>
             <Argument Name="BookIndex" 
                       IsMandatory="true" 
                       Direction="In">
                <Type VariantType="Integer"/>
             </Argument>
          </Operation>
       </TypeInfo>
       <IdentificationProperties>
          <IdentificationProperty  ForDefaultVerification="true" 
                                   ForVerification="true" 
                                   ForDescription="true" 
                                   Name="title"/>
       </IdentificationProperties>
    </ClassInfo>
    
  3. This defines the WebExtUsedBooks test object class according to the details described in the Web Add-in Extensibility Planning Checklist.

For more information on the elements and attributes in the test object configuration file, see the UFT One Test Object Schema Help.

Continue to Stage 2: Teaching UFT One to Identify, Spy, and Learn the UsedBooks Control.