如何使用CodeCeptJ和Cucumber获取场景名称
我正在使用带有黄瓜助手的CodeCeptJ。对于报告,需要在部分之前获取方案名称。 尝试使用此文档: https://codecept.io/bdd/#before 所以
Before(() => {
console.log(Scenario.name)
});
在控制台日志中没有任何东西。
I am using CodeceptJs with cucumber helper. For reporting options need to get Scenario name in Before section.
Trying to use this documentation: https://codecept.io/bdd/#before
So in
Before(() => {
console.log(Scenario.name)
});
Have nothing in console log.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)