Forum Discussion
JHunt
5 years agoCommunity Hero
Create a MockAction for GET with the resource path set to /customers. For Dispatch type, choose "Script". The script will look something like this:
String defaultCustomer= mockOperation.mockService.getPropertyValue('Customer_ID_Default')
if (mockRequest.path == "/customers/${defaultCustomer}") { return "Response 1" // return the name of the mock response to send
}
Related Content
- 4 years agoSuperTester
- 3 years agoCata
- 9 years agoKnowledge
Recent Discussions
- 17 hours agoGuhan-B
- 5 days agoruchisingh