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.
- Belt
- Camera
- Diary
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Starting the machine first | Starting the server and phone |
| Parts moving along the belt | The tests running in order |
| The checkpoint camera | The failure screenshot |
| The machine diary | The 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
- 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
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.
- 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
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.
- Market practice
Android Debug Bridge ↗ — Google Android Developers · A connected device state does not mean Android fully booted.
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.