As automation testing suites mature, the need to create maintainable tests increase. Creating easy reusable test harnesses becomes imperative, otherwise the test suites become outdated and cumbersome to the software development process. Furthermore, applications continue to push forward into a more service level architecture. This growth in RESTful services means our automated testing suites need to be robust and maintainable enough for the demand.
In this hands-on tutorial through a user story driven approach, you will learn how to create a robust RESTful API testing harness. You will learn guidelines on how to introduce good object-oriented design patterns for readable code. You will create common utility methods to wrap around third party libraries. Finally, you will build a data management layer for your calls’ payloads and parameters. Ruby and an existing local RESTful API will be used for training purposes, but the insights you gain are transferrable to any programming language and API.
Note: Ruby installation (2.3.3 preferred)