By how many ways we can invoke new application

There can be many methods to invoke a new application. Following are the five of them:

'First:  by using systemutil.run   ( the path will be equivalent to what we specify in system run window)
Systemutil.Run "iexplore", "www.google.com"

'Second: By  using Invoke application ( here we need to specify the whole path of the exe)
InvokeApplication "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"

' Third  by using wscript
Dim ws: Set ws=CreateObject("Wscript.Shell") :ws.Run "www.hotmail.com"

'Fourth by using COM Objects
Dim ie: Set ie=CreateObject("InternetExplorer.Application"): ie.navigate "www.google.com" :ie.visible=True:set ie=Nothing

'Fifth: By using QTP Record and run settings, Same can be configured by using AOM too.

Comments

Post a Comment

Popular posts from this blog

Arrays

What is the difference between eval, execute and executeglobal.

Sample Test Strategy for a MicroService Project with APIs only