Skip to content

Reference docs

A reference doc is a file you attach to an application. The file’s text is extracted and stored on the application, and OttoTester feeds it into the planner on every run.

Use them for anything the planner would benefit from knowing that isn’t easy to convey in the Agent Prompt:

  • A product spec describing what the app is supposed to do.
  • A list of test scenarios the team has agreed should be covered.
  • A .feature file in Gherkin notation, if you already write one.
  • A help article explaining how a feature works.

The Agent Prompt is still the right place for a one-line steer — “focus on checkout” — but anything richer belongs in a reference doc.

Three levels can hold context, and OttoTester puts reference docs at the application level on purpose:

Where What lives there
Application Reference docs, application description
Variant Base URL, browser settings, auth fixtures
Template Saved run configuration, including the Agent Prompt

A product spec or a feature file describes the app’s contract uniformly — staging and prod should be tested against the same spec. Attaching docs to the application means you upload once and every variant benefits. Environment-specific things — credentials, browser timing — already have natural homes on the variant.

  • .txt — plain text.
  • .md — Markdown.
  • .csv — rows from a spreadsheet, saved as text. Save it as UTF-8 so accented letters come through.
  • .docx — Word documents. Text is extracted server-side; formatting is dropped.
  • .xlsx — Excel workbooks. Each sheet is read as a table under the sheet’s name, and a formula gives its last saved result. Old .xls files aren’t read.
  • .pdf — machine-readable PDFs. Scanned or image-only PDFs aren’t read.
  • .feature — Gherkin / Cucumber feature files.

You can add any of these as an uploaded file, or by pasting a link to one (see below). A link can also point to a normal web page — OttoTester reads the page’s main content.

On the Tests › Proposed tab, press Manage beside Sources, then Upload document to pick files. You can also drop files on the box that appears, or on the list once it has documents. OttoTester extracts the text immediately and the file appears in the list with its name, size, and the date it was uploaded.

To replace a doc, delete the old one and upload the new version. To remove one, click the row’s delete button — the doc is gone from the application’s context the next time the planner runs. Proposed tests it produced are removed with it, except ones you edited or built a test from: those are kept and marked document deleted.

The extracted text is what OttoTester stores; the original file isn’t retained. If you want to revise the wording without re-uploading, the better path is to edit the source doc on your side and re-upload — that keeps your source of truth and OttoTester’s view in sync.

After upload, OttoTester reads the document with an AI model to find its requirements and suggest tests. Sometimes the model doesn’t answer or its provider is busy. When that happens, OttoTester tries once more on its own, 2 minutes later. The row shows an amber Retrying pill with the reason, for example “No response from model, retrying in 2 mins”. There is nothing to do while it waits.

If the second try also fails, the row shows a red Failed pill. Click it to see why, then click Retry to read the document again. A failure that a retry can’t fix, such as an AI key the provider rejected, shows Failed right away.

A document with more than a handful of requirements is read a few requirements at a time. Each round reads the whole document but writes tests only for its own requirements, so nothing loses context. The row shows how far it has got, for example “Reading · 40 of 120 requirements”, and tests from finished rounds appear on the Proposed tab right away. A document with no headings or requirement IDs first shows “Finding requirements…” while OttoTester works out what they are.

If a round fails both of its tries, the row says how far the read got and keeps those tests. Click Read the rest to carry on from where it stopped. It does not start over or redo finished rounds.

Sometimes the spec you want to feed OttoTester already lives at a URL — a Confluence or Notion page, a published requirements doc, a PDF on SharePoint. Instead of downloading and re-uploading it, click Add link next to Upload document and paste the link.

  • The link can point to a web page or to any supported file (PDF, Word, Excel, Markdown, text, CSV, .feature).
  • For a web page, OttoTester saves its main content. For an article, that’s the article body, without the site’s menus, sidebars, cookie banners or footer. For a short page that isn’t an article, such as a help page or a list of links, it’s the page’s own text, without the site’s banner, menus and footer. This is best-effort; some unusual page layouts won’t read cleanly, and you can always fall back to uploading.
  • Some pages draw their text with JavaScript after they load, so the page OttoTester downloads has no text in it. For those, OttoTester opens the page in a browser, lets it finish drawing, and saves what appears, which takes a few seconds longer. If a page still can’t be read, for example because it needs a sign-in or a site’s bot check blocks it, you’ll see “That page shows its text only in a web browser, and we couldn’t read it. Save the page as a PDF and upload that instead.” Print the page to PDF from your own browser and upload the file.
  • OttoTester reads the link once and saves a copy of its text. The doc row has a link icon, and its Link row shows the link itself and “Saved <date>”.

