Open topic with navigation
After enabling UFT to recognize the custom controls, you must provide support for running test object methods. If you try to run a test with steps that run on custom test objects before providing implementation for these methods, the test fails and a run-time error occurs.
For more information, see Supporting Dynamic Lists of Values for Method Arguments.
After you create support for running test object methods, you can run UFT GUI tests on your custom test objects, and verify that your toolkit support set performs correctly. For more information on testing your toolkit support set, see Testing the Toolkit Support Set During Development.
The following example is taken from the ASPAjax toolkit support set, which includes support for a Select method on the ASPAjaxTabs test object. In the ASPAjax test object configuration file, this is declared as follows:
<ClassInfo BaseClassInfoName="WebElement" Name="ASPAjaxTabs" DefaultOperationName="Select" > <TypeInfo> <Operation ExposureLevel="CommonUsed" Name="Select" PropertyType="Method"> <Description>Selects the specified tab.</Description> <Documentation> <![CDATA[Select the tab with index %a1.]]> </Documentation> <Argument Name="Index" IsMandatory="true" Direction="In"> <Type VariantType="Integer"/> <Description> The index value of the tab to select. </Description> </Argument> </Operation> </TypeInfo> </ClassInfo>
In the toolkit configuration file, the Control\Settings element for the ASPAjaxTabs test object class is defined as follows: