Pathfinder object in UFT

PathFinder is used to find the absolute path of the files associated with the tests. UFT looks for the files in directories configured in Option dialog as shown in below image.Here is the sample script that shows how to use PathFinder object. Note that we are trying to locate the abc.qrs and Repository1.tsr files. UFT will look for these files in the directories specified in above setting. If PathFinder does not find a file, it will return empty string.
 
absolutePath = PathFinder.Locate("abc.qrs")
msgbox absolutePath

msgbox PathFinder.Locate("Repository1.tsr")

Web development and Automation testing

solutions delivered!!