Remove Method
Supported in UFT One version 2022 and later.
Description
Removes the function library file from the function library list.
Syntax
Visual Basic |
---|
Public Sub Remove( _ ByVal PathOrPosition As Variant _ ) |
Parameters
PathOrPosition
The position or path of the function library file you want to remove from the function library list. Position values begin with 1.
The ALM path is the location of the file in ALM. For example:
[ALM\Resources] Resources\Libraries\Library1.qfl (for a file stored in the Test Resources module) or [ALM] Subject\qtp95\Library1.qfl (for a file stored as an attachment.)
Example
The following example removes the first function library from the function library list.
Set uftApp = CreateObject("QuickTest.Application") ' Create the Application object
uftApp.Launch ' Start UFT
uftApp.Visible = True ' Make the UFT application visible
uftApp.OpenAppArea("[ALM\Resources] Resources\manual\AA\AA1")
Set AAFunctionLibraries = uftApp.AppArea.Resources.Libraries ' Get the libraries collection object
AAFunctionLibraries.Remove 1
uftApp.AppArea.Save
The following example removes a function library in a specified position from the function library list.
uftApp.OpenAppArea("[ALM\Resources] Resources\manual\AA\AA1")
Set AAFunctionLibraries = uftApp.AppArea.Resources.Libraries
AAFunctionLibraries.Remove ("[ALM] Subject\manual\FL to AA\FL7.qfl")
uftApp.AppArea.Save
See Also
AAFunctionLibraries Collection | AAFunctionLibraries Collection Members