Building a Scalable API Automation Framework with Pytest, Requests, and Allure
Framework Architecture
The testing infrastructure follows a hybrid design pattern combining keyword-driven and data-driven methodologies. It isolates HTTP operations, configuration management, business logic, and test orchestration into distinct layers to maximize reusability and maintainability.
Directory Structure
utils/ – HTTP client wrappe ...
Posted on Tue, 15 Sep 2026 16:21:27 +0000 by petroz
Python Data-Driven Testing with DDT Library
The DDT (Data-Driven Testing) library is a third-party package that enables parameterized testing in Python's unittest framework. Before proceeding, install the package using pip: pip install ddt.
DDT provides the @ddt class decorator along with two method decorators: @data for direct test data input and @unpack for decomposing compound data st ...
Posted on Wed, 05 Aug 2026 16:11:57 +0000 by xgd
Implementing PO Design Pattern in Appium Framework - Enhanced Page Object Structure
Refactoring BasePage Module
Element Locator Methods
def find(self, by, locator=None):
return self.driver.find_elements(*by) if isinstance(by, tuple) else self.driver.find_element(by, locator)
Enhanced Find Method with Popup Handling
class BasePage():
_black_list = [MobileBy.ID, 'image_cancel']
_error_count = 0
_error_ma ...
Posted on Wed, 13 May 2026 02:49:10 +0000 by Piranha