| || |
Diff btn invoke_application and systemutilrun ?
Can anyone tell me the major diff btn invoke_application and systemutil.run ? when i read in qtp help it is not clear for me and systemutil.run is for backword compatability.what it meant for ? Thanks in advance
Re: Diff btn invoke_application and systemutilrun ?
'InvokeApplication' is the old statement included for backwards compatibility only. It simply didn't provide as much flexibility as 'SystemUtil.Run'. The main different is that 'SystemUtil.Run' adds the ability to specify the operation (i.e. 'Open', Edit', 'Print') as well as the mode the application is launched in (i.e. 'Maximized', 'Minimized', etc). Without the last two optional arguments, it's basically the same as 'InvokeApplication'.
In other words, you should be using 'SystemUtil.Run'.