Thursday 7 June 2012

Relative Path Usage in QTP

Relative Path:

There can be two types of path in your file System, absolute and relative. 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\HP\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: If your current working directory is Quick Test Professional as shown above so the relative path for the folder HP which is one level up would be ..\..\HP similarly folder which is on same level can be referenced by ..\Some Folder

No comments:

Post a Comment