In this talk, the attendees will learn how to get started with API testing. Considering the testing pyramid, it is important to have more API tests than UI tests. I will be covering topics including the basics of REST API, why do we need API tests, getting started with API tests, the testing frameworks and libraries to use(pytest, lemoncheesecake, unittest, requests, etc.) and test reporting.
Outline:
- Brief introduction to REST API
- Getting started with API testing
- Which testing frameworks and libraries to use in Python.
- Making API requests, Assertions and Response JSON parsing.
- Using framework: lemoncheesecake to write your API tests
- Understanding the Matchers provided by the framework to assert the API responses
- Live demo(running the API test suite that we created using lemoncheesecake)
- Generating test reports and logging assertions
Slides available at ->
https://anarang.github.io/api101s_devconf2020/#slide=1