Test Object > Methods > ValidateAddins Method
ValidateAddins Method
Description
Indicates whether all add-ins associated with the open test or business component are currently loaded, that all interdependent add-ins are loaded, and that there are no conflicts between loaded add-ins.
Syntax
Visual Basic
Public Function ValidateAddins( _
   Optional ByRef ErrorDescription As Variant _
) As Boolean
Parameters
ErrorDescription
The variable containing any details on whether all add-ins listed in the Associated Add-ins list are currently loaded, whether interdependent add-ins are loaded, and whether any conflicting add-ins are loaded.

The ErrorDescription argument method receives a value only if the Test.ValidateAddins statement returns False.

Return Type
  • True--All add-ins in the test's Associated Add-ins list are loaded and no errors were returned for the specified list of add-ins.
  • False--One or more add-ins in the Associated Add-ins list are not currently loaded, or 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

To retrieve the list of add-ins associated with the test, use the Test.GetAssociatedAddins method.

To modify the add-ins associated with the test, use the %SetAssociatedAddins:QuickTest~Test~SetAssociatedAddins% method.

To change the add-ins that are currently loaded, exit UFT (Application.Quit), load the set of add-ins you want to use for the test (Application.SetActiveAddins), then restart UFT and reopen the test (Application.Open --automatically starts UFT and opens the test).

See Also