【问题标题】:Behat 2.5 with Drupal 7 - Restart scenario execution when step failsBehat 2.5 with Drupal 7 - 步骤失败时重新启动场景执行
【发布时间】:2019-12-18 09:33:28
【问题描述】:

我有一个案例,场景中的测试步骤因旋转超时而失败。这会随机发生,因为该场景下一次运行时,案例会通过。所以我在 FeatureContext 中编写了一个@AfterStep handleSpinErrors(StepEvent $event) 自定义函数,用于检查步骤是否由于旋转超时而失败。我能够获得正确的条件,但我不确定如何在此函数中再次执行该场景。

【问题讨论】:

    标签: drupal-7 behat


    【解决方案1】:

    使用 behat 内置 --rerun 功能怎么样? http://docs.behat.org/en/v2.5/guides/6.cli.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多