Donovan
11 years agoOccasional Contributor
Mock Service Response Logic
Hello Team,
I'm just getting into Mocking Up Services and discovered this is such great functionality. However, I need help with placing logic into my Mock Responses.
I have built two mock responses. I have also built two requests. I need to build logic in the Mock Service to return the associated response to the correct request.
How should I approach this? Do I create a Dispatch Script? If so, do I build a if statement in groovy in order to return back the correct response?
Thanks
I'm just getting into Mocking Up Services and discovered this is such great functionality. However, I need help with placing logic into my Mock Responses.
I have built two mock responses. I have also built two requests. I need to build logic in the Mock Service to return the associated response to the correct request.
How should I approach this? Do I create a Dispatch Script? If so, do I build a if statement in groovy in order to return back the correct response?
Thanks