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



This course is not scheduled as a public course.
It is delivered exclusively as customised training. The content, duration, date, and delivery format are tailored to the customer's requirements and can also be provided in English.

Request customised training

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