Tagged articles
47 articles
Page 1 of 1
Woodpecker Software Testing
Woodpecker Software Testing
Apr 9, 2026 · Artificial Intelligence

Building a Generic AI Agent for Automated Test Case and Script Generation (Part 3)

After parallelizing registration, login, and password‑recovery flows, this article shows how to embed those requirements into a reusable intelligent agent, detailing the workflow diagram, system and user prompts, and providing concrete Python‑based API and Playwright test script examples with CSRF handling, password hashing, and database cleanup.

AI testingAPI testingCSRF
0 likes · 38 min read
Building a Generic AI Agent for Automated Test Case and Script Generation (Part 3)
Test Development Learning Exchange
Test Development Learning Exchange
Oct 27, 2024 · Fundamentals

Fundamental and Advanced Exception Handling in Python

This article presents a comprehensive guide to Python exception handling, covering basic try‑except usage, multiple exception capture, else/finally clauses, custom exceptions, exception chaining, logging, context managers, assertions, traceback, concurrent and asynchronous error handling, and testing techniques.

asyncioconcurrencyexception-handling
0 likes · 8 min read
Fundamental and Advanced Exception Handling in Python
Test Development Learning Exchange
Test Development Learning Exchange
Sep 14, 2024 · Fundamentals

Comprehensive Guide to Python unittest Framework

This article provides a detailed tutorial on Python's unittest framework, covering basic concepts, assertion methods, test suites, setup and teardown, parameterized tests, test organization, and includes extensive code examples demonstrating how to write and run unit tests effectively.

assertionsparameterized teststest automation
0 likes · 11 min read
Comprehensive Guide to Python unittest Framework
Test Development Learning Exchange
Test Development Learning Exchange
Aug 26, 2024 · Fundamentals

Master Python unittest: From Basics to Advanced Techniques

This guide walks through Python's unittest module, covering fundamental concepts, test suites, loaders, custom result handling, skipping tests, retry decorators, execution order, tagging, class-level setup/teardown, and exception‑message assertions, each illustrated with clear code examples.

RetryassertRaisesRegexcustom result
0 likes · 8 min read
Master Python unittest: From Basics to Advanced Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Aug 19, 2024 · Fundamentals

Applying Python Magic Methods in Unit Tests: __init__, setUp, tearDown, __str__, __repr__, __eq__, __lt__, __len__, __iter__, __getitem__

This article explains how Python's magic (special) methods such as __init__, setUp, tearDown, __str__, __repr__, __eq__, __lt__, __len__, __iter__, and __getitem__ can be leveraged within unittest test cases to customize initialization, setup, cleanup, representation, comparison, length, iteration, and indexing, accompanied by concrete code examples.

code-examplesmagic-methodsunittest
0 likes · 7 min read
Applying Python Magic Methods in Unit Tests: __init__, setUp, tearDown, __str__, __repr__, __eq__, __lt__, __len__, __iter__, __getitem__
Test Development Learning Exchange
Test Development Learning Exchange
Aug 12, 2024 · Fundamentals

Comprehensive Guide to Python unittest Features and Advanced Testing Techniques

This article presents a detailed overview of Python's unittest framework, covering test suites, decorators, parameterized tests, nested tests, dynamic test generation, loaders, exception assertions, subtests, setup/teardown, various assertion methods, test skipping, output capturing, asynchronous testing, and custom assertions, each illustrated with clear code examples.

PythonTest Suitesassertions
0 likes · 10 min read
Comprehensive Guide to Python unittest Features and Advanced Testing Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Jul 22, 2024 · Backend Development

Python API Testing Examples Using requests, unittest, pytest, and jsonschema

This article provides a series of Python code examples demonstrating how to perform API automation testing tasks—including GET and POST requests, authentication, file uploads, redirects, unit testing with unittest and pytest, response mocking with responses, and response schema validation with jsonschema—offering practical guidance for backend testing.

API testingPythonjsonschema
0 likes · 6 min read
Python API Testing Examples Using requests, unittest, pytest, and jsonschema
Test Development Learning Exchange
Test Development Learning Exchange
Jul 19, 2024 · Backend Development

Using Test Tags in Python unittest and pytest for Efficient Test Management

This article explains how to apply test tags in Python's unittest and pytest frameworks, providing multiple code examples that demonstrate custom attributes, class-level tags, markers, multi‑tags, parameterized tests, dynamic tagging, custom plugins, and report customization to improve test selection and organization in large automation suites.

