本文介绍了黄瓜前步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一个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.
这篇关于黄瓜前步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!