Inspect a stateful test
Plan a create, read and cancel sequence with assertions that expose a static response.
Explore the worked caseStateful workflows
Move beyond isolated responses. Give your application a configured API lifecycle and follow the same order from creation to cancellation.
Exercise an action and its later read together, instead of accepting the action response alone.
Check that subsequent requests refer to the same resource and return the state your scenario requires.
Configure the allowed lifecycle so your team can understand which action should lead to which result.
A workflow you can inspect
An accepted cancellation is only half the story. The next read should return the same order in its new state. Configured lifecycles let you exercise both sides of that interaction.
Put the whole sequence in your application test, from the first request to the later read.
No. Statecharts express rules you configure. Model the dependency behavior your test needs; your application and its own database remain responsible for real business effects.
No. Start with a prepared resource or explicitly configured episode creation. An ordinary recorded POST response does not automatically create an arbitrary resource for later requests.
Bundled lifecycles use an opt-in setting, and authored charts can bind separately. Recorded matches can answer before mutable state; check the returned identity and state with your application.
Resources
Plan a create, read and cancel sequence with assertions that expose a static response.
Explore the worked caseRead how configured resource state and chart transitions supply responses to your caller.
Read the technical guideUse the editor and supported chart configuration when you are ready to build your scenario.
Open configuration detailsStart with one dependency and one meaningful state change. Keep your application assertions in the test runner you already use.