FoldersOptions Collection

Description

You use this object both for configuring the folders search list and for finding (resolving) relative paths.

Remarks

You can click the Generate Script button in the General pane of GUI Testing tab in the Options dialog box to automatically generate an automation script containing the current global testing options, including those represented by the FoldersOptions object. 

Example

Define a Folder Search List

Public Methods

Public Method AddAdds the specified folder path to a specified position.

Public Method Export

(UFT One version 2023 and later)

Exports the folders search list from UFT One to your local computer.

Public Method FindReturns the position of the specified item.

Public Method Import

(UFT One version 2023 and later)

Imports a folders search list file to UFT One.

Public Method LocateResolves the specified relative file path and returns its absolute path.
Public Method MoveToPosChanges the order of the folders by moving an item from its current position to the specified position.
Public Method RemoveAlternatively, you can specify the path you want to remove as a string.
Public Method RemoveAllRemoves all folders from the collection.

Public Properties

Public Property CountThe number of folder paths in the collection.
Public Property ItemReturns the folder path located in the specified position.

Public Property ResourcePathType

(UFT One version 23.4 and later)

Instructs UFT One to use an absolute path, a relative path, or display a prompt every time you add a resource to your test.

See Also

FoldersOptions Members  | Item Property (Default Property)