Run your own copy
These commands are for a copy of OttoTester you installed yourself with the install command from the Download page. If you use OttoTester at app.ottotester.ai, none of this applies: it is always on the newest release.
The install folder
Section titled “The install folder”Everything lives in one folder, ~/ottotester by default. Its ottotester helper (ottotester.ps1 on Windows) runs the install from then on, from inside that folder:
cd ~/ottotesterUse your own folder if you set OTTOTESTER_DIR. On Windows, the commands below are .\ottotester.ps1 demo and so on.
| Command | What it does |
|---|---|
./ottotester start |
Start OttoTester and wait until it answers. |
./ottotester stop |
Stop it. Everything it saved is kept. |
./ottotester logs |
Follow its log. Ctrl-C to leave. |
./ottotester demo |
Start the demo app and set up a workspace to test it. |
./ottotester backup |
Save the database, your saved files and your settings to one file. A database outside the install isn’t included. See Back up and restore. |
./ottotester restore |
List your backups, newest first. ./ottotester restore <file> puts the install back from one. |
./ottotester update |
Move to the newest release. ./ottotester update v1.2.3 moves to that exact one. |
./ottotester uninstall |
Remove OttoTester and everything it saved, for good. It can’t be undone. To get a new version, use update instead. |
To install somewhere else, on another port, or an exact version, set OTTOTESTER_DIR, OTTOTESTER_PORT or OTTOTESTER_VERSION before running the install command.
Update
Section titled “Update”./ottotester updateThe current version keeps running while the new one downloads. For most releases, if the new version does not answer within five minutes, the helper goes back to the previous one and saves the new version’s log in the install folder. Your tests, runs and files stay where they are.
Some releases change saved data in a way older versions can’t read, so the helper can’t go back on its own. For those, it makes a backup first and says where it went. If the new version then does not start, it is left in place, and the message gives the exact ./ottotester restore command that puts the previous version and your data back.
If your install uses a database of its own, the helper stops before such an update instead, because the backup can’t hold that database. Back that database up where it lives, then run ./ottotester update vX.Y.Z --yes. Back up and restore says more.
The release notes say what each release changes.
Database password: run the update twice, once
Section titled “Database password: run the update twice, once”The database that comes with OttoTester needs a password. If either of your install’s two databases (the main one and the analytics one) is that built-in one, this applies to you; if both are databases of your own, nothing changes and one update is enough. Installs made with an older version have no password, and the helper that updates them is the older one, which can’t add it. So the first time you update past that point, run the update a second time, once:
./ottotester update./ottotester updateThe second run sees you are already on the newest version and turns the password on. It saves the password and the database’s addresses with it in .env, restarts the database requiring it, and checks that both addresses sign in. ./ottotester start does the same. If it’s interrupted, run it again and it carries on. Until then OttoTester runs, and its log says the database has no password. This happens once; later updates need one run, as usual.
Don’t leave it for later. Until the second run, OttoTester keeps running, but the next time it restarts (after a reboot, for example) it refuses to start, and its log says the database has no password. Below is what to do then.
Leave MONGODB_PASSWORD as the helper made it. The database keeps the password it was first given, so a changed one locks OttoTester out. If you ever go back to an older version, it reads the same addresses from .env and still connects. A backup holds .env, so a restore puts back the password that goes with its data.
If OttoTester won’t start: the database has no password
Section titled “If OttoTester won’t start: the database has no password”OttoTester won’t run on its built-in database while that database has no password. That happens to an install started by hand with docker compose up and no MONGODB_PASSWORD in .env, and to one that skipped the second update run above. The log says This install’s database has no password, so OttoTester will not start.
Turn the password on with the helper that matches the version you have, then start. In the install folder:
docker compose run --rm --no-deps -T --entrypoint cat app /app/install/ottotester > ottotesterchmod +x ottotester./ottotester startOn Windows, in PowerShell:
(docker compose run --rm --no-deps -T --entrypoint cat app /app/install/ottotester.ps1) -join "`n" | Set-Content -Encoding utf8 ottotester.ps1.\ottotester.ps1 startThe first command copies the helper out of the version you run, so it works whatever helper you had before. start saves a password in .env, starts the database with it, checks that it refuses a connection without it, and then starts OttoTester. Restoring a backup does the same before OttoTester starts, when the backup’s version is one that has the password (v1.1.47 or later). An older version’s backup comes back as it was, since that version never refuses to start.
How your tests are kept apart
Section titled “How your tests are kept apart”Each run’s tests run as a system user of their own inside the OttoTester container. That user can’t read OttoTester’s settings or keys, its saved data, or another run’s files and settings, even while both runs go at once. A firewall rule stops it reaching the database, or the address a cloud server uses to hand out its own credentials. It can still reach the app you test, the internet, your own network, and OttoTester’s Test Data service.
Tests can’t reach the rest of the container’s network (the database, the search model, virus scanning, OttoTester itself), the machine Docker runs on, or IPv6. The demo app is let through by the TEST_NETWORK_ALLOW setting. If the app you test runs on the same machine as OttoTester, open just its port there, for example TEST_NETWORK_ALLOW=demo,host.docker.internal:3000. A port that machine publishes can still be reached on its own network address; set TEST_PRIVATE_NETWORK_BLOCK_ENABLED=true to close every private address if no app you test lives on your network.
The firewall rule needs the container to have the NET_ADMIN capability. The Compose file the helper installs gives it. If the rule can’t be put up, or OttoTester can’t close its data folder to tests when it starts, it still starts but runs no tests, and its log says why. Never turn this off on a copy other people use.
Remove OttoTester
Section titled “Remove OttoTester”./ottotester uninstallThis deletes OttoTester from the machine for good: its database with every test, run and upload, its settings and saved files in the install folder, and its Docker containers, volumes and images. It can’t be undone. If you only want a newer version, run ./ottotester update instead. It keeps everything.
It lists what it will delete and asks you to type delete first. A database you pointed OttoTester at elsewhere is left alone, and so is any image another container still uses. The backups folder is kept. If a step fails, it says what is left and keeps the helper, so running it again finishes the job.

