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 |
wt is the use of multiple questions in QTP
We need to verify the user name & password in for the user validation. But we don't want to use the parameterization/ loop for user name and password. What is the way in scripting so that user & password will generate automatically.
1)how to write test cases in test director? not go throuth requirments and plan but should be different way i need? 2)what is the mediator between qtp and application or project?
What is keyword view in qtp?
what is the difference between DP and keyword driven framework?
How do u do batch testing in WR & is it possible to do in QTP, if so explain?
What is the parameterization?
What is the current version of QTP?
What is the life cycle of QTP? Pls Give me Exact answer?
How to get align property of the link on web page?
What is API
what is the difference between action and function
11 Answers AppLabs, BirlaSoft, Infosys,