配置 Rational Functional Tester (RFT) 以在 Hudson/Jenkins 中运行 [英] Configuring Rational Functional Tester (RFT) to run in Hudson/Jenkins

查看:30
本文介绍了配置 Rational Functional Tester (RFT) 以在 Hudson/Jenkins 中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 Hudson,它运行良好.它构建、运行 JUnit 测试以及 CheckStyle 分析.

I've just installed Hudson and it is running beautifully. It builds, runs JUnit-tests and also CheckStyle analysis.

下一步我们将创建一个安装,安装它,然后在实际安装上运行自动化测试.如果测试失败或至少以某种方式发布结果,我希望构建失败.我想我们会设置它,以便部件定期运行或手动触发.

Next step for us would be to create an installation, install it and then run automated tests on the actual installation. I would then like to fail the build if the tests fail or at least publish the results somehow. I think we would set it up so that part runs periodically or manually triggered.

我们使用 InstallAnywhere 进行安装,使用 IBM Rational Functional Tester 进行自动化测试.

We use InstallAnywhere for installation and IBM Rational Functional Tester for automated tests.

所以问题是:有人创建了类似的设置吗?是否有任何插件、教程或其他资源可以帮助我.或者您有什么一般的提示或建议.

So questions are: anyone created a similar setup? are there any plugins, tutorials or other resource that could help me along. Or do you have any tips or advice in general.

推荐答案

我们在 Hudson 上运行了一个相当复杂的分布式构建,它的过程基本上如下:

We have run a fairly complicated distributed build on Hudson, it is a process that basically follows:

  1. 在 Windows 上测试.
  2. 在 OSX 上测试,运行代码覆盖率和将结果推送到服务器.
  3. 在 OSX Tiger 上测试.
  4. 适用于 OSX Leopard 和将构建推送到服务器.
  5. 适用于 Windows 和将构建推送到服务器.
  6. 更新产品网站.

我们不使用 InstallAnywhere 或 Rational Functional Tester,但有类似的机制来代替它们.我们发现让它在 Hudson 中发挥作用的关键是能够从命令行运行我们的各个步骤.Maven 和适当的插件使这项任务变得很短.所以我的建议就是,使用您正在使用的任何构建工具(ant,maven,?)配置它们,以便您可以运行您的理性功能测试器并从命令行安装任何地方,并将一个简单的目标传递给您的构建工具(即 mvn test 或 mvn assembly:assembly).

We don't use InstallAnywhere or Rational Functional Tester, but have similar sorts of mechanisms in their place. The key we found to making it all sing in Hudson was being able run our various steps from the command line. Maven and appropriate plugins made short work of this task. So my advice would be just that, using whatever build tool you are using (ant, maven, ?) configure them so that you can run your rational functional tester and install anywhere from the command line with a simple goal passed to your build tool (i.e. mvn test or mvn assembly:assembly).

之后,确保运行 Hudson 的任何机器都安装并配置了所有内容(即 Rational Functional Tester),以便您可以打开命令行并输入目标并正确执行测试.

After that, make sure whatever machine Hudson is running on has everything installed (i.e. Rational Functional Tester) and configured, so that you can open up the command line and type in the goal and have your tests correctly execute.

从那时起,在 Hudson 中连接起来相当简单 - 只需在配置构建时传入目标即可.

Hooking it up in Hudson from that point on is fairly simple - just pass in the goal when you configure the build.

这篇关于配置 Rational Functional Tester (RFT) 以在 Hudson/Jenkins 中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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