What is obsolute path and relative path in QTP..? How to
access them and what are the differences between them...??

Answers were Sorted based on User's Feedback



What is obsolute path and relative path in QTP..? How to access them and what are the differences ..

Answer / nath t

Absolute path means we have to mention full path in script.

Example: executefile "E:\project name\libraries\main.vbs"

Relative path menas no need to give full path just mention
file name

Example: executefile "main.vbs"

But here if you want to convert this Absolute file path as
relative path. you should do following steps

Tools menu-->options-->folders tab

here you have to add this path example "E:\project
name\libraries"

then you can use direct filename as above mentioned in the
relative path example instead of absolute path example.

Is This Answer Correct ?    11 Yes 5 No

What is obsolute path and relative path in QTP..? How to access them and what are the differences ..

Answer / radhika

A small correction in the path
You can make your path relative before only by going to
Tools->options->Folder->check the checkbox "Relative
path ...."

Basically we go for relative path when we are going to
copy our qtp scripts to different location like from C
drive to D drive on different machines

Is This Answer Correct ?    3 Yes 0 No

What is obsolute path and relative path in QTP..? How to access them and what are the differences ..

Answer / radhika

Absolute path means the existing path of your test.
Ex: c:\Data\inputfiles\testscripts\test1

Relative path means the path which you want to access from
the rootfile you need.
Ex: ..\..\..\iputfiles\testscripts\test1

Basically it sgood to prefer relative path as, if the
location of the root folder changes you do not get any
errors

You can make your path relative before only by going to
Tools->options->run->check the checkbox "Relative path ...."

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More QTP Interview Questions

I have action1, action2, action3 r there.my query is while executing if i get any error in action1 i want exit from here itself, otherwise execute action2, if i get any error in action2 i want exit from hereitself, like this,what is the method for this?

5 Answers   AZTEC,


how to call multiple scripts in QTP at a time

3 Answers   IBM,


If some requirements r changed during the testing process ,then how can u handle this in frame work?

1 Answers  


How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)

0 Answers  


In a QTP project lets say there are 100+ function library and incorrectly we have duplicate some function in multiple libraries. How to find those duplicate functions and remove them?

1 Answers  






How do u write regular expression for a window name which is changing for each build ? i.e. in first build the window name is : "computer graphics are very ...." . in second build the window name is : "computer graphics can be created" . - Appreciate proper replies

4 Answers   Semantic Space,


wt is automation framework? give explonation?

1 Answers   Mindlance,


Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan

0 Answers  


How to get line numbers in your editor in expert view?

2 Answers  


How to make arguments optional in a function?

0 Answers   Crea,


When testing a web application, the url for each page changes, so using QTP how do u handle this scenario. If anyone knows please answer in detail about the whole procedure. Thanks a lot.

3 Answers  


can any one say that where we can download the QTP trail version ??????????

0 Answers  


Categories