Thursday, 7 May 2020

WireMock tutorial


      Introduction to WireMock
      Setup WireMock project in Eclipse
      Hello World
      urlPathEqualTo: Match URL based on path
      uriPathMatching: Handle path parameters
      Read response from a file
      Generate dynamic http responses using Response Templates
      Set response code
      Return Error code and payload
      Create a stub with query parameter
      Generate Dynamic response from query parameter
      POST Request example
      Validate Request payload for all necessary properties
      Validate request payload values
      Post request: Response templating
      PUT request
      DELETE Request
      Verifying requests
      Simulate 5xx responses
      Simulating faults (Bad Responses)
      Configure latency
      Proxying example
      WireMock, springboot integration
      Run WireMock in standalone mode
      How to run WireMock service on different port?

Previous                                                    Next                                                    Home

No comments:

Post a Comment