【问题标题】:Integrate QTP tests with TFS 2010将 QTP 测试与 TFS 2010 集成
【发布时间】:2011-06-14 00:53:48
【问题描述】:

是否有人将使用 QTP(关键字驱动自动化)创建的测试与 Team Foundation Server 2010(甚至 2008)集成在一起?

我们的组织正计划实施 TFS 2010 作为所有工程相关工作的首选工具,但我们目前使用的测试框架是使用 QTP 开发的。如果我现在使用 TFB 创建构建并希望执行 checkin-build-test 的持续集成过程,有什么方法可以实现它吗?

【问题讨论】:

    标签: testing tfs continuous-integration qtp


    【解决方案1】:

    这是一篇博文,展示了如何使用 QuickTestPro COM 自动化 (QuickTest.Application) 从 MSBuild 脚本调用测试:http://web.archive.org/web/20080614153438/http://dotnet.org.za/cjlotz/archive/2007/09/17/part-7-continuous-integration-the-qtpbuild.aspx

    一旦您创建了脚本并安装了正确的 pre-req,看起来就像这样简单:

    <Exec Command="cscript.exe /nologo $(DOUBLE_QUOTES)$(QtpTestCasesFolder)\$(CCNetProject).TestCases.txt$(DOUBLE_QUOTES) $(DOUBLE_QUOTES)$(QtpOutputFolder)$(DOUBLE_QUOTES) $(DOUBLE_QUOTES)$(QtpOutputFolder)\$(QtpResultsSummaryFile)$(DOUBLE_QUOTES) $(DOUBLE_QUOTES)$(QCServer)$(DOUBLE_QUOTES) $(QCUser) $(QCPassword)" ContinueOnError="true">
        <Output TaskParameter="ExitCode" ItemName="QtpExitCode"/>
    </Exec>
    

    【讨论】:

      猜你喜欢
      • 2016-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多