I have an api which exhibits some randomness, e.g., there are two responses which occur randomly but equally often.
How can I test something like this with postman?
One simple way would be to send the request multiple times and check the statistics of the responses (should be roughly half in the example above), but this can become problematic if there are many different possibilities and the probability of each one becomes rather small.
An alternative would be to include a debug key in the request which sets the random seed. This would allow to "freeze" certain expected responses so only a few requests need to be made.
Are there any other alternatives? What is the usual way to do this?