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 |
7. Given scenario is like this: One Web table is there and you have to search and retrieve a cell data which is equal to the given number say:123. Assume you have given with the column name/id of the table where the number may exist. So now you have to go to the given column and search for the number 123 and retrieve it along with the row number of it.
What is the advantage of associating a procedure with a test object?
what is difference between calling a function and reusing an action?
Where you are storing your script?
How is test case write?
in qtp how can we do test when the build is not ready
what type of automation is follwed in the project?
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
How to handle recovery scenario for a application crash.write script for this.
Is it mandatory to know abt regular expression in descriptive programming
What is method name to compare two XML files.