Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
API Testing with Python, PyTest & AI-Assisted Automation
Rating: 4.3 out of 5(1,974 ratings)
16,819 students

API Testing with Python, PyTest & AI-Assisted Automation

Build a real API testing framework with Python, PyTest, SQL, reports, GitHub Actions CI/CD, and AI-assisted workflows.
Created byAdmas Kinfu
Last updated 9/2026
English
English [Auto],Spanish [Auto],

What you'll learn

  • Build a real API testing framework from scratch using Python and PyTest
  • Test REST API endpoints with real requests, responses, status codes, headers, and JSON payloads
  • Run and test a real Job Tracker application with a backend API and Swagger documentation
  • Organize API tests with reusable API clients, helper functions, fixtures, markers, and test case IDs
  • Write positive, negative, authentication, workflow, database, and security-focused API tests
  • Validate API behavior against a SQLite database using SQL queries from Python
  • Learn SQL and MySQL fundamentals in the bonus SQL tutorial section
  • Generate readable PyTest reports, including HTML and CI-friendly test output
  • Run API tests locally and in GitHub Actions CI/CD pipelines
  • Use AI as a practical assistant for documentation, test planning, boilerplate, and code review without depending on it blindly
  • Build a portfolio-ready API automation project you can explain in interviews

Course content

32 sections • 195 lectures • 33h 39m total length
  • Welcome to Modern API Testing with Python and AI7:16

    Welcome to Modern API Testing with Python and AI.


    In this opening lecture, students meet the instructor and get the big-picture promise of the course: building a real, professional API testing framework with Python, Pytest, a real application, GitHub repositories, reporting, and CI CD execution.


    The course uses a job tracking application as the system under test. Students will work with the API behind that application, review the Swagger documentation, run the app locally, and write automation against real endpoints instead of only practicing isolated scripts or basic status-code checks.


    This introduction explains why API testing is a major skill for QA automation engineers and SDETs. Modern applications often have many APIs behind a single user interface, so strong API testing skills are valuable for testing backend behavior, validating workflows, and supporting reliable releases.


    Students will build the framework from scratch so they understand every major part: project structure, configuration, API clients, helpers, fixtures, reports, test documentation, and GitHub Actions. The final result is something students can put in a portfolio, discuss in interviews, and adapt to real work.


    The lecture also sets expectations for the style of the course. This is real coding, not highly edited demo content. Mistakes, debugging, and troubleshooting are part of the learning process because they reflect what happens in real automation work.


    AI will be used as an assistant later in the course, especially for documentation, docstrings, test case tracking, pipeline work, and eventually code generation with human review. But students will first learn how to design and write API tests manually so they can judge the work correctly.


    Application repository: https://github.com/supersqa1/job-tracker-app-for-testing



  • Download the Course Materials0:05
  • Table Of Content - Course Overview8:04

    In this lecture, we walk through the full table of contents for the API Testing 2026 course so students know exactly what they will build and which sections they can skip if they already have experience.


    The course starts with a welcome, a preview of the application under test, and API basics such as requests, responses, status codes, and what an API call looks like. From there, students set up their environment with Python, an IDE such as Cursor, and the API application that will be tested throughout the course.


    The lecture explains that Pytest is the test runner and engine for the framework. Students get a Pytest crash course before building the actual API testing framework from an empty folder. The framework grows step by step with test structure, API clients, helper methods, more tests, SQL and database validation, negative testing, documentation, test case IDs, and reporting.


    The course also includes practical AI usage. Early sections use AI mostly for documentation, test case tracking, and docstrings while students still write the automation by hand. Later sections use AI more like a real-world engineering assistant after the fundamentals are in place.


    The table of contents also highlights CI CD with GitHub Actions, plus Pytest features like parameterization and fixtures. By the end, students will have a professional API testing framework with roughly 80 to 90 automated tests that can run locally and in CI CD.


    This lecture sets expectations: the course is hands-on, practical, and focused on building a real framework students can understand, explain, and eventually use as portfolio proof.



  • api_testing_course_preview_of_end_result6:35

    In this lecture, students get a quick preview of the end result they will build in the API Testing 2026 course.


    The video shows the application under test, a job tracker application with a frontend, backend APIs, and Swagger documentation. Students see why API testing matters: the frontend communicates with the backend through APIs, and our job is to verify that those interactions work correctly.


    The lecture also introduces the broader real-world context. The application is an open-source job tracking project, and the API tests are part of a professional software development lifecycle. Students will eventually clone the application, run it locally, write automation against it, and connect those tests to a CI CD pipeline.


    Students also see the final automation outcome: a Pytest-based API testing framework, GitHub Actions running the tests in CI CD, around 85 passing tests, and an HTML report generated from the test run. The same suite can run locally from the IDE and in the pipeline.


    The lecture makes it clear that this is not just a small tutorial exercise. The goal is to build a scalable API testing framework that includes real application context, API documentation, local execution, CI CD execution, reporting, and a portfolio-ready project students can explain with confidence.


    Students may use Cursor, VS Code, IntelliJ, or another IDE. AI will be introduced as a practical assistant later in the course, but the foundation of API testing will be built manually first so students understand what the automation is doing.


    Application repository: https://github.com/supersqa1/job-tracker-app-for-testing



