Learn Pytest From Scratch

person icon Rohit Dharaviya

Learn Pytest From Scratch

Learn how to create and execute automation tests in pytest

updated on icon Updated on Sep, 2023

language icon Language - English

person icon Rohit Dharaviya

architecture icon Development,Automation & testing,PyTest

Lectures -51

Duration -4 hours


30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 19,000+ top Tutorialspoint courses anytime, anywhere.

Course Description

Welcome to the "Learn PyTest from scratch"  course, a PyTest test framework that is a hot favorite choice of a Python developer.

This course is created in a way that even a newbie can follow. Whether you have never learned the PyTest framework or you know the basics but don`t know about the advanced topics, this course is for you. In this course, I will teach you the PyTest framework in the easiest way possible.

Testing is a crucial thing, the framework provides an easy way to adapt and use it to implement tests, PyTest is the most widely used, and as it is based on python programming language, which doesn`t need any introduction. Learning PyTest becomes very easy as of simple syntax of python.

This course will teach you PyTest in a practical way, with every lecture coming with a full code walkthrough and a screencast presentation of a topic. Each section has an exercise to test your knowledge of what you will be gaining from the particular section.

I will start by helping you get installed needed things on your system, which includes Python, PyTest, pip, and, PyCharm IDE.

I have covered a wide variety of topics, including:

  • Installing Python, PyTest, pip, PyCharm

  • Running a test in PyTest

  • Assert in PyTest

  • Understanding of the result of the test

  • Discovery of a test

  • PyTest way of identifying test files and test functions

  • Fixtures

  • Markers

  • Config files

  • Pytest.ini file

  • Command-line option

  • Running tests in parallel

  • How to limit max test failures

and much more!

You will get lifetime access to all the lectures plus corresponding presentation slides of the lectures!

So what are you waiting for? Learn PyTest with me in the easiest and most practical way and boost your career.


What will you learn in this course:

  • How to create and execute automation test suite in pytest

  • How to pick some/all/fixed number of tests to execute

  • Learn about fixtures and how to use them in your tests

  • Learn about markers, different types of makers

  • How to run tests in parallel to reduce overall execution time

  • How to generate pytest result report(HTML, JUnit-XML)


What are the prerequisites for this course?

  • You should have a basic understanding of the Python Programming Language.

  • A system with an internet connection to install required stuff

  • Desire to learn

Learn Pytest From Scratch


Check out the detailed breakdown of what’s inside the course

Start with Basics first
2 Lectures
  • play icon Introduction 00:56 00:56
  • play icon What is testing ? Automation ? and framework ? 10:42 10:42
PyTest Environment Setup on your system
6 Lectures
Create and execute your first test
4 Lectures
How does PyTest identifies test file and test functions
3 Lectures
Learn ways to select tests to execute
8 Lectures
7 Lectures
Parameterize, skip and Xfail a test
5 Lectures
Running tests in parallel
4 Lectures
How to limit maximum test failures
3 Lectures
Pytest.ini configuration file
2 Lectures
PyTest Results
2 Lectures
Threading in Pytest, Problem & Solution
1 Lectures
Write an actual Tests to check the Phone Properties
3 Lectures
Bonus! Thank You
1 Lectures

Instructor Details

Rohit Dharaviya

Rohit Dharaviya

Software Engineer

Hey! I`m Rohit Dharaviya, I am a teacher, a student, and a programmer. By profession, I am a software engineer.

I have done my Diploma and Degree in Electronics and Communication from Gujarat-India.

Playing with computers and microcontrollers was always a favorite pass time for me, I used to teach in person. Topics I used to teach were Linux OS concepts, programming languages like C, CPP, and python. I used to provide guidance on making micro-controller-based projects as well. In the process, I have made some cool projects on different MCUs like 8051, Arduino, etc.

I like to keep things simple, and I like to teach in the easiest way possible.

Sing up for my course and let's learn together, Join me to learn about programming concepts, coding & micro-controller projects

Course Certificate

User your certification to make a career change or to advance in your current career. Salaries are among the highest in the world.

sample Tutorialspoint certificate

Our students work
with the Best


Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
People having fun around a laptop

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
People having fun around a laptop

Talk to us