What is the difference between Systemutil.run and Navigate.

Answer Posted / kamakshya prasad

Go through the below script, u may get the better answer


SystemUtil.Run "iexplore.exe","www.google.com"

Browser("name:=Google").Navigate "http://www.cnn.com/"

Browser("name:=CNN.com - Breaking News,").Page
("title:=CNN.com - Breaking News,").Link
("name:=Health").Click
wait(10)
browser("name:=CNN.com - Breaking News,").Back


SystemUtil.Run : By using SystemUtil.Run we can run any
application from specified location. (as above
SystemUtil.Run "iexplore.exe","www.google.com")

2nd example: to run the flight reservation login window
SystemUtil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe"

Navigate : Open a specified URL in the browser
i.e object.Navigate "URL specified" and here the object is
the test object of type browser (as per above i.e Browser
("name:=Google").Navigate "http://www.cnn.com/")

It is very much important to know the difference between
SystemUtil.Run, Navigation and Invoke Application?????

Thanks

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will down time for server and content maintenance/upgrades be allowed? how much?

613


What are the different ways to invoke an application using QTP?

641


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1500


What is an object repository?

602


How can I check if a environment variable exist or not?

537






What is the difference between run time object and test object?

573


what function you write to do database testing with the help of qtp?

1355


How many scripts did you have?

1693


How is a Step generator used in UFT?

655


what is meant by source control?

1689


How to check which add-ins are associated with a test in qtp?

580


How to create scenario selector

1477


Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT

2051


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

1277


how will you check how many members visited the website www.infosys.com?

1476