Skip to main content
Version: 1.x

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

readonly authMethod: "seed-inline" | "setup-project"

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

Authentication method used in the test.


complianceStatus

readonly complianceStatus: "PASSED" | "FAILED"

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

Overall compliance status.


fixturesUsed

readonly fixturesUsed: Record<string, number>

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

Praman fixture method usage counts (method name to invocation count).


forbiddenPatternScan

readonly forbiddenPatternScan: "PASSED" | "FAILED"

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

Result of forbidden pattern scan.


ui5ElementsInteracted

readonly ui5ElementsInteracted: number

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

Total number of UI5 element interactions in the test.


usingPlaywrightNative

readonly usingPlaywrightNative: number

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

Number of interactions using Playwright native methods (should be 0).


usingPramanFixtures

readonly usingPramanFixtures: number

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

Number of interactions using Praman fixtures.


version

readonly version: string

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

Version of the compliance report format.


violations

readonly violations: readonly string[]

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

List of compliance violations found (empty if PASSED).