App Quality Kitv0.1.0

Scenarios

Describe a user workflow as YAML and walk through it as a guided run.

A scenario is a concrete workflow: an objective, fixtures (demo data only), steps with an expected result, and assertions. It is validated against schemas/scenario.schema.json.

id: create-record
title: Create a new record
objective: Create a new record using demo fixtures, save it, and verify persistence.
category: crud
fixtures:
  record_name: Demo Asset 001
steps:
  - action: click
    target:
      label: New Record
    expect:
      type: visible
      target:
        role: dialog
    caption: Click New Record to open the creation form.
  - action: fill
    target:
      label: Name
    value: "{{fixture.record_name}}"

{{fixture.<key>}} is replaced with the fixture value. Targets are a string or an object with label, role, test_id, selector or text. Actions include navigate, click, fill, select, press, resize_window, restart_app, screenshot and assert; see the schema for the full list and the expectation types.

Where scenarios come from

aqk looks in .aqk/scenarios/<id>.yaml of your project first, then in the kit’s scenarios/ (navigation, forms, CRUD, desktop window behaviour), and finally treats the argument as a path.

Guided run

aqk scenario run create-record --guided

For each step the CLI shows action, target, value and expectation and asks whether it succeeded. A failed step becomes a major finding with the step number. Guided runs are the basis for tutorial videos.

Edit this page on GitHub · Docs for v0.1.0