Item Property
Supported in versions 2022 and later.
Description
Property type
Syntax
Visual Basic |
---|
Public Property Item( _ ByVal Position As Long _ ) As String |
Parameters
Position
The position of the function library file you want to retrieve. Position values begin with 1.
Return Type
The ALM path of the specified function library file.
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)
Remarks
Item is the default property for the AAFunctionLibraries object. Therefore, you can also retrieve or set this value using the following syntax:
AAFunctionLibraries(Position) = NewPath
or
CurrentPath = AAFunctionLibraries(Position)
Example
The following example returns the first function library from the function library list.
uftApp.OpenAppArea("[ALM\Resources] Resources\manual\AA\AA1")
Set AAFunctionLibraries = uftApp.AppArea.Resources.Libraries
MsgBox AAFunctionLibraries.Item (1)
See Also