我可以从Maven/Hudson自动调用QTP测试服吗? [英] Can I invoke QTP test suits automatically from Maven/Hudson?

查看:80
本文介绍了我可以从Maven/Hudson自动调用QTP测试服吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要将QTP与Hudson集成在一起,以针对Hudson中部署的代码自动调用测试套件.构建过程基于Maven.

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.

是否有任何插件或实现此目的的东西?我们听说过适用于Hudson的Groovy插件;我们可以用Groovy脚本执行它吗?

Is there any plugin or something to achieve this? We heard about the Groovy plugin for Hudson; Can we execute it with a Groovy script?

推荐答案

我们已经使用VBScript,JScript和RunTestSet实用程序以3种方式实现了此集成.在POM中,我们需要这样指定.

We have implemented this integration in 3 ways, using VBScript,JScript and RunTestSet utility. In POM, we need to specify like this.

  <build>
  <plugins>
  <plugin>    
    <artifactId>maven-antrun-plugin</artifactId>  
    <version>1.3</version>    
    <executions>      
      <execution>        
      <phase>test</phase>        
      <configuration>     
      <tasks>    
     <property name="vbs.script" value='qtp.vbs'/>
                <exec executable="WScript.exe" spawn="true" resolveExecutable="true">
        <arg line="${vbs.script}"/> 
    </exec>
                       </tasks>
     </configuration>       
     <goals>          
        <goal>run</goal>        
     </goals>     
   </execution>    
 </executions>  
 </plugin>
</plugins>
</build>

使用RunTestSet,

Using RunTestSet,

<exec executable="location of RunTestSet.exe" output="outputFolder"> 
<arg line="/s:qc url"/>
<arg line="/n:Domain"/> 
<arg line="/d:Project"/> 
<arg line="/u:username"/> 
<arg line="/p:password"/>  
<arg line="/f:TestSetFolder"/> 
<arg line="/t:TestSet"/> 
<arg line="/l"/>  
</exec>

关于,
拉米亚.

Regards,
Ramya.

这篇关于我可以从Maven/Hudson自动调用QTP测试服吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