Variants
What a variant is
Section titled “What a variant is”An application in OttoTester is a product you test. A variant is one deployment of that product. One application can have many variants.
You’ll usually have:
- One variant per environment — dev, staging, prod. Same app, different URLs.
- Sometimes one variant per section of a large app — for example, a separate variant for an admin portal that lives at its own URL.
Each variant has its own base URL, and OttoTester treats it as a self-contained testing target.
What a variant holds
Section titled “What a variant holds”A variant owns everything tied to its deployment:
- Base URL — where the planner starts exploring.
- Browser settings — viewport, locale, and timezone. (Pacing for apps that rate-limit fast automation — slow-motion between actions and a pause between tests — is set on the run templates, not the variant. A new variant’s templates start with a 1-second pause between steps and a 2-second pause between tests; set either to 0 to turn it off.)
- Auth fixtures — how OttoTester signs in. See Fixtures and test data.
- Discovered pages — the pages the planner found while exploring, with snapshots the generator and healer reuse.
- Test cases — everything the planner has generated for this variant.
A test run always targets exactly one variant.
How tests name the variant’s pages
Section titled “How tests name the variant’s pages”Saved tests and test plans name a page of the app by its path, not its full address. A plan step says “Navigate to /login”, and a test opens appUrl('/login'). Each run puts the path under the address it is testing, and keeps that address’s own path: on https://example.com/app/, /login opens https://example.com/app/login. When the base URL is a single page, such as https://example.com/form.html, / opens that page.
Checks on a page’s address work the same way, including checks on only part of it. When OttoTester writes one, it leaves your app’s own address out, so the same check works at any address.
Most runs test the variant’s base URL. A run started for a deployment tests the deployment’s address instead, and the same tests open the same pages there. Sign-in pages under the variant’s base URL move with it. A sign-in page on another site, such as an outside sign-in provider, opens where it was saved.
A saved test or plan step that still has the base URL written in full is changed to paths when OttoTester starts.
Configuring runs and notifications per variant
Section titled “Configuring runs and notifications per variant”Three settings vary per variant: the GitHub deployment rules that start runs against this variant, the CI step that starts runs from your own pipeline, and any Slack channel override that steers where this variant’s notifications go. All three sit on the variant’s own row on the Apps page, under its application: click GitHub deployment rules, CI step or Notification overrides on the row to open a drawer for that variant’s settings. CI step is always there, since it needs no workspace connection. The other two show once the workspace has GitHub or Slack connected.
-
GitHub deployment rules — rules that fire a run against this variant when your deploy platform reports a successful deployment to GitHub. On the Apps page, click GitHub deployment rules on this variant’s row. The drawer lists every rule pointing at this variant’s Replay templates. Click Add trigger rule, pick a template, optionally set an Environment filter (
Preview,Production, or any label your deploy platform uses), save. OttoTester runs the template against the deploy’s actual URL — not the variant’s static default — so a PR’s preview deploy gets tested against the preview. Rules live per-variant because each variant has its own templates; the rules you write here only fire against this variant. See Connect to CI/CD for the three customer flavors (PaaS like Vercel or Netlify, GitHub Actions with Environments, bare GitHub Actions deploy steps). -
CI step — a step you copy into your own pipeline (GitHub Actions, GitLab, CircleCI, Jenkins, anything that can call an API) to start a run against this variant and wait for the result. Click Configure next to CI step on this variant’s row, pick a suite and which address to test, and copy the snippet. See Run OttoTester from your CI for the walkthrough.
-
Notifications — per-variant overrides on top of the application’s default Slack channel. Click Notification overrides on this variant’s row to open its overrides drawer. By default, this variant inherits the application’s Slack channel for run notifications. If this variant needs a different channel — for example, prod notifications going to
#prod-alertswhile staging stays in#staging— add the override here. With no override, the variant inherits the app default; if neither is set, the notification is silent.
GitHub deployment rules and notification overrides need the workspace’s GitHub or Slack connection to be in place first. See Connect to CI/CD for the three-step setup.
When to create a new variant
Section titled “When to create a new variant”Create a new variant when the URL or environment changes. Staging and prod are two variants because they’re two URLs — even though it’s “the same” app.
Don’t create a variant for things that aren’t a separate deployment:
- Not one per test case — test cases live inside a variant.
- Not one per browser — the browser is a setting on the variant and on replay templates, not a reason to split.
Copy tests to another variant
Section titled “Copy tests to another variant”Each variant keeps its own tests, because environments often run different builds of the app. When a newer build moves up, say from dev to staging, staging now shows dev’s screens, so it should get dev’s tests. Copy them instead of writing them again: the scripts come along, so no AI run is needed.
On the Tests page of the variant that has the tests, click Copy Tests to another variant (the two folders, beside Export Tests). Pick the variant to copy to, then All tests or Pick tests. Before anything changes, the dialog shows what the copy would do:
- New tests are added to the other variant.
- Replaced tests are the other variant’s tests that were copied from these tests before, or else have the same name. Each one takes this variant’s version.
- Tests only the other variant has are left as they are. A copy never deletes a test.
- Tests that come along are the prerequisite tests the picked tests need, and a sign-in helper for any role the other variant has none for.
Copied tests sign in with the other variant’s own logins, and start unverified there, with no run or fix history. Their run history, fix history and Agent Memory stay where they came from. The other variant keeps its own sign-in helpers unless you select to replace them: select it when the new build changed how people sign in, and leave it clear when the other variant signs in differently, for example with SSO.
Copy is grayed out, and the dialog says why, when:
- The other variant is missing a login, or a copy of a Test Data Set, that the tests use.
- Two of the tests share a name, on either variant.
- Another test on the other variant already provides what a prerequisite test provides.
- A run is going on the other variant. Copy when it finishes.
When a login or a Test Data Set is missing, click Import Test Data from this variant in the dialog. It runs the same import as the Test Data page’s Import from another variant, then checks the copy again. Logins come along only if you can change credentials.
A copied test that reads a Test Data Set saved on this variant reads the other variant’s copy of that set. A set that belongs to no variant is used as it is.
Copying into a production variant asks you to type its name, and lists the schedules that run its tests next.
Before copying, OttoTester saves the other variant’s tests to version history, and the copy doesn’t start if that save fails. The copy then shows in each test’s Version history as a change you made. To undo it, click Undo in the message after the copy, or Undo this copy on that entry in a copied test’s history. Undo puts replaced tests back as they were and removes the tests the copy added, leaving any test changed since the copy. Undo is offered for 30 days. After that, the earlier versions are still in each test’s history.
Add a variant
Section titled “Add a variant”A new application gets its first variant when you create it (see Create an application). To add another, find the application on the Apps page and click Add variant in its Variants section. Give it a name (usually the environment — prod, staging, dev), set the base URL OttoTester should start exploring from, and adjust browser settings if you need a specific viewport, locale, or timezone.
You can stop there. The first test run from this variant triggers a scan that fills in the rest — discovered pages, an inferred application summary, and a starter set of test cases — automatically.
If the variant needs sign-in, set up a fixture before the first run. See Set up authentication.
Related
Section titled “Related”- Concept → Test Authoring Templates, Tests, Fixtures and test data
- Workflow → Quickstart

