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
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.
Input schema and annotations of verify_start
Input schema and annotations of verify_start
Annotations:
title: "Start a check", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: truewait
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
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.
Input schema and annotations of wait
Input schema and annotations of wait
Annotations:
title: "Wait for a run", readOnlyHint: true, destructiveHint: false, openWorldHint: falseverify_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
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.
Input schema and annotations of verify_finish
Input schema and annotations of verify_finish
Annotations:
title: "Finish a check", readOnlyHint: false, destructiveHint: false, openWorldHint: false, idempotentHint: truestop
Stop a run (its result is couldnt_run, class stopped), or release a device driven directly.
Cancels.
Arguments
Example
tools/call params
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.
Input schema and annotations of stop
Input schema and annotations of stop
Annotations:
title: "Stop the run", readOnlyHint: false, destructiveHint: true, openWorldHint: false, idempotentHint: truesave_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
mobster test command that runs it again. structuredContent has path and replaced.
Input schema and annotations of save_check
Input schema and annotations of save_check
Annotations:
title: "Save a check", readOnlyHint: false, destructiveHint: false, openWorldHint: falsestatus
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
structuredContent has mobster_version, smart_available, smart_model, runs_dir, open_run and devices_open, with the simulator setup.
Input schema and annotations of status
Input schema and annotations of status
Annotations:
title: "Check Mobster", readOnlyHint: true, destructiveHint: false, openWorldHint: false