pytesttest tagsunittest
0 likes · 6 min read
Using Test Tags in Python unittest and pytest for Efficient Test Management
Test Development Learning Exchange
Test Development Learning Exchange
Jun 6, 2024 · Fundamentals

Advanced Techniques for Dynamically Generating Unit Tests in Python

This article presents ten Python unittest strategies—including list comprehensions, metaclasses, the parameterized library, file‑driven data, factory functions, TestLoader/TestSuite, subTest, database‑driven cases, pytest parametrize, and YAML/INI configuration—to create flexible, data‑driven unit tests efficiently.

dynamic testsparameterizedtesting
0 likes · 7 min read
Advanced Techniques for Dynamically Generating Unit Tests in Python
Go Programming World
Go Programming World
May 11, 2024 · Backend Development

Testing HTTP Applications in Go: Isolating External Dependencies

This article explains how to write reliable unit tests for Go HTTP applications by isolating external dependencies, covering server‑side handlers, client‑side monitoring, and using tools such as net/http/httptest, testify, and gock to create test doubles and mock HTTP services.

GoHTTPTestify
0 likes · 21 min read
Testing HTTP Applications in Go: Isolating External Dependencies
Test Development Learning Exchange
Test Development Learning Exchange
Feb 18, 2024 · Backend Development

Dynamic Environment Switching in Test Frameworks Using Python Decorators

The article explains the importance of dynamic environment switching in testing frameworks for multi‑environment validation, resource isolation, debugging, and CI/CD, and provides Python unittest decorator examples along with best‑practice considerations such as scope, thread safety, resource management, and execution order.

DecoratorPythonci/cd
0 likes · 9 min read
Dynamic Environment Switching in Test Frameworks Using Python Decorators
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
Python Programming Learning Circle
Python Programming Learning Circle
Oct 31, 2023 · Fundamentals

Comparison of Five Python Automation Testing Frameworks: Robot Framework, Pytest, UnitTest, Behave, and Lettuce

This article reviews and compares five popular Python automation testing frameworks—Robot Framework, Pytest, UnitTest, Behave, and Lettuce—covering their prerequisites, advantages, disadvantages, and how they stack up against each other to help newcomers choose the right tool for functional, unit, or behavior‑driven testing.

LettucePythonautomation
0 likes · 14 min read
Comparison of Five Python Automation Testing Frameworks: Robot Framework, Pytest, UnitTest, Behave, and Lettuce
360 Quality & Efficiency
360 Quality & Efficiency
Jul 14, 2023 · Backend Development

Quick Guide to Generating Clear HTML Test Reports with unittestreport

This article introduces the open‑source unittestreport framework for Python, explains how to install it, configure report parameters, use multi‑threaded execution, enable email notifications, and extend it with HTMLTestRunner compatibility to produce customizable, visual HTML test reports for unittest and pytest projects.

HTML reportpytesttesting
0 likes · 8 min read
Quick Guide to Generating Clear HTML Test Reports with unittestreport
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
360 Quality & Efficiency
360 Quality & Efficiency
May 26, 2023 · Backend Development

Generating Clear Visual HTML Test Reports with unittestreport: Quick Start, Features, and Extensions

This article explains how to quickly generate clear, visual HTML test reports using the unittestreport framework, covering installation, basic usage, data‑driven testing, multithreading, email notifications, SSL fixes, and compatibility extensions with HTMLTestRunner for both unittest and pytest environments.

HTML test reportpytestpython testing
0 likes · 8 min read
Generating Clear Visual HTML Test Reports with unittestreport: Quick Start, Features, and Extensions
21CTO
21CTO
Mar 28, 2023 · Backend Development

Top 5 Python Test Automation Frameworks Compared: Pros, Cons & Best Use Cases

This article evaluates the five leading Python test automation frameworks—Robot Framework, Pytest, unittest (PyUnit), Behave, and Lettuce—detailing their installation requirements, key features, advantages, disadvantages, and suitability for functional, unit, or behavior‑driven testing to help developers choose the right tool.

LettucePythonbehave
0 likes · 12 min read
Top 5 Python Test Automation Frameworks Compared: Pros, Cons & Best Use Cases
FunTester
FunTester
Jun 12, 2022 · Backend Development

My Journey Learning Automation Testing with Python: From Selenium Recording to a UnitTest Framework

The author recounts their progression from beginner Selenium script recording to mastering WebDriver element location and a UnitTest‑based automation framework, highlighting challenges like script failures, code redundancy, and real‑world problem solving, and emphasizes continuous learning for effective Python automation testing.

