Class PlaywrightCoverageIntegration
java.lang.Object
com.parasoft.coverage.integration.playwright.PlaywrightCoverageIntegration
Provides Playwright configuration for the currently executing Parasoft
coverage test.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.microsoft.playwright.Browser.NewContextOptionsCreates browser context options containing the Baggage header returned by CTP for the currently executing test.static voidupdateBrowserContextOptions(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.
-
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
-