Ans: The steps are as follow:
Step 1) Open a notepad.
Step 2) Write the Code as follow,
Set vin = CreateObject(“QuickTest.Application”)
vin.Launch
vin.Visible = True
vin.WindowState = “Maximized” ‘Maximize QTP window
vin.ActivateView “ExpertView” ‘Display Expert View
vin.open “C:\Test1″, False ‘Opens test in editable mode
vin.Test1.Run ‘Runs the test
vin.Quit ‘Close QTP and save that text file with .vbs extension
Step 3) Shecdule the QTP,
– Go to Windows “Control Panel” -> “Scheduled Tasks”.
– Click on “Add Scheduled Task” in the “Scheduled Tasks”
– This will start the “Scheduled Tasks Wizard”.
– browse the .vbs file where u placed.
– after selecting, click on the proceed button & select the shedule as u want.
No comments:
Post a Comment