Skip to main content

Run it

The same options work with box test and box run:
| Option | Values | iOS simulator | | --- | --- | --- | --- | | --text-size | xs, s, m, l (default), xl, xxl, xxxl, a11y-m, a11y-l, a11y-xl, a11y-xxl, a11y-xxxl | Dynamic Type size (a11y-* are the Accessibility sizes) | | --location LAT,LNG | degrees, e.g. 37.5665,126.9780 | simulated location | | --network | 3g, lte, offline, loss | the Mac’s link is slowed or cut while the app runs; the status bar shows 3G or LTE | | --dark, --locale | as before | | |
  • 3g is about 780 kbit/s down, 330 kbit/s up and 100 ms of delay. lte is about 12 Mbit/s with 50 ms. loss drops 10% of packets.
  • offline blocks new web connections and name lookups while the app runs. The build and the upload of results are not affected.
  • box run --network offline is refused: a run session needs the network so box ui can reach it.
  • Every setting is put back when the job ends.

Several pictures from one build

--vary adds a picture with other settings after the first one. The app is built and installed once, then started cold for each variant:
Each --vary is a comma-separated list of dark, light, locale=LANG, text-size=SIZE, network=3g|lte|offline|loss and location=LAT,LNG, up to 8 variants. A variant starts from the job’s own settings and changes only what it names. The results are saved next to screen.png, which is the picture with the job’s own settings:
variants.json lists each picture with the settings it was taken with, and ok: false with an error for a variant that could not be captured. The other variants still run. In MCP, the screenshot tool takes the same settings as text_size, location ({"lat": 37.5, "lng": 127.0}), network and variants (a list of objects with those keys plus appearance and locale). The test and run tools take text_size, location and network.

What it costs

The job’s normal minutes. Variants add the time each launch and picture takes, usually a few seconds each, with no second build.