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

Answers were Sorted based on User's Feedback



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

Answer / vijay

1.Using invoke application you can launch the specified web application on a specified browser. Where as system util.Run will launches the specified web application on a Default browser.
2.If you launch a application with invoke application it will written the results as done. where as if u launch a application using system util.Run it will written the result as passed.

Is This Answer Correct ?    4 Yes 0 No

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

Answer / 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

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

Answer / swetha

systemUtil is a utility object which is used for different
general activities amg them most imp one is to invoke
application using run method
syntax:
systemUtil.run "path of app"
whereas invoke method is used for invoking the application
syntax:
invokeapplication "path of the app"

Is This Answer Correct ?    5 Yes 4 No

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

Answer / ravichandra

system util run executes executable and non executable
files,but invoke application executes only executable files

Is This Answer Correct ?    2 Yes 1 No

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

Answer / pavan

Swetha ur answer is Exactly correct what i expect.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More QTP Interview Questions

wt is the use of multiple questions in QTP

0 Answers   DigiTech,


We need to verify the user name & password in for the user validation. But we don't want to use the parameterization/ loop for user name and password. What is the way in scripting so that user & password will generate automatically.

11 Answers   Tech Mahindra,


1)how to write test cases in test director? not go throuth requirments and plan but should be different way i need? 2)what is the mediator between qtp and application or project?

1 Answers  


What is keyword view in qtp?

0 Answers  


what is the difference between DP and keyword driven framework?

1 Answers  






How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,


What is the parameterization?

0 Answers  


What is the current version of QTP?

19 Answers  


What is the life cycle of QTP? Pls Give me Exact answer?

6 Answers   Google,


How to get align property of the link on web page?

1 Answers  


What is API

2 Answers   Satyam,


what is the difference between action and function

11 Answers   AppLabs, BirlaSoft, Infosys,


Categories