Interface: AgentComplianceReport
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"
Authentication method used in the test.
complianceStatus
readonlycomplianceStatus:"PASSED"|"FAILED"
Overall compliance status.
fixturesUsed
readonlyfixturesUsed:Record<string,number>
Praman fixture method usage counts (method name to invocation count).
forbiddenPatternScan
readonlyforbiddenPatternScan:"PASSED"|"FAILED"
Result of forbidden pattern scan.
ui5ElementsInteracted
readonlyui5ElementsInteracted:number
Total number of UI5 element interactions in the test.
usingPlaywrightNative
readonlyusingPlaywrightNative:number
Number of interactions using Playwright native methods (should be 0).
usingPramanFixtures
readonlyusingPramanFixtures:number
Number of interactions using Praman fixtures.
version
readonlyversion:string
Version of the compliance report format.
violations
readonlyviolations: readonlystring[]
List of compliance violations found (empty if PASSED).