cg_sdk_session
Emulates a CrazyGames SDK session for a built HTML5 game, verifying gameplay, idle, tab hide, autosave, ads, and console errors with JSON verdicts.
Instructions
Plays the build in an emulated CrazyGames frame with an SDK emulator, then idles and hides the tab. Verdicts for gameplay pairs, pause on windows, SDK reads while idle, autosave, save on hide, localStorage, sound during ads, rewarded cooldown, initial download, console errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| init | No | JS run in the game frame before its scripts, e.g. a debug flag | |
| path | Yes | Game root, its build folder (dist, build/web) or the release zip | |
| query | No | Appended to the game URL, e.g. ?debug=1 | |
| steps | No | Run after boot, in the game frame: {click:selector} {tap:[x,y] viewport 0..1} {press:key,holdMs?} {wait:ms} {waitFor:selector,timeoutMs?} {eval:js} {check:label} {rewardedTwice:selector}. Default: steps of cg-scenario.json | |
| dialog | No | CSS selector of a window; default role=dialog, dialog[open], aria-modal | |
| engine | No | chromium | |
| adOutcome | No | How the emulated ad ends | finished |
| idleSeconds | No | No-input stretch in play; autosave needs >= 32 |