richie
5 years agoCommunity Hero
Stubbing/Mocking Additional Services That Provide My Endpoint With Data When Endpoint Is Hit
Hey!
I have an endpoint (called it endpoint A) that when it receives a request then makes calls to a couple of different endpoints for data (example a UK National Insurance Number) that endpointA adds to my response.
Is this possible? I only really know the basics of mocking - so any advice anyone can provide would be spiffy cos im really out of my depth here!
thanks to all for any hints/tips/guidance anyone can give me!
ta
rich
Hi richie !
Here are some ideas. We have the VirtResponse Test Step. It waits for the request and when there's a trigger attempts to send a request on its own. The idea is to use this test step to send the main request. And, to use EventHandler to send additional requests.Docs that can be of help: