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

    Class OTelReporter

    Playwright Reporter that emits OpenTelemetry spans for test lifecycle events.

    const reporter = new OTelReporter({ endpoint: 'http://localhost:4318' });
    

    Implements

    • Reporter
    Index

    Constructors

    Methods

    • Called once before all tests. Initializes the OTel provider.

      Parameters

      • _config: FullConfig

        Full Playwright config

      • _suite: Suite

        Root test suite

      Returns void

    • Called once after all tests. Shuts down the OTel provider, flushing spans.

      Parameters

      • _result: FullResult

        The full test run result

      Returns Promise<void>

    • Called when a test step begins (hooks, fixtures, user steps, pw:api calls).

      Parameters

      • test: TestCase

        The parent test case

      • _result: TestResult

        The test result

      • step: TestStep

        The step that began

      Returns void

    • Called when a test step ends.

      Parameters

      • test: TestCase

        The parent test case

      • _result: TestResult

        The test result

      • step: TestStep

        The step that ended

      Returns void

    • Called when a test begins execution.

      Parameters

      • test: TestCase

        The test case

      • _result: TestResult

        The test result (incomplete at this point)

      Returns void

    • Called when a test ends. Closes the test-level span.

      Parameters

      • test: TestCase

        The test case

      • result: TestResult

        The final test result

      Returns void

    • Whether this reporter prints to stdout. Returns false — OTel uses network export.

      Returns boolean