MONKEYTESTERDOCS
Docs / Overview

Start here

How to install, set up and use MonkeyTester and its plugins, and how to rebuild the current lab: a Linux host, a Mac and two phones.

MonkeyTester tests apps on real phones. You write a test as plain-English steps (AI: CLICK the sign in button), a vision model looks at the phone's screen, finds what each step describes, taps it and checks the result. A web viewer shows the phone live, with a marker wherever the test presses. Device plugins bring in other hardware, so the app has a real device to talk to and the test controls how that device behaves.

The system is split into several services, each in its own repository. These pages bring their setup guides together into one walkthrough.

Pick a path

The pieces

Every service except the viewer is a plugin: the viewer finds it by address and reads its name from GET /health.

ComponentWhat it doesRuns onPort
MonkeyTester (viewer + runner)Web UI, run queue, test runner, Build & Test, upload endpoint. Talks to everything else over HTTP.Linux host (or any Linux/macOS)8089
MonkeyTester-Plugin-Mobile-Controller (controller plugin)Owns every iPhone and Android phone: Appium/XCUITest, devicectl, adb, recording, installs.Mac8090
MonkeyTester-Plugin-AI (test plugin AI)The vision model. Local Qwen2.5-VL through a private Ollama, or forwards to a remote OpenAI-compatible server or GitHub Copilot.Mac (Apple silicon)8091
MonkeyTester-Plugin-Diff (test plugin DIFF)Compares DIFF: SNAPSHOT baselines and checks DIFF: ASSERT_LAYOUT positions. Stateless.Next to the viewer, loopback8095
MonkeyTester-Plugin-Build-Local (build plugin)Builds your app on its own host: fetches the branch from Gitea or GitHub with a read-only token, runs the repo's .monkeytester/build-<platform>.sh scripts, uploads the apps to the viewer.Mac (Android + iOS) or Linux host (Android only)8094
Device plugins (optional)Other hardware a test drives, e.g. the lab's ESP32-SENSOR and ESP32-SERVER (MonkeyTester-Plugin-Esp32, MonkeyTester-Plugin-Server).Where the hardware is plugged in8091, 8093

Setup order

Each step only depends on the ones above it. To try it on one machine first, see Run it locally.

  1. Linux host: the viewer. Install MonkeyTester, run its unit tests, start it as a systemd user service, plus the DIFF plugin next to it.
  2. Mac: the Mobile Controller. Xcode, Appium + XCUITest, the Android SDK, ffmpeg, then the controller as a LaunchAgent.
  3. Mac: the vision model. bin/monkeytester-ai setup, then serve it on the LAN with a pairing token.
  4. Phones. Connect the iPhone (trusted, Developer Mode) and the Android phone (USB or wireless debugging paired with the Mac).
  5. Connect the viewer. Sign in as admin / admin and change that password at once, then add the controller, the AI plugin and the DIFF plugin on Settings → Plugins, and the controller's token in Settings → Configuration → Service tokens. See Security.
  6. Build & Test (optional). Install the build-local plugin on the Mac (or a Linux host for Android only), add it in Settings → Plugins → Build Plugin with a Gitea or GitHub code host, and add your repos in Settings → Build & Test.

These pages describe the code on each repository's master/main branch and the machines as they run today. Addresses such as 192.168.125.70 and 192.168.125.71 are this lab's; substitute your own.