小编tfa*_*ade的帖子

如何在python行为.feature文件中传递像列表或字典这样的对象

如何在行为 .feature 文件中将列表或字典之类的对象作为参数传递,以便我可以在我的 python 函数步骤中使用该参数?请参阅下面我尝试实现的示例:

Feature:
Scenario: Given the inputs below
    Given a "<Dictionary>" and  "<List>"
    When we insert "<Dictionary>" and  "<List>"
    Then we confirm the result in the database

    Examples: Input Variables
        |Input1                    |Input2    |
        |Dictionary(json)          |List      |
Run Code Online (Sandbox Code Playgroud)

python-behave

6
推荐指数
1
解决办法
4006
查看次数

标签 统计

python-behave ×1