Python – Creation of Automated Tests (PYTEST)

Programming, Python

Do you program in Python and would like to apply your skills in creating automated tests? The popularity of the Python programming language for automation and scripting is constantly growing. Software companies are beginning to perceive Python as a universal language for creating tests for software written in any programming language. Sign up for a practical workshop, where you will try creating automated tests for software written not only in Python, but in any programming language. Try out tools for testing everything from your own code to APIs and web applications.

COURSE LOCATION AND AVAILABLE DATES



Public courses are usually delivered in Czech, but this course is also available in English. We can arrange private training for your team online, at your premises or in our classrooms, and tailor the content to your needs.

For groups of around 4 or more participants, private training can already be comparable in price to booking individual places on a public course. Send us your requirements and we’ll recommend the best format and provide an exact quote.

Request training in English

Course content:

Hide details
  • Basics of testing
    1. Software quality
    2. Test granularity
    3. Scope of testing
    4. Testing and automation
  • Python as a testing tool
    1. Using asserts in your own code
    2. Comparing values
    3. Type checking
    4. Edge cases
  • Testing framework (pytest)
    1. Preparing test functions
    2. Command line options
    3. Main advantages of the framework
  • Code testing
    1. Unit tests
    2. Testing modules, functions, and classes
    3. Whole applications for testing
  • Writing testable code
    1. Functions without side effects
    2. Object-oriented programming
    3. Dependencies between instances
  • Negative testing
    1. Testing erroneous inputs
    2. Expecting exceptions
  • Test-driven development
    1. Creating tests with negative results
    2. Software development using tests
    3. Debugging failing software
    4. Verifying functionality
  • Testing database applications
    1. Setting the initial state
    2. Tested operations
    3. Verifying the target state
    4. Fixtures
  • Testing applications via API
    1. Often in another language
    2. Communication and remote calls
    3. Test instances of software
    4. Working with an unknown state
  • Testing web and GUI applications
    1. Testing web queries
    2. Interactive testing
    3. Browser integration
    4. GUI testing options
Prerequisites:
Knowledge of the basics of programming in Python
Schedule:
3 days (9:00-17:00)
Price per person:
672.00 € ( 813.12 € incl. 21% VAT)

Training and learning environment