Tagged articles
13 articles
Page 1 of 1
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 TestingPluginsfixtures
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.

HTTP testingMock ServerPython
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.

AutomationPluginsfixtures
0 likes · 7 min read
Advanced pytest Techniques: Parameterization, Fixtures, Plugins, and More
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