I am using mountebank for service virtualisation in my performance test. So, first time when I hit the mountebank service url with request parameter e.g. flightNo=513, it goes to target application using proxyOnce mode and saves the response in imposter at specific port but second time when I change the flightNo so I don't want to hit the target application but I want to manipulate the saved response based on the given flightNo. How can I do that in mountebank ? Please help.
Dynamically change the saved response in mountebank imposter without hitting target app
1.2k views Asked by Shivam At
1
You'll want to use the addDecorateBehavior, which allows you to access the incoming request (request.query.flightNo, in your case) to manipulate the saved response on the way out.