Hi everyone,
I am currently working with the Mock Framework plugin in OutSystems 11 to mock REST API responses for testing purposes.
I have successfully installed and configured the Mock Framework, and I am able to execute the REST API call. However, when I invoke the API, the Mock Framework audit log displays the following error:
Error Message:"There is no mock config for this method"
Method URL:/MockAPI_Provider/rest/CustomerDetails/GetCustomerDetails
HTTP Method: GET
Request Details:
{ "BaseURL": "https://personal-5lvoq1v7.outsystemscloud.com", "URLPath": "/MockAPI_Provider/rest/CustomerDetails/GetCustomerDetails", "URLQueryParameters": [ { "Name": "CustomerID", "Value": "102" } ], "HTTPMethod": "GET", "Headers": [ { "Name": "User-Agent", "Value": "OutSystemsPlatform" } ]}
Response:No response defined
I would like to understand how to configure the mock response correctly for this REST API method.
My questions are:
How do I create a mock configuration for an existing REST API method in the Mock Framework?
Do I need to provide the complete REST API URL or only the method URL path while configuring the mock?
How can I map the request parameters (CustomerID = 102) to the corresponding mock response?
Is there any additional setup required to ensure that the Mock Framework intercepts the API request and returns the configured mock response?
I have already installed the plugin and enabled mocking, but I am unable to get the expected mock response.
Any guidance or step-by-step instructions would be appreciated.
Thanks in advance!