My goal is to run a test for over 1000 URLs as quickly as possible. However, I am encountering a timeout error when the number of URLs exceeds 10. It seems like the tests are running sequentially, causing delays. Is there a way to run these tests in parallel?
const queries = getQueries();
for (let i=0; i < queries.length; i++){
test.describe('LinkBroken'+ i.toString(), () => {
test(queries[i].split('\t')[2], async ({ page }, testInfo) => {
const url = getUrl(queries[i])
await page.goto(url);
const locators = page.locator('#b_content').locator('a:visible');
const locator_count = await locators.count()
for (let i=0; i <locator_count; i++){
const link = locators.nth(i);
await link.highlight();
await link.click({trial:true});
}
});
})
}
I attempted to configure Playwright with fullyParallel: true
and workers: 10
, but it did not resolve the issue.