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

How to Enable Authentication on MongoDB

Application Layer Protocols

How to Deploy a Test-Ready Django Rest Framework Project to Heroku Using Gitlab-CI and PostgreSQL

Visual Studio 2019: Unveiling The Hidden Gems That Boost Developer’s Productivity

What is Rack? (Not Rake) — where Rails begins!

IBM Spectrum Scale CSNA + Grafana on RedHat OCP

6 Tips for Learning Code Faster

[01]Burp Suite tutorial: Starting up with Burp and OWASP BWA VM(Installation)

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

Improving the self-checkout counters at Cold Storage

What is spirituality in christianity

Hula Hoop Shelf Adventures

The Sole Mate 24.1 “An Ice Cube in Red Wine”