gpt4 book ai didi

jbehave - 如何在 JBehave Story 中评论故事情节

转载 作者:行者123 更新时间:2023-12-02 04:00:46 25 4
gpt4 key购买 nike

我的故事情节如下

Scenario: 

Given user is on Login page

When user types login details with xxx as user xxx as passwd and submits

Then dashboard is shown

请告知,如何注释或不运行一行(例如:2行不应在1直接3行之后进行测试)

最佳答案

您想暂时禁用场景中的某个步骤吗?使用前缀 "!-- " 注释该行,例如

Given user is on Login page
!-- When user types login details with xxx as user xxx as passwd and submits
Then dashboard is shown

!-- 后面的空格是强制性的。谢谢@flaz14

请参阅有关 JBehave 的文档:http://jbehave.org/reference/stable/grammar.html

关于jbehave - 如何在 JBehave Story 中评论故事情节,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14153586/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com