Python for Testing Track
Understand the fundamentals of software testing, learn how different testing techniques fit into the development process, and prepare for the PCAT™ – Certified Associate Tester with Python certification.
Intermediate
4-5 Weeks
English
Free (Core)
500+ people already enrolled
Core
6 modules
40+ lessons
hands-on labs,
interactive exercises,
real-life data analysis scenarios, quizzes, and tests,
a Diploma of Course Completion,
a 20% discount code for the PCAT™ certification exam.
Free
Sign Up For FreePython for Testing 102 (PT102) takes you beyond the fundamentals and into the practical world of building clean, maintainable, and scalable test suites using Python. You’ll learn how professional testers structure their code, manage resources, design robust assertions, apply mocking and fixtures, work with both unittest and pytest, and use TDD/BDD workflows to drive development with clarity and confidence.
By completing this course, you’ll build a strong foundation in software testing and be prepared for the PCAT™ – Certified Associate Tester with Python certification.
PT102 is organized into six learning modules. Each module explores a major area of Python-based software testing and includes step-by-step examples, hands-on tasks, and short assessments to help you put new skills into practice.
Python for Testing 102 (PT102) is ideal for:
To get the most out of PT102, you should have:
You should already be comfortable with basic Python programming. We recommend completing Python for Testing 101 (PT101), holding the PCEP™ – Certified Entry-Level Python Programmer certification, or having equivalent experience.
Entry
Certified Entry-Level Tester with Python
Associate
Certified Associate Tester with Python
By the end of this course, you will be able to:
Here’s a real snippet from the course so you can see how we learn in practice. One way to manage resources is by explicitly opening and closing them. Here’s an example of reading a file and making sure it gets closed:
main.py
file = open('the_file.txt')
try:
for line in file:
print(line, end='')
finally:
file.close()
Let’s break this down:
Learning to code happens by doing, not just reading. In the course, you’ll work through hands-on labs that turn concepts into real Python skills. Below are just a few examples of what you’ll build and solve.
Lab
Working with Context Managers
File handling becomes safer and cleaner with Python’s with statement. You’ll implement functions that rely on context managers to automatically manage opening and closing files.
Lab
Getting Started with Unit Testing
Instead of guessing whether code works, you’ll verify it with automated tests using Python’s unittest module. You’ll write structured test cases, run them, and debug failures when they appear.
Lab
pytest Fixtures: Setup and Teardown
Test setup gets cleaner as you replace repetitive code with reusable pytest fixtures. You’ll build setup/teardown logic, combine fixtures, and explore how scope affects isolation and performance.