Skip to content

Tests

Every test in OttoTester has two sides:

  • The test case is the spec — what the test should do, in plain English. A name, a description, an intent, a priority, and a list of steps. It’s readable; it isn’t code.
  • The test script is the executable — the Playwright code that actually runs.

The planner writes the test case. The generator writes the test script from it. The executor runs the script. The two are linked but kept as separate records, so you can read and reason about what a test does without opening Playwright code.

The test-case side carries:

  • Name and description — what the scenario is.
  • Intent — the kind of test: happy-path, negative, or edge-case.
  • Priority — P0 through P3.
  • Steps — the ordered actions and checks.
  • Status — planned (case exists, no script yet), scripted (script written, ready to run), or blocked (can’t proceed — usually a real app issue the healer couldn’t get past).

Pass/fail isn’t part of the test case. That’s a result, recorded on the script side after a run.

You can change a test in four ways:

  • Edit the test’s steps. Change what the test should do, in plain words, on the Test Case view. When you save changed steps, the old script no longer matches them, so the next run that writes tests writes a new one from your steps. The test shows Write this Test until then, so you can do it straight away. If you edit the script in the same save, your script edit is kept instead.
  • Edit the test script directly. Your edit is saved as the test’s current version — the next run uses it, and if the test later fails, the healer fixes your version rather than throwing your edit away. The fastest way to fix one test.
  • Regenerate the test. Re-run planning and generation to rebuild the test from scratch — useful when the app changed enough that a patch won’t do.
  • Add a hint. A hint doesn’t change this script directly; it teaches the generator, so future generations — of this test and others — handle the page correctly.

Edit the script to fix this test now. Add a hint to stop the same problem coming back across regenerations and other tests.

To change a test for the long haul, open it from the Tests page and edit the script directly. Your edit becomes the test’s current version — the next run uses it, and if the test later fails the healer repairs your version rather than throwing your edit away.

That’s what “pin” means in practice: there’s no separate pin toggle, because every saved edit is treated as the authoritative version until the next edit or a rollback. To restore an earlier version, see version history below.

OttoTester keeps a history of each test. When a test changes — an agent updating it, or you editing it by hand — the new version is saved alongside the old ones.

For any test you can:

  • See its history — the changes to the test, newest first, with who made each.
  • Look at an earlier version — see what the test’s spec and script were at an earlier point.
  • Roll back — restore a test’s script to an earlier version. The rollback is saved as a new step, so nothing in the history is lost.

A test’s history starts when the test was made. If you delete a test and later make a new one with the same name, the new test’s history shows only its own changes, not the deleted test’s.

Nothing you or an agent does to a test is gone for good — there’s always a way back.

Most tests are ordinary tests. Some are fixtures — a test whose job is to sign in, so the tests after it start already authenticated. A fixture has the same two facets (a case and a script), but is scoped to a role. See Fixtures and test data.

Some tests need data that another test makes. “Terminate an employee” needs an active employee, so “Make the employee active” runs first, and “Create an employee” runs before that. OttoTester plans these links and runs the tests in that order. The Tests page shows them:

  • Needs is the test that has to run first. In the list, a pill counts them, such as Needs 1. Under the test’s name, a chip names the test. Click it to open that test.
  • Needed by is the tests that wait for this one. The list counts them the same way, and the chip names the first. With more than one, the chip opens Details, which lists them all.
  • Sets up, in Details, says what the test leaves in the app for the tests that need it, such as “an active employee”.

Only tests that set up data count. Every signed-in test also needs its sign-in step, so that link isn’t shown here; the Auth line in Details names the login. If a prerequisite test fails, the tests that need it are skipped, and the run says which test they were waiting for. Once the tests that need it have run, OttoTester removes what the prerequisite test made, when the test has a cleanup step.

Most tests that need the same thing share one copy of it. A test that uses its data up, such as “Terminate an employee”, gets its own copy of the tests it needs, so it gets its own employee and the others keep theirs. In a run, the test they need runs once for each copy, and its row shows each copy’s result, such as Shared: passed and For “Terminate an employee”: passed. It still counts as one test.

Deleting a test that other tests need asks first: the Delete test? dialog names the tests that need it, and its button reads Delete anyway. Once it’s deleted, those tests don’t run until another test sets up the same thing, and their Needs line shows a deleted test. Create Tests can plan a new one.

