Skip to main content

Crate euv_automation

Crate euv_automation 

Source
Expand description

euv-automation

Dev-only UI automation testing driver, AI Schema v1/v2 (euv.ai.schema.v1 / euv.ai.schema.v2) same-frame runtime/layout introspection protocol, non-blocking async DevAutomationBridge, and versioned euv.ui-e2e.v1 recorder/replayer/verdict engine. All live dev bridge hooks compile to zero-cost no-ops under release builds (#[cfg(not(debug_assertions))]).

Structs§

AiA11yNode
Serializable semantic accessibility node exported from App::a11y_tree().
AiActionabilityReport
Strict pre-action actionability verification report including real hit-test occlusion diagnostics.
AiAppHooks
Optional host-application telemetry and interactive control hooks bound to AiSchemaProtocol or DevAutomationBridge.
AiBatchReport
Aggregated result returned by AiSchemaRequest::ExecuteBatch.
AiBatchStepResult
Per-action execution outcome entry emitted inside AiBatchReport.
AiDeltaTracker
Stateful per-session delta tracker computing added/updated/removed node diffs without resending full trees.
AiEdgesSummary
Serializable four-sided inset values (top, right, bottom, left) for margin and padding diagnostics.
AiFontSummary
Serializable typography and text wrapping metadata exported per AiLayoutNode.
AiHitTestResult
Result of an AI Schema HitTest query at logical coordinates (x, y).
AiInteractionInfo
Serializable pointer, focus, hover, and cursor interaction snapshot.
AiLayoutAnomaly
Automatically detected layout or visual anomaly reported in AiRuntimeSnapshot.
AiLayoutConstraints
Serializable layout constraints, flex/grid track config, spacing, and DPR-scaled physical bounds.
AiLayoutNode
Hierarchical scene and layout node exported by AI Schema v1/v2.
AiLogicalNode
Lightweight logical/semantic tree entry separated from computed layout and paint layers.
AiNodeDigest
Compact per-node change digest retained by AiDeltaTracker for incremental revision diffs.
AiObservationFrame
Coalesced latest-frame observation published from the UI thread with explicit dropped/gap markers.
AiPaintNode
Lightweight paint-layer entry recording stacking order, clip chain, visibility, and redaction.
AiPerfInfo
Serializable rendering and scene performance metrics exported to AI agents.
AiReactiveInfo
Serializable reactive graph telemetry exported from euv::reactive_stats().
AiRect
Serializable rectangle geometry (x, y, width, height) in logical or physical pixels.
AiRedactedRegion
Auditable record of a sensitive region masked out of both snapshot text and screenshot pixels.
AiRevisionDelta
Incremental scene delta computed between from_revision and to_revision.
AiRuntimeMeta
Serializable platform capabilities and registered dynamic OTA metadata.
AiRuntimeSnapshot
Complete AI Schema v1/v2 (euv.ai.schema.v1 / euv.ai.schema.v2) runtime snapshot.
AiSameFrameCapture
Same-frame diagnostic bundle pairing frame_id, scene_revision, asset version, logical/layout/paint/a11y trees, masked screenshot regions, and optional redacted RGBA FNV-1a digest.
AiSchemaProtocol
Stateless AI Schema v1/v2 protocol dispatcher and runtime inspector facade.
AiSchemaResponse
Unified AI Schema v1/v2 JSON response envelope.
AiStyleSummary
Compact visual style summary attached to each AiLayoutNode.
AiSubtreeResult
Result returned by partial subtree queries (AiSchemaRequest::QuerySubtree).
AiTransformSummary
Serializable 2D paint transform summary exported per AiLayoutNode.
AiVirtualListMeta
Virtualized scroll container metadata exposing logical scroll height and mounted child count.
AiWindowInfo
Serializable window and viewport state exported to AI agents.
DeclaredPlatformAdapter
Declarative host adapter descriptor for Web, Android, iOS, iPadOS, Desktop, HarmonyOS, Wearable, MiniApp, QuickApp, and Terminal targets.
DevAutomationBridge
Dev-only live non-blocking AI Schema v1/v2 loopback inspector bridge; compiles to a zero-sized no-op in release builds.
DevBridgeSession
Short-lived capability session scoped to a specific application and capability tier.
HeadlessE2eAdapter
In-process headless E2E adapter wrapping an euv::App and explicitly tagging HeadlessSimulated fidelity.
OrderFixtureConfig
Fault-injection and timing configuration for OrderWorkspaceFixture.
OrderRecord
Single deterministic order record stored inside the Order List & Editor reference fixture.
OrderStoreHandle
Shared host-side inspection handle for asserting authoritative business state alongside UI assertions.
OrderWorkspaceFixture
Deterministic Order List & Editor closed-loop E2E reference fixture and flow builder.
TerminalCliPipeAdapter
Captured pure-text CLI execution snapshot verified by TerminalCliPipeAdapter without faking graphical screenshots.
TerminalTuiGridAdapter
Captured PTY terminal TUI grid snapshot verified by TerminalTuiGridAdapter using character-cell output and cursor coordinates.
UiAnomalyAuditConfig
Tunable rule thresholds and toggles controlling UiAnomalyAuditor.
UiAnomalyAuditor
Stateless unified UI logic anomaly detection engine operating across App, SceneTree, DisplayList, and Framebuffer.
UiAnomalyFinding
Single UI logic or visual anomaly finding emitted by UiAnomalyAuditor.
UiAnomalyReport
Structured audit report returned by UiAnomalyAuditor and UiAutomator::audit_ui_anomalies.
UiAutomator
High-level UI automation driver operating directly over a live euv::App instance.
UiE2eAdapterCapabilities
Declared input/output capabilities and host availability for a cross-platform E2E adapter.
UiE2eAttemptRecord
Single execution attempt record preserved inside UiE2eResultV1::attempts so retries never overwrite initial failures.
UiE2eEnvironmentMeta
Environment and honesty metadata embedded in UiE2eResultV1.
UiE2eEventLogEntry
Structured execution event appended to UiE2eResultV1::event_log.
UiE2eFixtureMeta
Fixture isolation, seed, reset, and cleanup metadata embedded in a UiE2eFlowV1.
UiE2eFlowV1
Versioned euv.ui-e2e.v1 executable UI E2E flow shared across manual recording, AI runs, CLI, and CI.
UiE2eHtmlReport
Self-contained HTML5 report renderer linking UiE2eResultV1 steps with same-frame layout, screenshot, and event evidence.
UiE2eLocatorChange
Single locator update entry inside a UiE2eMigrationProposal.
UiE2eMigrationProposal
Reviewable locator-only migration proposal carrying a mandatory assertions_changed: false invariant.
UiE2ePlatformMatrixReport
Multi-platform release gate report aggregating independent per-platform E2E runs without letting headless stand in for real devices.
UiE2ePlatformRunReport
Per-platform E2E execution outcome preserving honest 4-state adapter status (pass/fail/inconclusive/unsupported).
UiE2eRecorder
Semantic UI E2E action recorder merging consecutive scroll/drag moves, redacting secrets, and never emitting idle sleeps.
UiE2eReplayer
Deterministic euv.ui-e2e.v1 flow replayer and euv.ui-e2e.result.v1 verdict engine.
UiE2eResultV1
Executor-produced euv.ui-e2e.result.v1 verdict artifact preserving initial failure records and bounded retry history.
UiE2eRetirementRecord
Explicit approved retirement record required before a flow may be classified as UiE2eVerdict::Retired.
UiE2eStepEvidence
Same-frame artifact evidence references linked to a UiE2eStepResultV1 and rendered in HTML reports.
UiE2eStepResultV1
Per-step execution result recorded into UiE2eResultV1, including NotRun for skipped trailing steps.
UiE2eStepV1
Single versioned step inside a UiE2eFlowV1 with explicit step ID and bounded timeout.
UiE2eTargetV1
Target execution environment metadata stored inside a UiE2eFlowV1.
UiE2eVirtualClock
Injectable deterministic monotonic clock (in milliseconds) enabling exact timeout testing in headless E2E runs.
UiStepResult
Execution telemetry and pass/fail result for a single UiTestStep.
UiTestReport
Aggregated UI automation test run report.
UiTestScript
Declarative JSON-serializable end-to-end UI automation test script.

Enums§

AiAction
Interactive UI action executable remotely through the AI Schema v1/v2 protocol.
AiAnomalyKind
Categories of layout or visual defects automatically detected for AI diagnostics.
AiCaptureSource
Authoritative pixel capture source recorded on AiSameFrameCapture.
AiGestureKind
High-level pointer or multi-touch gesture synthesized by AI agents.
AiLayoutState
Layout measurement status reported per node in AI Schema v2 so hidden or unmounted nodes never report fabricated geometry.
AiSchemaRequest
Structured AI Schema v1/v2 request envelope accepted by AiSchemaProtocol::handle.
AutomationError
Error returned when a UI automation query, interaction, or assertion fails.
DevBridgeCapability
Session capability tier separating read-only runtime observation from interactive UI actions.
UiAnomalyRule
Rules evaluated by UiAnomalyAuditor across scene layout, contrast, scroll chaining, reactive repaints, and display-list Z-order.
UiAnomalySeverity
Severity classification assigned to each UiAnomalyFinding.
UiE2eActionKind
Interactive action verb executed inside a UiE2eStepOp::Do step.
UiE2eAdapterStatus
Four-state honesty verdict for cross-platform adapter execution and release matrix gating.
UiE2eAssertKind
Observable verification predicate evaluated inside a UiE2eStepOp::Assert step.
UiE2eExecutionMode
Honest execution fidelity classification distinguishing simulated headless runs from real platform hosts.
UiE2eFailureCategory
Canonical failure taxonomy classification exported in euv.ui-e2e.result.v1.
UiE2eLocator
Semantic unique-target locator used by euv.ui-e2e.v1 steps (matching 0 or >1 nodes always fails).
UiE2eMigrationStatus
Lifecycle review status of a locator-only UiE2eMigrationProposal.
UiE2ePlatform
Cross-platform E2E target catalog covering all required graphical, mobile, desktop, wearable, mini-app, and terminal targets.
UiE2eStepOp
Structured step operation discriminated cleanly into do, wait, or assert (never arbitrary sleeps).
UiE2eStepStatus
Per-step execution status inside UiE2eResultV1.
UiE2eVerdict
Top-level execution verdict classified by the euv.ui-e2e.result.v1 verdict engine.
UiE2eWaitKind
Bounded wait predicate evaluated inside a UiE2eStepOp::Wait step.
UiSelector
Declarative semantic UI node locator shared by UiAutomator, AI Schema v1/v2, and euv.ui-e2e.v1.
UiTestStep
Declarative automation step executed inside a UiTestScript.
Value
Represents any valid JSON value.

Constants§

AI_ACTIONABILITY_AMBIGUOUS
Actionability check result code indicating more than one visible node matched the locator.
AI_ACTIONABILITY_DISABLED
Actionability check result code indicating the target node is disabled.
AI_ACTIONABILITY_NOT_FOUND
Actionability check result code indicating zero visible nodes matched the locator.
AI_ACTIONABILITY_OCCLUDED
Actionability check result code indicating another layer or node occludes the target hit-test point.
AI_ACTIONABILITY_OK
Actionability check result code indicating the target node is unique, visible, enabled, and receives hit-testing.
AI_ACTIONABILITY_UNMEASURED
Actionability check result code indicating the target node is unmeasured without valid layout geometry.
AI_CAPTURE_SOURCE_GPU_READBACK
Canonical same-frame capture source identifier for GPU readback capture.
AI_CAPTURE_SOURCE_OS_WINDOW
Canonical same-frame capture source identifier for OS window capture.
AI_CAPTURE_SOURCE_SOFTWARE_BUFFER
Canonical same-frame capture source identifier for CPU software framebuffer capture.
AI_CAPTURE_SOURCE_UNSYNCED
Canonical same-frame capture source identifier when frame pixels cannot be verified synchronized.
AI_SCHEMA_JSON_SPEC
Formal JSON Schema specification describing AiSchemaRequest, AiSchemaResponse, and AiRuntimeSnapshot.
AI_SCHEMA_PROTOCOL_VERSION
Version identifier for the euv AI Runtime & Layout Introspection Schema v1 protocol.
AI_SCHEMA_REDACTED_VALUE
Canonical redaction marker replacing sensitive input or secret-keyed node content in AI snapshots.
AI_SCHEMA_V2_PROTOCOL_VERSION
Version identifier for the euv AI Runtime & Layout Introspection Schema v2 protocol.
ANOMALY_DEFAULT_CLIP_OVERFLOW_TOLERANCE
Default tolerance in logical pixels for unscrollable Overflow::Hidden clipping checks.
ANOMALY_DEFAULT_EDGE_PROTRUSION_TOLERANCE
Default tolerance in logical pixels for child protrusion beyond a bordered parent card.
ANOMALY_DEFAULT_MAX_CONTROL_HEIGHT_DELTA
Default maximum allowed height delta in logical pixels among sibling toolbar controls.
ANOMALY_DEFAULT_MIN_CONTRAST_ERROR
Default WCAG 2.1 hard error contrast floor ratio (3.0:1).
ANOMALY_DEFAULT_MIN_CONTRAST_NORMAL_TEXT
Default WCAG 2.1 AA normal-body text contrast warning threshold (4.5:1).
ANOMALY_DEFAULT_MIN_NESTED_INSET
Default minimum inset in logical pixels between a bordered rounded parent card and a nested bordered child panel/table.
ANOMALY_DEFAULT_SAFE_AREA_TOLERANCE
Default tolerance in logical pixels for safe-area collision checks.
ANOMALY_DEFAULT_SIBLING_OVERLAP_TOLERANCE
Default tolerance in logical pixels for normal-flow sibling overlap checks.
DEV_AI_INSPECTOR_ADDR
Default localhost address for the dev-only AI Schema HTTP/JSON inspector server.
DEV_BRIDGE_DEFAULT_BUDGET_US
Default UI-thread frame budget in microseconds for DevAutomationBridge::poll.
DEV_BRIDGE_ERR_ACTION_FORBIDDEN
Structured error code emitted with HTTP 403 Forbidden when an action is attempted on a read-only session.
DEV_BRIDGE_ERR_BACKPRESSURE
Structured backpressure error code emitted with HTTP 429 Too Many Requests when the bounded control queue is saturated.
DEV_BRIDGE_ERR_SESSION_EXPIRED
Structured error code emitted with HTTP 401 Unauthorized when a short-lived session token has expired.
DEV_BRIDGE_ERR_UNAUTHORIZED
Structured error code emitted with HTTP 401 Unauthorized when a session token is missing or invalid.
DEV_BRIDGE_HEADER_SESSION_TOKEN
HTTP header carrying a short-lived dev automation capability session token.
DEV_BRIDGE_QUEUE_CAPACITY
Default fixed bounded control queue capacity between the async network worker and UI thread.
E2E_ERR_AMBIGUOUS_LOCATOR
Error code emitted when more than one visible node matches a strict unique locator.
E2E_ERR_ASSERTION_FAILED
Error code emitted when an explicit E2E assertion fails.
E2E_ERR_ASSERTION_MUTATION_FORBIDDEN
Error code emitted when a migration proposal attempts to alter original assertions.
E2E_ERR_DISABLED
Error code emitted when a target control is disabled and cannot be interacted with.
E2E_ERR_ENVIRONMENT_BLOCKED
Error code emitted when the execution environment is blocked before running steps.
E2E_ERR_FLOW_RETIRED
Error code emitted when a flow carries an approved retirement record.
E2E_ERR_LOCATOR_NOT_FOUND
Error code emitted when zero visible nodes match a strict unique locator.
E2E_ERR_OCCLUDED
Error code emitted when another overlay or node occludes a target’s hit-test point.
E2E_ERR_RUNTIME_ERROR
Error code emitted when runtime stepping or action dispatch fails.
E2E_ERR_TIMEOUT
Canonical failure taxonomy code for step/wait timeouts.
E2E_ERR_UNSUPPORTED_ADAPTER
Error code emitted when the requested execution adapter is unsupported.
E2E_ERR_UNSUPPORTED_SCHEMA
Error code emitted when a flow declares an unsupported schema version.
E2E_ERR_WAIT_TIMEOUT
Error code emitted when a bounded wait condition expires without becoming satisfied.
ORDER_FIXTURE_NAME
Canonical fixture name stored in UiE2eFixtureMeta.
ORDER_FLOW_ID_EDIT_QTY
Canonical happy-path flow identifier.
ORDER_HEADING_LOADING
Canonical heading text while the order list is still loading.
ORDER_HEADING_READY
Canonical heading text once the order list finishes loading.
ORDER_ROUTE_EDIT
Route path for the order quantity editor view.
ORDER_ROUTE_LIST
Route path for the virtualized order list view.
ORDER_STATUS_IDLE
Canonical status label shown before any save occurs.
ORDER_STATUS_INVALID
Canonical status label shown when the user enters an invalid quantity.
ORDER_STATUS_SAVED
Canonical status label shown once an async save completes.
ORDER_STATUS_SAVING
Canonical status label shown while an async save is in flight.
ORDER_TEST_ID_API_TOKEN
Stable test_id for the sensitive API token password input used for redaction audits.
ORDER_TEST_ID_EDITOR_BACK
Stable test_id for the Back-to-Orders button in the order editor.
ORDER_TEST_ID_EDITOR_HEADING
Stable test_id for the editor heading.
ORDER_TEST_ID_EDITOR_QTY_INPUT
Stable test_id for the quantity input in the order editor.
ORDER_TEST_ID_EDITOR_SAVE
Default test_id for the Save button in the order editor.
ORDER_TEST_ID_EDITOR_STATUS
Stable test_id for the async save status indicator in the order editor.
ORDER_TEST_ID_HEADING
Stable test_id for the order list heading.
ORDER_TEST_ID_LIST
Stable test_id for the virtualized order list container.
ORDER_TEST_ID_MODAL_BLOCKER
Stable test_id for the occlusion modal blocker overlay.
ORDER_TEST_ID_ROW_DEMO_001
Stable test_id for the first demo order row (demo-001).
ORDER_TEST_ID_ROW_DEMO_001_OPEN
Stable test_id for the first demo order Edit button.
ORDER_TEST_ID_ROW_DEMO_001_QTY
Stable test_id for the first demo order quantity label.
ORDER_TEST_ID_ROW_UNMOUNTED
Stable test_id for the off-screen unmounted virtual row placeholder.
UI_E2E_DEFAULT_FRAME_SAFETY_CAP
Default safety cap on frames stepped per wait loop when bounded by monotonic/virtual clock.
UI_E2E_DEFAULT_TIMEOUT_MS
Default bounded per-step timeout in milliseconds.
UI_E2E_DEFAULT_VIRTUAL_FRAME_MS
Default virtual millisecond increment per frame when using an injected virtual clock.
UI_E2E_FLOW_SCHEMA_V1
Canonical schema version identifier for versioned UI E2E flow files.
UI_E2E_MAX_RETRIES
Maximum permitted bounded clean retry count for transient failures.
UI_E2E_MAX_TIMEOUT_MS
Maximum permitted bounded per-step timeout in milliseconds.
UI_E2E_MIGRATION_SCHEMA_V1
Canonical schema version identifier for locator-only migration proposal artifacts.
UI_E2E_RESULT_SCHEMA_V1
Canonical schema version identifier for UI E2E verdict result artifacts.

Traits§

UiE2ePlatformAdapter
Cross-platform E2E execution adapter contract separating shared flow semantics from platform-specific input/output capture.

Type Aliases§

AiConfigHandler
Callback mutating any host-application runtime configuration key with a JSON value.
AiConfigReader
Callback reading host-application runtime configuration entries for requested keys (empty = all).
AiGameControlHandler
Callback dispatching a game engine command with structured JSON parameters.
AiNavigateHandler
Callback switching the active application route.
AiThemeHandler
Callback switching the active design scheme and/or appearance mode (Light / Dark).