admin管理员组

文章数量:1336175

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?

本文标签: javascriptPlaywright test not running in parallelStack Overflow