Python is hot right now. Several major surveys reveal that Python is one of the most popular programming languages these days. And it’s no wonder why – Python is easy to learn, reads beautifully, and has packages for just about everything. Python is also a great language for test automation for these very same reasons. Whether you are a manual tester learning to code for the first time, or you’re a developer at heart who needs to crank out some tests, Python could be a great language of choice.
In this talk, I’ll show you how to start testing with Python. We’ll use pytest as our core test framework, and we’ll write tests together to learn the features of pytest and Python by example. We will start with project and environment setup, proceed to unit tests, and ultimately include integration and end-to-end tests. We’ll also cover pytest features like parameters, fixtures, and plugins. By the time our talk is done, we will have a working test automation solution that can be extended with other new tests! I’ll share all example code as well.
This talk targets anyone who wants to dive head-first into learning Python test automation. I hope by the end of the talk that you’ll come to love Python as much as I do!
- To become introduced to the Python language.
- To learn the basics of the pytest framework and a few of its most useful plugins.
- To write tests at all levels (unit, integration, end-to-end) in Python.
- To see that Python is just as viable as other major languages for test automation.
Andrew Knight – Lead Software Engineer in Test – PrecisionLender, a Q2 Company
Andy Knight is the “Automation Panda” – an engineer, consultant, and international speaker who loves all things about software. His main passion is software testing and automation. He has designed and built robust test automation solutions for operating systems, service APIs, and Web apps with hundreds of tests running continuously. He also coaches others in good development, testing, and BDD practices. Andy currently works full-time as the lead software engineer in test at PrecisionLender, a Q2 company. Read his tech blog at AutomationPanda.com, and follow him on Twitter at @AutomationPanda.