Interview Questions

How to open any application during Scripting?

QuickTest Professional (QTP) Questions and Answers


(Continued from previous question...)

How to open any application during Scripting?

SystemUtil , object used to open and close applications and processes during a run session.
(a) 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
E.g : SystemUtil.Run "Notepad.exe" SystemUtil.CloseDescendentProcesses ( Closes all the processes opened by QTP )

(Continued on next question...)

Other Interview Questions