Skip to content

TestContext

Namespace: E2E

public sealed class TestContext

The fixtures for one test. Call String) before the first step when a precondition is missing.

Inheritance: object

View source

public required Agent Agent { get; init; }

Value: Agent

View source

public required App App { get; init; }

Value: App

View source

public required Browser Browser { get; init; }

The browser fixture. Its members fail with UNSUPPORTED_CAPABILITY on an engine without a browser.

Value: Browser

View source

public CancellationToken CancellationToken { get; init; }

Value: CancellationToken

View source

public required string Platform { get; init; }

The engine platform, such as web or document.

Value: string

View source

public required Screen Screen { get; init; }

Value: Screen

View source

public void Skip(bool condition, string reason)

Parameters

Name Type Description
condition bool
reason string

View source