Wiremock Success on Second Attempt

1.3k Views Asked by At

I have a scenario to test where the request in its first attempt fails and the same request on its second attempt succeeds. How can we mock the same through wiremock? Tried searching but was unable to find the solution.

1

There are 1 best solutions below

0
On BEST ANSWER

Try to use Stateful Behaviour

http://wiremock.org/docs/stateful-behaviour/