It Includes
- Get Full Access to the platform
- Access upto 16000+ online courses
- Play & Pause Course Viewing
HD Recorded Lectures
- Access on Mobile/PC/Tablet
- Includes Real Projects
- Online iLab Access
- Certificate of Completion
- Download for offline viewing
- Cancel Anytime
What you'll learn?
- 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)
Course Overview
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.
So what are you waiting for? Learn PyTest with me in the easiest and most practical way and boost your career.
Pre-requisites
- You should have a basic understanding of the Python Programming Language.
- A system with an internet connection to install required stuff
- Desire to learn
Target Audience
- Anyone who wants to learn about running automation and test
- Developer who wants to learn PyTest for creating and running Python Tests
- Beginner and intermediate python developer who wants to add pytest in his/her skillset
- Software test Engineers
- QA Engineers
Curriculum 45 Lectures 03:22:34
-
Section 1 : Let`s learn the basics first
-
Section 2 : PyTest Environment Setup on your System
- Lecture 1 :
- Introduction to PyTest
- Lecture 2 :
- Links to install required stuff
- Lecture 3 :
- Python Installation
- Lecture 4 :
- PIP Installation
- Lecture 5 :
- PyTest Installation
- Lecture 6 :
- PyCharm Installation
-
Section 3 : Create and Run your first test
- Lecture 1 :
- Let`s write your first test
- Lecture 2 :
- Code Walkthrough of writing and running your first test
- Lecture 3 :
- Exercise - 01
- Lecture 4 :
- Code Walkthrough of Exercise - 01
-
Section 4 : How does Pytest identifies test files and test functions
- Lecture 1 :
- Discovery of a test in PyTest
- Lecture 2 :
- Exercise - 02
- Lecture 3 :
- Code Walkthrough of Exercise - 02
-
Section 5 : Selecting Tests to execute
- Lecture 1 :
- Run all the tests from files and folders/subfolders
- Lecture 2 :
- Run tests from a specific file only
- Lecture 3 :
- Run selective tests by matching substring
- Lecture 4 :
- Extra on running selective tests by matching substring
- Lecture 5 :
- Run selective tests by applied marker
- Lecture 6 :
- Substring Vs Marker: Which one should we use ?
- Lecture 7 :
- Exercise - 03
- Lecture 8 :
- Code Walkthrough of Exercise - 03
-
Section 6 : Fixtures
- Lecture 1 :
- Code walkthrough of a fixture
- Lecture 2 :
- How to access fixture across all files ? conftest.py
- Lecture 3 :
- Excercise - 04
- Lecture 4 :
- Code Walkthrough of Exercise - 04 (Scope parameter of a fixture)
- Lecture 5 :
- Fixtures
-
Section 7 : Parameterize, skip and Xfail Test
- Lecture 1 :
- Parameterized Test
- Lecture 2 :
- Skip Test
- Lecture 3 :
- Xfail Test
- Lecture 4 :
- Exercise - 05
- Lecture 5 :
- Code Walkthrough of Exercise - 05
-
Section 8 : Running tests in parallel
- Lecture 1 :
- How to run tests in parallel using xdist pytest-plugin
- Lecture 2 :
- Code Walkthrough of xdist example
- Lecture 3 :
- Excercise - 06
- Lecture 4 :
- Code Walkthrough of Exercise - 06
-
Section 9 : How to limit maximum test failures
- Lecture 1 :
- maxfail in pytest
- Lecture 2 :
- Exercise - 07
- Lecture 3 :
- Code Walkthrough of Exercise - 07
-
Section 10 : pytest.ini configuration file
- Lecture 1 :
- How to inform pytest to pick other files to execute by pytest.ini
- Lecture 2 :
- Code walkthrough of pytest.ini file
-
Section 11 : Pytest result
- Lecture 1 :
- How to save pytest-result in XML file
- Lecture 2 :
- How to save pytest-result in HTML file
-
Section 12 : Bonus Thank you
- Lecture 1 :
- Bonus lecture
- Lecture 2 :
- Extra
Our learners work at
Frequently Asked Questions
-
How do i access the course after purchase?
It's simple. When you sign up, you'll immediately have unlimited viewing of thousands of expert courses, paths to guide your learning, tools to measure your skills and hands-on resources like exercise files. There’s no limit on what you can learn and you can cancel at any time. -
Are these video based online self-learning courses?
Yes. All of the courses comes with online video based lectures created by certified instructors. Instructors have crafted these courses with a blend of high quality interactive videos, lectures, quizzes & real world projects to give you an indepth knowledge about the topic. -
Can i play & pause the course as per my convenience?
Yes absolutely & thats one of the advantage of self-paced courses. You can anytime pause or resume the course & come back & forth from one lecture to another lecture, play the videos mulitple times & so on. -
How do i contact the instructor for any doubts or questions?
Most of these courses have general questions & answers already covered within the course lectures. However, if you need any further help from the instructor, you can use the inbuilt Chat with Instructor option to send a message to an instructor & they will reply you within 24 hours. You can ask as many questions as you want. -
Do i need a pc to access the course or can i do it on mobile & tablet as well?
Brilliant question? Isn't it? You can access the courses on any device like PC, Mobile, Tablet & even on a smart tv. For mobile & a tablet you can download the Learnfly android or an iOS app. If mobile app is not available in your country, you can access the course directly by visting our website, its fully mobile friendly. -
Do i get any certificate for the courses?
Yes. Once you complete any course on our platform along with provided assessments by the instructor, you will be eligble to get certificate of course completion. -
For how long can i access my course on the platform?
You require an active subscription to access courses on our platform. If your subscription is active, you can access any course on our platform with no restrictions. -
Is there any free trial?
Currently, we do not offer any free trial. -
Can i cancel anytime?
Yes, you can cancel your subscription at any time. Your subscription will auto-renew until you cancel, but why would you want to?
Instructor

880 Course Views
2 Courses