Can I invoke QTP test suits automatically from Maven/Hudson?

后端 未结 5 2069
伪装坚强ぢ
伪装坚强ぢ 2021-01-14 04:03

We need to integrate QTP with Hudson to automatically invoke test suites against the code deployed in Hudson. The build process is based on Maven.

Is there any plugi

5条回答
  •  伪装坚强ぢ
    2021-01-14 04:32

    I've been using this vbscript

    Dim qtApp 'As QuickTest.Application ' Declare the Application object variable
    Dim qtTest 'As QuickTest.Test ' Declare a Test object variable
    
    Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
    qtApp.Launch ' Start QuickTest
    qtApp.Visible = True ' Make the QuickTest application visible
    
    qtApp.Open "\XlTest", True ' Open the test in read-only mode
    
    ' set run settings for the test
    Set qtTest = qtApp.Test
    qtTest.Run ' Run the test
    
    qtTest.Close ' Close the test
    qtApp.Close ' Close the app
    
    Set qtTest = Nothing ' Release the Test object
    Set qtApp = Nothing ' Release the Application object
    

    which I call directly

提交回复
热议问题