Skip to content

E2ESessionAttribute

Namespace: E2E

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class E2ESessionAttribute : Attribute

Starts a test, or every test of a class, from a session a setup test saved. Upstream’s session option of test and describe. The session restores before the test body runs; a restore leaves no page open, so the test opens one first. The setup test runs before the test: when the session is not saved yet, the test runs the one setup test of its assembly that declares it (SetupDependencies); a session no setup produced fails the test with SESSION_UNAVAILABLE, and an engine that cannot restore state with UNSUPPORTED_CAPABILITY. The closest attribute wins: the method, then the class, then a base class. A setup test takes only its own method’s session. .NET-only name, as the port has no test() options object.

Inheritance: object → Attribute

View source

public E2ESessionAttribute(string name)

Starts a test, or every test of a class, from a session a setup test saved. Upstream’s session option of test and describe. The session restores before the test body runs; a restore leaves no page open, so the test opens one first. The setup test runs before the test: when the session is not saved yet, the test runs the one setup test of its assembly that declares it (SetupDependencies); a session no setup produced fails the test with SESSION_UNAVAILABLE, and an engine that cannot restore state with UNSUPPORTED_CAPABILITY. The closest attribute wins: the method, then the class, then a base class. A setup test takes only its own method’s session. .NET-only name, as the port has no test() options object.

Parameters

Name Type Description
name string

public string Name { get; }

The name a setup test saved the session under.

Value: string