Saturday, January 16, 2016

Difference between Invoke Application , SystemUtil.Run and Nevigate Methods in QTP/UFT :

InvokeApplication:

Description: InvokeApplication statement is used to invoke an executable application like Internet Explolar.

Syntax:  InvokeApplication “command OR Path of the Application”
Return Type:  A Boolean Value 
Example: InvokeApplication “C:\Program Files\Internet Explorer\iexplore.exe”
---------------------------------------------------------------------------------------------
SystemUtil.Run :
Description: SystemUtil.Run method is used to invoke an executable application like Internet Explolar with specified URL.
Syntax:  SystemUtil.Run “command OR Path of the Application”, “URL”
Return Type:  None 
Example:  SystemUtil.Run “C:\Program Files\Internet Explorer\iexplore.exe”,”URL”
--------------------------------------------------------------------------------------------------
Nevigate :
Description: Nevigate method is used to open a specified URL in the Browser.
Syntax:  Browser(“Browser”).Nevigate(“URL”)
Return Type:  None 
Example:  Browser(“Browser”).Nevigate(“URL”)

No comments:

Post a Comment