LoadSmith logo
NetAlchemy test tool · reusable · domain-neutral

LoadSmith Stateful Replay

Load generation, log extraction, dual-leg replay and deterministic state verification around a real component. Network behavior and database state are observable without linking database engines into LoadSmith.

3stimulus modes: direct, provider, passive
2built-in providers: network and SQL
0database engine drivers linked into LoadSmith
v1 + v2legacy compatibility plus strict stateful corpus

One harness, four workflows

Lua load

Single, burst, sustained and scenario traffic over HTTP/TCP with TLS, framing and metrics.

Extract

Turn adapter logs into reusable JSONL corpus with configurable correlation and payload rules.

Dual-leg replay

Replay the inbound request and emulate the outbound host independently over HTTP or TCP.

Stateful replay v2

Prepare resources, drive or observe the component, assert state, collect evidence and clean up.

Deterministic case lifecycle

setup
fixtures and mocks
→
stimulus
direct / provider / passive
→
assertions
response, network, SQL
→
reverse cleanup
independent timeout

Providers open before SuiteLifecycle.Start. Every invalid provider, resource, path, operation or step fails during compilation, before effects. Cleanup and suite close still run after primary failures.

Three ways to activate the component

ModeActivationTypical use
directLoadSmith sends HTTP/TCP to the component.Public API, gateway or adapter behavior.
providerA trigger publishes through SQL or network.DB-driven/event-driven flow or provider diagnostics.
passiveNo injection; observe during a positive settle window.Scheduler, external source or autonomous processing.

Database boundary: external processes only

LoadSmith SQL provider
→
PluginClient A
→
plugin-db-*
→
Database
Component under test
→
PluginClient B
→
plugin-db-*
→
Same database

The consumers may share a database, but never a plugin process, connection or *sql.DB. Hash verification, spawn, handshake and shutdown reuse the existing HashiCorp plugin stack. gRPC and internal drivers are outside this release.

Evidence and release gates

Network

HTTP method/path, bounded payload evidence, TCP framing, interaction counts, forbidden and late calls.

SQL

Root-confined fixtures, structured rows, typed values, scalar checks, reset scripts and redacted errors.

Reliability

Strict compiler, reverse unwind, cancellation, cleanup taint, race tests and structured suite failures.

Automation

make test-stateful-all runs unit, race, plugin and component/shared-DB gates.

Verified support

TargetStatusEvidence
SQLite pluginSTATEFUL PASSHandshake, fixtures, typed assertions, reset, shutdown and two-process component E2E.
PostgreSQL / MySQL / SQL Server / OracleNOT DECLAREDArchitecture-compatible, but each engine still requires its own real plugin E2E.
LoadSmith binaryNO ENGINE LINKEDDependency gate rejects internal and known Go database engine drivers.