如何将服务器 URL 传递给由 Rake 在 Thoughtworks Cruise 下运行的 Watir Ruby 单元测试
我目前正在为我的 .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!
我将服务器 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?