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.5.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.5-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: promethee_selenium-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 dadf06dbe0c716383af6c0f7904f313b0a48726c8c397537516ba16981e016e1
MD5 8d7cf2de977942037a8cea4524a9ffef
BLAKE2b-256 7b524fa480c842bf668892241f3b5b15107135612799998bbff721db8c4863a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promethee_selenium-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e9544dab8a85c9558aa3984035c029892e9ea5e39ce9d93e05437e0fc6614c
MD5 f06b7e1793428f1494cd084b86fb57d4
BLAKE2b-256 508dc01363c6aafbe056f53a0b28ee260445e6393a339c96c88c78acd772abff

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