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

If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

0 Answers  


does QTP provides any tools for parametrisation?

4 Answers  


What are the Features & Benefits of Quick Test Pro ?

0 Answers   Crea,


get the order no from the following orderdetails orderstring="ORD13456PNR" eg:13456

10 Answers   Oracle,


How to track the execution time?

2 Answers  






can we enable smart identification for test object

3 Answers  


how can i count the number of links???

2 Answers  


Please explain me i am using QTP 9.5 ,i am creating re usable scripts,i have to pass data from one local sheet to another local sheet.for example i am creating emploee information, (data is in action 2 local sheet),In this data table emplyeee number will get,i have to pass employee number to another reusable script search data (action2 local data sheet)

2 Answers  


what is the difference between link and hyperlink?

2 Answers  


will QTP 9.2 run successfully on Linux(gui) operating system

1 Answers  


During test run,How will you copy/paste from/to clipboard?

3 Answers  


I am automating a Java application. This application is developed using SWT. I am not able to get the GUI object. Even i tried with Java add-in. In tutorial it states SWT is not supported any idea. Anybody worked in such appln. My question is whether it is possible to record the GUI object of SWT appln. how it is possible.

1 Answers  


Categories