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.
Export your plans
Section titled “Export your plans”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:
npx allgreen export playwright-testsThis 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):
npx allgreen export playwright-tests checkout add-to-cartThe 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.
What the export contains
Section titled “What the export contains”| 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.
How a developer runs it
Section titled “How a developer runs it”Hand the folder to a developer. They need Node, then:
npm i -D @playwright/test@1.65.1npx playwright installnpx playwright testIn 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.
After the export
Section titled “After the export”The export is a one-way copy: after you change a plan, export again. See For developers for the Playwright side.