admin管理员组文章数量:1296841
Context: We're using behave
to test a family of hardware devices -- we'd like to use tags specify whether a Feature or Scenario applies to all variants, or to one or more variants.
Problem: there is (potentially) a large number of attributes for each hardware variant, so rather than specify them all on a command line, we'd like to use a configuration file to define the tags specific to one model, so we could do something like:
% behave --D SKU=ULTRA_FIZZY_V2
... and list all the appropriate tags in a file (presumably named "ULTRA_FIZZY_V2.tags" or some such). But I haven't figured out how to define tags in a file.
Suggestions? (BTW: I've switched over to behave 1.2.7 if that makes a difference...)
UPDATE - simplification
Is there a way to load a custom configuration file at startup, e.g. one that might contain:
#file: my_config.ini
[behave]
tags = "*FIZZY*"
... that I could load in the environment.py file?
本文标签: pythonbehave setting tags from a configuration fileStack Overflow
版权声明:本文标题:python-behave: setting tags from a configuration file? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741644612a2390113.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论