It’s a snapshot — Refresh to update it

Section titled “It’s a snapshot — Refresh to update it”

Adding a link takes a one-time snapshot. OttoTester does not silently re-read the link later, so a link that later changes or stops working can never break a test run. When you want the latest, use the row’s Refresh from link action: it re-reads the page and updates the saved copy and date, and nothing else. It doesn’t regenerate your proposed tests and makes no AI calls.

If a Refresh finds the content has changed, the row shows a small note — “Content changed since these proposed tests were made.” — with a one-click Re-propose that keeps any proposed tests you’ve edited or built a test from. If a Refresh can’t read the link (it’s offline, needs a sign-in, or 404s), your previous saved copy is left exactly as it was.

Adding a link that’s already saved for this app doesn’t make a second copy — OttoTester tells you it’s already there and points you to Refresh instead.

Which sites a link can reach is set by your Global Admin, on Global Admin → Runtime Config → Links OttoTester can read:

  • Public sites only, or public sites and your internal network (private addresses such as 10.x.x.x, 172.16.x.x to 172.31.x.x and 192.168.x.x). A copy of OttoTester you install yourself starts with your internal network allowed; our hosted service reads public sites only.
  • Always allow lists sites to read even when they are inside your network, and Never read lists sites to refuse, public or internal. Write one site per line: a name (wiki.corp.local), a name with * standing for any part of it (docs-*.corp.local, or *.corp.local for every name ending in .corp.local), or an address range (10.20.0.0/16). If a site is on both lists, it isn’t read.
  • Some addresses are never read, whatever the settings say: the ones cloud servers use to hand out their own passwords. Addresses that lead back to the computer OttoTester runs on, such as 127.0.0.1, are read only if their address range is on Always allow.

A link that isn’t allowed gets the same message as one that can’t be opened: “We couldn’t open that link — it may need a sign-in, or it’s a kind of page we can’t read yet.” If you expected the link to work, ask your Global Admin to check these settings.

When a reference doc is uploaded, OttoTester reads it and suggests tests from it. The proposed tests appear under Tests → Proposed, where you can review, edit, archive, or add your own. See Proposed tests.

They aren’t run — they’re ideas the planner pulls from while planning, so the tests it writes line up with what your docs describe.

Each document row has a Counts as line with three choices:

  • Requirements: a spec, user stories, acceptance criteria or a compliance standard. Its parts are things the app must do.
  • Defects: an exported bug list, QA findings or an incident write-up. Its parts are bugs that must not come back.
  • Reference: a guide, help pages, a manual or an existing test plan. It describes how the app works and only produces proposed tests.

When OttoTester reads a document, it suggests one of the three and says why, for example “Suggested by OttoTester: this reads like a how-to guide.” The suggestion is selected until you pick. Click any choice to set it, including the one already selected, which confirms the suggestion. The note then reads “You chose this.”

A document that has not been read yet, whose read failed, or that was read before this setting existed shows Reference with no note. Nothing counts as requirements or defects until a read or a person says so.

Changing it takes one click. It does not read the document again, makes no AI calls, and leaves the document’s proposed tests as they are. A document that mixes kinds gets one label: pick what most of it is.

When a read finishes, a Review what OttoTester found window opens on the Tests page. It does this for every document, whatever it counts as. If you are not on the page, it opens the next time you are. If several documents are waiting, they open one after another.

The window lists what OttoTester found in the document, each with the document’s own words beside it. Pick what the document is at the top, clear anything wrong, and click Confirm. Cleared items lose their proposed tests. For a Requirements or Defects document, the items you keep start counting toward coverage. A Reference document’s items are called topics and never count.

Later closes the window until your next visit. The found · Review label on the document’s row opens it any time.

If the list was found before OttoTester kept the document’s words, or the document changed since, it can’t be confirmed. Click Read this document again to read just that document. Your other documents and their proposed tests stay as they are.

