API Automation Testing Framework Design and Implementation
This article details the design and implementation of an API automation testing framework, covering framework structure, execution flow, and usage instructions for testing interfaces.
This article details the design and implementation of an API automation testing framework, covering framework structure, execution flow, and usage instructions for testing interfaces.
This article introduces Tox as a virtualenv manager and command‑line testing tool for Python, explains how to install it, set up a simple project with test and setup files, configure tox.ini, run tests across multiple Python versions, and customize environments for advanced usage.
This article shares a small team's journey from scratch to advanced API testing, detailing how they adopted HttpRunner, upgraded to its pytest‑compatible v3.x, and later integrated Apifox for streamlined documentation, mocking, and automated tests, while highlighting practical setup, hooks, and lessons learned.
This article provides a comprehensive guide to Pytest, covering basic test case creation, exception handling, test classes, automatic test discovery, advanced features like parametrize, marks, fixtures, and plugin/hook development, complete with practical code examples and configuration tips.
This article provides a comprehensive overview of the Pytest framework, covering its key features, installation steps, test file conventions, execution commands, assertion methods, and examples of API testing with detailed code snippets.
This article outlines four essential modern Python concepts—type hinting, virtual environment and package management tools, recent syntax enhancements such as pattern matching and the walrus operator, and advanced testing frameworks—providing developers with the knowledge needed to write clean, efficient code in 2022 and beyond.
This tutorial explains how to install Allure‑pytest, create a simple Dianping search test case, generate the default report, and progressively enhance it with custom titles, detailed steps, fixture‑based setup/teardown, hierarchical features, severity levels, and rich HTML descriptions, all using Python code snippets.
This article explains pytest hook functions, detailing the framework's lifecycle phases, enumerating key hooks for initialization, collection, execution, debugging, and reporting, and provides practical code examples for extending pytest with custom options, dynamic parametrization, logging, and output customization.
This article explains the concept of teardown and idempotency in automated testing, illustrates single‑thread and concurrent scenarios, and demonstrates various Pytest teardown techniques—including function, class, module, fixture yield, request.addfinalizer, and object‑oriented approaches—providing practical code examples for reliable test cleanup.
This article details a comprehensive backend API testing automation framework using tools like pytest, Docker, and Jenkins to generate test cases, manage test data, and produce detailed reports.
Learn how to use the Python Hypothesis library for property‑based testing, understand different test levels and methods, and see practical examples—including unit tests for increment/decrement functions and handling edge cases with custom examples—to write more robust, automated tests.
Learn the core principles for writing effective unit tests—such as focusing on single functions, ensuring independence, and using descriptive names—alongside a concise overview of popular Python testing tools like unittest, pytest, nose, doctest, tox, and mock, to boost code reliability.
This article reviews five popular Python automation testing frameworks—Robot Framework, Pytest, UnitTest/PyUnit, Behave, and Lettuce—detailing their prerequisites, strengths, weaknesses, and how they compare, to help developers select the most suitable tool for their projects.
This article introduces the most frequently used pytest hooks, categorizing them into guiding, initialization, test execution, collection, reporting, and debug hooks, and explains how to implement custom behavior in conftest.py or plugins for advanced test automation.
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.
This article provides a step‑by‑step guide for automating cross‑browser web tests using Selenium with Python, covering fixture setup, CSS and XPath selectors, handling dropdowns, checkboxes, mouse hover actions, tab management, and extracting page source, all illustrated with complete code examples.
This article provides an in‑depth overview of the Pytest testing framework, covering its advantages, execution principles, essential command‑line options, frequently used functions, mark annotations, and fixture usage with scope and return‑value details for effective Python testing.
This article compares three popular Python test automation frameworks—Robot Framework, pytest, and unittest—detailing their prerequisites, key advantages, drawbacks, and ideal use cases to help developers choose the most suitable tool for their testing needs.
This article details a practical approach to implementing automated testing in an information systems team, covering technology selection, framework setup, and real-world challenges encountered during the process.
This article introduces pytest and Allure, explains how to write simple UI automation test cases with pytest, integrate Allure for attractive test reports, and provides step‑by‑step commands for generating and viewing the reports, making automated testing accessible for beginners.
Developers no longer need to build custom test frameworks from scratch, as this guide reviews popular Python automation testing tools—including Robot Framework, RedwoodHQ, Jasmine, and Pytest—highlighting their features, cross‑platform support, ease of use, and suitability for various project sizes and testing needs.
This article reviews the most widely used Python automation testing frameworks—including Robot Framework, RedwoodHQ, Jasmine, and Pytest—highlighting their key features, cross‑platform support, and suitability for different project sizes and testing needs.
This article describes how to improve API testing efficiency and quality by using an interface‑diff approach integrated with Jenkins, CSV‑managed test cases, and the pytest framework, covering background, goals, technical implementation, and practical insights.