【问题标题】:Is there a way to define steps within a TestCafe test?有没有办法在 TestCafe 测试中定义步骤?
【发布时间】:2020-05-01 17:21:07
【问题描述】:

我的项目需要将测试分解为带有相关通过/失败结果的步骤。我找到了一些可能的旧文档:https://testcafe.devexpress.com/Documentation/Getting_Started/Test_Code_Guide/

所以列出这个:

test('My Test', async t => {
  step('Step 1', async () => {
    // ...do something
  })

  step('Step 2', async () => {
    // ...do something
  })

  ...
})

新版本的 TestCafe 是否可以执行测试步骤?

【问题讨论】:

    标签: testing automation automated-tests e2e-testing testcafe


    【解决方案1】:

    您找到的文档与开源TestCafe版本无关。

    如果断言/步骤失败,开源 TestCafe 版本不允许执行以下测试步骤。请参阅此线程以查找更多信息:

    Continue test case on assert

    【讨论】:

      猜你喜欢
      • 2020-11-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-01
      • 1970-01-01
      • 2018-10-31
      • 2022-12-25
      • 1970-01-01
      相关资源
      最近更新 更多