Interface: AgentComplianceReport
Defined in: src/ai/agent-types.ts:179
Compliance report for generated or healed test code.
Remarks
Tracks how many UI5 element interactions use Praman fixtures vs Playwright native methods. A compliant test has 100% Praman fixture usage for UI5 elements and zero forbidden pattern violations.
compliancePercentage is computed as:
usingPramanFixtures / ui5ElementsInteracted * 100
Intent
Verify and report Praman compliance of generated test code.
Example
const report: AgentComplianceReport = {
version: '1.0.0',
ui5ElementsInteracted: 12,
usingPramanFixtures: 12,
usingPlaywrightNative: 0,
fixturesUsed: { 'ui5.control': 8, 'ui5.table.getRows': 2, 'ui5Navigation.navigateToTile': 1, 'ui5Footer.clickSave': 1 },
authMethod: 'seed-inline',
forbiddenPatternScan: 'PASSED',
violations: [],
complianceStatus: 'PASSED',
};
Properties
authMethod
readonlyauthMethod:"seed-inline"|"setup-project"
Defined in: src/ai/agent-types.ts:191
Authentication method used in the test.
complianceStatus
readonlycomplianceStatus:"PASSED"|"FAILED"
Defined in: src/ai/agent-types.ts:197
Overall compliance status.
fixturesUsed
readonlyfixturesUsed:Record<string,number>
Defined in: src/ai/agent-types.ts:189
Praman fixture method usage counts (method name to invocation count).
forbiddenPatternScan
readonlyforbiddenPatternScan:"PASSED"|"FAILED"
Defined in: src/ai/agent-types.ts:193
Result of forbidden pattern scan.
ui5ElementsInteracted
readonlyui5ElementsInteracted:number
Defined in: src/ai/agent-types.ts:183
Total number of UI5 element interactions in the test.
usingPlaywrightNative
readonlyusingPlaywrightNative:number
Defined in: src/ai/agent-types.ts:187
Number of interactions using Playwright native methods (should be 0).
usingPramanFixtures
readonlyusingPramanFixtures:number
Defined in: src/ai/agent-types.ts:185
Number of interactions using Praman fixtures.
version
readonlyversion:string
Defined in: src/ai/agent-types.ts:181
Version of the compliance report format.
violations
readonlyviolations: readonlystring[]
Defined in: src/ai/agent-types.ts:195
List of compliance violations found (empty if PASSED).