What is the difference between systemUtil and invoke method..?

Answer Posted / sandeepguttikonda

SystemUtil : This is an utility Object, which falls under
step generator.

Using this one can perform lot of operations like:

1)systemutil.run :Runs a file or application
Example: a)Systemutil.run "iexplore","www.google.com"
(opens the google page in internet explorer.
b)
Systemutil.run "firefox","www.google.com"(opens the google
page in mozilla firefox.

2) Systemutil.blockinput : Prevents the keyboard and mouse
inputs from reaching the application.

3) Systemutil.closedecedentprocesses: Closes all processes
opened by QTP.

etc.

Invokeapplication :This will invokes an executable
application. And supported primarily for backward
comptibility.


Regards,
Sandeep Guttikonda
Syntax: Invokeapplication(Command)

Example: invokeapplication "C:\Program Files\iexplore.exe"

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some test assets and related extensions of qtp?

557


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

634


How many types of recording facility are available in quicktest professional?

567


What is the quicktest professional testing process?

534


How to attach a file to TD?

658






How would you export a script from one pc to another in qtp?

663


your coming from electrical backgroung..but y ur coming to software side?

1391


Is it possible to change the values of analog recording?

576


What are table and db checkpoints?

592


How can we conduct U-I Testing by using QTP??????

1431


Explain about datafile/verification of date file when file is not available in local system?

2230


banking domain description for software tester for interview

3469


Can we record using all the modes in a single script? Explanation with example is appreciated

1392


What are the different types of checkpoints?

589


How to find a window is minimized or not

1449