TOPIC 16/1916 MINNOT STARTED

Running Appium tests in a pipeline: server, emulator, log and screenshots

Start the Appium server and a screenless emulator on a build machine, run the phone tests, and keep the server log and failure screenshots so a red run can be exp…

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a conveyor with a checkpoint camera. Parts move along the belt with nobody standing at the machine. The machine must start before the parts arrive. A camera takes a picture of any part that fails. The picture is useless if the belt started before the machine was ready.

The belt is the pipeline. The machine is the Appium server. The pretend phone is the emulator. The camera is the failure screenshot.

Leo, a developer at Daily List, a to-do list app, moves the phone tests onto the pipeline. Mei opens the pictures when a swipe fails.

What it is: Appium drives a phone app the way Selenium drives a browser. This topic runs it in (CI), a build with no person and no screen. The writes a log file, and a headless emulator start in a pipeline has no window. A failure screenshot saved by the test is a picture taken when a test fails. A laptop run is the neighbour, where a person starts the server and watches.

Why it matters: If Leo only runs Appium on his laptop, a broken Daily List swipe can merge. The pipeline must start a headless emulator, wait until it has booted, start Appium, keep the log and keep the screenshots. Otherwise a red run is only a timeout, and Mei cannot see the screen.

PLAIN WORDS · 5 in this section
checkpoint
a point where progress is checked or saved
appium
a free tool that drives apps on phones
emulator
a program that acts like another device
selenium
A free tool that drives a web browser for checks.
headless
Without a visible window.

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB A factory conveyor belt with a checkpoint camera.

  1. Belt
  2. Camera
  3. Diary
Conveyor belt

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
Starting the machine firstStarting the server and phone
Parts moving along the beltThe tests running in order
The checkpoint cameraThe failure screenshot
The machine diaryThe server log file

WHERE THIS PICTURE STOPS

  • A belt moves in one line, but tests can run in any order.
  • A camera sees one part, but a log shows the whole run.
  • A machine stays on, but a pipeline phone stops after the run.

HOOK

Belt, camera, diary.

TELL A FRIEND

A belt, a camera and a diary.

OFTEN MIXED UP WITH Appium on a real phone and on an emulator: what differs and how to attach each. That topic attaches a real phone or a pretend one by hand. This one starts a pretend phone on a build machine and keeps evidence.

PRACTISE AND KEEP

Sources for this topic — 3 sources
  1. Market practice

    appium server command reference (Appium Documentation) ↗ — Appium project · Appium docs: the server starts with the appium command, the log option writes server logs to a file path without changing screen output, and log level can differ for screen and file

    The Appium page on the server command. It says the server starts with the appium command, that the log option writes server logs to a file path, and that log level can differ for screen and file. Official project documentation. · Checked 2026-10-31

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Start the emulator from the command line (Android Developers) ↗ — Google (Android Developers) · Android Developers: the emulator starts from the command line with a virtual device name, a no-window option runs it without a screen, and newer Android command line tools offer a headless start

    The Android page on starting the emulator from the command line. It shows the emulator command with a virtual device name and a no-window option for runs without a screen. Official platform documentation. · Checked 2026-10-31

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Android Debug Bridge ↗ — Google Android Developers · A connected device state does not mean Android fully booted.

    A connected device state does not mean Android fully booted. · Checked 2026-11-06

    Actual primary documentation body read during the complete V30 domain analysis before implementation. Live documentation access-dated; no claim this version is installed in the learner environment. No artwork copied by this content change.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.