A POM-based automated UI test framework
Project description
Automated UI Test Framework
[English version below | Version française plus bas]
🇬🇧 English Description
A robust, Page Object Model (POM) based framework for automated UI testing using Selenium and Pytest.
This framework is designed to help you write maintainable and scalable end-to-end tests with minimal boilerplate.
Features
- Page Object Model (POM): Structured architecture separating page logic from test logic.
- Scaffolding CLI: Quickly initialize a new project with best-practice directory structure using
automated-ui-framework init. - Built-in Utilities: Ready-to-use helpers for Waiting, Clicking, Filling inputs (via
selenium-ui-test-tool). - Environment Management: Easy handling of test data and credentials.
- Documentation: Includes HTML documentation to help you get started.
Installation
Install the package via pip:
pip install Auomated-ui-test-framework
Getting Started
-
Create a new folder for your test project:
mkdir my_test_project cd my_test_project
-
Initialize the project structure:
automated-ui-framework initThis will create:
scenarios/: For your Page Objects.tests/: For your test scripts.data/: For credentials and test data.utils/: For local utilities.conftest.py: Pytest configuration.
-
Run the sample test:
pytest tests/
Writing a Page Object
Inherit from the Base class provided by the framework:
from automated_ui_test_framework.base import Base
from selenium.webdriver.common.by import By
# Uses selenium-ui-test-tool functions internally
class LoginPage(Base):
def fill_form(self, username, password):
self.fill_input(By.ID, "username", username)
self.fill_input(By.ID, "password", password)
self.click_element(By.ID, "submit-btn")
For more details, check the generated docs/index.html after installation.
🇫🇷 Description Française
Un framework robuste basé sur le modèle Page Object Model (POM) pour l'automatisation de tests UI avec Selenium et Pytest.
Ce framework est conçu pour vous aider à écrire des tests de bout en bout maintenables et évolutifs avec un minimum de code répétitif.
Fonctionnalités
- Page Object Model (POM) : Architecture structurée séparant la logique de la page de la logique de test.
- CLI d'initialisation : Initialisez rapidement un nouveau projet avec une structure recommandée via
automated-ui-framework init. - Utilitaires intégrés : Fonctions prêtes à l'emploi pour attendre, cliquer, remplir des champs (via
selenium-ui-test-tool). - Gestion d'environnement : Gestion facile des données de test et des identifiants.
- Documentation : Inclut une documentation HTML pour vous aider à démarrer.
Installation
Installez le paquet via pip :
pip install Auomated-ui-test-framework
Démarrage Rapide
-
Créez un nouveau dossier pour votre projet de test :
mkdir mon_projet_test cd mon_projet_test
-
Initialisez la structure du projet :
automated-ui-framework initCela va créer :
scenarios/: Pour vos Page Objects.tests/: Pour vos scripts de test.data/: Pour les identifiants et données de test.utils/: Pour les utilitaires locaux.conftest.py: Configuration Pytest.
-
Lancez le test d'exemple :
pytest tests/
Écrire un Page Object
Héritez de la classe Base fournie par le framework :
from automated_ui_test_framework.base import Base
from selenium.webdriver.common.by import By
# Utilise les fonctions selenium-ui-test-tool en interne
class LoginPage(Base):
def fill_form(self, username, password):
self.fill_input(By.ID, "username", username)
self.fill_input(By.ID, "password", password)
self.click_element(By.ID, "submit-btn")
Pour plus de détails, consultez le fichier docs/index.html généré après l'installation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file auomated_ui_test_framework-0.1.3.tar.gz.
File metadata
- Download URL: auomated_ui_test_framework-0.1.3.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d01fd0989c1afb5f263d6fc6003f8b76e93c0f9bbb726ccdd657bdadda7e115
|
|
| MD5 |
27146bbe67dade6524866e24fa6cdde1
|
|
| BLAKE2b-256 |
cfebc3fceef37c3b1d592d70b510f768c9e33d77008fd58f13138c37c83b6022
|
File details
Details for the file auomated_ui_test_framework-0.1.3-py3-none-any.whl.
File metadata
- Download URL: auomated_ui_test_framework-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1cee166af4bc8e073c617a60813f8b25781cd370068745aca8a2bf176dfacc7
|
|
| MD5 |
e5d541f1f69a3aecd567d46167f9be99
|
|
| BLAKE2b-256 |
af84bb1ab43a960119c3d574fc024f5859115387899f657489cf1e7577b70d78
|