Skip to main content
await XceptoTest.Given(scenario, builder =>
{
var ssr = builder.SsrAdapterBuilder()
.WithBaseUrl(new Uri($"http://localhost:{scenario.GuiPort}"))
.Build();

ssr.Post("/auth/register")
.WithFormContent(new RegisterRequest(username, password).ToForm())
.AssertSuccess()
.AssertThatResponseContentString(Does.Not.Contain("id=\"errors\""));

ssr.Post("/auth/login")
.WithFormContent(new LoginRequest(username, password).ToForm())
.AssertSuccess()
.AssertThatResponseContentString(Does.Not.Contain("id=\"errors\""));

ssr.Get("/")
.AssertThatResponseContentString(Does.Contain(username));
});
fluentApi visualization

Readable tests

Xcepto features several Fluent Apis, helping you to write tests declaratively. One look at the test usually suffices to gather its meaning.

adapters visualization

Adapters for your infrastructure

Various technologies are integrated already.
Creating custom adapters works too!

bootstrapping visualization

Designed for distributed systems

Xcepto is build with bootstrapping in mind.