In a world where software systems are rapidly becoming ever more distributed, knowing how to test and write automation for APIs is quickly becoming an indispensable skill for any modern software tester.
There are a lot of tools and libraries out there that can help you write and run tests for APIs, in various programming languages. Using the pytest unit testing framework and the requests HTTP library in Python is among the most tried and tested approaches for creating versatile and powerful API tests.
But how do you get started writing these tests? What do you need to know?
In this free 4-hour instructor-led workshop, Bas Dijkstra, Director of Academy at Inspired Testing and experienced software testing and automation consultant, will show you how to get started writing API tests in Python using pytest and requests.
And since this is a workshop, there will be plenty of hands-on exercises for you to learn this invaluable skill in the only way that really works: by getting your hands dirty and trying it out yourself!
What to bring?
- A laptop with a recent Python version (we recommend 3.8 or newer) installed
- Your favourite Python IDE (if you don’t have one, we recommend the Community version of PyCharm)
- We’ll take care of the rest in the workshop!
AGENDA
- Setting up your development project
- Writing and running your first API tests in Python
- Asserting on status codes, response headers and response body elements
- Creating data-driven tests
- Working with JSON and XML request and response payloads
- Running our tests as part of a CI/CD pipeline