Item Property
Description
Returns the library file located in the specified position.
Property type
Read-only property
Syntax
Visual Basic
Public Property Item( _
   ByVal Position As Long _
) As String
Parameters
Position
The position of the library folder you want to retrieve.  Position values begin with 1.  To specify the last position in the list, enter -1.
Return Type

The file or 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
    • In previous QuickTest versions, ALM paths were returned in the format of an ALM virtual path, such as:
      "[QC-Attach];;Subject\qtp95;;\Library1.qfl"

This format is no longer supported.  If you relied on this format in previous automation scripts, you should change your scripts to reflect the new format, as described in the Value Type section.

    • Item is the default property for the TestLibraries object.  Therefore, you can also retrieve or set this value using the following syntax:

TestLibraries(Position)= NewPath

or

CurrentPath= TestLibraries(Position)

Example
See Also