lecture 14 of 180 completed

How parallel execution actually works

Playwright runs tests at the same time by default. Understanding workers explains both the speed and the surprises.

What you'll learn

  • What a worker is, and what it shares
  • Why test order is never guaranteed
  • Why isolated browsers still share one database

A suite that takes forty minutes gets run once a day. A suite that takes four minutes gets run on every commit. Parallel execution is the difference, and Playwright does it by default, which is why understanding it early prevents confusing failures.

A worker is a separate process running tests. Playwright starts several and hands each a share of the work. Four workers means four tests running at the same instant, in four independent browser processes.

full course

Keep reading with the full course

The Foundations track and the first lessons in each framework are free. This lesson needs full course access. A course plan includes all lessons for Playwright, Cypress and Selenium.

See course plans →