Raju
Raju

Reputation: 135

QTP to Jenkins integration help need CI

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

Upvotes: 1

Views: 2872

Answers (1)

Anders Lindahl
Anders Lindahl

Reputation: 42910

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.

Upvotes: 3

Related Questions