Skip to main content

verify_start

Start a check: Mobster prepares its simulator, launches the app and fixes the expectations. Drive the app, then call verify_finish; with smart, Mobster runs the steps and you wait. Acts on the device. Arguments Fields of expect[] Fields of expect[].visible, expect[].absent, expect[].value and expect[].count Example
tools/call params
Returns The run’s status and run_id, as text and in structuredContent. While it is preparing, running (a Smart run) or finishing, call wait. At ready, screen holds the screen as an outline, with a JPEG of it unless the run started with image false. A finished run returns its verdict, as verify_finish does.
Annotations: title: "Start a check", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true

wait

Wait up to timeout_s seconds for a run that is preparing or running, and return what it became. Read-only. Arguments Example
tools/call params
Returns The run’s status and run_id, as text and in structuredContent. While it is preparing, running (a Smart run) or finishing, call wait. At ready, screen holds the screen as an outline, with a JPEG of it unless the run started with image false. A finished run returns its verdict, as verify_finish does.
Annotations: title: "Wait for a run", readOnlyHint: true, destructiveHint: false, openWorldHint: false

verify_finish

Judge the run by the expectations from verify_start and return the verdict, the proof frames and the report. Local. Arguments Example
tools/call params
Returns The verdict (passed, failed, needs_review or couldnt_run) and each assertion with what the screen showed. structuredContent has verdict, assertions, reason, report, run_dir, proof and cost_usd. With image true, the proof frame comes as a JPEG.
Annotations: title: "Finish a check", readOnlyHint: false, destructiveHint: false, openWorldHint: false, idempotentHint: true

stop

Stop a run (its result is couldnt_run, class stopped), or release a device driven directly. Cancels. Arguments Example
tools/call params
Returns The run’s verdict, as verify_finish returns it: a run stopped before it finished is couldnt_run, class stopped. A run still in a step returns status stopping: call wait. A device driven directly is released, with the run’s steps and its frames folder.
Annotations: title: "Stop the run", readOnlyHint: false, destructiveHint: true, openWorldHint: false, idempotentHint: true

save_check

Save a check as checks/<name>.yaml for mobster test and run_tests: from a finished check run, or a task in the Mobster app (its id from mobster history). Local. Arguments Example
tools/call params
Returns The saved file’s path and the mobster test command that runs it again. structuredContent has path and replaced.
Annotations: title: "Save a check", readOnlyHint: false, destructiveHint: false, openWorldHint: false

status

Report Mobster’s version, the simulator setup, whether Smart is available, where runs go, and the open run. Read-only. Arguments Takes no arguments. Example
tools/call params
Returns The Mobster version, whether Smart is on, the runs folder, the open run and the simulator setup. structuredContent has mobster_version, smart_available, smart_model, runs_dir, open_run and devices_open, with the simulator setup.
Annotations: title: "Check Mobster", readOnlyHint: true, destructiveHint: false, openWorldHint: false