Delay test result until process completes

Hey @hpack, welcome to the Postman community.

I posted the above thread a while ago, let me know if it helps you out at all.

From what I remember, I believe I’m using a POST request to create a customer, and then using a GET customers endpoint to confirm if that customer now exists. But it may take a few seconds for that customer to exist, this scenario will obviously fail when the test is ran via the collection runner.

So I basically, keep hitting the GET customers endpoint x times until the record is there. If after X times the customer record is still now there then we go “Ok, we’ve tried enough times now and the customer record is still not there. Let’s mark this as failed and move onto the next request”

Hopefully the thread can give you some value even though my solution sounds a little messy/hacky :slight_smile: