Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build AI Agents for Software Testing: Python & Playwright
New
1 students

Build AI Agents for Software Testing: Python & Playwright

Create test-generating, bug-reporting, self-healing agents that run in your CI pipeline. No AI background needed.
Created byFrancis Kihungu
Last updated 11/2026
English

What you'll learn

  • Explain the difference between a prompt, a workflow and an agent, and pick the right one for a testing task
  • Write an agent loop from scratch with tool calling, memory and a stop condition
  • Generate test cases, edge cases and test data from requirements and user stories, as structured JSON that pytest can use
  • Build a bug report agent that follows your template and flags likely duplicates using embeddings
  • Drive a real browser with Playwright from an agent, and keep it inside its allowed scope
  • Turn an OpenAPI specification into runnable API tests
  • Triage failing tests and propose self-healing fixes for broken locators
  • Run agents in GitHub Actions and post results on pull requests
  • Measure agent quality with evals, and control cost with token and step budgets
  • Defend agents against prompt injection and unsafe actions

Course content

13 sections • 73 lectures • 2h 31m total length
  • Welcome and how to use this course2:26
  • What an AI agent is, in testing terms2:03
  • Prompt, workflow or agent: which one for which job2:11
  • What agents do well in testing, and where they fail1:57
  • Course project tour and your 30-day plan1:24
  • Section 1 quiz: agents, workflows and prompts

Requirements

  • A computer running Windows, macOS or Linux, and an internet connection
  • Basic testing knowledge: you know what a test case and a bug report are
  • Beginner Python: variables, functions, lists and dictionaries (a refresher is included)
  • An API key from an AI provider. Course examples use Claude; running the full course costs roughly $1 to $5 in API usage, and every lab has a low-cost mode
  • No machine learning or prior automation experience needed

Description

This course contains the use of artificial intelligence.

Most testing teams already use AI for small things: a prompt here, a pasted stack trace there. This course goes further. You will build agents, programs that decide what to do next, call real tools, and finish a testing job without you holding their hand.

You start with an agent loop of about 60 lines of Python, so you see exactly what an "agent" is. Then you add the testing skills one at a time. One agent turns a user story into test cases and test data. Another drafts bug reports in your team's template and checks the bug tracker for duplicates. A third opens a browser with Playwright, explores a web app, and writes automated tests from what it finds. A fourth reads an OpenAPI file and builds API tests. A fifth looks at a failing test, decides whether the app or the test is wrong, and proposes a fix.

Then comes the part most courses skip. You will learn how to keep an agent safe and affordable: scope limits, prompt injection from web pages, cost caps, and a small evaluation suite so you know whether a change to a prompt made things better or worse. You will wire the agents into GitHub Actions so they run on every pull request.

Every lecture ends with working code you can run on your own machine. The final project combines everything into one Test Co-pilot that you can show in an interview or use on a real project tomorrow.

You do not need to know machine learning. You do need to be comfortable reading simple Python, and the first section includes a short refresher.

Who this course is for:

  • Manual testers who want to move into automation and AI-assisted testing
  • QA engineers and SDETs who want agents that reduce repetitive work
  • Crowdtesting and freelance testers who want to deliver clearer reports faster
  • Test leads who need to judge what AI agents can and cannot do for their team
  • Developers who own their own testing and want a faster feedback loop