【问题标题】:Continue Execution of next steps in Serenity Jbehave BDD by capturing failure reason for the failed steps通过捕获失败步骤的失败原因,继续执行 Serenity Jbehave BDD 中的后续步骤
【发布时间】:2019-08-13 06:14:13
【问题描述】:

我目前正在使用 Serenity Jbehave BDD 框架来自动化我的测试用例。我需要有关在失败步骤时继续执行的信息。

即使当前步骤在我的场景中失败,我也必须继续执行下一步。

请告诉我如何使用 Serenity Jbehave 框架来实现这一点。

我也在使用 Junit 和 Selenium。

ignoreFailureInStories=true - 此配置将忽略故事级别而不是步骤级别的故障。我想要步骤级别的解决方案。

【问题讨论】:

标签: java selenium junit jbehave serenity-bdd


【解决方案1】:

如果您需要在失败的步骤后继续,您应该使用软断言。

【讨论】:

  • 我们如何在 Serenity jbehave 框架和 Junit 中使用软断言概念?
猜你喜欢
  • 1970-01-01
  • 2021-07-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-08-16
  • 2014-11-05
相关资源
最近更新 更多