是否可以在TestCafe测试中定义步骤?

问题描述 投票:0回答:1

我的项目要求将测试分解为带有相关通过/失败结果的步骤。我找到了一些可能的旧文档: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 automated-tests e2e-testing testcafe
1个回答
0
投票

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

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

Continue test case on assert

© www.soinside.com 2019 - 2024. All rights reserved.