Micro Focus QTP (UFT) Forums
"How to use Relative Path" - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: "How to use Relative Path" (/Thread-How-to-use-Relative-Path)



"How to use Relative Path" - suresz449 - 08-22-2011

Hi,

Can any one explain to me about "relative path Concept in QTP 10.0" with an example?


Warm Regards,
Suresh D.


RE: "How to use Relative Path" - narasimha - 08-22-2011

A full path or absolute path is a path that points to the same location on one file system regardless of the working directory.
Example of a full path:
C:\Program Files\Mercury Interactive\QuickTest Professional\Tests

while

A relative path is a path relative to the current working directory, so the full absolute path may not need to be given.
Example of a relative path: Say your current working directory is QuickTest Professional as shown above so the relative path for the folder Mercury Interactive which is one level up would be ..\..\Mercury Interactive similarly folder which is on same level can be referenced by ..\Some Folder