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
- 7 years agominoseah629
- 4 years agoSuperTester
- 9 years agojonrey
Recent Discussions
- 14 days agosmilnik