API Testing in Python with Requests

WHEN

-

WHAT

99 Minute Workshop

WHERE

Online

COST

All our 99-minute workshops are included with a Pro membership.

In this workshop you'll get hands-on with requests, a popular Python library for consuming RESTful APIs

Topics Bas will cover

We'll explore the following topics

Read full session description ->
  • 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

Meet 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.

-

API Testing in Python with Requests

Bas
99 Minute Workshop
Bas Dijkstra

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.

Takeaways

  • 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

Prerequisites

Bas has prepared a document for you to download with all the pre-requisites. 

Read through it carefully and let Bas know if you have any questions ahead of the workshop.

99 Minute Workshops

Short Digestable Live Online Workshops

Live and Instructor-led

All our 99-Minute Workshops are hosted live and led by an instructor.

Short and Targeted

These workshops are a max of two hours long which means they can easy be fit into your busy week. The short time also means they are targeted on a few learning outcomes.

Learn with Others

Connect and learn with other community members during these live online testing workshops.

Available with Pro Membership

All our 99-Minute Workshops are available with Pro Membership, you can attend as many as you like. We also do the odd free workshop with our partners.

All our 99-minute workshops are included with a Pro membership.

Frequently Asked Questions

Are the Workshops Recorded?

Our 99-minute workshpos are 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 them, we highly recommend you attend them live.