How-to
Test library
Updated
On this page
A saved test is a run setup you keep in the Test library and run again with one click. Saving one takes about 2 minutes. It keeps the repository and branch, the tests, the addresses, the pages, the options and the saved test account, by reference. It never keeps a commit or a secret: each run tests the latest commit on the branch.
Saved tests belong to your whole company. Each one shows who saved it and when.
The Test library comes with the one Run tests form, which every company has. A company admin can turn it off in Admin › Overview under Save runs as tests. Then Run tests opens its step-by-step form, nothing new can be saved, and saved tests can't be run, here or from Copilot. If Zof can't read the setting, it shows the step-by-step form too.
Save a test
Save a setup in one of three places:
- On the review step of Run tests, choose Save as a test and name it.
- On a finished run's page, choose Save this setup.
- In the Test library, choose New test, fill in the form, then choose Save test.
Saving doesn't start a run. If the same setup is already saved, Zof says "Same as" and its name. Choose Update it to save over it, or Save as new to keep both.
Run a saved test
Choose Run on its row. Zof shows what the run costs. Confirm, and it starts. While Zof can't read the cost, Run waits.
When the run needs an answer first, it opens in Run tests instead, filled in at the review:
- the saved test account was removed or changed;
- a load or security test needs your authorization, which it asks for each run;
- its repository isn't connected to Zof any more;
- a test in it isn't offered any more, or isn't offered right now;
- a setting is secret. Zof asks for it each run and never saves it.
Change and run always opens the filled-in form, so you can change something first. If you change its repository, branch, addresses or tests, or pick a pull request or a commit, the run doesn't count as the saved test, and the form says so. Save the test to change it.
A disabled test, or one whose application is archived, doesn't run. Enable the test or restore the application first.
You can also ask Copilot, for example "run my checkout smoke test". It finds the test by its name and shows a card with the same setup and cost. Nothing runs until you press Confirm, and the same checks apply. See Ask Copilot.
Edit or archive a test
Edit changes the saved setup. Past runs keep what they ran. The row shows who changed it last and when. Archive takes the test out of the library; its runs and results stay. You need permission to edit tests for both.
A test from before saved setups shows Not set up yet. Choose Set up to give it one. Copilot lists these tests too, marked as not set up, but can't run one until it's set up.
The Written by Zof tab lists tests Zof wrote for you. Save one to make it a saved test. You can't schedule a saved test yet.
Check that it worked
Your test is in the Test library with your name and when you saved it. After a run, its row shows the result and when it ran. If Zof can't read the last run, the row says so.