Tagged articles

fixtures

14 articles · Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Jul 11, 2026 · Backend Development

Mastering Pytest: From Basics to Advanced API Automation

This guide explains why pytest surpasses unittest as the most popular Python testing framework, walks through installation, writing and running tests, explores core features such as fixtures, parameterization, markers, and plugins, and demonstrates a complete API‑automation suite with advanced fixture techniques and custom plugin development.

Plugin DevelopmentPython testingapi-automation
0 likes · 14 min read
Mastering Pytest: From Basics to Advanced API Automation
Test Development Learning Exchange
Test Development Learning Exchange
Mar 29, 2025 · Backend Development

Master Data‑Driven API Testing with Pytest’s @parametrize

This guide explains why data‑driven testing is essential for API automation, introduces Pytest’s powerful @pytest.mark.parametrize decorator, and provides step‑by‑step examples—including single‑parameter, multi‑parameter, dynamic data generation, fixture integration, and external data sources—to boost test coverage and maintainability.

API testingData‑Driven TestingPython
0 likes · 6 min read
Master Data‑Driven API Testing with Pytest’s @parametrize
Test Development Learning Exchange
Test Development Learning Exchange
Sep 27, 2024 · Backend Development

Master pytest: Simplify Python Testing with Powerful Features

This article provides a comprehensive, step‑by‑step guide to using pytest for Python unit testing, covering its simplicity, advanced assertions, parameterized tests, automatic discovery, plugin ecosystem, custom fixtures, command‑line options, exception handling, parallel execution, and detailed error reporting.

Parallel TestingPython testingfixtures
0 likes · 8 min read
Master pytest: Simplify Python Testing with Powerful Features
Test Development Learning Exchange
Test Development Learning Exchange
Aug 21, 2024 · Backend Development

pytest-httpserver Tutorial: Installation and 10 Practical Testing Examples

This article introduces the pytest-httpserver plugin for launching a simple HTTP server during tests, provides installation instructions, and walks through ten practical examples covering GET, POST, headers, query parameters, request counting, error codes, redirects, file uploads, timeouts, and client certificate verification.

PythonSoftware testingfixtures
0 likes · 8 min read
pytest-httpserver Tutorial: Installation and 10 Practical Testing Examples
Test Development Learning Exchange
Test Development Learning Exchange
Aug 11, 2024 · Fundamentals

Advanced pytest Techniques: Parameterization, Fixtures, Plugins, and More

This article presents a comprehensive guide to pytest, covering parameterized tests, reusable fixtures, dynamic test generation, plugin extensions for coverage and HTML reports, logging capture, nested tests, test ordering, module‑level fixtures, exception handling, parallel execution, mocking, dynamic registration, custom command‑line options, and test insertion for debugging.

Automationfixturesplugins
0 likes · 7 min read
Advanced pytest Techniques: Parameterization, Fixtures, Plugins, and More
Python Programming Learning Circle
Python Programming Learning Circle
Jul 13, 2024 · Fundamentals

Comprehensive Guide to Pytest: Installation, Execution, Fixtures, Marks, and Parameterization

This article provides a detailed tutorial on Python's Pytest framework, covering installation, test discovery rules, execution methods, setup/teardown, fixture usage, assertions, skip mechanisms, custom marks, and parameterization with extensive code examples for practical automation testing.

Python testingTest Automationfixtures
0 likes · 11 min read
Comprehensive Guide to Pytest: Installation, Execution, Fixtures, Marks, and Parameterization
Test Development Learning Exchange
Test Development Learning Exchange
Jun 1, 2024 · Fundamentals

Using pytest fixtures for API automation testing in Python

This article demonstrates how to leverage pytest fixtures to manage resources such as authentication tokens, database connections, temporary directories, API clients, environment variables, services, configuration files, caches, user roles, and HTTP headers, providing reusable and maintainable test code examples.

api-testingfixturespytest
0 likes · 6 min read
Using pytest fixtures for API automation testing in Python
Test Development Learning Exchange
Test Development Learning Exchange
May 25, 2024 · Fundamentals

Advanced pytest Fixtures and Decorators for Test Setup, Skipping, Retries, Parametrization, and More

This article demonstrates how to use pytest fixtures and a collection of custom decorators to handle setup/teardown, conditional skipping, retry logic, parameterized tests, timing, error handling, logging, transaction management, API authentication, response validation, concurrency, data cleanup, performance monitoring, state checks, and test marking in Python testing.

decoratorsfixturespytest
0 likes · 11 min read
Advanced pytest Fixtures and Decorators for Test Setup, Skipping, Retries, Parametrization, and More
MaGe Linux Operations
MaGe Linux Operations
Nov 14, 2023 · Fundamentals

Master Pytest: From Basics to Advanced Fixtures and Allure Reporting

This comprehensive guide walks you through Pytest fundamentals, basic usage, fixture mechanisms, conftest configuration, and advanced features such as Allure report beautification, parameterized data‑driven testing, and YAML integration, providing practical code examples for Python test automation.

AllurePythonfixtures
0 likes · 25 min read
Master Pytest: From Basics to Advanced Fixtures and Allure Reporting
360 Quality & Efficiency
360 Quality & Efficiency
Feb 25, 2020 · Fundamentals

Introduction to pytest: Installation, Usage, and Advanced Features

This article provides a comprehensive guide to pytest, covering its advantages over unittest, installation steps, basic and class‑based test writing, execution commands, assertion handling, custom markers, fixture scopes, and useful plugins for enhancing Python testing workflows.

MarkersPython testingfixtures
0 likes · 5 min read
Introduction to pytest: Installation, Usage, and Advanced Features