Concept of Absolute Path and Relative Path In QTP

0
206
Spread the love

image credit:weseetips.com

There is a concept in QTP, called Absolute path and relative path.
I am trying to explain the both in a simple format with a simple example
Absolute path: It means we need to mention the full path in the script itself
Example:

Executefile "D:projectlibabc.vbs"

or whereever necessary, we need to give the full path in the script itself
Example-D:projectlib etc
Relative path: As the name refers, it is a relative scructure of the path. The path is hidden inside the script or the tool . Even the structure might hidden or created inside the coding
In the script it is written

Executefile "abc.vbs"

For this the path is mentioned inside the tool.
Tools—>option—>folder tab
The scructure which can be created dynamically is an example of true Relative path…

driver="E:"
project path=driver&"" & "Project"
lib path= project path & "" & "lib"

This is an example of data hiding too.


Spread the love
READ  Regular Expressions in VBScript or QTP or UFT
I am the founder and owner of the blog - TechTravelHub.com, always love to share knowledge on test automation,tools,techniques and tips.I am a passionate coder of Java and VBScript.I also publish articles on Travel ideas and great honeymoon destinations.Apart from these, I am a gear-head,love to drive across India. I have shared lots of articles here on How to travel several parts of India.Customization of cars aka car modification is my another hobby.Get in touch with me on ani01104@gamil.com

LEAVE A REPLY

Please enter your comment!
Please enter your name here