Open topic with navigation
By this point, you have defined all the basic settings for your toolkit support set. Your XML configuration files contain the main elements required for UFT to display your toolkit in the list of supported environments, to display the WebExtBook test object as available in this environment, and to recognize the controls for which to use this test object. In addition, you have already defined the operations and properties available for WebExtBooks.
Though you have not designed the implementation necessary to enable the operations to run, or to enable the retrieval of the property values, in this section you already use your toolkit support set with UFT to spy on the Book control, add it to the object repository, and create test steps on the control.
Select View > Toolkit Support Properties. In the Toolkit Support Properties Designer that opens, select the Development mode option and save your changes.
When deploying during design stages, always use this option, which ensures that if you modified attributes of IdentificationProperty elements in the toolkit configuration XML file, UFT uses all of the changes you made. Clear this option when the design is complete, before distributing your support for regular use.
Select Project > Deploy > Deploy to UFT.
The toolkit support set files are deployed to the <UFT or Add-in installation folder>\dat\Extensibility\Web folder in the structure described in Deployment File Structure.
When you use Extensibility Accelerator to develop support on a computer without UFT, you can select Project > Deploy > Deploy to Zip File (or click the Deploy Toolkit Support Set button in the Workflow window) and specify the file path for the .zip file that you want to create.
Extensibility Accelerator creates the necessary file structure within the zip file which you can then unzip it in the <UFT or Add-in installation folder>\dat\Extensibility\Web folder on a UFT computer.
After you deploy the toolkit support set, open UFT.
Note: UFT reads toolkit support files when it opens. Therefore, if UFT is open, you must close and reopen it.
The Add-in Manager dialog box displays the WebExtSample as a child of the Web environment in the list of available add-ins. (If the Add-in Manager dialog box does not open, see the Micro Focus Unified Functional Testing Add-ins Guide for instructions.)
Select the check box for WebExtSample and click OK. UFT opens and loads the support you designed.
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. The WebExtSample environment is displayed in the Environment list. When you select the WebExtSample environment from the list, the WebExtBook test object class that you defined in the test object designer is displayed in the Class list, with the icon that you specified.
Run the sample control by opening the %ALLUSERSPROFILE%\Documents\ExtAccTool\Samples\WebExtSample\Application\Book.htm file.
Note: UFT establishes its connection with an application when the application opens. Therefore, if the Book control is open, you must close it and run it again.
In UFT, perform the following activities on the Book control, to see how UFT recognizes the control. (For details on working in UFT, see the Micro Focus Unified Functional Testing User Guide.)
Use the Object Spy to view the identification properties and test object operations that are supported for the Book control:
The WebExtBook test object created for the Book control is given the name of its test object class. Later in this lesson, you customize your toolkit support set to provide a more specific name.
The list of test object operations includes all of the operations (methods and properties) inherited from the WebElement base class, as well as all of the operations that you defined in the test object class designer.
The list of identification properties includes all of the properties that you defined. The property values are not displayed because you have not yet implemented a function that returns property values from the application (and the WebElement base class does not support these properties). You will implement such a function later in this tutorial.
Use the Add Objects to Local button in the Object Repository dialog box to learn the Book control. Ensure that the correct icon is used to represent the test object in the object repository.
In the Keyword View, create a test step choosing the WebExtBook object from the object repository in the Item column.
The list of available operations in the Operation column includes the operations that you defined.
Select the GoToAuthorPage operation. UFT displays the AuthorName argument name in a tooltip for the Value cell. If you defined an operation with more than one argument, the Value cell would be partitioned according to the number of arguments of the operation, when that operation was selected.
The tooltips displayed for each operation reflect the descriptions that you defined.
In the Documentation column, no documentation summary is available for steps with the operations that you defined. Extensibility Accelerator's user interface does not support documentation summaries, but you can add them manually to the test object configuration file in the XML editor. You will do that later in this lesson.
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 that you defined.
If you had defined possible values for the operation's arguments they would be displayed in a statement completion list as well. You define possible values for an argument by defining an enumeration in the Enumerations Designer and selecting it as the argument type in the Operations Tab (Test Object Class Designer).