Skip to content

Automation testing project for Odoo 16 ERP system covering UI automation and unit testing across three business modules (Lunch, Fleet, OM Hospital) using Selenium, Robot Framework, and Odoo native testing frameworks.

Notifications You must be signed in to change notification settings

HeatherCyber/Odoo16-Automation-Testing

Repository files navigation

Odoo 16 Automation Testing Project

Automation testing practice project based on Odoo ERP system

Python Selenium Robot Framework Odoo

🎯 Project Overview

This project demonstrates software validation techniques through automation testing of Odoo 16 ERP system:

  • Purpose: Learn and practice software validation techniques
  • Scope: Three business modules (Lunch, Fleet, OM Hospital)
  • Frameworks: Selenium, Robot Framework, Odoo native testing

Note: OM Hospital needs to be downloaded from Odoo Apps.

🚀 Quick Start

Prerequisites

  • Python 3.8+
  • Chrome browser
  • Odoo 16 instance running locally

Setup Steps

  1. Install dependencies: pip install -r requirements.txt
  2. Configure config/config.py with your Odoo credentials
  3. Run tests:
    # UI automation tests
    python scripts/run_ui_tests.py --framework selenium
    python scripts/run_ui_tests.py --framework robot
    
    # Unit tests
    python scripts/run_unit_tests.py

Usage Instructions: Ensure your Odoo 16 instance is properly configured and running, with relevant application modules installed before running tests.

📊 Test Coverage

UI Automation Tests

App Test Type Test Cases Covered Features
Lunch Selenium 4 Order creation, cash flow, order history
Lunch Robot Framework 3 Complete order workflow, cash management
Fleet Selenium 4 Vehicle creation, service management
OM Hospital Selenium 6 Patient management, doctor management

Unit Tests

App Test Classes Test Methods Covered Scenarios
Lunch 3 8 Product creation, supplier management, topping functionality
Fleet 4 12 Vehicle creation, state management, contract management
OM Hospital 3 10 Patient management, doctor management, appointment system

📈 Test Reports

The project supports the following test report formats:

  • HTML Reports: Detailed test execution reports with test results and coverage
  • Console Output: Real-time test progress display and error information
  • Markdown Reports: Test overview and statistical information

Note: The reports/ directory contains sample test reports showcasing the project's testing capabilities and report formats. In actual use, running test scripts will automatically generate the latest report files.

👤 Author & Contributions

This project was individually developed as part of the Software Validation course. I was responsible for the complete design and implementation of all testing components:

Key Contributions

  • Unit Tests: Designed and implemented comprehensive test suites for Lunch, Fleet, and OM Hospital modules using Odoo's native testing framework
  • Selenium UI Tests: Developed automated UI workflows covering all three business modules
  • Keyword-Driven Tests: Created Robot Framework test suite for Lunch module to validate end-to-end order workflows
  • Project Architecture: Structured the project, integrated reporting systems, and documented all results

Project Summary: Automation testing practice project based on Odoo ERP system, showcasing the application of multiple testing frameworks and comprehensive test strategy design.

About

Automation testing project for Odoo 16 ERP system covering UI automation and unit testing across three business modules (Lunch, Fleet, OM Hospital) using Selenium, Robot Framework, and Odoo native testing frameworks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published