【问题标题】:Protractor-cucumber : Continue remaining steps execution after assert failed in between instead of skipping the steps,Protractor-cucumber :在断言失败后继续执行剩余的步骤,而不是跳过这些步骤,
【发布时间】:2020-08-16 17:37:27
【问题描述】:

我正在使用量角器黄瓜框架。但是,如果场景中的任何步骤失败,则会跳过其余步骤。我只想忽略该失败,并希望继续执行场景中的剩余步骤。

例如: 场景大纲:测试场景

给定用户导航到测试站点 当用户单击标题链接时 然后先然后语句 Then Second then 语句

在这种情况下,如果第一步断言失败,那么它将跳过第二步语句执行。但我想忽略并继续执行第二步语句。

请告诉我如何在量角器黄瓜中实现这一点。提前致谢。

【问题讨论】:

    标签: angular automation protractor cucumber


    【解决方案1】:

    使用 Chai-as-promised 试试这个

    expect(condition).to.eventually.equal(something).and.notify(next);

    【讨论】:

      猜你喜欢
      • 2018-06-12
      • 1970-01-01
      • 1970-01-01
      • 2018-01-01
      • 2019-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多