作为 CI 的一部分,我们必须从 Jenkins 运行 QTP VB 脚本 谁能建议我最好的集成方式是什么?
先致谢 谢谢
最佳答案
Jenkins 可以运行任何你可以从命令行运行的东西,你可以创建 QTP Automation objects :
Dim Application
Set Application = CreateObject("QuickTest.Application")
Application.Launch
Application.Visible = True
Application.Open "testfile", True
Dim Test
Set Test = Application.Test
Test.Run
如果您搜索 quicktest.application
,您会找到很多示例。
您可以使用 Windows 批处理命令 在 Jenkins 中使用 cscript 构建步骤开始此过程口译员。
关于maven - QTP 到 Jenkins 集成帮助需要 CI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14320146/