Skip to main content

SeleniumFW - A minimal Selenium test framework that adapt POM

Project description

SeleniumFW 🚀

A lightweight, POM structured test automation framework for Python + Selenium, including:

  • 📦 Project scaffolding with sfw init
  • Test suite, test case, feature, and step generation using Jinja2 templating
  • ▶️ Runner for executing feature (.feature), YAML suite, or .py test case files
  • 🌐 REST API server (sfw serve) to list and schedule test suites
  • ⚙️ Typer-powered CLI for all commands
  • 🛡️ Hooks/listener system, dotenv support, jinja templating

🔧 Features

  • sfw init <project> — bootstrap a complete SeleniumFW project scaffold
  • sfw create-testsuite <name> — generate boilerplate YAML test suite & .py for its test suite hook
  • sfw create-testcase <name> — generate a .py test case stub
  • sfw create-listener <name> — generate a test listener
  • sfw create-feature <name> — generate a .feature file
  • sfw implement-feature <name> — autogenerate step definitions from your .feature
  • sfw run <target> — run one of .feature, .yml, or .py test scripts
  • sfw serve [--port <port>] — expose a REST API to list, run, and schedule test suites

✅ Installation

pip install seleniumfw

Or locally:

git clone https://github.com/badrusalam11/seleniumfw.git
cd seleniumfw
pip install -e .

🚀 Quick Start

1. Scaffold a new project

sfw init myproject
cd myproject

2. Create testsuite/feature/case

sfw create-testsuite login
sfw create-feature login
sfw implement-feature login

3. Add test logic in testcases/, steps/, etc.

4. Run tests

sfw run features/login.feature        # via behave
sfw run testsuites/login.yml         # via runner

5. REST API server

sfw serve
curl http://localhost:5006/api/suites
curl -X POST http://localhost:5006/api/run -d '{"testsuite_path":"testsuites/login.yml","phone_number":""}'

🛠️ Configuration

Use a .env in your project root to customize:

APP_PORT=5006
SERVER_URL=http://localhost:5006

💡 Why use SeleniumFW?

  • 🧠 Inspired by Katalon, but for Python developers
  • 🌟 Supports feature files + step generation + scheduling
  • 🚀 Design for both CLI use and API integration
  • 🧹 Expandable via listeners/hooks, Config, BrowserFactory, etc.

🤝 Contributing

PRs are welcome! Please ensure:

  • Code is well-documented and follows PEP8
  • Templates & CLI updated accordingly
  • README.md and tests updated
  • Use Black, Flake8, isort (recommended)

📜 License

MIT — see LICENSE for details.


📨 Contact

Built & maintained by Muhamad Badru Salam — QA Automation Engineer (SDET)

Github: badrusalam11 LinkedIn: Muhamad Badru Salam

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

seleniumfw-0.1.4.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

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

seleniumfw-0.1.4-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file seleniumfw-0.1.4.tar.gz.

File metadata

  • Download URL: seleniumfw-0.1.4.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for seleniumfw-0.1.4.tar.gz
Algorithm Hash digest
SHA256 1b71991abd0411638d7cf621cc872d8e033ba1952cb1b81949f4c46de142111d
MD5 d351731b572fd6b6482ee3814d7a4d60
BLAKE2b-256 0f04034b0e0d255c5eb4143dea673f7a5467ed650daca6e0a33e765843fb79e2

See more details on using hashes here.

File details

Details for the file seleniumfw-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: seleniumfw-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for seleniumfw-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 56258741064ab97129ddda210d5dd0201d9af8f1355921ad340417ff3c209e6e
MD5 9eaa3a4090676722e6f5ea6e458889cd
BLAKE2b-256 5f71abdbd7c9726395bdcb6e00047ebec413f91d7d49bf6d6da3f2cd0c9502d9

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