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

what is risks of testing a project?

5 Answers   AppLabs,


Have you faced any problems with object repository?

0 Answers  


how to retreive the xml file data through qtp.can anybody send script for this..

1 Answers   Synechron,


hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?

2 Answers  


how to merge object repositories?

4 Answers  


when we enter url,one page should open.write a vb script ,that page is open or not

2 Answers   Blue Chip India, Persistent,


write the regular expression for date format of mm/dd/yy?

10 Answers   CTS, HCL,


How does u create new test sets in TD?

1 Answers   Crea,


• What type of testing questions will be asked for 2+ yrs exp people in interview?

0 Answers  


What does it mean when a check point is in red color? what do u do?

1 Answers  


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

0 Answers  


Define object spy ?

0 Answers  


Categories