In the previous chapter, we learned how to run script or batch files from our test suite and looked at a few examples. In this chapter, I will show how, as an architect, you can design API tests. Let’s get started.
Testing REST API with Web Client
I have implemented the rest calls here using a web client API, as mentioned in Chapter 1. However, you can use any other approach, like the RestAssured, HttpURLConnection, or Unirest APIs. In HP QC integration, I have used the Unirest API.