黄瓜前步
问题描述:
是否有一个BeforeStep等价于Cucumber中的AfterStep?
Is there a BeforeStep equivalent to AfterStep in Cucumber?
如果没有 - 有人找到了解决方案/解决方法?
If not - has anyone found a solution / workaround?
答
根据 Cucumber上的Hooks文档Wiki上的GitHub,答案是没有。有之前
但没有 BeforeStep
。根据你想要实现什么,之前
可以做你需要的。
According to the documentation on Hooks on the Cucumber Wiki on GitHub, the answer is no. There is Before
but no BeforeStep
. Depending on what you are trying to achieve, Before
might do what you need.