TOPIC 45/6216 MINNOT STARTED

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.

  1. Ask oddly
  2. Read the item
  3. Read the note
  4. Check the stamp
Item, note, stamp

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
Ringing the bell and askingRunning a command with arguments
The item handed overStandard output
A note about a problemStandard error
A tick or a cross on the receiptThe exit status
A sign saying what you can ask forHelp 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.

What each part of the trick stands for
In the trickWhat it stands for
NoteStandard error, read by people
StampThe 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
  1. 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)

    Manual page for GNU command tools. Says most commands use an exit status of zero for success and a nonzero value for failure, with a few documented exceptions. Describes GNU tools, not every program. · Checked 2026-10-18

    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

    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)

    Vendor checklist for Windows desktop programs. Suggests checking the program at several screen scale settings and window sizes for clipped controls. Written for older Windows versions, so the numbers are dated; the checking idea still holds. · Checked 2026-10-18

    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.

  3. 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)

    Defines the weakness as building a system command from outside input without cleaning out special characters, and says the first defence is to avoid calling operating system commands at all and use library functions instead. · Checked 2026-10-18

    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.

  4. 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.

    Official Appium driver for macOS apps built on XCTest. · Checked 2026-10-19

    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.

  5. 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.

    Appium driver for Classic Windows and UWP desktop apps. · Checked 2026-10-19

    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.

  6. 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.

    Learner question on desktop automation; community discussion, not a standard. · Checked 2026-10-19

    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.