QTP to Jenkins integration help need CI

China☆狼群 提交于 2019-12-22 18:37:39

问题


We have to run QTP VB Scripts from Jenkins being as a part of CI Can any one suggest me what is the best way to integrate ?

Advanced thanks Thanks


回答1:


Jenkins can run anything you can run from the command line, and you can create 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

If you search for quicktest.application you will find plenty of examples.

You can start this procedure using a Windows Batch Command build step in Jenkins with the cscript interpreter.



来源:https://stackoverflow.com/questions/14320146/qtp-to-jenkins-integration-help-need-ci

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!