Skip to main content
Version: 1.x

Interface: AgentPlanScenario

Defined in: src/ai/agent-types.ts:95

A test scenario within an agent plan, containing ordered steps and assertions.

Intent

Group related test steps into a cohesive scenario for code generation.

Example

const scenario: AgentPlanScenario = {
name: 'Create BOM with Material and Plant',
steps: [step1, step2, step3],
assertions: ['Success message displayed', 'Record visible in table'],
controlsUsed: [createBtnRef, materialFieldRef],
};

Properties

assertions

readonly assertions: string[]

Defined in: src/ai/agent-types.ts:101

Expected outcomes to verify after all steps complete.


controlsUsed

readonly controlsUsed: AgentPlanControlRef[]

Defined in: src/ai/agent-types.ts:103

Controls referenced by steps in this scenario.


name

readonly name: string

Defined in: src/ai/agent-types.ts:97

Human-readable scenario name (used as test.step() label).


steps

readonly steps: AgentPlanStep[]

Defined in: src/ai/agent-types.ts:99

Ordered list of steps in this scenario.