【问题标题】:How to match scenario outline with in path parameter in a given clause BDD如何将场景大纲与给定子句 BDD 中的路径参数匹配
【发布时间】:2021-02-03 18:45:30
【问题描述】:

我正在努力在步骤定义中匹配这个,请帮助

When I perform a GET request using "/urlserver/custom/{<userID>}/address"
Then.....

Examples:
    | userID |
    | user1  |
    | user2  |

我想捕获这个 when 子句,然后能够将用户 ID 传递到 url 中的路径参数中。

【问题讨论】:

  • "/urlserver/custom/{}/address"

标签: bdd gherkin


【解决方案1】:

URL 参数不需要大括号:

When I perform a GET request using "/urlserver/custom/<userID>/address"
...

请注意,{&lt;userID&gt;} 不起作用,但 &lt;userID&gt; 应该。

【讨论】:

    猜你喜欢
    • 2015-01-29
    • 2021-04-29
    • 2021-08-31
    • 2021-07-27
    • 2020-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多