Get the App
SLTechnology News&Howtos  ›  Development  › 

How to invoke QuickTest test scripts through scheduled tasks

Shulou Source: shulou.com Published: 2022-06-03 06:06:00 11月16日 Update

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!

Tags: Scripts tasks tests code content articles values interests guys buddies platforms more knowledge industry information information channels channels references help run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple OPPO Reno NVidia Redmi Shulou Technology