Many apps hand people a file, such as a submission package as a zip or a receipt as a PDF. A test can download that file and check what’s inside it. For example, it can check that the zip holds the expected PDFs, and that a PDF shows the data the test typed in. Describe the check in the test’s steps in plain words, such as “the downloaded zip holds application.pdf, and it shows the applicant’s name”, and the generator writes it.

The run report shows a step for each file a test opens. For a zip, the step lists the files inside it, such as Open submission.zip: 3 files: application.pdf, application.xml, manifest.txt. For a PDF, it gives the number of pages and characters. It never shows the PDF’s text.

Every downloaded file is checked for viruses before the test ends, whether or not the test opens it. The check uses the same virus scanner that checks uploaded test-data files, and the report shows a step such as Checked report.csv for viruses: clean. The test fails, and the file is never opened, when:

  • The file has a virus. The message names the file and what was found.
  • The virus scanner can’t be reached. The file can’t be checked, so it isn’t opened.
  • The file is larger than the largest file the check takes, 25 MB unless your install sets MAX_DOWNLOAD_CHECK_MB (the size in megabytes).

A download that fails or is canceled leaves no file, so there is nothing to check.

Many flows end in an email, such as a password reset, a sign-up confirmation or a receipt. A test can wait for that email, read it, and carry on: open the reset link, type in the emailed code, or check the receipt’s text.

It needs two things:

  • A test mailbox, which an admin connects once in Workspace Settings → Integrations. OttoTester reads it for the test. The test never sees the mailbox password.
  • An address of its own each run. In the test’s Test Data, add an email field whose value is the test mailbox’s address, such as casey@yourco.com, and turn on New value each run. Each run then types an address such as casey+a1f3@yourco.com, which still lands in the test mailbox, so tests never read each other’s email.

Describe the step in plain words, such as “open the reset link in the email”, and the generator writes it.

Which email a test gets. An email counts when it was sent to exactly that run’s address and arrived after the test started. When the step names a subject, only an email with that subject counts. If the test reads two emails, such as a reset email and then a receipt, it gets them in the order they arrived. The test waits up to 60 seconds for each email, or up to 5 minutes when the step says so, and its own time limit grows to fit.

The run report shows a step for each email, such as Email to casey+a1f3@yourco.com arrived: ‘Reset your password’ from no-reply@app.com after 12 s. A one-time code that appears in the subject shows as [code hidden]. The email is marked read in the mailbox and never deleted.

What OttoTester keeps. OttoTester never saves or logs an email’s text, links or codes. When the test then opens a link or types a code, the report and trace record that action, as they record any value a test types.

Attachments are checked for viruses before the test can read them, with the same check as downloaded files. An email with an infected file, a file the scanner can’t check, or a file over the size limit fails the test.

The test fails, with a message saying why, when:

  • No email arrives in time. The message names the address and the subject it looked for.
  • The address isn’t the test mailbox’s address.
  • No test mailbox is connected.
  • The mailbox refuses the saved password, or the mail server can’t be reached for the whole wait.

When a test mailbox is connected, Create Tests plans flows that send email through to the end. While it explores your app, it types an address in the test mailbox, reads the email that arrives, and follows its link or types its code. The proposed test then has:

  • An email field with the mailbox’s address and New value each run turned on.
  • A step that reads the email, such as “Read the email ‘Reset your password’ and open its reset link”, followed by the rest of the flow.

The test it writes reads the email the same way as any other test. A reset or another email sent to an existing account needs that account to be made with a test mailbox address, so the plan signs the account up first or takes the address from the test that does.

When a test’s email step fails, the fix step can look at what arrived after the failed test started, such as an email with a different subject, and change the test to match.

When no mailbox is connected, the plan stops at the app’s “check your email” message and says the email step couldn’t be checked. OttoTester never makes up what an email says.

While it explores, the AI reads the email’s text, links and code, as it reads a page’s text. OttoTester leaves them out of the run’s logs.

