Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to invoke QuickTest test scripts through scheduled tasks

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report