Nick Fisher's tech blog

Rest Assured

How to Configure Rest Assured to Record the Latency of Every Request In a Custom Way

Sample code associated with this post can be found on Github.

Rest Assured is a library that makes it easy to write api based automated tests in java. Recently I needed to find a way to record the latency of each request as well as some metadata about it [request path, method, things of that nature]. I found a nice way to do this with rest assured filters, and I’m going to share that with you in this article.