On the Tests page, Export Tests (the folder with an arrow down) downloads everything for the variant you’re looking at as one zip:

  • Each test, as a file with its steps, checks and settings, its Playwright script, and a readable copy.
  • The Test Data its tests read. Each Test Data Set is a CSV that opens in a spreadsheet, plus a settings file for what a CSV can’t hold, such as which columns are secret. Files uploaded to a Set sit beside it.
  • logins.yaml, with each login’s steps, sign-in page and password.
  • suites.yaml, with each suite’s name, settings and tests, in order.
  • export.json, which says which app and variant, when it was made, which OttoTester version made it, and whether secrets are in it.

Every export is locked with a passphrase you pick. Type it twice; it needs at least 12 characters. The zip holds everything, passwords included, so anyone opening it needs the passphrase. It can’t be recovered: if you lose it, export again. File names stay readable, but what’s in each file is locked.

Open the zip with Import Tests, below, or with a tool like 7-Zip. It uses AES-256, which the zip tools built into Windows and macOS may not open.

The scripts run inside OttoTester. They read their Test Data from it while they run, so a script run somewhere else needs its Test Data some other way.

Testers and Admins can export. For a Reviewer, Export Tests is grayed out. Every export is recorded in the audit log, with who exported which app and variant, and when.

An export is refused, with the reason, when the variant has no tests yet, when a file uploaded to its Test Data can’t be read, or when one of its logins can’t be read. A login saved on another install can’t be read here until you save it again on the Credentials tab.

The API also offers the whole application, every variant with its full history: POST /api/workspaces/<workspace>/applications/<application>/repo.zip, with the passphrase in the body as { "passphrase": "…" }. It is locked the same way, and Testers and Admins can download it. It holds the tests, scripts and Test Data files as the history keeps them, with no logins and no Test Data secrets. Its history can still hold a value saved before its column was marked secret.

Import Tests (the folder with an arrow up, after Export Tests) brings tests from an export into a variant, on this install or another one. Use it to move tests you wrote on one OttoTester, such as a copy on your laptop, to another, such as your team’s. To add your own Playwright tests, use Add existing tests on the Proposed tab.

  1. Pick the variant to import into. It starts on the one you’re looking at.
  2. Drop the export, or choose it.
  3. Type its passphrase and press Unlock. Nothing in the export is shown until it’s unlocked.
  4. Read what the import will do, then press Import.

What the import does:

  • Tests come in with their scripts. A test the variant already has, imported before or with the same name, is replaced. Its old version stays in its history. The rest are added. Nothing on the variant is deleted.
  • Test Data and logins the variant lacks come in. A Test Data Set the variant has no copy of is added with its rows, files and secrets. A role the variant has no login for gets the export’s login, with its sign-in page moved to the variant’s address. Test Data Sets and logins the variant already has stay exactly as they are, since their values are for this variant.
  • A test that can’t come in is held back, with the reason. For example, its script is missing from the export, or the variant’s copy of its Test Data Set has no column it reads. A test that needs a held-back test is held back too, unless the variant already has a matching test. Everything else still comes in.
  • An export from another version of OttoTester imports. One from a newer version says so, and anything this install doesn’t know about is left out.

The import stops, with the reason, when a run is going on the variant, when another copy or import into it is going, or when two of its tests have one name. It also refuses a file that isn’t an export, and one that is too large. If an import fails partway, the variant is put back as it was.

A zip of your team’s own Playwright tests isn’t an export. Dropped here, it says so; add it with Add existing tests on the Proposed tab instead, where each test becomes a proposed test.

Afterwards, Undo in the message, or Undo this import in an imported test’s Version history, removes what the import added and puts back the tests it replaced. A test you changed since the import is kept, and so is anything it still uses. Undo is offered for 30 days.

Testers and Admins can import. For a Reviewer, Import Tests is grayed out. Every import is recorded in the audit log, with who imported which export into which variant.

Two settings cap how large an export an import takes: MAX_TEST_IMPORT_MB for the file (200 MB unless set) and MAX_TEST_IMPORT_UNPACKED_MB for what it unpacks to (200 MB).

One server works on two imports at a time, counting Add existing tests on the Proposed tab too. If others are going, yours waits up to a minute. If it still can’t start, you see OttoTester is busy with other imports. Try again in a minute. and nothing is imported.

Tests are grouped into test suites — named sets you run together. A test can belong to more than one suite.