What is the difference between systemUtil and invoke method..?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Answer / pavan
Swetha ur answer is Exactly correct what i expect.
| Is This Answer Correct ? | 1 Yes | 2 No |
what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?
What are the different types of recovery operation?
Do you know how to connect database? Can you tell me the procedures?
is there any addin for remedy user application
What is All object and Local object in Object Repositary? Explain me please.
can onyone tell me how to comapre the output of two different Data Bases in QTP?
Hello Friends, I am working with QTP 9.2 descriptive programming. Can you please let me know how to work with below. Browser is IE, for my site, it opens another page with different browser name, For example Parent Page is google.com and child page is inteview questions. How to work with this second page.
What is qtp window?
How many lines of code in each script of QTP?
How to handle Run-time errors?
how to call multiple scripts in QTP at a time
what is actually contain test report? can anybody post the test report