< All Training Courses

API testing in Python with requests

Summary

This workshop will get you started with writing tests for RESTful APIs in Python, using the popular requests library

99 Minutes

Max 100 attendees

Online

testing-tools, technical-testing, programming, api-automation

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

  • Perform a GET call and write assertions for basic response characteristics
  • Perform a GET call and write assertions for JSON response body element values
  • Create a JSON request payload and POST it to a REST API endpoint

Description

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.

Meet the Instructor

Bas

Bas

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.

Next Classes

API testing in Python with requests - 19 August 2020 (New York, US Timezone)

August 19th 2020

Online

Bas

API testing in Python with requests - 16 November 2020 (UK Timezone)

November 16th 2020

Online

Bas

API testing in Python with requests - 08 February 2021 (UK Timezone)

February 8th 2021

Online

Bas

API testing in Python with requests - 14 May 2021 (New Zealand Timezone)

May 14th 2021

Online

Bas

Register Your Interest

Please sign in or sign up to register your interest in this training

Private Booking

Interested in having this course ran internally at your company? Get in touch and we'll see if we can make that happen.

Book Training