VibeView’s AI testing system lets you define automated test cases that run on cloud iOS simulators and Android emulators, including Apple TV and Android TV, and on Roku devices. An AI agent that understands your app’s UI runs each step. A passing run saves the steps it can as learned paths: later Smart runs replay those and use the AI for the rest (Verify steps, steps set to always use AI, steps with no saved path) and where the app changed.
Groups
A group is a named set of tests of one app. A test can be in several groups, and you find them in the Group menu of the Tests page. A group only says which tests run together: it has no settings of its own.
What shapes a run is set elsewhere:
- Start state — Starts from on each test’s page: how the app is reset before the test. The default, Clean app data, wipes app storage first. The Run dialog can choose one for a whole run.
- Screenshot check — on each test’s page, off for a new test (see Visual Regression Testing).
- App notes and Test data — per app (or once per product for linked apps), on the Tests page under Setup > Notes & data (see Test data and secrets).
Test Cases
Each test case is a sequence of steps, each a natural language instruction (for example, “Tap the Sign In button”). On the first run the AI agent reads the UI tree and screenshots and decides what to do in each step. A run that passes saves what it did as a step’s learned path where it can: later Smart runs replay those steps, which is fast and uses no AI, and hand a step to the AI agent when the screen no longer fits. A test with a single step is the exception: after its saved actions replay, the AI takes one look at the screen to confirm the step. Verify steps, steps set to always use AI and steps with no saved path still use the AI on every run (see AI use).
A test needs at least one step. A run in which no step did anything on the device or checked the screen is recorded as failed, never passed.
Creating test cases
Tests are created from the Tests page with New test (Developers and Admins), and edited on each test’s page.
New test asks What should it check? Write the test in a sentence or two, for example “Search for Kyoto, save it, then check that it is listed under Saved”, and pick a Device. Build is there if you need it, and Add hints opens Hints for the AI (optional): where things are, what to expect.
Click Run it now: the test is saved when the run starts, and the run’s page opens. Save without running saves it and opens its page instead.
- The test’s name is the first line of what you wrote; rename it on the test’s page.
- A new test starts from clean app data. Change that on the test’s page, or in the Run dialog for one run.
- The key button, or typing «, inserts one of the app’s test data keys, saved as
{{key}}. - If the test names test data that has no value yet, the dialog says so and the button reads Run anyway.
- If the run can’t start, the test is saved anyway: the dialog links to it.
- A test that starts with “Verify” runs as a check: the AI looks on every run and nothing is replayed.
- After a passing run, VibeView usually keeps the doing part of your sentence as one action step and adds a Verify check for each thing the sentence asks to be true (at most five). The extra AI work is part of that run’s cost. If it can’t confirm the checks, it tries again after the next passing run; after three tries the test stays one sentence.
- You can edit the steps on the test’s page. A sentence that starts with “Verify” stays as it is.
Explore, next to New test, lets the AI use your app on its own for 5, 10, 20, 30, 40 or 60 minutes (the times your plan’s sessions allow) and lists what looks broken; any finding can be saved as a test. See Explore.
For apps you linked as one product, the device you pick decides the app: a Pixel runs the Android app, an Apple TV the Apple TV app, and New test saves the test under that app. When the product has both phone and tablet apps and TV apps, New test starts with For: Phone & tablet or TV.
The dialogs start on the platform picked in the Tests page’s Platform filter, else on the device you last used; with a group picked, they work on the group’s form factor only, and the new test isn’t added to the group.
On the Free plan, your organization has two free tests: one on a sample app and one on your own app. A new test’s first run uses the one for its app when your organization has no usage credit and no API key of its own: the line under the box then ends with “Your free first run is used here.” Once it is used, the dialog says how to pay for runs; Save without running stays available.
Write tests with your coding agent, at the bottom of New test, opens a prompt for your coding agent (Claude Code, Codex, Grok Build or another) that creates tests with vibeview create-test. Once you have tests, a hint under the list offers a prompt that adds a CI workflow running them on every pull request (see CI testing).
AI use: Smart, AI only
Every run uses one of two AI uses, picked under Advanced in the Run dialog: Smart (the default) and AI only. The CLI (--mode) and the API (mode) call them hybrid and ai. The Run a test tab on the Devices page always uses Smart.
- Smart replays what a test already knows — its learned paths — and hands a step to the AI agent only when replay can’t follow it, for example because the screen changed.
- AI only sends every step to the AI agent and ignores learned paths. Use it after a big change to your app.
| AI use (API name) | What runs each step |
|---|---|
Smart (hybrid, default) | Steps with a learned path replay it; the AI agent handles the rest. |
AI only (ai) | Every step is handled by the AI agent. |
A Smart run of a test without learned paths behaves exactly like AI only.
Rotations and shakes. A test run starts in the same orientation as a fresh session started from Devices, so if your test needs a particular orientation, make rotating the device a step. A shake passes even when the app has nothing listening for it, so follow it with a Verify step for what it should open. Shake is not available on Apple TV, Android TV or Roku.
Checking results with Verify steps
A test checks its results with ordinary steps, written where the check belongs — in the middle of the flow or at the end:
Log in with username 'alice' and password 'secret'
Verify 'Welcome, Alice' is visible
Open Settings from the side menu
Verify the 'Dark mode' switch is on
Write each check about the screen as it is at that point, in the present tense, and quote the text it is about: Verify 'Order placed' is visible is clearer than Verify the order went through.
A Verify step always runs through the AI agent, which looks at the screen and passes or fails the step.
- A Verify step can look, scroll, tap and move between screens to find what it checks, but never types, clears a field, presses keyboard keys or changes a picker. Put anything the test must enter in its own step before the check.
- An empty text field counts as empty: its placeholder text is never read as what it holds.
- A Verify step can’t check a secret test data value; such a step fails with a message saying so. See Secrets.
- A failed check fails the run.
Assertions (deprecated). The separate list of assertions checked after the last step has been removed. The API still accepts an assertions field and saves each one as a Verify ... step at the end of the case; use steps instead.
Per-step AI steps
In a Smart run, a step with a learned path starts as Replay first: it replays the path and falls back to the AI agent only when replay can’t follow. Switch a step’s chip to Always AI to send it straight to the AI agent — useful when the AI should confirm what is on screen, or when the UI varies between runs. A step with nothing saved yet (such as a written Verify ... check) shows a Run by AI chip instead. A step set to Always AI never saves a path: switch it back to Replay first to let a passing run save one.
Each Always AI step can carry Notes for the AI: what the AI should verify, appended to the step instruction. For example, if your test changes a profile name from “abc” to “abpd”, the notes profile name must be abpd, not abc make the AI read the screen and confirm the name, rather than replaying a tap on the old value.
Editing steps: Edit on the test’s page says at each step what your change loses: a reworded step loses its saved path, a removed one its saved path, notes and screenshot references. Undo brings a removed step back until you save.
If the test changed somewhere else meanwhile (its first run may have added checks), the save is refused and nothing you typed is lost. Keep my edits puts your edits on the steps as they are now, so you can save them; Show the saved steps drops them.
Reordering steps: the up and down arrows move a step one place, with its baselines (see visual-regression.md).
Wait between steps
After each action VibeView waits for the UI to settle before checking the result. When a screen needs longer (for example a loading spinner whose layout doesn’t change while data loads), add a step that says what to wait for, written as a check of its own, such as Verify the order list has loaded: Verify steps always use the AI, so it waits for the condition on every run. Keep it a separate step: a step that waits and then does something else can save the other actions as a learned path and later replay them without checking the condition.
Before the first step of a run, VibeView waits for the app to be ready, and, if the first step’s learned path starts on an element, for that element to appear. If the app still isn’t ready, the run goes on and the first step’s result notes what the screen showed.
Learned replay paths
When a run passes, VibeView saves what the AI agent did in each step it ran as that step’s learned path. The next run replays the learned path, so those steps use no AI and no usage credit, except a test with a single step: after its saved actions replay, the AI takes one look at the screen to confirm the step. If the look finds the step not done, the AI agent does the step.
- A path is saved only from a run in which every step passed, every Verify step included, and no screenshot check failed.
- Verify steps always use the AI, and steps set to Always AI are never learned.
- A test with a single step, other than a Verify step, learns its actions even when it also checks something; its check is made by that look on every run.
- A path applies only to the kind of device it was learned on: the same platform, device type (phone, tablet or TV), starting orientation and, on a foldable, posture. The run page names each path’s device, for example iOS · Phone · starts portrait.
- Typed test data is saved as its name (
{{password}}), never the value. - Some steps stay with the AI, for example gesture presets, picker values, system alerts, links, location, app restarts, rotating or folding, clearing a field, key combinations and drags. After a passing run, the run page lists each step that was not learned and why.
- A learned step finds its elements by id or text (see Element Matching). If the screen changed and it no longer fits, a
hybridrun hands the step to the AI agent. - Editing a step’s text forgets that step’s learned path.
A run page’s AI use tab shows how many steps were replayed and how many the AI ran (Replayed / AI, for example 1 / 1), the AI spend avoided by the learned paths, the cost, the model and the tokens.
When a route changes
If a learned path no longer fits and the AI finds another way through in a run that passes, the run page shows the step with three choices:
- Save the new route — replay the new route from now on.
- Keep the old path — go on replaying the old one.
- This is a bug — keep the old path: the change in your app was not intended.
A route you turn down is remembered, so the same route is not offered again until you edit the step’s text.
Choosing what is saved
What is saved is set per app: Save new paths in the Replay paths card under Setup > Notes & data on the Tests page.
- Save automatically (default) — new and changed paths are saved, and the run page says so; you can still keep the old path there.
- Ask me first — a new or changed path is saved only when you choose to save it on the run page.
- Never — learned paths are neither saved nor replayed; every step uses the AI.
A test’s page shows what is learned for each platform and device under Replay path, in Saved from runs. Forget learned paths removes the test’s learned paths; the next passing run learns them again. Changing the setting and forgetting paths need the Developer or Admin role.
Replay Details & Debugging
Each step on the run page has a Details toggle. For a replayed step it compares the learned path with what ran (gesture, element, coordinates). For a step the AI ran, it shows the AI’s reasoning and each tool call with its result. When a replayed step falls back to the AI agent, the step says why in plain words — for example, “The saved target “Saved” isn’t on this screen.”
Element Matching
When a step is replayed, VibeView looks for the element each saved action was made on, and only accepts the same element:
- The same id — the element’s test id or accessibility id.
- The same text — when no element on screen has the saved id, an element whose text is exactly the saved text, ignoring capital letters and surrounding spaces.
Sign infindsSign In, butHomedoes not findLoading Home.... A text field is known by its label or placeholder, never by what was typed into it. If the saved element had an id, an element with a different id is never a match, even with the same text.
When several elements share the saved id or text, replay picks the one at the saved position, and only when that position clearly sets it apart; otherwise it does not guess. Replay never taps a near match. If the element isn’t found, a Smart run hands the step to the AI agent.
A step only replays the actions saved for it, never another step’s.
AI Execution
For each step, the AI agent reads the UI tree (interactive elements tagged with references like @e1), takes a screenshot, picks a tool, runs it, and repeats until the step is done or fails. Tight, specific step text (and relevant app notes) keeps the agent on the fast path. On iPhone, iPad, Android phones and tablets, and Android TV, a run first brings the test’s own app to the front; if that app is not installed on the session, the run fails straight away with a message naming the app.
Two limits keep a run in check, both under Settings > AI configuration:
- Agent turns per step — 20 turns per step by default, changeable from 1 to 30. A test with a single step that is not a Verify step gets three times the limit (60 by default).
- AI spending limit per run — $5.00 by default.
| Message | What to do |
|---|---|
| This step needed more than 20 AI turns. Split it into smaller steps, or raise the limit in AI settings. | Split the step, or raise Agent turns per step. Your own limit replaces 20. A test with a single step that is not a Verify step gets three times the limit (60 by default). |
| This run reached its AI spending limit of $5.00 (Settings → AI configuration). Raise the limit or split the step. | Raise AI spending limit per run, or split the step. |
| The device couldn’t be shaken. | The step fails (or goes to the AI in a Smart run). Shake isn’t available on Apple TV, Android TV or Roku. |
Available tools
The agent has 28 tools on iOS and Android phones and tablets. On Apple TV, Android TV and Roku, tap_focused_tv and focus_element_tv move focus to a target element (see TV testing). On a foldable device — the iPhone Duo, or an Android foldable such as the Pixel 9 Pro Fold (beta) — the agent also gets set_posture; a run that asks only for a phone or tablet never lands on a foldable, so pin the run to its device to test on one.
Interaction:
| Tool | Purpose |
|---|---|
tap | Tap an element by its UI tree ref (e.g. @e5) |
tap_coordinates | Tap at raw pixel coordinates (fallback when no ref available) |
tap_and_type | Tap an input field and type text in one call |
long_press | Touch and hold an element by ref (default 800ms) |
drag | Drag between two refs or coordinates with configurable velocity |
swipe | Directional swipe (up/down/left/right) with configurable distance |
scroll_until_visible | Scroll until an element matching a text substring appears — pass a known element’s text or accessibility id to bring it back into view |
gesture_preset | Execute a named gesture (scroll_down, back_swipe, pull_to_refresh, etc.) |
Text and keys:
| Tool | Purpose |
|---|---|
type_text | Type text into the focused input |
clear_text | Clear the focused input |
keys | Send a keyboard shortcut with modifiers (e.g. cmd+a, shift+tab). iOS 17+ |
System and device:
| Tool | Purpose |
|---|---|
press_button | Press home, back, lock, enter, siri (iOS) or recents (Recent apps on iPhone, iPad and Android phones and tablets); on TV, dpad_up/down/left/right/center or back |
open_url | Open a deep link or URL in the app under test (use the app’s custom scheme to jump directly to a screen). |
rotate | Turn the device to portrait or landscape, or toggle between them. Not on TV. |
set_location | Set the device’s simulated GPS location to a latitude and longitude. Not on TV. |
shake | Shake the device once, to open an app’s shake-triggered menu. Not on TV. |
relaunch_app | Close the app and start it again, keeping its data — for steps like “restart the app and check the item is still there”. |
alert | Inspect and dismiss an iOS system alert by button label |
select_picker_value | Set a picker wheel column to a target value. On Android, applies to wheel-style pickers; dropdowns are handled by tapping. |
set_posture | Fold or unfold a foldable device to a target posture (Closed, Partial, or Open). Foldable devices only. |
wait | Pause for N seconds |
An app restart is never learned, so a step that relaunches the app runs through the AI agent.
Query and checks:
| Tool | Purpose |
|---|---|
read_logs | Read the app’s recent log lines, optionally filtered by text or minimum level |
locate | Find element coordinates by visible text, label, or identifier |
find_element | Find an element by text with spatial constraints (below, above, near another element) |
assert_visible | Assert that an element with given text appears within a timeout |
assert_not_visible | Assert that an element has disappeared within a timeout |
assert_value | Assert an element’s text/value matches expected (exact or substring) |
Step completion:
| Tool | Purpose |
|---|---|
step_complete | Signal that the step objective is met |
step_failed | Signal that the step cannot be completed, with a reason |
A step can ask the agent to check the app’s log — for example Verify the app logs show no JavaScript errors. The agent reads the session’s most recent few hundred lines (the same output as the App Logs tab) and judges them itself.
Visual Regression During AI Runs
Every run (Smart and AI only) captures a baseline-comparison screenshot after every step when the test, or the step, has a screenshot check. Drift that exceeds the warn threshold is flagged on that step in the timeline; drift past the fail threshold fails the run. See visual-regression.md.
Group runs
A group run runs every test of the group, in the order they were added to it. On each device you pick, the tests run one after another in one session; with several devices, each device runs the group at the same time (see Running tests).
- Each test starts from its own start state unless the Run dialog picked one for the whole run (see Start each test from).
- If one test fails, the next tests still run — unless Stop on first failure is on in the Run dialog. It also stops after an error or a failed preparation, and the groups after it on that device are not run either.
- If preparing a test fails (for example the app’s data could not be cleared), that test is marked as an error with the reason and, unless Stop on first failure is on, the group goes on with the next test.
A run started from the Run dialog is cancelled from its run page. A cancel takes effect at the run’s next step; steps that already finished keep their results.
Running a test on the other platform
A test case belongs to one app, but you can run it on the other platform without copying it. Upload the other platform’s build as its own app (your iOS app and its Android build are two apps with the same bundle id / package name), then:
- Dashboard: open the Run dialog on the test and pick a device of the other platform.
- CLI:
vibeview run-test <test-id> --platform android, or--app <app_id>to name the app.vibeview run-checks --app <app_id> --platform androidruns an app’s tests there. See Run on another platform. - API: pass
platform(orapp_id) toPOST /api/v1/ci/run-test, or a device withplatformtoPOST /api/v1/tests/runs. See Cross-platform runs.
The run is stored on the same test. A phone test runs only on phone platforms and a TV test only on TV platforms. A learned path applies only to the platform it was learned on, so the first run on the other platform uses the AI agent and a passing run saves that platform’s paths. Upload a release build of the other app: a debug build marked needs Metro shows an error screen (see Debug builds that need Metro).
Test Run Results
Every run has its own page at /tests/runs/:id that you can open directly, bookmark, or share with teammates, for single test runs and group runs. It shows:
- The result — at the top: how the run ended, the step it happened on, the reason in full and what to do next. See The run’s page.
- Step timeline — each step’s status (passed or failed), screenshots, start time (for example
0:07) and duration. In a finished run, steps that passed one after another fold into one row you can open. A run that stopped before its first step shows the reason instead. - AI use tab — how many steps were replayed and how many the AI ran, the cost, the model and the tokens.
- Logs tab — the app’s own log for the run, each line labelled with the step it was written in. A failed step also shows up to three error and warning lines logged during it.
- AI reasoning log — the agent’s decision-making trace, one line per turn, under the step it belongs to.
- Visual regression — side-by-side comparison with baseline screenshots (when available). You can set a passing run as the new baseline from this page.
Status values
| Status | Meaning |
|---|---|
queued | Run is waiting its turn (for example, behind other tests in a group run) |
pending | Run is created but has not started |
running | Execution is in progress |
passed | All steps succeeded |
failed | One or more steps failed |
cancelled | The run was cancelled by the user (with Cancel run, or Cancel on the Devices page) |
error | The run could not run to completion: an unexpected error interrupted it, or it was refused before its first step (for example the AI model isn’t available). The run’s error message says which. A free test that reached its limit reads Free test limit reached; run it again from Tests to use your own credit. |
stopped_insufficient_credit | The run stopped between AI calls and kept the results of the steps it finished. The run says why: Out of usage credit (top up or add your own API key), AI is paused for your organization (VibeView-provided AI was paused, or the run’s AI usage couldn’t be recorded; add your own API key, and contact support@vibeview.io if it persists), or AI is disabled for your organization (an administrator turned VibeView-provided AI off; add your own API key) |
Result data
- Logs — up to 10,000 lines per run, kept as described in How long run details are kept. Test data values marked as secret are masked in the logs.
- Model used — Which LLM provider and model executed the run (Anthropic, OpenAI, Google, or OpenRouter). A run that never called the AI shows no model.
- Cost — for VibeView-provided runs, the usage credit actually deducted for this run, in USD; amounts under a cent show up to four decimal places (for example
$0.0037). For BYOK runs, VibeView deducts nothing, so the Cost is an estimate (~$X (est.)) from public list pricing; your provider bills you directly. See Usage Credits.
How long run details are kept
From January 11, 2027, a test run’s screenshots, comparison images and logs (its run details) are kept for a period that depends on your plan, counted from when the run finished:
| Plan | Run details kept for |
|---|---|
| Free | 30 days |
| Solo | 90 days |
| Team | 90 days |
| Business | 180 days |
On custom terms, screenshots and comparison images are kept for the period agreed, and logs for 30 days. Yearly subscriptions that started before November 4, 2026 keep the earlier terms until they renew: screenshots and comparison images are kept as long as the test, and logs for 30 days. Until January 11, 2027, a run’s logs are kept for 30 days, and its screenshots and comparison images as long as the test.
Run details are kept through the whole of the day their period ends, and are then removed for good: they can’t be restored. A run that proposed a new route waiting for your review keeps its details until you decide.
What stays when run details are removed:
- Run results — the run’s status, step results, timings, cost, the AI’s reasoning and the visual verdicts — are kept as long as the test.
- Baselines stay until you replace or delete them, or delete the step or test they belong to, including a baseline accepted from a run whose details were later removed.
- Run videos follow their own rule: they are kept for 30 days on every plan. Explore runs are kept for 30 days too (see Explore).
After a run’s details are removed, its page says Screenshots, comparison images and logs of this run were removed on and the date, each screenshot reads Screenshot removed, and comparison images read Image removed. Its screenshots can’t become a baseline; run the test again to compare.
Moving to a plan that keeps run details for less time doesn’t remove them at once; see How long builds and run details are kept.
App notes and test data
App notes are read by the AI agent in every test of the app when running them: what the app does, its own words for things, and quirks to expect (for example “A profile picker appears after login”). A group can add its own notes. Edit them under Setup > Notes & data on the Tests page (see The Tests page).
Test data holds usernames, passwords, PINs and one-time codes, which go into steps as {{key}} placeholders. For example, define username=testuser@example.com and write Type {{username}} into the email field. At run time VibeView substitutes the value, in every run from the dashboard, the CLI, CI or the API, with any AI use. A test doesn’t have to name a key: the AI sees the app’s test data in every run and uses it when the app asks, for example at a sign-in screen. A value can be marked secret: it is masked everywhere a run is shown and never put in the AI’s prompts or logs (a secret shown on screen can still appear in screenshots the AI sees). See Test data and secrets.
Substitution covers the step text, Notes for the AI and typing replayed from a learned path; your saved test keeps the placeholders. A placeholder with no matching value is left as written, and is never typed: see When a key has no value.
React Native Accessibility
The AI agent reads the iOS accessibility tree to understand your app’s UI. When a React Native Pressable, TouchableOpacity or TouchableHighlight wraps a TextInput, iOS treats the wrapper as one element and hides its children, so the input appears as a generic element rather than a text field. This iOS limitation affects testing tools across the industry, including Appium, Detox and Maestro.
VibeView’s AI agent uses screenshots as its primary input, so it still finds such inputs visually and taps them by position. For more reliable tests, set accessible={false} on wrapper components that contain interactive children:
{
/* Before: TextInput hidden from accessibility tree */
}
<Pressable onPress={handleFocus}>
<TextInput placeholder="Email" />
</Pressable>;
{
/* After: TextInput visible as a proper text field */
}
<Pressable accessible={false} onPress={handleFocus}>
<TextInput
accessible={true}
accessibilityLabel="Email"
testID="email-input"
placeholder="Email"
/>
</Pressable>;
Tips
- Run a new test once with Smart: a passing run saves its learned paths, so later runs replay them quickly. Set a step to Always AI for screens with dynamic content.
- Write specific, actionable step descriptions for AI only runs. “Tap the blue Submit button at the bottom of the form” works better than “Submit.”
- Keep app notes short and specific. The agent performs better with clear domain knowledge.
- Review the reasoning log when a test fails unexpectedly. It shows exactly what the agent saw and why it made each decision.