【发布时间】:2021-02-12 01:20:59
【问题描述】:
因此,我们的测试环境会根据我们正在开发的版本动态变化。
例如:
- 对于 abc 版本,测试环境的 URL 是 feature-abc.mycompany.com,对于 xyz 版本,测试环境的 URL 是 feature-xyz.company.com 等等。
- 暂存也是如此:release-abc.mycompany.com、release-xyz.mycompany.com 等。
- Production 只是静态 URL:platform.mycompany.com
话虽如此,我需要指定我希望使用 Python 的行为 BDD 框架在哪个 URL 上执行测试。
具体来说,我正在寻找 cucumber 对 Ruby 使用的等效功能: features/support/env.rb 文件来定义多个 URL(qa、staging、production 等),以便在命令行(终端)上我只想说 xyz(有 qa = feature(the release).mycompany.com
类似:How can I test different environments (e.g. development|test|production) in Cucumber?
【问题讨论】:
标签: python cucumber bdd python-behave rubypython