Building a REST-assured test framework from scratch was surprisingly easy to do. Especially if you are using Maven or Gradle. The instructions on how to install and run the tests are also in the same location above. In order to add tests to our sample REST API testing framework, we needed some publicly available Restful APIs. The REST APIs for testing and prototyping at JSON Placeholder did the trick. The base class is very simple as you can see below. It obviously needs more work if you are planning on using it for more sophisticated APIs.
There are a total of 20 tests at the time of this post. The tests are simply validating response codes, certain content, or the size of the response object.
Sample #1: Validate status code
Stay tuned to find out the steps and instructions on how to use PowerShell to make http calls and load test results to TestRecon or other tools.
Set up your free account at testrecon.com