PythonSeleniumWebDriver
0 likes · 6 min read
My Journey Learning Automation Testing with Python: From Selenium Recording to a UnitTest Framework
FunTester
FunTester
Mar 20, 2022 · Fundamentals

Why Your Selenium Tests Fail: Common Pitfalls and How to Fix Them

This article walks through three frequent Selenium‑Python automation problems—missing test discovery due to method naming, incorrect URLs that break page data loading, and element‑location failures after window switches—explaining their causes and step‑by‑step solutions.

Automated TestingDebuggingPython
0 likes · 7 min read
Why Your Selenium Tests Fail: Common Pitfalls and How to Fix Them
Python Programming Learning Circle
Python Programming Learning Circle
Mar 26, 2021 · Backend Development

Building a Python API Automation Testing Framework: Design, Configuration, Logging, Database, and Email Integration

This article details the step‑by‑step creation of a Python‑based API automation testing framework, covering project structure, configuration files, a reusable logging module, HTTP request handling with requests, common utilities for Excel and XML, MySQL database access, email reporting, and the test runner setup.

API testingEmailautomation
0 likes · 20 min read
Building a Python API Automation Testing Framework: Design, Configuration, Logging, Database, and Email Integration
360 Quality & Efficiency
360 Quality & Efficiency
Nov 26, 2019 · Fundamentals

Getting Started with Python unittest: Principles and Practical Automation

This article introduces Python’s built‑in unittest framework, outlining its lightweight advantages, core components such as TestCase, TestSuite, TestRunner and TestLoader, and demonstrates a complete automation workflow from Excel‑based test data preparation to generating HTML test reports with HTMLTestRunnerNew.

PythonSoftware Testingtest automation
0 likes · 4 min read
Getting Started with Python unittest: Principles and Practical Automation
360 Quality & Efficiency
360 Quality & Efficiency
Aug 13, 2019 · Fundamentals

Using unittest and ddt for Data-Driven Testing in Python

This article explains how to combine Python's unittest framework with the third‑party ddt library to create data‑driven tests, covering test fixtures, decorators, data handling techniques, and examples of loading test data from JSON, YAML, CSV, or Excel files.

Data‑Driven TestingPythonddt
0 likes · 3 min read
Using unittest and ddt for Data-Driven Testing in Python
360 Tech Engineering
360 Tech Engineering
Oct 30, 2018 · Backend Development

Interface Diff Testing: Implementation Guide and Key Details

This article explains interface Diff testing—comparing API responses across versions or environments—covers its benefits, outlines the implementation approach with project structure, test case organization, and BeautifulReport integration, and provides practical tips for Python developers to automate comprehensive API validation.

API testingBeautifulReportDIFF testing
0 likes · 6 min read
Interface Diff Testing: Implementation Guide and Key Details
360 Quality & Efficiency
360 Quality & Efficiency
Oct 25, 2018 · Backend Development

Interface Diff Testing: Methodology, Implementation Details, and Reporting

This article explains how interface diff testing compares API responses across versions or environments using automated replay of production logs, outlines the project structure, demonstrates unittest‑based implementation with JSON recursive comparison, and shows how to generate clear HTML reports with BeautifulReport.

API testingBeautifulReportDIFF testing
0 likes · 6 min read
Interface Diff Testing: Methodology, Implementation Details, and Reporting
Test Development Learning Exchange
Test Development Learning Exchange
Oct 25, 2018 · Fundamentals

Using Python's unittest Module for Unit Testing, Reporting, and CI Integration

This article introduces Python's built‑in unittest framework, explains core concepts such as TestCase, TestSuite, TestLoader, and TestRunner, demonstrates how to write test cases, generate HTML and XML reports with HTMLTestRunner and xmlrunner, and shows parameterized testing with nose‑parameterized for CI pipelines.

CIHTMLTestRunnerPython
0 likes · 7 min read
Using Python's unittest Module for Unit Testing, Reporting, and CI Integration
MaGe Linux Operations
MaGe Linux Operations
Jan 29, 2018 · Backend Development

Master Python Mock: Simulate External Calls for Seamless Unit Testing

This article explains what the Python Mock library does, how to install and import it, demonstrates basic and advanced usage including creating mock objects, setting return values and side effects, and shows how to apply patch and patch.object for effective unit testing without a real server.

Mockpatchunit-testing
0 likes · 12 min read
Master Python Mock: Simulate External Calls for Seamless Unit Testing