If your team already has Playwright tests, OttoTester can turn each one into a proposed test. On the Tests › Proposed tab, open Manage beside Sources, then press Add existing tests, the last button in the row.

  1. Zip the folder that holds your tests and the code they use, with your playwright.config, tsconfig.json and package.json, and drop the zip in the window. Leave out node_modules. Files like .env are left out for you.
  2. OttoTester reads the zip and shows how many test files and tests it holds, and says when some may be missing, or missing checks. Your code is read, never run.
  3. Choose Each test file to keep a file’s tests together in one proposed test, or Each test to get one proposed test per test(...). Then press Add.
  • Include your playwright.config, tsconfig.json and package.json, so OttoTester can follow your imports.
  • Keep the config settings that pick test files, such as testDir and testMatch, as plain values. A value worked out with code can’t be read.
  • Write each import’s path as fixed text, such as import { signIn } from './helpers'. import and require both work. A path put together while the test runs can’t be followed, so the code it leads to isn’t shown to the AI model.
  • Zip only the tests you want, and the helpers they use. A smaller zip is read faster and more completely.
  • A test that uses very large shared helpers may be too long for the AI model to read in full. A model that can take more text at once helps.

The zip appears in the source list as Existing tests and is read in rounds, like a long document. Each proposed test keeps every check its test makes as an expected result, and adds none, and its Source line names the file and, for Each test, the test’s own title. Nothing is merged or dropped: two tests that read the same stay two proposed tests. A test written inside a loop becomes one proposed test whose steps say it repeats for each item. The exception is a test that runs both signed in and signed out, such as one in a loop over the two: the first time it is read, it becomes two proposed tests, one signed in and one signed out, each with the checks made that way. The zip’s row then says so. A test that already has a proposed test stays one.

A test created from one checks exactly what your own test checks, and signs in only when yours does. It is as strict as yours but for two things: a check in a helper of yours that always runs may be put under a condition in the new test, and nothing refuses it. The run’s log counts them. And a check your test repeats for each item of a list may be made for fewer of them. Each check is a step of its own in the run report, so you can match them one by one. OttoTester chooses how to find things on the page, and fixes steps that don’t work in the app. A value its steps type or pick is Test Data, so you can change it. A value it only checks stays as your test has it. What you change yourself, in the proposed test, the saved test or its script, stays as you made it.

While the AI model writes or fixes such a test, it is shown the code of your test and what that calls, found by its imports and read again from the zip each time. Code reached through a path put together while the test runs, and steps a test reaches by their words, aren’t shown. It is told to do what your test does, such as opening a section only when it is closed, and to look for the words your test looks for. It isn’t held to that beyond your checks, so read what it wrote. Once you delete the zip, none of your code is shown.

Comments are left out of it, and so is what looks like a password, a key or a token. That can’t catch every secret, and the code is sent to your AI supplier, and to your tracing tool if you use one, so don’t keep live secrets in your tests.

When something needs a look, the zip’s row has an amber line, for example 33 not proposed · Check this source. Open it to see what may be missing and how to fix it, and every test that couldn’t be turned into a proposed test, grouped by file with the reason: for example, one that uses a file the zip doesn’t include. A file whose tests can’t be told apart is listed as a whole file. The line also shows when OttoTester can’t be sure where an import leads, when a test’s code was too long for the AI model to read all of it, and when the zip was added before OttoTester could follow every import. A proposed test written without all of its code, or one the AI model left a check out of, says so under Source. A model that can take more text at once reads longer code.

Your Playwright config says which files hold tests. When it can’t all be read without running it, or the zip has none, OttoTester takes the files with Playwright’s usual names (*.spec.* and *.test.*) in the test folder it names, then every other file in the zip that makes tests with Playwright’s test. So a setup file that signs in, or tests in a folder of their own, are still found. It can also find tests your config skips on purpose; leave those unpicked. Only files that use Playwright’s test, themselves or through a helper they import, are counted, so unit tests for other tools, such as Jest, are left out. A file with a usual name that gets its test from another package, such as a test kit of your own, is listed and not proposed.

Reading the zip again updates each proposed test instead of adding another, except one you edited, which is left as you left it. The zip doesn’t count toward the 25 MB of uploaded files per app.