Launching and running uft tests using vbs in UFT

Below script can be used to launch and run the UFT tests. This is useful when you want to schedule your scripts at specific time of the day.
'Create the UFT application object
Set uftApp = CreateObject("QuickTest.Application") 

'Launch UFT

'Maximize and Make UFT visible
uftApp.Visible = True 
uftApp.WindowState = "Maximized"

'Open the UFT test
uftApp.Open "C:UsersSagarDocumentsBooksUFTGUITest1", True  

'Set run settings for the test 
Set uftTest = uftApp.Test 
'Continue test even though error occurs 
uftTest.Settings.Run.OnError = "NextStep"

'Run the UFT test

'Close the test and Quit UFT


'Release the resources 
Set uftTest = Nothing 
Set uftApp = Nothing 

Web development and Automation testing

solutions delivered!!