Api to reset the state of a specific scenario in Wiremock?
Author: rampatraCreated Jan 10, 2018Updated Aug 24, 2026
Labelsenhancementhelp wantedgood first issuehacktoberfest
Let's say a scenario has 3 states and I want to go back to the first state if for some reasons my code (which uses the wiremock's stub) executed 2 states successfully but failed to trigger the 3rd state.
I want to go back to the first state only after some set specific time. If the 3rd state doesn't get triggered within this set time then go back to state 1.
Source: wiremock/wiremock