logo
Send your CVContact

/

logo

TRAININGS

Pytest for beginners.

To be agreed upon.

To be agreed upon.

510 $ + VAT

16h

beginner

To be agreed upon.

To be agreed upon.

510 $ + VAT

16h

BEGINNER

Who is this training for?

Automation testers
Beginner programmers

What will you learn from our training?

Participants of this PyTest training will gain solid foundations in the most commonly chosen Python testing environment. They will learn how to create, verify, and properly configure tests in PyTest, understand key parameters of the environment, and learn to avoid typical errors. The training will provide knowledge on creating clear and easy-to-maintain tests. We will start with a review of basic concepts to ensure a common knowledge base, and then move on to practical aspects of creating effective tests in Python, allowing participants to navigate the world of software testing smoothly.

Training Agenda

During the PyTest training, participants will go through a comprehensive program that covers the following topics:

 

Review


We will start the training with a review of the basics of Python and testing, so that all participants have a common knowledge base. As part of the review:

  • Proper Configuration of a Universal Test Environment: We will show how to configure a virtual environment and use pip to ensure efficient and consistent testing.
  • Python - Review: A fresh look at basic Python elements such as variables, conditional statements, functions, and classes.
  • Tests and the FIRST Rule, Functional Tests: Discussion on what functional tests are and how to apply the FIRST rule to create effective tests.
  • Introduction to Python UnitTest: Overview of basic functions and capabilities of the UnitTest framework in Python.

 

How to Write Clear and Maintainable Tests?


Tips for creating tests that are easy to understand and maintain in the long run.

 

Introduction to PyTest


An introduction to the PyTest framework, its basic functions, and advantages.

  • Key Features of PyTest, Differences from Python.UnitTest: Focus on the unique features of PyTest compared to UnitTest and explanation of how these differences affect the testing process.
  • First Tests and Test Structure: Practical introduction to writing first tests and discussion of their structure.
  • Running Tests, Most Useful PyTest Configuration: Showing how to run tests in PyTest and how to configure the environment for optimal results.

 

Conftest - Configuration File


Detailed discussion of the conftest.py file and its role in configuring PyTest tests.

 

Fixtures


An introduction to the fixtures mechanism in PyTest, which is crucial for creating modular and repeatable tests.

  • Good Practices: Tips for shaping good habits when writing tests.
  • Configuration and Parameterization: Discussion of ways to effectively configure tests and use parameterization in tests.
  • Advanced PyTest Features: Presentation of more advanced PyTest features that allow for creating more complex test scenarios.

 

Using Assertions - Case Studies


Examples of using different forms of assertions in PyTest, along with specific case studies.

  • Handling Floating-Point Comparisons, Exceptions: Practical tips on dealing with exceptions and floating-point comparisons in tests.
  • Parameterization: Learning how to use parameterization in PyTest, which allows for more flexible and comprehensive testing.

 

This comprehensive training will provide participants with solid knowledge and skills in creating, configuring, and managing tests in the PyTest environment, preparing them for effective application testing in Python.

Interested? Share it on social media!

logo
ContactSend CV