E2ETest
Namespace: E2E.NUnit
public abstract class E2ETest : E2EFixtureBase class for an NUnit test that drives the app. Setup starts one engine
session. Teardown commits the replay cache from the NUnit result: a pass
or a skip records verified acts, a failure evicts the unverified ones it
recorded or replayed, and a cancelled test leaves the cache alone. The first
attempt can replay. [Retry] attempts run live and still record. Each
[Repeat] iteration is a first attempt. A check in a derived [TearDown]
after a failure verifies nothing.
Each Expect.Soft failure is recorded on the NUnit result, as inside
Assert.EnterMultipleScope, so the test fails when its body ends and
lists every soft failure. A soft failure outranks a skip: Assert.Ignore or
Assert.Inconclusive after one fails the test, and the skip reason stays in the message.
Settings come from E2EFixture.
Inheritance: object → E2EFixture
Methods
Section titled “Methods”CacheTitle(TestAdapter)
Section titled “CacheTitle(TestAdapter)”protected virtual string CacheTitle(TestContext.TestAdapter test)The test’s title: its cache identity, and the Test: line every prompt’s context opens with. The default is the NUnit
full name, so each test keeps its own replay.
Parameters
| Name | Type | Description |
|---|---|---|
test |
TestContext.TestAdapter |
Returns: string
FinishE2ESessionAsync()
Section titled “FinishE2ESessionAsync()”[TearDown]public Task FinishE2ESessionAsync()Returns: Task
RecordSoftFailure(TestException)
Section titled “RecordSoftFailure(TestException)”protected virtual void RecordSoftFailure(TestException failure)Records an Expect.Soft failure on the running NUnit test. The test body runs on and fails when it ends.
Parameters
| Name | Type | Description |
|---|---|---|
failure |
TestException |
StartE2ESessionAsync()
Section titled “StartE2ESessionAsync()”[SetUp]public Task StartE2ESessionAsync()Returns: Task