Requirements

  • Basic Python knowledge, but the course includes a focused PyTest crash course
  • Basic software testing knowledge is helpful, especially manual testing or QA experience
  • A Mac or Windows computer where you can install Python and run local development tools
  • No prior API automation framework experience is required
  • No prior CI/CD or database automation experience is required; the course introduces those topics step by step

Description

Learn API Testing by Building a Real Automation Framework


Learn API testing and backend automation by building a real Python and PyTest testing framework from the ground up.


This course is a complete rebuild of my API testing course for modern QA automation engineers, SDETs, and testers who want practical backend testing skills. Instead of only sending simple API requests or checking status codes, you will work with a real Job Tracker application, explore its Swagger documentation, run the backend locally, and build automated tests against real API workflows.


What Makes This Course Different


This is not a toy API demo. The course uses a real application with a frontend, backend API, authentication, database storage, Swagger documentation, and realistic workflows.


You will test public endpoints, authenticated endpoints, create/update/delete application workflows, negative scenarios, error responses, and API behavior that needs database validation.


API Testing Fundamentals


You will start with the fundamentals before jumping into automation:


- What APIs are and why applications use them

- How HTTP requests and responses work

- How JSON payloads are sent and returned

- How status codes communicate success and failure

- How Swagger helps you explore API documentation

- How Postman helps you practice API calls before writing code


Python and PyTest Framework


You will build a Python API testing framework step by step using PyTest.


The framework grows naturally as the tests become more realistic. You will create:


- Test files and project structure

- Configuration for different environments

- A reusable API client

- Helper functions for setup and cleanup

- PyTest fixtures

- Markers and test case IDs

- HTML reports and CI-friendly output

- GitHub Actions CI/CD execution


Real API Test Coverage


The course includes practical API automation examples such as:


- Public API endpoint tests

- Authentication tests

- Protected endpoint tests

- Create application workflow tests

- Update application workflow tests

- Delete application workflow tests

- Negative API tests

- Error response validation

- Database-backed API verification

- Security-focused backend checks


SQL, MySQL, and Database Validation


This course also includes a bonus SQL and MySQL tutorial.


SQL is a valuable skill for QA engineers, automation testers, and SDETs because many backend testing jobs require some database understanding. The bonus SQL section gives you practical SQL practice with MySQL, then the API testing sections show how database validation fits into real backend automation work.


You will also learn when API response validation is enough, when database validation is useful, and how to query a local SQLite database from Python to verify backend behavior, audit logs, and security-related data.


Reports and CI/CD


A real automation framework should not only run on your laptop.


You will learn how to generate practical PyTest reports and run your API tests in GitHub Actions CI/CD. By the end, your tests can run locally and in a pipeline, with organized output that is easier to review and share.


AI-Assisted Testing Workflow


Modern testing work increasingly includes AI-assisted workflows, so this course shows practical ways to use AI without turning the course into AI hype.


You will see how AI can help with documentation, test case tracking, boilerplate code, docstrings, repetitive framework work, and code review.


But the core testing decisions stay human. You will learn what to test, how to verify behavior, how to review generated code, and how to run tests to prove the framework works.


Portfolio and Career Value


By the end of the course, you should be able to build and explain a real API testing framework using Python, PyTest, SQL validation, reports, and CI/CD.


You will also have a portfolio-ready API automation project that shows practical backend testing skills employers care about.

Who this course is for:

  • QA engineers and manual testers who want to move into API automation testing or Backend testing
  • Automation testers who want to build stronger backend testing skills with Python and PyTest
  • SDETs who want a practical API testing framework example with real workflows, SQL validation, and CI/CD
  • Students preparing for QA automation or SDET interviews who want a portfolio-ready API testing project
  • Testers who know some Python and want to learn how to apply it to real API/backend testing
  • Anyone who wants to understand modern API testing workflows, including AI-assisted test development with human review