Test Object > Methods > SetAssociatedAddins Method
SetAssociatedAddins Method
Description
Specifies the list of add-ins associated with the test or business component.
Syntax
Visual Basic
Public Function SetAssociatedAddins( _
   ByRef AddinNames As Variant, _
   Optional ByRef ErrorDescription As Variant _
) As Boolean
Parameters
AddinNames

An array of the add-in objects you want to include in the Associated Add-ins list. This array should contain the entire list (not just those you want to add to the existing list).

The available Add-in names are displayed in the Add-in Manager dialog box. Alternatively, you can use the Addin.Name property to retrieve the relevant add-in name.

ErrorDescription
The variable containing any details on whether all interdependent add-ins are included in the list, and that there are no conflicts between specified add-ins.

This ErrorDescription argument receives a value only if the Test.SetAssociatedAddins statement returns False.

Return Type
  • True--No errors were returned for the specified list of add-ins.
  • False--One or more errors were returned for the list of specified add-ins.  This may indicate that you have specified two conflicting add-ins in the list, or that a required add-in was not included in the list (in the case that a specified add-in requires other add-ins to be loaded with it). If the statement returns False, and you specified an ErrorDescription argument, the details of the errors are stored in the ErrorDescription variable.
Remarks
  • The list of add-ins associated with the test or business component can include add-ins provided with UFT, as well as add-ins that you or a third party developed using add-in extensibility to provide UFT support for additional environments or controls.
  • If an add-in is displayed in the Add-in Manager dialog box as a child of another add-in, and you instruct UFT to associate the child add-in with a test or business component, UFT also associates the parent add-in with this test or business component.
Example
See Also