如何将服务器 URL 传递给由 Rake 在 Thoughtworks Cruise 下运行的 Watir Ruby 单元测试

发布于 2024-08-14 05:17:04 字数 186 浏览 3 评论 0原文

我目前正在为我的 .net Web 应用程序构建一套 Watir 测试。

我已使用 Rake 将 watir 测试连接到 Thoughtworks Cruise 持续构建中。

将多个服务器 URL 传递给 watir 测试以便我可以针对多个不同环境运行测试的最佳方法是什么?例如构建、测试、uat 等。

干杯!

I'm currently building a suite of Watir tests for my .net web application.

I have wired the watir tests into the Thoughtworks Cruise continuous build using Rake.

What is the best way to pass a number of server urls to the watir tests so I can run the tests against a number of different environments? e.g. build, test, uat etc.

Cheers!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

另类 2024-08-21 05:17:04

我将服务器 URL 简单地存储在变量中。如果有多个, array 可能会很有用。您可以将它们存储在文件中(YAML 格式很流行)。您想要解决的问题是什么?网址变化很大?

I store server URLs simply in a variable. If there are more than one, array could be useful. You can store them in a file (YAML format is popular). What is the problem you are trying to solve? URLs are changing a lot?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文