Open topic with navigation
In this section you create the WebExtBook test object class that you want UFT to use to represent the Book control, and define its basic characteristics.
Click Add Test Object Class in the Workflow window.
A test object class designer opens in a new tab in the main document area. The designer opens to the General Tab (Test Object Class Designer).
In the Workflow window, the Edit Test Object Class area is now highlighted, indicating the current stage of the project design.
In the Name box (in the General tab of the test object class designer), replace the default test object class name with WebExtBook.
The name in the tab of the designer changes as you type, and an asterisk (*) in the tab indicates that you have made changes that have not yet been saved.
Click Save .
In the Description box, enter The test object class used to represent a Book control.
This description is for your own records; it is not displayed in UFT.
Replace the default icon used to represent WebExtBook test objects, which you can see displayed beneath the description:
Click the browse button to the right of the Icon File box, then browse to and select %ALLUSERSPROFILE%\Documents\ExtAccTool\Samples\WebExtSample\Res.
The icon file is imported into the Res folder in your project, as you can see the file in the Project Explorer. The file name is displayed in the Icon File box, and the icon image is displayed as well.
Click Save All.
Help File. In this tutorial, you do not include Help files in your project.
Class Type. Based on the plan in Plan Support for the Web Add-in Extensibility Book Sample Toolkit, accept the default
WebElement base class and the default
Object generic type.
Advanced. This area contains advanced options that you do not need to use at this point.
Double click the WebExtSample.xml file in the Project Explorer.
The file opens in an XML Editor in a separate tab. It contains the basic structure of a toolkit configuration file, which introduces your toolkit support set to UFT:
In addition, the file contains a browser independent Identification element, which will be updated when you perform Stage 3: Create Rules to Map the Test Object Class to the Control:
For details on the elements and attributes in the toolkit configuration file, see the
Double click the WebExtSampleTestObjects.xml file in the Project Explorer to open it another XML editor tab. The file contains the basic structure of a test object configuration file, which introduces your WebExtSample environment and its test object classes to UFT.
The PackageName attribute in the TypeInformation element associates this test object configuration file (and the test objects defined in it) with the WebExtSample environment. If, when UFT opens, you do not select the WebExtSample environment, UFT ignores the test object class definitions in this file.
Additional elements contain the test object class specifications that you defined in the designer:
<TypeInformation PackageName="WebExtSample" AddinName="Web"> <ClassInfo GenericTypeID="Object" Name="WebExtBook" BaseClassInfoName="WebElement"> <Description>The test object class used to represent a Book control. </Description> <HelpInfo /> <IconInfo IconFile="INSTALLDIR\Dat\Extensibility\Web\Toolkits\WebExtSample\Res\WebBook.ico" IconIndex="0" /> <TypeInfo /> <IdentificationProperties /> </ClassInfo> </TypeInformation>
For details on the elements and attributes in the test object configuration file, see the
Close the XML files.