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

99-Minute Workshops, the brand new addition to Ministry of Testing’s learning platform available only to our Pro Members.

Our short, instructor-led, workshops are the perfect way to explore and experiment with new ideas, keep updated with new tools and approaches to testing. Broadening your understanding of what it means to be a valuable member of a modern software development team.

API testing in Python with requests

In this workshop you'll get hands-on with requests, a popular Python library for consuming RESTful APIs - join Bas Dijkstra at his API testing in Python with requests workshop on the 14th of May 2021 at 7 PM (New Zealand Time).

After this workshop, you will 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 and basic response characteristics.

 

For more information on the 99-Minute Workshops click here.

Go Pro
99-minute workshops are only available to Pro members, Go Pro and you can join them all!

Instructor

Bas

Bas

Test automation trainer and consultant | Python developer

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.

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.

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

https://www.ontestautomation.com/