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.
testInfo.attach('odata-trace', ...)
// playwright.config.tsimport { defineConfig } from '@playwright/test';export default defineConfig({ reporter: [ ['./src/reporters/odata-trace-reporter.ts', { outputDir: 'reports' }], ],}); Copy
// playwright.config.tsimport { defineConfig } from '@playwright/test';export default defineConfig({ reporter: [ ['./src/reporters/odata-trace-reporter.ts', { outputDir: 'reports' }], ],});
Optional
Writes the aggregated OData trace report to odata-trace.json.
odata-trace.json
The full test run result (unused).
await reporter.onEnd(fullResult); Copy
await reporter.onEnd(fullResult);
Collects OData trace entries from test result attachments.
The completed test case.
The test result containing attachments.
reporter.onTestEnd(testCase, testResult); Copy
reporter.onTestEnd(testCase, testResult);
Indicates this reporter does not write to stdout/stderr.
Always false.
false
reporter.printsToStdio(); // false Copy
reporter.printsToStdio(); // false
Aggregates OData request trace data from Playwright test attachments.
Remarks
Attach OData trace data in tests using
testInfo.attach('odata-trace', ...), and this reporter will collect and aggregate the data into a JSON report.Example