Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Class ODataTraceReporter

    Aggregates OData request trace data from Playwright test attachments.

    Attach OData trace data in tests using testInfo.attach('odata-trace', ...), and this reporter will collect and aggregate the data into a JSON report.

    // playwright.config.ts
    import { defineConfig } from '@playwright/test';

    export default defineConfig({
    reporter: [
    ['./src/reporters/odata-trace-reporter.ts', { outputDir: 'reports' }],
    ],
    });

    Implements

    • Reporter
    Index

    Constructors

    Methods

    • Writes the aggregated OData trace report to odata-trace.json.

      Parameters

      • _result: FullResult

        The full test run result (unused).

      Returns Promise<void>

      await reporter.onEnd(fullResult);
      
    • Collects OData trace entries from test result 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