Interface: AiGeneratedTest
Defined in: src/ai/types.ts:496
Result of AgenticHandler.generateTest() — a fully generated Playwright test.
Remarks​
steps contains natural-language descriptions of each step.
code contains the generated TypeScript/Playwright code.
metadata carries provenance for debugging and auditing.
Intent​
Hold the output of an AI-generated Playwright test including code and provenance.
Capability​
AI test generation, agentic workflow.
Example​
const result: AiGeneratedTest = {
steps: ['Navigate to app', 'Fill form', 'Submit'],
code: "test('example', async ({ ui5 }) => { ... })",
metadata: {
model: 'gpt-4o',
tokens: { input: 1200, output: 340 },
duration: 1850,
capabilities: ['click-button', 'fill-input'],
},
};
Properties​
code​
readonlycode:string
Defined in: src/ai/types.ts:500
Generated TypeScript/Playwright test code.
metadata​
readonlymetadata:object
Defined in: src/ai/types.ts:502
Provenance and cost metadata for the generation.
capabilities​
readonlycapabilities:string[]
Capability IDs referenced during generation.
duration​
readonlyduration:number
Duration in milliseconds for the LLM call.
model​
readonlymodel:string
Model used for generation.
tokens​
readonlytokens:object
Token usage breakdown.
tokens.input​
readonlyinput:number
tokens.output​
readonlyoutput:number
steps​
readonlysteps:string[]
Defined in: src/ai/types.ts:498
Natural-language description of each test step in order.