javascript - Playwright test not running in parallel - Stack Overflow

I have a single Playwright test setup to run multiple times with different parameters.const chars = [{

I have a single Playwright test setup to run multiple times with different parameters.

const chars = [
  {name: "John"},
  {name: "Jane"},
];


chars.forEach(async char => {
  test(`Test for ${char.name}`, async ({ page }) => {
    await runTest(page, char.name);
  });
});

I have a list of characters, which a test is run for each. However, these tests happen in sequence and not in parallel. They are all in one file.

In the playwright.config.js fullyParallel: true, on each project such as chromium and it is also set to true in defineConfig.

If you need more information, please ask. How can I run these in parallel?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742402387a4437171.html

相关推荐

  • javascript - Playwright test not running in parallel - Stack Overflow

    I have a single Playwright test setup to run multiple times with different parameters.const chars = [{

    14小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信