
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.
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.
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.
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