what is the difference between invoke application and
system.util.run
Answer Posted / rao' prasad
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 |
Post New Answer View All Answers
Explain in brief about the quicktest professional automation object model?
What is throw Object?
How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..
Explain in brief about the quicktest professional (qtp) automation object model?
can u explain relative path architecture framework in qtp?
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
Diff b/w test scenario's and test Procedures?
your coming from electrical backgroung..but y ur coming to software side?
What is the difference between call to existing action and copy of an action?
How to remove associated function library?
Connect to QC using AOM.
Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.