Tagged articles
17 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Jul 11, 2025 · Backend Development

Build a Reusable Python API Test Framework with Assertions, DB Checks, and Pytest

This guide demonstrates how to create a reusable Python testing framework that encapsulates generic API response assertions, database query utilities, supports chainable calls, logging, exception handling, and integrates seamlessly with pytest or unittest, including installation steps, project structure, core code examples, and execution instructions.

Pythonapi-testingassertions
0 likes · 7 min read
Build a Reusable Python API Test Framework with Assertions, DB Checks, and Pytest
Test Development Learning Exchange
Test Development Learning Exchange
Oct 1, 2024 · Fundamentals

Understanding Python Generator Functions and Their Applications in API Automation Testing

This article explains Python generator functions, their memory‑efficient iteration mechanism, and demonstrates through multiple examples—including basic generators, Fibonacci sequences, large file processing, HTTP streaming, and API test data generation—how they can streamline and optimize interface automation testing workflows.

Iteratorapi-testingautomation
0 likes · 10 min read
Understanding Python Generator Functions and Their Applications in API Automation Testing
Test Development Learning Exchange
Test Development Learning Exchange
Aug 28, 2024 · Fundamentals

Python Decorators for API Testing: Retry, Timeout, Logging, Caching, Validation, and More

This article introduces Python decorators—such as retry, timeout, logging, caching, response validation, parameterization, exception handling, performance monitoring, permission checking, and composite usage—and provides complete code examples showing how they simplify and strengthen automated API testing.

DecoratorRetryTimeout
0 likes · 10 min read
Python Decorators for API Testing: Retry, Timeout, Logging, Caching, Validation, and More
Test Development Learning Exchange
Test Development Learning Exchange
Aug 17, 2024 · Backend Development

Python Decorator Examples for API Testing

This article presents ten practical Python decorator patterns—such as logging, performance measurement, exception handling, retry, status‑code validation, parameter checking, rate limiting, data‑driven testing, environment configuration, and concurrent execution—each illustrated with clear use‑case descriptions and complete code snippets for API testing.

DecoratorError HandlingRetry
0 likes · 9 min read
Python Decorator Examples for API Testing
Test Development Learning Exchange
Test Development Learning Exchange
Jun 3, 2024 · Backend Development

Efficient API Automation Testing Practices with Python

This article presents ten practical strategies for improving efficiency, maintainability, and reusability in Python API automation testing, covering session reuse, parameterization, mocking, exception handling, fixtures, concurrency, data‑driven tests, response validation, conditional execution, and scheduled test runs.

api-testingpytestrequests
0 likes · 8 min read
Efficient API Automation Testing Practices with Python
Test Development Learning Exchange
Test Development Learning Exchange
Jun 1, 2024 · Backend Development

Using Python Generator Functions for Efficient API Automation Testing

This article demonstrates how Python generator functions can be applied in API automation testing to process large data streams, batch requests, infinite sequences, file handling, dynamic test data generation, recursive file traversal, lazy calculations, data filtering, response processing, retry logic, and test report creation, thereby improving memory efficiency and test flexibility.

api-testinggeneratormemory-management
0 likes · 6 min read
Using Python Generator Functions for Efficient API Automation Testing
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
Nov 9, 2023 · Backend Development

10 Common Python Automation Testing Scripts for API Testing

This article presents ten practical Python automation testing scripts—including batch test execution, data‑driven testing, API monitoring, performance measurement, database checks, screenshot capture, email reporting, data generation, logging, and response validation—to help developers streamline API testing and improve efficiency.

Data GenerationEmailapi-testing
0 likes · 7 min read
10 Common Python Automation Testing Scripts for API Testing
Test Development Learning Exchange
Test Development Learning Exchange
Jun 2, 2023 · Backend Development

Using Python requests and xlwt for API Automation Testing

This article explains how to leverage Python's requests library for sending HTTP requests and xlwt for exporting test results to Excel, providing a complete example of an API automation testing framework that reads test cases from Excel, runs them with unittest, and generates a report.

api-testingunittestxlwt
0 likes · 9 min read
Using Python requests and xlwt for API Automation Testing
FunTester
FunTester
Sep 6, 2019 · Backend Development

A Linear‑Style Java API Request Framework Using HttpClient

The article introduces a straight‑line (linear) code‑style Java framework for building and executing HTTP API requests, explains its design, provides the full source code, and demonstrates usage with a concise example illustrating GET/POST handling, headers, cookies, and response parsing.

Backendapi-testingcode style
0 likes · 7 min read
A Linear‑Style Java API Request Framework Using HttpClient
360 Quality & Efficiency
360 Quality & Efficiency
Dec 7, 2018 · Backend Development

Extending JUnit4 to Build a Custom API Automation Testing Framework

The article explains how to extend the JUnit4 framework to create a customizable API automation testing solution by detailing its architecture, data‑driven design with Excel, HTTP request handling, scheduler implementation, and result verification and reporting for efficient regression testing.

Data-drivenJavaapi-testing
0 likes · 9 min read
Extending JUnit4 to Build a Custom API Automation Testing Framework
转转QA
转转QA
Feb 6, 2017 · Backend Development

Java HttpClient Wrapper for HTTP GET/POST API Automation Testing

This article explains how to encapsulate Java HttpClient calls for GET and POST HTTP requests, provides utility methods for JSON response parsing, and demonstrates their use in automated API testing, offering a reusable backend solution for developers.

BackendHttpClientJava
0 likes · 7 min read
Java HttpClient Wrapper for HTTP GET/POST API Automation Testing