According to the World Quality Report 2018-19 the trend of the use of microservices and APIs is continuing to grow. Large applications are divided into smaller pieces, more manageable, simplifying development, testing and deployment. And allowing, in addition, a more frequent increase in improvements, with lower risk, greater flexibility and a better time-to-market.
This in turn, requires tests to run more and more at the API level, rather than at the user interface level. The growth of API test automation also continues and we are probably going to see an increase in this activity in the coming years. One of the most widespread tools among developers and testers is Postman, which claims to be used every month by 6 million developers and more than 200,000 companies to access more than 130 million APIs.
In this talk, Luis Fernando will discuss management, design and execution of API tests using the Postman / Newman tool. He will begin by introducing the concept of API and its different types, as well as its importance of context. He will also review current tools that the market offers, comparing some of them, such as HP UFT or SoapUI.
Then, Luis will show you best practices for designing and executing API tests using Postman, starting from the creation of call collections, global variables, environment variables, data for iterations, etc. and paying special attention to how to chain calls to various APIs and how to effectively verify that the response fits the expected result, as well as discussing the limitations of the tool.
Finally, Luis will talk about the unattended execution of API tests designed with Postman using Newman through the Windows command line. You’ll see how this facilitates the incorporation of tests into a continuous integration pipeline, such as Jenkins, and how to store and automatic analyse results.
After attending this talk, you’ll will be able to:
- Differentiate between the different types of APIs and the main tools available in the market for testing.
- Design collections of API calls in Postman, including environment variables, global variables, etc.
- Link API calls in Postman and include tests within them that effectively verify received responses.
- Run Newman tests designed in Postman and include these in a pipeline of continuous integration.
This talk is aimed at software QA professionals with an interest in API testing.