Skip to content

JaydipManiya/Vibium-Python-PyTest-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Vibium-Python-PyTest Project

A test automation framework built with Vibium and Python-PyTest for automated web testing of the OrangeHRM demo application.

🎯 Overview

This project demonstrates automated testing using Vibium, a Python browser automation library, combined with Pytest framework. The test suite automates user management workflows in the OrangeHRM demo application, including login and user creation processes.

✨ Features

  • Vibium Integration: Leverages Vibium for browser automation
  • Pytest Framework: Utilizes Pytest for test organization and execution
  • Page Object Model: Implements locator separation for maintainability

πŸ“ Project Structure

Vibium/
β”œβ”€β”€ conftest.py                          # Pytest configuration and fixtures
β”œβ”€β”€ requirements.txt                     # Project dependencies
β”œβ”€β”€ README.md                            # Project documentation
β”œβ”€β”€ screenshots/                         # Test execution screenshots
β”œβ”€β”€ tests/                               # Test cases directory
β”‚   β”œβ”€β”€ __init__.py
β”‚   └── test_login_add_new_user.py      # Login and user creation tests
└── utils/                               # Utility modules
    β”œβ”€β”€ __init__.py
    β”œβ”€β”€ data/                            # Test data
    β”‚   β”œβ”€β”€ __init__.py
    β”‚   └── common_data.py               # Shared test data and constants
    β”œβ”€β”€ lib/                             # Support libraries
    β”‚   β”œβ”€β”€ __init__.py
    β”‚   └── support_methods.py           # Helper functions
    └── locators/                        # UI element locators
        β”œβ”€β”€ __init__.py
        └── locators.py                  # CSS selectors for web elements

πŸ“¦ Installation

  1. Clone the repository

    git clone <repository-url>
    cd Vibium-Python-PyTest-Automation
  2. Create a virtual environment (recommended)

    python -m venv .venv
    source .venv/bin/activate
  3. Install dependencies

    pip install -r requirements.txt

πŸš€ Usage

Running Tests

Go to Vibium home directory and run below command as required.

Run all test files:

pytest -vs tests

Run specific test file:

pytest -vs tests/test_login_add_new_user.py

πŸ“ Dependencies

  • pytest (9.0.2): Testing framework
  • vibium (0.1.0): Browser automation library
  • pytest-html (4.1.1): HTML report generation

Note: This project uses the OrangeHRM demo application for testing purposes. The demo site may reset periodically, which could affect test execution.

About

A Python + pytest automation framework built on Vibium

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages