
Explore the biotest roadmap for Python unit testing, covering setup with Python and pip, writing tests, grouping with tagging, fixtures, assertions, and final project implementation.
Learn how to install Python on a Windows 64-bit machine, including downloading, customizing installation location, setting the PATH, and verifying the installation with Python -V.
Download, install, and launch PyCharm Community Edition on Windows. Create a new Python project and configure the interpreter from multiple Python installations, including Python 3.7.
Configure the python package installer pip on windows, add it to the PATH, verify it works, and use it to download and install packages, with easy_install as an alternative.
Explore pytest, a unit testing framework for Python, and learn conditional test execution, prerequisites and post script, assertions, and how to generate test reports.
Create a new project and a Python file, write a test function whose name starts with test in pytest, and run pytest to execute.
Learn to structure pytest tests in folders, create test files named starting with test, and run all tests in a directory to execute multiple test cases together, with test reports.
Learn how to write multiple test cases in a single file using pytest, run tests by folder or file, and use -v and -s to view details and print outputs.
Skip specific pytest test cases using skip and skip if decorators, conditionally skip tests, and run only selected tests with -k and partial name matching.
Learn to group pytest tests with tagging, execute by tags for smoke, sanity, or regression, and combine marks to target top priority tests while handling custom markers.
Learn how to use assertions in pytest to compare actual results with expected, handle pass/fail outcomes, and customize failure messages across web and API automation tests.
Explore how fixtures run setup and teardown code in pytest, using the fixture decorator and yield, and control scope to run once per module before and after all tests.
Discover Pytest's default reporting, which presents high-level pass/fail counts and trends across runs, plus detailed low-level results and failure reasons for every test case.
PYTEST makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.
pytest is a mature full-featured Python testing tool that helps you write better programs.
This course is a crash course which will make you job ready with practical exposed in quick time.
Features
Detailed info on failing assert statements
Auto-discovery of test modules and functions
Modular fixtures for managing small or parametrized long-lived test resources
Can run unittest (including trial) and nose test suites out of the box
Rich plugin architecture, with over 315+ external plugins and thriving community
Course Coverage
1. Step by Step Installation Instructions
2. Introduction and Advantages of Pytest.
3. How to write testcases using Pytest.
4. Adding Assertions to Test Cases.
5. Grouping of Test Cases using Tags
6. Standard format of Pytest formatted testcases
7. Reporting in Test Cases
8. Execution of groups using Tags
9. Realtime implementation of Pytest in Web Automation framework using Selenium & Python.
10. Reporting integration with Pytest to generate advance level reporting.
11. Compare expected and actual result of testcases to define failed testcases.
12. Realtime interview question (Theoretical and Practical implementation
13. Setup related libraries, importance of libraries and its use.
Features
Auto-discovery of test functions and modules
Modular fixtures for managing small or parametrized long-lived test resources
Rich plugin/ library architecture, with over hundreds external plugins and thriving community