Testing desktop and command-line applications
Try bad input on a program that runs on your own computer. Check what it prints and what number it returns. Use other screens too.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a walk-up counter with a bell. At a small counter you ring the bell and say what you want. The staff hand you the item. If there is a problem, they write you a note. At the end, they stamp your receipt with a tick if all went well, or a cross if not. A good counter has a sign that says what you can ask for.
Daily List is a to-do list app. The team now adds a small tool for people who like typing commands. You type "dl add milk" and a task appears. Tom, the tester, does not click anything. He types words and watches what comes back.
A command-line application is a program you run by typing its name and some words after it. Those words are command-line arguments. A is a program you install and run on your own computer, in its own windows. Tom tests both.
The counter picture has limits. A person at a counter can say "I mean the other one". A program takes your words exactly as typed, and it cannot ask what you meant.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
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 Checking a program on your own computer with bad input, then reading its output, its exit status and how its windows behave.
- Ask oddly
- Read the item
- Read the note
- Check the stamp
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Ringing the bell and asking | Running a command with arguments |
| The item handed over | Standard output |
| A note about a problem | Standard error |
| A tick or a cross on the receipt | The exit status |
| A sign saying what you can ask for | Help text |
WHERE THIS PICTURE STOPS
- A person at a counter can say "I mean the other one". A program takes your words exactly.
- A counter has one way in. A program may also read files and settings.
- A cross on a receipt is plain to see. An exit status is hidden unless you look.
HOOK
Ask oddly, read the item, the note and the stamp.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
A note and a stamp are not the same thing. The note is for people to read; the stamp is what a script reads, so a failed run needs a cross.
| In the trick | What it stands for |
|---|---|
| Note | Standard error, read by people |
| Stamp | The exit status, read by a script |
A program that never runs inside a script may be judged only on its note.
TELL A FRIEND
A counter where you ring the bell and get an item, a note about problems, and a stamp.
OFTEN MIXED UP WITH Command line basics for testers. The basics lesson teaches how to use the as a tester. This lesson is about testing a program that is itself run from the command line, and desktop programs.
PRACTISE AND KEEP
Sources for this topic — 6 sources
- Market practice
Exit status (GNU Coreutils manual) ↗ — GNU Project · For most commands an exit status of zero means success and a nonzero value means failure; a few commands document other meanings (search excerpt, page not opened)
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
UX checklist for desktop applications (Microsoft Learn) ↗ — Microsoft · Check the program at several screen scale settings and window sizes for clipped controls and stretched icons; the page is dated (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page written for older Windows versions. 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
OS Command Injection Defense Cheat Sheet (Open Worldwide Application Security Project) ↗ — Open Worldwide Application Security Project · Building a system command from outside input without neutralising special characters is a weakness; avoid calling operating system commands where a library function will do (search excerpt, page not opened)
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.
V34 review, 6 November 2026: Read complete official repository sheet. Prefer suitable library APIs; separate executable/arguments and validate commands and arguments. Shell separation alone does not prevent argument injection.
- Market practice
appium-mac2-driver (Appium driver for macOS apps, based on Apple XCTest) ↗ — Appium project (GitHub) · appium/appium-mac2-driver repository (macOS apps, Apple XCTest); Appium Windows driver docs (Win32 and UWP apps). A MoT post says WinAppDriver may be abandoned - secondhand, so the lesson only says to check a driver is maintained. Search excerpts, pages not opened. Screenshot comparison idea is taught fully in the visual regression lesson; MoT thread 64536 is the question.
Found through a web search; the page was not opened (search excerpt, page not opened). 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
The Windows Driver (Appium documentation) ↗ — Appium project · appium/appium-mac2-driver repository (macOS apps, Apple XCTest); Appium Windows driver docs (Win32 and UWP apps). A MoT post says WinAppDriver may be abandoned - secondhand, so the lesson only says to check a driver is maintained. Search excerpts, pages not opened. Screenshot comparison idea is taught fully in the visual regression lesson; MoT thread 64536 is the question.
Found through a web search; the page was not opened (search excerpt, page not opened). 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
Is anyone out there running automation on MacOS apps? ↗ — Ministry of Testing Club · appium/appium-mac2-driver repository (macOS apps, Apple XCTest); Appium Windows driver docs (Win32 and UWP apps). A MoT post says WinAppDriver may be abandoned - secondhand, so the lesson only says to check a driver is maintained. Search excerpts, pages not opened. Screenshot comparison idea is taught fully in the visual regression lesson; MoT thread 64536 is the question.
Found through a web search; the page was not opened (search excerpt, page not opened). 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.
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.