Interface: AgentPlanScenario
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
readonlyassertions:string[]
Expected outcomes to verify after all steps complete.
controlsUsed
readonlycontrolsUsed:AgentPlanControlRef[]
Controls referenced by steps in this scenario.
name
readonlyname:string
Human-readable scenario name (used as test.step() label).
steps
readonlysteps:AgentPlanStep[]
Ordered list of steps in this scenario.