Quality Testing

Quality is delighting customers

How to use the Relative paths and Absolute paths in QTP ?

Tags: ?, Absolute, How, QTP, Relative, and, in, paths, the, to, More…use

Views: 198

Replies to This Discussion

Hi,

Kindly find the following syntax:

Browser().page().WebEdit("Xpath:=//tagname[@attribute='attribute value']/input").set "test xpath"

 

There r 2 types of paths in the file System

1.Absolute: full Path of the file

Ex: ExecuteFilw "E:\projectName\libraries\main.vbs"

2.Relative : its a path relative to the current working directory, so the full path may not be given again

Ex : ExecuteFile "main.vbs"

If you want to convert the absolute path into relative path goto Tools--> Options--> Folders, here we have to add the path "E:\projectName\libraries\"

Hi Prasad,

will it convert from absolute path into relative path goto after doing the same.

Thanks.

Hi Heera,

it wont convert we have to give like following:

goto Tools--> Options--> Folders, there Click on the + symbol, a new dialog box will open, now give the path(or select the folder) where your functions are reside, click on OK, now if you want this path for all future use chek the ChekBox "Remind me to use.....", clik on appy and click on ok.

Now you can use the Particular function directly(called Relative).

Let me know if im not clear.

RSS

TTWT Magazine

Advertisement

You Can


Call for Articles

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2012   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service