Learn pytest in 6 Hours - Complete pytest framework Course
A comprehensive course from LambdaTest designed to teach the pytest testing framework thoroughly.
Lectures -10
Duration -5.5 hours
30-days Money-Back Guarantee
Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.
Course Description
This course series is here to help you understand pytest, a framework for testing in Python, and its core functions. It's for beginners who are just starting out with pytest. This pytest course covers the basics like how to set it up, write simple tests, use fixtures for test data, and configure test behavior with command-line options. It also talks about more advanced topics like using markers to organize tests and parameterized tests to make them more scalable.
pytest is a test automation framework that allows developers and testers to write test scripts using Python. It also provides an effective way to write and execute scalable test cases or test suites and generate extensive test reports.
Goals
What will you learn in this course:
- Understanding the basic concepts and setup required for pytest.
- Learning how to write simple tests and execute them effectively.
- Mastering the use of fixtures for optimal test data management.
- Exploring markers, parameterization, and plugins to enhance testing capabilities.
- Implementing pytest in development workflows and adhering to best testing practices.
Prerequisites
What are the prerequisites for this course?
- Basic Python Knowledge: Familiarity with Python syntax, functions, and basic programming concepts.
- Understanding of Basic Software Development: Some exposure to software development practices and principles.
- Familiarity with Command Line Interface (CLI): Comfort using command line tools, as pytest is typically executed in a shell environment.
- Knowledge of Python Testing Libraries: A basic understanding of other Python testing frameworks can provide a good foundation for understanding how pytest differs and its advantages.
- Understanding of Assertions: Knowing how to use assertions to check for expected outcomes in tests is crucial, as pytest makes extensive use of assertions to validate test results.
- Know-how of Fixtures and Mocking: Knowledge of how to use fixtures for setup and teardown of test conditions, and mocking to simulate the behavior of complex objects in tests, is important when advancing in pytest.
Cross-Browser Testing Skills: Understanding how to perform cross-browser testing, using frameworks like Selenium to automate browser actions and ensure that web applications function consistently across multiple browsers and devices.
Curriculum
Check out the detailed breakdown of what’s inside the course
Introduction to pytest
1 Lectures
- What is pytest | pytest Framework Tutorial | Part-I | LambdaTest 16:58 16:58
Running Your First Test
1 Lectures
Assertions In pytest
1 Lectures
Running Multiple Tests
1 Lectures
Group Tests in pytest
1 Lectures
Parameterization In pytest
1 Lectures
Skip And Stop Tests
1 Lectures
Page Object Model
1 Lectures
Generating Test Reports
1 Lectures
Performing Cross Browser Testing
1 Lectures
Instructor Details
Sarah Elson
eCourse Certificate
Use your certificate to make a career change or to advance in your current career.
Our students work
with the Best
Related Video Courses
View MoreAnnual Membership
Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses
Subscribe nowOnline Certifications
Master prominent technologies at full length and become a valued certified professional.
Explore Now