Capture response time in wiremock recordings

  1. Capture timestamp when the request has been received by wiremock.
  2. Capture timestamp when the response has been received by wiremock, from the backend system.
  3. Register the difference as delay in wiremock stubs.

1. Capture timestamp when the request has been received by wiremock. Wiremock provides a RequestFilter to intercept incoming requests.

2. Capture timestamp when the response has been received by wiremock from the backend system.

3. Record the difference as delay in wiremock stubs.

--

--

--

building software @ Singapore Airlines | making code work for 8+ years | passionate about automation and “everything as code”.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Classical vs Prototypal Inheritance

Database Indexing Anti-Patterns

Deploy Django application to aws cloud in 25 steps in much simpler way

Abusing the Bing Search API to get access to Data and Visualize it

How to Solve Max Stack using Two Stacks?

Moonshine Subtitle Indonesia

The Typewriter Effect

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anurag Ashok

Anurag Ashok

building software @ Singapore Airlines | making code work for 8+ years | passionate about automation and “everything as code”.

More from Medium

Chapter 9: 끝이 보인다 (The End is Near)

The Cahuilla Stories of Tahquitz Canyon and Tahquitz Rock

Tahquitz Canyon and Tahquitz Rock

One year in and a trajectory changed

Double Think