How to open any application during Scripting?

Answer Posted / punkhuri singh

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 )

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain advantages and disadvantages kdf?

729


What is the expert view?

778


How you debug your script?

785


How to use output values in qtp ?

757


Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u

1583


How do know the number of browsers opened?

859


An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))

1843


is it possible to add sheets to excel at runtime

3657


How does qtp recognize objects in aut?

806


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1788


How to attach a file to TD?

888


Tell me about qtp?

721


Hi Samrat, Thank u very much, what u said it is right.

1684


Explain xml checkpoints.

873


How to replay a script in qtp?

857