Course Catalog
Test Automation with Python
Code: TTPS4832
Duration: 2 Day
$1895 USD

OVERVIEW

The pytest framework is simple to use but powerful enough to cover complex testing integration scenarios.  PyTest is considered by many to be the true Pythonic approach to testing in Python.

Geared for QA, Test team members and others who want to use the Python testing framework PyTest to implement code testing strategies, Test Automation with Python is a hands-on, two day Python testing course that provides students with the skills required to get started with PyTest right away. Participnats will learn how to get the most out of it in their daily workflow, exploring powerful mechanisms and plugins to facilitate many common testing tasks.  Students will also learn how to use pytest in existing unittest-based test suites and will learn some tricks to make the jump to a pytest-style test suite quickly and easily. 

DELIVERY FORMAT

This course is available in the following formats:

Virtual Classroom

Duration: 2 Day
Classroom

Duration: 2 Day

CLASS SCHEDULE

Delivery Format: Virtual Classroom
Date: Apr 22 2024 - Apr 23 2024 | 10:00 - 18:00 EST
Location: Online
Course Length: 2 Day

$ 1895

Delivery Format: Virtual Classroom
Date: Jun 17 2024 - Jun 18 2024 | 10:00 - 18:00 EST
Location: Online
Course Length: 2 Day

$ 1895

Delivery Format: Virtual Classroom
Date: Aug 12 2024 - Aug 13 2024 | 10:00 - 18:00 EST
Location: Online
Course Length: 2 Day

$ 1895

Delivery Format: Virtual Classroom
Date: Sep 30 2024 - Oct 01 2024 | 10:00 - 18:00 EST
Location: Online
Course Length: 2 Day

$ 1895

Delivery Format: Virtual Classroom
Date: Nov 04 2024 - Nov 05 2024 | 10:00 - 18:00 EST
Location: Online
Course Length: 2 Day

$ 1895

GOALS

This skills-focused course is approximately 50% hands-on, combining expert lecture, real-world demonstrations and group discussions with machine-based practical labs and exercises.  Working within in a hands-on learning environment students will learn to:

  • Become proficient with pytest from day one by solving real-world testing problems
  • Use pytest to write tests more efficiently
  • Scale from simple to complex and functional testing
  • Write and run simple and complex tests
  • Organize tests in fles and directories
  • Find out how to be more productive on the command line
  • Markers and how to skip, xfail and parametrize tests
  • Explore fxtures and techniques to use them effectively, such as tmpdir, pytestconfg, and monkeypatch
  • Convert unittest suites to pytest using little-known techniques
OUTLINE

  1. Python Refresher
  • Python Overview
  • Python Basics
  • Python Lab
  1. Introducing PyTest
  • Why Spend time writing test
  • UnitTest Module
  • Why PyTest?
  • Introductory Lab
  1. Writing and Running Test
  • Installing PyTest
  • Writing and Running Tests
  • Organizing files and packages
  • Command Line options
  • Configure pytest.ini
  • Install and Config Lab
  1. Markers and Parameters
  • Mark Basics
  • Built-in marks
  • Parameterization
  • Markers and Parameters Lab
  1. Fixtures
  • Introduction to Fixtures
  • Sharing fixtures with conftest.py files
  • Scopes
  • Autouse
  • Parameterizing fixtures
  • Using marks from fixtures
  • Built-in fixtures
  • Best Practices
  • Fixtures Lab
  • Fixtures Lab 2
  1. Plugins
  • Finding and installing plugins
  • Overview of plugins
  • Plugin Lab
  1. From UnitTest to PyTest
  • Use PyTest as a Test Runner
  • Convert asserts with unitest2pytest
  • Handling setup/teardown
  • Managing test hierarchies
  • Refactoring test utilities
  • Migration strategies
  1. Python Refresher
  • Python Overview
  • Python Basics
  • Python Lab
  1. Introducing PyTest
  • Why Spend time writing test
  • UnitTest Module
  • Why PyTest?
  • Introductory Lab
  1. Writing and Running Test
  • Installing PyTest
  • Writing and Running Tests
  • Organizing files and packages
  • Command Line options
  • Configure pytest.ini
  • Install and Config Lab
  1. Markers and Parameters
  • Mark Basics
  • Built-in marks
  • Parameterization
  • Markers and Parameters Lab
  1. Fixtures
  • Introduction to Fixtures
  • Sharing fixtures with conftest.py files
  • Scopes
  • Autouse
  • Parameterizing fixtures
  • Using marks from fixtures
  • Built-in fixtures
  • Best Practices
  • Fixtures Lab
  • Fixtures Lab 2
  1. Plugins
  • Finding and installing plugins
  • Overview of plugins
  • Plugin Lab
  1. From UnitTest to PyTest
  • Use PyTest as a Test Runner
  • Convert asserts with unitest2pytest
  • Handling setup/teardown
  • Managing test hierarchies
  • Refactoring test utilities
  • Migration strategies
LABS

This hands-on course focuses on ‘learning by doing’, combining expert lecture, practical demonstrations and group discussions with plenty of machine-based real-world scripting and testing labs and exercises. Student machines are required.

This hands-on course focuses on ‘learning by doing’, combining expert lecture, practical demonstrations and group discussions with plenty of machine-based real-world scripting and testing labs and exercises. Student machines are required.

WHO SHOULD ATTEND

QA, Testers, Test team members and others who want to use the Python testing framework PyTest to implement code testing strategies. 

PREREQUISITES

This in an introductory-level course geared for QA, Test team members and others who want to use the Python testing framework PyTest to implement code testing strategies.  Attendees should have prior basic Python scripting experience.  Students should have some familiarity with tools to be used in this course: PyCharm, Jupyter Notebook and basic GIT.  Having a basic understanding of test automation concepts would also be helpful.