Open topic with navigation
Open UFT and load the WebExtSample support (select it in the Add-in Manager dialog box).
Open a GUI test and use the Define New Test Object button in the Object Repository dialog box to open the Define New Test Object dialog box. Select the WebExtSample environment from the Environment list to see that the WebExtUsedBooks test object class you defined in the test object configuration file is displayed in the Class list.
Run the sample control by opening the %ALLUSERSPROFILE%\Documents\ExtAccTool\Samples\WebExtSample\Application\Book.htm file and clicking Used.
Note: UFT establishes its connection with an application when the application opens. Therefore, if the UsedBooks control is open, you must close it and run it again.
In UFT, perform the following activities on the UsedBooks control to see how UFT recognizes the control. (For more information on working in UFT, see the Micro Focus Unified Functional Testing User Guide.)
The test object created for the UsedBooks control is given the name of its test object class, and uses the custom icon you defined. Later in this lesson, you customize your toolkit support set to provide a more specific name.
The WebExtUsedBooks test object includes all of the test object operations of a WebTable test object, as well as the SelectBook method that you defined in the test object configuration file.
Use the Add Objects to Local button in the Object Repository dialog box to learn the UsedBooks control. The custom icon is used to represent the test object in the object repository.
In the Keyword View, create a test step choosing the WebExtUsedBooks object from the object repository in the Item column.
The list of available operations in the Operation column reflects the definitions in the test object configuration file. All of the test object operations supported by WebTable test objects are available, because in the test object configuration file, you defined that the WebExtUsedBooks test object extends (and therefore inherits from) the WebTable test object class.
After you choose an operation, the Value cell is partitioned according to the number of arguments of the selected operation. For example, when you create a step with the operation SelectBook, the value cell requires one argument and displays the argument's Name attribute in a tooltip.
The descriptions and documentation strings you defined for test object methods in the test object configuration file are displayed in tooltips and in the Documentation column, respectively.
In the Editor, create a test step with a WebExtBook test object. The statement completion feature displays all of the operations available for the test object, including the ones inherited from WebTable.