Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How software automation specialist enter steps in the Expert View?

0 Answers  


I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

0 Answers   Accenture,


How is the Bitmap checkpoint different from Image checkpoint?

0 Answers  


In ordinal identifier there r 3 options available. Which one will be enabled first when ordinal identifier is invoked.

3 Answers   Cap Gemini,


how you update scripts in qtp?

1 Answers  


How the automated tests in org

1 Answers   Maintec,


How to pass a variable in Dos Command using QTP? Eg: Dim path1, path2 path1 = "C:\Test\sample1.doc" path2 = "C:\Test\sample2.doc" How can we pass these path1 and path2 inside the "copy" dos command? I tried like this. this is not working. oShell.run "cmd /K copy" &path1 &path2

1 Answers  


Hi, I have 50 test cases for automation, Based on which criteria we can decide for these test cases we have to use Descriptive programming and remaining for general coding? Thanks In Advance..Kavitha

2 Answers  


hen do start automation testing after manual testing

1 Answers   Infosys,


hi testers,one script has three actions , at the of running three actions are running , how to set run only perticular action and what is the use of split the action? when it will be useful?

3 Answers   Syntel,


How to Map network drive in QTP

3 Answers  


Explain the QTP Tool interface.

2 Answers   Crea,


Categories