Udostępnij za pośrednictwem


PlaywrightServiceNUnit Class

Definition

NUnit setup fixture to initialize Playwright Service.

[NUnit.Framework.SetUpFixture]
public class PlaywrightServiceNUnit : Azure.Developer.MicrosoftPlaywrightTesting.TestLogger.PlaywrightService
[<NUnit.Framework.SetUpFixture>]
type PlaywrightServiceNUnit = class
    inherit PlaywrightService
Public Class PlaywrightServiceNUnit
Inherits PlaywrightService
Inheritance
PlaywrightServiceNUnit
Attributes
NUnit.Framework.SetUpFixtureAttribute

Constructors

PlaywrightServiceNUnit(TokenCredential)

Initializes a new instance of the PlaywrightServiceNUnit class.

Properties

ExposeNetwork

Gets or sets the expose network field for remote browsers.

(Inherited from PlaywrightService)
Os

Gets or sets the operating system for Playwright service.

(Inherited from PlaywrightService)
playwrightServiceOptions

Creates a new instance of PlaywrightServiceOptions based on the runsettings file.

RotationTimer

Gets or sets the rotation timer for Playwright service.

(Inherited from PlaywrightService)
RunId

Gets or sets the run ID.

(Inherited from PlaywrightService)
ServiceAuth

Gets or sets the default authentication mechanism.

(Inherited from PlaywrightService)
UseCloudHostedBrowsers

Gets or sets a flag indicating whether to use cloud-hosted browsers.

(Inherited from PlaywrightService)

Methods

Cleanup()

Cleans up the resources used to setup entra id authentication.

(Inherited from PlaywrightService)
GetConnectOptionsAsync<T>(Nullable<OSPlatform>, String, String, CancellationToken)

Gets the connect options for connecting to Playwright Service's cloud hosted browsers.

(Inherited from PlaywrightService)
InitializeAsync(CancellationToken)

Initialises the resources used to setup entra id authentication.

(Inherited from PlaywrightService)
SetupAsync()

Setup the resources utilized by Playwright service.

Teardown()

Tear down resources utilized by Playwright service.

Applies to