Skip to main content

Promethee-Selenium: A POM-based automated UI test library

Project description

Promethee-Selenium

[English version below | Version française plus bas]


🇬🇧 English Description

Promethee-Selenium is a robust, Page Object Model (POM) based library for automated UI testing using Selenium and Pytest.

It is designed to streamline your end-to-end testing workflow by providing a structured architecture, ensuring your tests are maintainable, scalable, and easy to read.

Features

  • Page Object Model (POM): Enforces a clean separation between page interactions (locators, actions) and test logic (assertions, workflows).
  • Interactive CLI: A user-friendly command-line interface to guide you through project initialization and documentation.
  • Scaffolding: Quickly generate a production-ready project structure with promethee-selenium init.
  • Built-in Utilities: A rich set of helper functions for common Selenium actions (clicking, typing, waiting) powered by selenium-ui-test-tool.
  • Environment Management: Native support for managing test environments and credentials securely.
  • Bilingual Support: The CLI and documentation are available in both English and French.

Installation

Install the package via pip:

pip install promethee-selenium

Getting Started

  1. Launch the CLI: After installation, run the following command to access the interactive menu:

    promethee-selenium
    

    You will be prompted to select your language (English/French) and then choose an action.

  2. Initialize a Project: Select the Init option from the menu or run:

    promethee-selenium init
    

    This creates a standard directory layout:

    • scenarios/: For your Page Object classes.
    • tests/: For your Pytest test scripts.
    • data/: For configuration files and test data.
    • utils/: For project-specific utilities.
    • conftest.py: Pytest configuration with pre-configured fixtures.
  3. Run Your Tests: Execute your tests using pytest:

    pytest tests/
    

Documentation

To view the full documentation, select Docs from the CLI menu or run:

promethee-selenium docs

🇫🇷 Description Française

Promethee-Selenium est une librairie robuste basée sur le modèle Page Object Model (POM) pour l'automatisation de tests UI avec Selenium et Pytest.

Elle est conçue pour optimiser votre flux de travail de tests de bout en bout en fournissant une architecture structurée, garantissant que vos tests restent maintenables, évolutifs et lisibles.

Fonctionnalités

  • Page Object Model (POM) : Impose une séparation claire entre les interactions de page (sélecteurs, actions) et la logique de test (assertions, scénarios).
  • CLI Interactif : Une interface en ligne de commande conviviale pour vous guider dans l'initialisation du projet et la consultation de la documentation.
  • Génération de Projet : Générez rapidement une structure de projet prête pour la production avec promethee-selenium init.
  • Utilitaires Intégrés : Un ensemble riche de fonctions d'aide pour les actions Selenium courantes (cliquer, écire, attendre), propulsé par selenium-ui-test-tool.
  • Gestion d'Environnement : Support natif pour gérer les environnements de test et les identifiants de manière sécurisée.
  • Support Bilingue : Le CLI et la documentation sont disponibles en anglais et en français.

Installation

Installez le paquet via pip :

pip install promethee-selenium

Démarrage Rapide

  1. Lancez le CLI : Après l'installation, exécutez la commande suivante pour accéder au menu interactif :

    promethee-selenium
    

    Il vous sera demandé de choisir votre langue (Anglais/Français) puis de choisir une action.

  2. Initialisez un Projet : Sélectionnez l'option Init dans le menu ou exécutez :

    promethee-selenium init
    

    Cela crée une structure de répertoires standard :

    • scenarios/ : Pour vos classes Page Object.
    • tests/ : Pour vos scripts de test Pytest.
    • data/ : Pour les fichiers de configuration et les données de test.
    • utils/ : Pour les utilitaires spécifiques au projet.
    • conftest.py : Configuration Pytest avec des fixtures pré-configurées.
  3. Lancez Vos Tests : Exécutez vos tests avec pytest :

    pytest tests/
    

Documentation

Pour consulter la documentation complète, sélectionnez Docs dans le menu du CLI ou exécutez :

promethee-selenium docs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promethee_selenium-1.0.10.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promethee_selenium-1.0.10-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file promethee_selenium-1.0.10.tar.gz.

File metadata

  • Download URL: promethee_selenium-1.0.10.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for promethee_selenium-1.0.10.tar.gz
Algorithm Hash digest
SHA256 290da0273129e01a15a2257ed9132b2e9fa85f6802fa2bb6a665e1a7429ee68d
MD5 9cd998df494d1298a775932133a16ba5
BLAKE2b-256 656eb54bd8d229004376c11b9ab91634bb88e1f7267b425f0c530bfcfe6c1cb1

See more details on using hashes here.

File details

Details for the file promethee_selenium-1.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for promethee_selenium-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8fe1368b8a76b992c85d3342cf77d7a7d4073993c98ddb01d3f569bf70a2c165
MD5 a0d49b92a99bf223328fe6b8b1f6fb88
BLAKE2b-256 cc6c74450920a537b4b66ffc8cd1ca0ef55d8690d78f2a5de80980f868919551

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page