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
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 |
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 |
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 |
How software automation specialist enter steps in the Expert View?
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
How is the Bitmap checkpoint different from Image checkpoint?
In ordinal identifier there r 3 options available. Which one will be enabled first when ordinal identifier is invoked.
how you update scripts in qtp?
How the automated tests in org
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
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
hen do start automation testing after manual testing
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?
How to Map network drive in QTP
Explain the QTP Tool interface.