Skip to content

Export for continuous integration

To run your plans on a server at each change of the site (continuous integration, CI), export them as a standard Playwright project. Any developer and any CI service knows how to run it. To run the plans themselves in CI instead, see For developers.

On the Plans page, choose Export to Playwright. In a browser, click Download: the zip, named after your project (demo-shop-playwright.zip), goes to your browser’s downloads. In the desktop app, click Choose a folder…, then Export: Allgreen saves the zip there, never over another file, and Show in its folder opens it.

From the command line, in the project folder:

Terminal window
npx allgreen export playwright-tests

This writes every plan to a new folder called playwright-tests. The folder must be new or empty.

To export only some plans, name them (the plan’s file name, without .json):

Terminal window
npx allgreen export playwright-tests checkout add-to-cart

The sign-in plan is always exported too. The step names in the tests are in English; add --lang fr (or de, es, it) for another language. See the command line reference.

File or folder What it is
playwright.config.ts The project settings: site address, browsers and devices, new tries, patience, stop after failures, site password.
tests/ One test file per plan, each step named with its sentence. Banners to close and page errors from Banners and surprises are included.
files/ The files your plans upload, if any.
references/ The reference images of your “looks the same” checks, if any.
README.md How to install and run the tests, and which secrets to set.
.gitignore Leaves Playwright’s results out of Git.

Secret values are never exported. Each secret becomes a setting the developer gives when running the tests: the secret PASSWORD becomes the environment variable ALLGREEN_PASSWORD. The exported README.md lists them.

Hand the folder to a developer. They need Node, then:

Terminal window
npm i -D @playwright/test@1.65.1
npx playwright install
npx playwright test

In CI, they set the ALLGREEN_… variables as the service’s secrets, and add these commands to the pipeline. For a JUnit or HTML report, they add a Playwright reporter: npx playwright test --reporter=junit.

The export is a one-way copy: after you change a plan, export again. See For developers for the Playwright side.