Smart Bear Ready API

February 02, 2017

I recently had a problem where our test analysts use Ready API software from Smart bear but our API authentication does a custom hashing function on the content. For tests to work we had to hash the entire request and apply headers for each test step.

There is an events hook in Ready API where you can add Java code to be run for event triggers. Unwrapping the content in the available request context API was difficult to figure out.

First open the Events dialog. Add a new event for RequestFilter.filterRequest to do something for every test step with a request.

https://gist.github.com/darraghoriordan/3915a246198dfe72e39f90f72566cc5e#file-header-groovy


Kyle Mathews

This site is written by Darragh ORiordan who lives and works in Auckland, New Zealand building things on the web. You should follow him on Twitter


Subscribe to my Tiny Letter

Get monthly updates and interesting tech news that I come across. I read heaps and pop the best stuff in a monthly email.

powered by TinyLetter