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

can any one tell me what is process metrics and what is product metrics if possible give me example. Thank You

2 Answers  


QTP in mumbai

0 Answers  


What is a programmatic description?

0 Answers  


In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

0 Answers  


How many types of parameters are there?

0 Answers  






How to handle dynamic objects in quicktest professional?

0 Answers  


what is verification & validation?

2 Answers   Accenture, TCS,


What is diff betwee datatable.importsheet "path" and datatable.import

2 Answers  


We have opened three browser such as Facebook,Gmail,Amazon,I want to generate the script of Login of Amazon application, but while adding the object such as edit box(user id,password) in OR is not added.Could you please resolve my issue

1 Answers   IBM,


write a qtp code to display all the items in the fly from combo box or list box

3 Answers  


Hello Everybody, Can anyone tell me that in QTP how to count the number of webelements from the object repository. Please provide the code. Thanks in advance, Gaytri

3 Answers  


is it possible to check the text displayed in the tool tip using QTP? if so, how?

6 Answers  


Categories