Class WebPageInventory

Namespace
ProtoTest.Web.Pages
Assembly
ProtoTest.Web.Pages.dll

Records page inventory the one way every producer records it: each route is normalized to its page pattern and emitted as a web.page.available observation, so explicit configuration, the source scanner, Vue runtime discovery and the ASP.NET Core endpoint inventory land on the same identities.

public static class WebPageInventory
Inheritance
WebPageInventory
Inherited Members

Fields

AvailableObservationKind

The observation kind an available page is recorded under; every producer uses it.

public const string AvailableObservationKind = "web.page.available"

Field Value

string

SourceMetadataKey

The metadata key naming the producer that recorded an inventory entry.

public const string SourceMetadataKey = "web.page.source"

Field Value

string

VerifiedObservationKind

The observation kind a passing page assertion is recorded under; only this kind marks a page covered.

public const string VerifiedObservationKind = "web.page.verified"

Field Value

string

VisitedObservationKind

The observation kind a page the session opened is recorded under; it is evidence, not coverage.

public const string VisitedObservationKind = "web.page.visited"

Field Value

string

Methods

Record(ProtoExecutionContext, string, IEnumerable<string>, string, IReadOnlyDictionary<string, object>?)

Normalizes and records the routes, skipping duplicates and blank entries; returns how many were recorded. metadata carries producer-specific facts (session, application) and is copied, never mutated.

public static int Record(ProtoExecutionContext context, string targetName, IEnumerable<string> routes, string source, IReadOnlyDictionary<string, object>? metadata = null)

Parameters

context ProtoExecutionContext
targetName string
routes IEnumerable<string>
source string
metadata IReadOnlyDictionary<string, object>

Returns

int