How to invoke QuickTest test scripts through scheduled tasks
This article mainly introduces how to call the QuickTest test script through the planned task, the article is very detailed, has a certain reference value, interested friends must read it!
We can write a Vbs script to run the test script that calls qtp directly under the Windows platform, or we can add this script to the scheduled task and execute it on a regular basis.
The script is as follows:
--
The copy code is as follows:
Dim qtApp
Dim qtTest
Dim qtResultsOpt
Set qtApp = CreateObject ("QuickTest.Application")
QtApp.Launch
QtApp.Visible = True
QtApp.Open "C:\ QuickTest Professional\ tests\ test1\ test1.usr", True
Set qtTest = qtApp.Test
QtTest.Settings.Run.OnError = "NextStep"
Set qtResultsOpt = CreateObject ("QuickTest.RunResultsOptions")
QtResultsOpt.ResultsLocation = "C:\ QuickTest Professional\ tests\ test1\"
QtTest.Run
Set qtResultsOpt = Nothing
Set qtTest = Nothing
Set qtApp = Nothing
The above is all the contents of the article "how to invoke the QuickTest test script through scheduled tasks". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!