Live Invocation - Optum/mockiato GitHub Wiki

Live Invocation configuration


Screenshot 2019-10-25 at 5 38 45 PM
  1. Using Firefox or Chrome browser navigate to mockiato URL.
  2. Enter MS credentials to log in to the application.
  3. Select Browse->Services to locate the service on which you wish to enable live invocation.
  4. Check the β€œPerform Live Invocation” checkbox to display the options.
  5. Select β€œInvoke Pre or Post Virtual” option as per your need
  • Use Live Service First – This option will tell Mockiato to call the live service first to get the response. If there is an error in calling the live service then Mockiato will automatically check the request and provide the corresponding virtual response to the user.
  • Use Virtual Service First - This option will tell Mockiato to check the Mockiato service Repository first and will return the virtual response. If the Mockiato service does not have a match in its repository then Mockiato will automatically call the live service and provide the live response.
  1. Set up live service details.
  • Provide live service hostname, port number, and base path.
  • Filter responses – This is used to filter out any unwanted responses based on status code, header value, or body string value.
  • Select Use HTTPS checkbox if your service has HTTPS in its URL.
  • Select the Record Live Services checkbox if you would like to record the live request and response and add it to Mockiato.
  • Click on the Update button to add any changes.
  1. Test your service and check response header value for β€œ_mockiato-is-live-backend”. If the value is true your response was returned from the live service. If the value is false your response was returned by Mockiato.




Back                                       Next

⚠️ **GitHub.com Fallback** ⚠️