99 Minute Workshop

API Testing in Python with Requests

with Bas Dijkstra

What You'll Learn

By the end of this workshop you'll be able to:

Create a JSON request payload and POST it to a REST API endpoint.

Perform a GET call and write assertions for JSON response body element values.

Perform a GET call and write assertions for basic response characteristics.

About This Workshop

In this, you'll get hands-on with requests, a popular Python library for consuming RESTful APIs. You'll learn how to write tests that check basic properties of REST API responses, such as HTTP status codes, as well as header and body element values.

We'll also see how we can create an object in Python that represents a JSON request payload and how to successfully POST it to an API. You'll also get a list of resources for further learning.

This workshop has been designed to be attended live. If you can’t make the scheduled time, it will stay available to replay in CrowdCast for 7 days. To get the most out of it, we highly recommend you attend it live!

Your Instructor

Bas Dijkstra

Bas Dijkstra

Test automation trainer and consultant | Python developer

I'm an independent test automation consultant with over 14 years of experience helping my clients improve their testing efforts through smart application of tools. I'm an experienced trainer in a range of topics related to test automation and software development.

What are 99 Minute Workshops?

  • Instructor-led
  • Short
  • Targeted
  • Outcomes-based
  • Learn live with others
  • Convenient
  • Included in Pro

    More Details

Transparent MoT Logo