Micro Focus QTP (UFT) Forums
SystemUtil.Run stmt? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: SystemUtil.Run stmt? (/Thread-SystemUtil-Run-stmt)



SystemUtil.Run stmt? - poojaprasanthi1919 - 10-20-2009

should the SystemUtil.run stmt be automatically generated when i record a test????

because it is not happening to me.

i am manually inserting the stmt.

suppose if i want to launch calculator application, then what would be the path?
i found the path to be like %system root%system32\calc.exe

but it is not working

thanks pooja


RE: SystemUtil.Run stmt? - Ankur - 10-20-2009

Try this

Code:
SystemUtil.Run "calc"



RE: SystemUtil.Run stmt? - poojaprasanthi1919 - 10-21-2009

thanks ankur


RE: SystemUtil.Run stmt? - grajesh83 - 12-03-2009

ya its happening to me the same.... how to correct this by displaying automatically in Vista???


RE: SystemUtil.Run stmt? - sreekanth chilam - 12-04-2009

Hi Rajesh,

Try in the below given way.

Open QTP > Tools > Options > Windows Applications > click 'Advanced' button > In Advanced Windows Application window, scroll down to "Utility Objects" and Select "Record SystemUtil.Run Commands" checkbox > OK.

Now try to record once again.

Hope it would solve your problem.Smile


RE: SystemUtil.Run stmt? - v_selvam - 12-04-2009

While you record, select the "Record and Run Setting Guidelines for Windows-Based Add-ins " option in the "Record and Run Settings"