Praman — Agent-First SAP UI5 Test Automation Plugin - v1.2.0
    Preparing search index...

    Class ControlTreeReporter

    Aggregates UI5 control tree snapshots from failed test attachments and generates JSON and HTML reports.

    In onTestEnd(), the reporter reads attachments named 'ui5-control-tree' with application/json content type from failed tests only. In onEnd(), it writes:

    • control-tree-report.json — raw collected data
    • control-tree-report.html — standalone collapsible tree viewer
    // playwright.config.ts
    export default defineConfig({
    reporter: [
    ['playwright-praman/reporters', { outputDir: 'reports' }],
    ],
    });

    Implements

    • Reporter
    Index

    Constructors

    Methods

    • Writes the control tree report files (JSON + HTML).

      Parameters

      • _result: FullResult

        The full test run result (unused).

      Returns Promise<void>

      await reporter.onEnd(fullResult);
      
    • Collects control tree snapshots from failed test attachments.

      Parameters

      • test: TestCase

        The completed test case.

      • result: TestResult

        The test result containing attachments.

      Returns void

      reporter.onTestEnd(testCase, testResult);
      
    • Indicates this reporter does not write to stdout/stderr.

      Returns boolean

      Always false.

      reporter.printsToStdio(); // false