【发布时间】:2022-09-28 20:25:53
【问题描述】:
对于 Behave 中的一个步骤,是否有一些变量可以用来记录当前步骤文本? 例如
当我跑步时
@when(u\'I go running\')
def step_impl(context):
log(f\'Behave().currentStepText}\')
...
标签: python jbehave python-behave
对于 Behave 中的一个步骤,是否有一些变量可以用来记录当前步骤文本? 例如
当我跑步时
@when(u\'I go running\')
def step_impl(context):
log(f\'Behave().currentStepText}\')
...
标签: python jbehave python-behave
您可以将其他问题中提到的内容应用于您的问题:How to get the current behave step with Python?
【讨论】: