Repository navigation
ui scenarios
Use a scenario when a documented interaction should remain repeatable across builds. It records the actions to take, the observable result of each action, when to capture it, and the wiki material to review if it changes. Start with creating a first model.
- Open the target build in a dedicated workspace and apply the scenario's setup. Unless the scenario says otherwise the setup means the default settings of the application: see screenshots for how to revert to them, for the least invasive way to reach a single non-default preference, and for the state to verify immediately before capturing. Use stable fixture names and an equivalent initial state for each run. Record the build and capture context.
- For each step, observe the current accessibility tree, locate the control by role, label and parent, then perform the action with Hybrid Computer Use. Read a fresh tree after transitions. Resolve live element references on each run. If a control requires a coordinate click, locate it on the current screen and verify its effect. Use the available equivalent tools on other hosts.
- Wait for the stated UI condition within a bounded time. Check each expectation, including the
filesystem when specified. Record observed values. Mark a step
failif a verified action produces the wrong state, orblockedif the tooling or environment prevents verification. If an expected label changed, report the observed label. Any exploration via a different path belongs in the evidence. Stop dependent steps when their prerequisite fails. - For a passing step with
capture: true, save a raw single-frame PNG named<step-id>.png. Follow the step'sregioninstruction and use the same capture strategy on both runs. Keep the main window size, locale, theme, DPI and fixture fixed. Allow rendering to settle and keep the pointer, caret and transient notifications out of the compared area where possible. Store a failure screenshot separately when available and record its location in the step evidence. - Inspect the initial capture set and repeat the scenario on the same build from a fresh equivalent workspace. Use the comparison below to check repeatability before approving a reference set. Repeat on the candidate build. Preserve the approved reference until someone reviews any changes.
The pilot is based on the documented 2026-11 workflow and source. The first reference set needs two live replays on the target installation. Capture references are raw artifacts stored in a dedicated run directory. Published images may have different crops or annotations.
Each run directory contains run.json and one PNG per captured step. This is the shape of an
in-progress run. Record all step results before treating a run as complete.
{
"scenario": "create-first-model",
"revision": 1,
"build": "2026-11 build or commit identifier",
"context": {
"platform": "<the operating system and version the frames come from>",
"locale": "en-US",
"theme": "light",
"display_scale": "100%",
"window_size": "1600x1000",
"fixture": "empty-user-workspace-v1"
},
"steps": {
"project-command": {
"status": "pass",
"evidence": "Observed Project... in the New submenu of User."
}
}
}Capture context values describe the actual environment. Add any other stable setting needed to reproduce the images, such as font scaling or capture strategy. The comparator requires identical context values across runs and accepts different build identifiers. Missing candidate steps remain incomplete. The scenario revision changes when the action sequence, expectations or capture specification changes. Use the same revision for both runs.
The optional comparator requires Python and Pillow. Run from the wiki root with a fresh output directory for each comparison.
python -B skills/gama-documentation/scripts/compare_ui_scenario.py skills/gama-documentation/references/scenarios/create-first-model.json tmp/ui/reference tmp/ui/candidate --out tmp/ui/comparisonRead report.json for observed evidence, the step status and the affected wiki page, section and
illustration. The comparator checks decoded RGBA pixels, so PNG metadata and compression may differ.
For same-size images with changed pixels, it records the count, percentage and bounding box and
writes a PNG highlighting changed pixels in red. A different image size is reported separately.
- Exit
0means every step passed and all required captures match exactly. - Exit
1means a recorded assertion failed or at least one capture changed. - Exit
2means a run was incomplete, incompatible or could not be read. This takes precedence when the report also contains a failed assertion or a visual difference.
A pixel difference calls for review. Use the assertions and the visual evidence to decide whether the path broke, a label or layout changed, or the capture is unstable. Reproduce unexpected diffs on the same build before replacing a reference. Update the linked instructions, caption or illustration when the change affects what the reader sees or does. The comparator reads recorded assertion results and screenshots. Replay and verification of the UI are performed by the agent.
- Installation and Launching
- Workspace, Projects and Models
- Editing Models
- Running Experiments
- Running Headless
- Exporting models and projects
- Preferences
- gama platform agent
- Troubleshooting
- Introduction
- Manipulate basic Species
- Global Species
- Defining Advanced Species
- Defining GUI Experiment
- Classes and Objects
- Exploring Models
- Optimizing Models
- Multi-Paradigm Modeling
- Manipulate OSM Data
- Cleaning OSM Data
- Diffusion
- Using Database
- Using Dataframes
- Using FIPA ACL
- Using BDI with BEN
- Using Driving Skill
- Manipulate dates
- Manipulate lights
- Using comodel
- Save and restore Simulations
- Using network
- Writing Unit Tests
- Ensure model's reproducibility
- Going further with extensions
- Built-in Species
- Built-in Skills
- Built-in Architecture
- Statements
- Data Type
- File Type
- Stats Extension
- Sound Extension
- BDI Extension
- FIPA Skill
- Expressions
- Exhaustive list of GAMA Keywords
- Installing the development version
- Introduction to GAMA Java API
- Developing Extensions
- Using GAMA flags
- Export plugin : Technical Documentation
- Creating a release of GAMA
- Documentation generation
- Desktop startup and deferred initialization