Class PlaywrightCoverageIntegration

java.lang.Object
com.parasoft.coverage.integration.playwright.PlaywrightCoverageIntegration

public final class PlaywrightCoverageIntegration extends Object
Provides Playwright configuration for the currently executing Parasoft coverage test.
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.microsoft.playwright.Browser.NewContextOptions
    Creates browser context options containing the Baggage header returned by CTP for the currently executing test.
    static void
    updateBrowserContextOptions(com.microsoft.playwright.Browser.NewContextOptions options)
    Updates the given Playwright browser context options with the Baggage header returned by CTP for the currently executing test.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createBrowserContextOptions

      public static com.microsoft.playwright.Browser.NewContextOptions createBrowserContextOptions()
      Creates browser context options containing the Baggage header returned by CTP for the currently executing test.

      When the current test has no baggage value, such as in single-user mode, the returned options contain no additional HTTP headers.

      Returns:
      new Playwright browser context options for the current test
    • updateBrowserContextOptions

      public static void updateBrowserContextOptions(com.microsoft.playwright.Browser.NewContextOptions options)
      Updates the given Playwright browser context options with the Baggage header returned by CTP for the currently executing test.

      When the current test has no baggage value, such as in single-user mode, the options remain unchanged.

      Parameters:
      options - the Playwright browser context options to update