Course Code: pytest
Duration: 21 hours
Prerequisites:
  • A general understanding of automation testing

Audience

  • Software testers
Overview:

Unit Testing is a testing approach that tests individual units of source code by modifying their properties or triggering an event to confirm whether the outcome is as expected. PyTest is a full-featured, API-independent, flexible, and extensible testing framework with an advanced, full-bodied fixture model.

In this instructor-led, live training, participants will learn how to use PyTest to write short, maintainable tests that are elegant, expressive and readable.

By the end of this training, participants will be able to:

  • Write readable and maintainable tests without the need for boilerplate code.
  • Use the fixture model to write small tests.
  • Scale tests up to complex functional testing for applications, packages, and libraries.
  • Understand and apply PyTest features such as hooks, assert rewriting and plug-ins.
  • Reduce test times by running tests in parallel and across multiple processors.
  • Run tests in a continuous integration environment, together with other utilities such as tox, mock, coverage, unittest, doctest and Selenium.
  • Use Python to test non-Python applications.

Format of the course

  • Part lecture, part discussion, exercises and heavy hands-on practice
Course Outline:

Introduction to Unit Testing with PyTest

Unit Testing with UnitTest vs Unit Testing with PyTest

Writing Readable and Maintainable Tests

Using Mocks, Fakes and Stubs

Using Hooks, Assert Rewriting and Plug-ins

Streamlining Your Tests with Fixtures and Parameterized Testing

Obtaining the Desired Test Coverage

Generating Testable Documentation with Doctest

Integrating Python Unit Tests into a Continuous Integration (CI) Environment

Scaling Your Python Unit Tests

Use Python to Test Non-Python Applications

Summary and Conclusion

Sites Published:

United Arab Emirates - Unit Testing with Python

Qatar - Unit Testing with Python

Egypt - Unit Testing with Python

Saudi Arabia - Unit Testing with Python

South Africa - Unit Testing with Python

Brasil - Unit Testing with Python

Canada - Unit Testing with Python

中国 - Unit Testing with Python

香港 - Unit Testing with Python

澳門 - Unit Testing with Python

台灣 - Unit Testing with Python

USA - Unit Testing with Python

Österreich - Unit Testing with Python

Schweiz - Unit Testing with Python

Deutschland - Unit Testing with Python

Czech Republic - Unit Testing with Python

Denmark - Unit Testing with Python

Estonia - Unit Testing with Python

Finland - Unit Testing with Python

Greece - Unit Testing with Python

Magyarország - Unit Testing with Python

Ireland - Unit Testing with Python

Luxembourg - Unit Testing with Python

Latvia - Unit Testing with Python

España - Prueba unitaria con Python

Italia - Unit Testing with Python

Lithuania - Unit Testing with Python

Nederland - Unit Testing with Python

Norway - Unit Testing with Python

Portugal - Unit Testing with Python

România - Unit Testing with Python

Sverige - Unit Testing with Python

Türkiye - Unit Testing with Python

Malta - Unit Testing with Python

Belgique - Unit Testing with Python

France - Unit Testing with Python

日本 - Unit Testing with Python

Australia - Unit Testing with Python

Malaysia - Unit Testing with Python

New Zealand - Unit Testing with Python

Philippines - Unit Testing with Python

Singapore - Unit Testing with Python

Thailand - Unit Testing with Python

Vietnam - Unit Testing with Python

India - Unit Testing with Python

Argentina - Prueba unitaria con Python

Chile - Prueba unitaria con Python

Costa Rica - Prueba unitaria con Python

Ecuador - Prueba unitaria con Python

Guatemala - Prueba unitaria con Python

Colombia - Prueba unitaria con Python

México - Prueba unitaria con Python

Panama - Prueba unitaria con Python

Peru - Prueba unitaria con Python

Uruguay - Prueba unitaria con Python

Venezuela - Prueba unitaria con Python

Polska - Unit Testing with Python

United Kingdom - Unit Testing with Python

South Korea - Unit Testing with Python

Pakistan - Unit Testing with Python

Sri Lanka - Unit Testing with Python

Bulgaria - Unit Testing with Python

Bolivia - Prueba unitaria con Python

Indonesia - Unit Testing with Python

Kazakhstan - Unit Testing with Python

Moldova - Unit Testing with Python

Morocco - Unit Testing with Python

Tunisia - Unit Testing with Python

Kuwait - Unit Testing with Python

Oman - Unit Testing with Python

Slovakia - Unit Testing with Python

Kenya - Unit Testing with Python

Nigeria - Unit Testing with Python

Botswana - Unit Testing with Python

Slovenia - Unit Testing with Python

Croatia - Unit Testing with Python

Serbia - Unit Testing with Python

Bhutan - Unit Testing with Python

Nepal - Unit Testing with Python

Uzbekistan - Unit Testing with Python