API Test Automation in Python With Tavern +Realtime Projects

Join the best course to learn how to implement an API test automation solution using Tavern-CI

4.35 (16 reviews)
Udemy
platform
English
language
Other
category
instructor
API Test Automation in Python With Tavern +Realtime Projects
76
students
3.5 hours
content
Apr 2022
last update
$44.99
regular price

What you will learn

HTTP request/response methods GET, POST, PUT, DELETE and PATCH

Tavern-CI, one of the most underrated API testing framework

Advanced Pytest, the unit and integration test framework that powers Tavern-CI

By working through an entire automation project from scratch you will learn all the skills needed to work on real projects

If you are looking for a job, with all this great knowledge you should be easily able to clear API automation interviews

For manual QA testers that are looking to transition into test automation this is a great course

How to use and write test cases for a publicly available API

Advantages over Postman, Insomnia and other API automation tools

Description

The course will teach you all you need to know about Tavern-CI which is a very under-rated API testing solution in Python. You will work through an actual project in the course using a public api and master all the skills needed to setup an automation suite for your project

Content

Introduction

Introduction
Course Overview
Walkthrough Of TVMaze API - the API backend for our project
HTTP Methods
How To Reach Me

Introduction to Tavern-CI

What is Tavern-CI
Why Tavern Over Postman Or Insomnia
Anatomy Of A Tavern Test
Variable Formatting
External Functions And Hooks
UPDATE: ext block in response changed as part of Tavern 1.0 breaking changes

Pytest - Test Runner

Pytest Installation With First Script
Pytest Fixtures
Conftest - Common Fixtures For All Modules
Use Pytest Fixture To Log How Long Each Test Took
Different Ways To Run Pytest
Control Run Order Of Your Tests

Automation Project - Test API end points in TVMaze API

Install Tavern And Run First Test Script
Test Case 1 - verify show Archer is scheduled on Wednesday
Test Case 2 - verify link in response for show Archer page is valid
Move Common Variables To A Configuration File
Test Case 3 - verify Benjamin is an actor in show Archer
Use Pytest Marks To Group Tests By Endpoints
Test Case 4 - verify pagination limit works on shows endpoint
Generate Test Report Summary
Add Delay Between Tests To Let API Backend Complete Request
Logging - Basics
Logging - Formatting And Handlers
Add Logging To Project
Move Logging Code To Its Own Module
Remove Pytest Warning Summary From Console Output
Use Params Instead Of URL Strings For Query Parameters

Bonus Lectures (source code files attached)

Clean DB Resources Everytime You Run Your Test Suites - Part 1
Clean DB Resources Everytime You Run Your Test Suites - Part 2
Use Environment Variables Instead Of Putting Sensitive Information In Your Tests

Reviews

Michael
November 24, 2022
Thanks for the course. Good introduction into tavern, the lectures about logging were a bit surprising since unrelated to tavern in my opinion. A bit more deep dive into tavern would be good.
Peter
March 28, 2022
This is a great course. There are not a lot of courses on this subject. The instructor did a very detailed job to explain the syntax of tavern yaml syntax. He keeps them very focus, for each session to be on one subject, and I feel very benefited
Syeda
August 1, 2021
Not too many courses on Tavern out there so this course covering that is great. Content was very useful and I was able to start using it immediately in my own work project. Looking forward to more topics and learn more
Sanket
July 27, 2021
The content is covering little bit of python and tavern. This is a good start to understand and learn tavern. However, there should be more lectures to include: - Built-in validators - enable or disable strict key checking on a per-stage - Reusing requests and YAML fragments - Reading request data from payload files, - Saving response data in to files, verification to be done between expected response and actual response - Sharing stages in configuration files - Using the run() function - Debugging a test Most of these points are highly needed for actual api testing.
Andrii
July 10, 2021
Thank you for this course. There is not much lectures about Tavern so it was useful. But it'd be great to have more examples about POST, PUT and DELETE as well. For example, generation of request body with external functions.
Nick
June 29, 2021
After contacting with the tutor, he answered swiftly on a question I had regarding the project's github and resources in generall. Overall, very helpful intro course for Tavern

Charts

Price

API Test Automation in Python With Tavern +Realtime Projects - Price chart

Rating

API Test Automation in Python With Tavern +Realtime Projects - Ratings chart

Enrollment distribution

API Test Automation in Python With Tavern +Realtime Projects - Distribution chart
3592592
udemy ID
10/25/2020
course created date
4/13/2022
course indexed date
Bot
course submited by