what is the difference between invoke application and
system.util.run
Answers were Sorted based on User's Feedback
You can run any application from a specified location using a SystemUtil.Run statement.
"SystemUtil.Run" is especially useful if your test includes more than one application.
You can specify an application and pass any supported parameters, or you can specify a file name and the associated application starts with the specified file open.
for e.g. SystemUtil.run "iexplore.exe", "www.gmail.com"
"InvokeApplication" invokes an executable application.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / ramesh ravala
Hi All,
Invoke application was using in WinRunner.
system.util.run using in QTP
Invoke application invoke only .exp files,
systemutil.run invoke any type of files.
We can use both serves the same
purpose in QTP.
Regards,
Ramesh Tharapathi Ravala
| Is This Answer Correct ? | 1 Yes | 0 No |
Both are used in QTP.
In most situations, you should use a SystemUtil.Run
statement to run applications or to open files in their
default application. A SystemUtil.Run statement is
automatically added to your test when you run an
application from the Start menu or the Run dialog box while
recording a test.
Sy:SystemUtil.Run "C:\type.txt", "", "", ""
InvokeApplication statement is supported primarily for
backward compatibility.
Sy: InvokeApplication "E:\Program Files\Plus!
\Microsoft Internet\IEXPLORE.EXE"
| Is This Answer Correct ? | 5 Yes | 5 No |
Answer / sunil kumar.m
Invoke application is used to invoke any .exe file, where as
SystemUtil.Run works with any system utilities like
“Iexplore” apart from .exe file
For more details on the qtp refer to this blog:
http://ssofttesting.blogspot.com
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / ramarao
Invoke application invoke only .exp files,
systemutil.run invoke any type of files.
invoke application can be used in in winrunner,system
util.run can be used in QTP.both of the phenominon is same.
U have any qurriers contact with me through mail.
mail id:physics143@gmail.com
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / lochana
Hi,
Invoke and Systemutil.run are used to open an application.
But the difference is that invoke function and
systemutil.run is object.method. Generally QTP contains
object.method with in the VB script.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / kishore
Both can be used by QTP. Invokeapplication is used to
open .exe files where as Systemutil.run is used to run any
application.
For ex:
1. For this path "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe" both will work
2. For the path "C:\Documents and
Settings\Kishore\Desktop\Flight.lnk" Only Systemutil.run
will work, but not invoke application
| Is This Answer Correct ? | 1 Yes | 2 No |
Invokeapplication(" ") is use for Windows Application and
systemutil.run is used for Web Based Application.
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / srinath
We can use both Invoke Application & systemutil.run in QTP
QTP can be said as it has more advanced feature than what
winrunner supports
| Is This Answer Correct ? | 4 Yes | 10 No |
invokeapplication and system.util.run both serves the same
purpose in QTP, but invokeapplication used while you are
writing the script where as system.util.run is used when
you record the application under test.
invoke_application is used in WinRunner to launch the
application.
| Is This Answer Correct ? | 1 Yes | 8 No |
what is the smart identification techniqu?what r the different mechanisums used in it?
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT
How do you data drive an external spreadsheet?
How Qtp will identifies object during run time
Thanks....But can u tell me how i use the QTP for GIS with one Example...
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
As u told write Libarary files in QTP. Do u use ever oject repositary 0r spy while writing scripts and for which type of testing u prepared test scripts.
What is the difference between byref and byval in qtp?
I have the script like this: Browser("Philips Web Login").Page("Philips CL DMS2 Application").Frame("ScopeFrame").Link("DC3701737 (Active)").Click in which the value "DC3701737" will get changed and i have to use the same value in so many places. If i want to get that value "DC3701737" in to a variable, how? pls let me know if you didn't get the question. Help me out in this.
hai,i want to select an option from the right click pop up menu.but the qtp is not recognizing the right click pop up menu as a seperate object.can any one tell me the solution.
How to display the first 3 letters in these "ABCDEFGH" using qtp script?
hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career