How to invoke an application in QTP?
We can start an application by the below methods,
1)SystemUtil.Run:
Systemutil.Run "iexplore.exe",”www.google.com”, , , 3
(OR)
2)InvokeApplication:
InvokeApplication "C:\Program Files\Internetexplore.exe” ,www.google.com
(OR)
3)Shell object:
Set Wshell = CreateObject(“Wscript.Shell”)
Wshell.run “iexplore.exe”
Set Wshell = Nothing ‘To release the object
Difference between ‘SystemUtil.run’ vs ‘Invokeapplication:
Invoke_Application is a TSL (Test Script Language) Scripting function which is from Winrunner.
QTP has compatibility that execute Winrunner scripts. During 2000 to 2004 Winrunner is the tool extensively used (during this time QTP called AQT Astra Quick Test, I used AQT 5.6),
Mercury (now it is with HP) identified market demands and enhance QTP features and slowly stopped upgrading Winrunner (after WR 8 there is no latest version).
SystemUtil.Run is purely QTP function, In terms of performance both are same.
1)SystemUtil.Run:
Systemutil.Run "iexplore.exe",”www.google.com”, , , 3
(OR)
2)InvokeApplication:
InvokeApplication "C:\Program Files\Internetexplore.exe” ,www.google.com
(OR)
3)Shell object:
Set Wshell = CreateObject(“Wscript.Shell”)
Wshell.run “iexplore.exe”
Set Wshell = Nothing ‘To release the object
Difference between ‘SystemUtil.run’ vs ‘Invokeapplication:
Invoke_Application is a TSL (Test Script Language) Scripting function which is from Winrunner.
QTP has compatibility that execute Winrunner scripts. During 2000 to 2004 Winrunner is the tool extensively used (during this time QTP called AQT Astra Quick Test, I used AQT 5.6),
Mercury (now it is with HP) identified market demands and enhance QTP features and slowly stopped upgrading Winrunner (after WR 8 there is no latest version).
SystemUtil.Run is purely QTP function, In terms of performance both are same.
Comments
Post a Comment