黄瓜之前的步骤 [英] Cucumber BeforeStep

查看:29
本文介绍了黄瓜之前的步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cucumber 中是否有等效于 AfterStep 的 BeforeStep?

Is there a BeforeStep equivalent to AfterStep in Cucumber?

如果没有 - 有没有人找到解决方案/解决方法?

If not - has anyone found a solution / workaround?

推荐答案

根据Cucumber Wiki 在 GitHub 上,答案是否定的.有Before,但没有BeforeStep.根据您要实现的目标,Before 可能会满足您的需求.

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.

这篇关于黄瓜之前的步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