Book Image

Elegant Automation Frameworks with Python and Pytest [Video]

By : Brandon Blair
Book Image

Elegant Automation Frameworks with Python and Pytest [Video]

By: Brandon Blair

Overview of this book

Python is one of the most popular programming languages in the world, with its demand increasing by the minute. Pytest - one of the most actively maintained testing frameworks in the industry - provides an incredible set of tools for faster, less stressful testing. In this course, you’ll learn how to eliminate boilerplate setup and teardown code, run multiple tests simultaneously, and track your test run history to identify slow or problematic tests. Beginning with a brief introduction and a step-by-step setup of pytest, this course will walk you through each session. You’ll discover what makes a good framework, and, more importantly, what makes a bad one. As you advance, you’ll learn how to use test searching to avoid cumbersome test suites, and how fixtures can eliminate up to 80% of code in case of code bloat. This interactive course is also equipped with information-rich videos to help you grasp the concepts with ease. By the end of this course, you’ll be ready to build high-performance, well-organized, scalable test frameworks on the professional level. All codes and supporting files are available at- https://github.com/PacktPublishing/Elegant-Automation-Frameworks-with-Python-and-Pytest
Table of Contents (4 chapters)
Chapter 2
Setting Up Your Environment
Content Locked
Section 1
Setup Python 3 (Windows)
Let's set up Python 3 on your Windows machine, and ensure we're working with the same tools, so you don't run into unnecessary hardship.