Skip to content

MJNVSai/OrangeHRM_Login_Robot_Framework_Testing

Repository files navigation

πŸ€– OrangeHRM Login Automation Testing Using Robot Framework

Robot Framework Python Selenium Allure Report VSCode


πŸ“ Project Description

  1. This project automates the OrangeHRM Login functionality using Robot Framework and Selenium WebDriver in Python.
  2. It performs multiple positive and negative login test cases β€” including valid, invalid, and empty credentials β€” and generates Allure Reports for detailed execution results.
  3. The setup follows a structured virtual environment approach and leverages data-driven testing for reusability πŸ”βœ¨ .

πŸ“ Project Directory Structure


robotlearn1/
β”‚
β”œβ”€β”€ OrangeHRM_Login/
β”‚   β”œβ”€β”€ allure-reports/
β”‚   β”œβ”€β”€ allure-results/
β”‚   β”œβ”€β”€ log.html
β”‚   β”œβ”€β”€ Login_Sucess_Dashboard_Pic.png
β”‚   β”œβ”€β”€ OrangeLogin.robot
β”‚   β”œβ”€β”€ output.xml
β”‚   β”œβ”€β”€ report.html
β”‚   β”œβ”€β”€ selenium-screenshot-1.png
β”‚
β”œβ”€β”€ Scripts/
β”‚   β”œβ”€β”€ activate.bat
β”‚   β”œβ”€β”€ deactivate.bat
β”‚
└── pyvenv.cfg


βš™οΈ Installation & Environment Setup

🧱 Step 1: Create Python Virtual Environment

python -m venv robotlearn1

βœ… Creates a virtual environment named robotlearn1 to isolate project dependencies.

πŸš€ Step 2: Activate Virtual Environment

robotLearn1\Scripts\activate

βœ… Activates your environment to ensure all Python libraries install locally.

πŸ“¦ Step 3: Install Required Packages

pip install robotframework
pip install selenium
pip install robotframework-seleniumlibrary
pip install webdriver-manager
pip install robotframework-datadriver
pip install -U robotframework-datadriver[XLS]

βœ… Installs Robot Framework, Selenium support, WebDriver manager, and Excel-based DataDriver for data-driven testing.

🧩 Step 4: Install VS Code Extension

Extension: Robot Framework Language Server βœ… Enables syntax highlighting, code suggestions, and easy Robot execution in VS Code.


πŸ§ͺ Test Execution Command

robot ./OrangeLogin.robot

βœ… Runs the OrangeLogin.robot test suite β€” executes all test cases and generates the default log.html, report.html, and output.xml files inside the project directory.


🧾 Allure Report Setup & Commands

1️⃣ Download Allure

πŸ“¦ Download from: πŸ‘‰ Allure 2.35.1 Release Page

Extract and copy the bin folder path.

Add The Copied Path to the Environment Variables.


2️⃣ Add Allure to PATH

Inside your virtual environment’s Scripts/activate.bat, add this line (adjust to your path):

set "PATH=%PATH%;D:\VenkatSai\Python_RobotFramework_Learn\Allure_Report_Install\allure-2.35.1\bin"

βœ… This ensures allure command works globally when your venv is active.


3️⃣ Verify Allure Installation

allure --version

βœ… Confirms Allure CLI is working.


4️⃣ Run Robot Tests with Allure Listener

robot --listener allure_robotframework;./allure-results OrangeLogin.robot

βœ… Executes the test suite and stores raw test data in the allure-results directory.


5️⃣ Generate Allure Report

allure generate ./allure-results -o ./allure-report --clean

βœ… Converts Allure results into a beautiful Interactive HTML report and saves it in allure-report.


6️⃣ Open Allure Report in Browser

allure open ./allure-report

βœ… Launches the generated Allure Dashboard in your default browser 🌐

⚠️ Note: Allure reports work only on a web server (not directly via file path).


βœ… Test Scenarios Covered

Test Case Username Password Expected Result
Valid Username & Valid Password βœ… βœ… Login Successful & Dashboard Visible
Valid Username & Invalid Password βœ… ❌ Error: Invalid Credentials
Invalid Username & Valid Password ❌ βœ… Error: Invalid Credentials
Invalid Username & Invalid Password ❌ ❌ Error: Invalid Credentials
Empty Username & Empty Password ❌ ❌ Field Required Message
Empty Username & Valid Password ❌ βœ… Field Required Message
Valid Username & Empty Password βœ… ❌ Field Required Message

πŸ–ΌοΈ Screenshots

βœ… Successful Login

Login Success

❌ Invalid Credentials

Invalid Login Error

πŸ“Š Allure Dashboard - 1

Allure_1

πŸ“ˆ Allure Dashboard - 2

Allure_2

πŸ“Š Allure Dashboard - 3

Allure_3

πŸ“ˆ Allure Dashboard - 4

Allure_4


πŸ’‘ Key Features

  • πŸš€ Robot Framework + Selenium Integration
  • πŸ” End-to-End Login Validation
  • πŸ“Š Allure Report Visualization
  • 🧠 Keyword-Driven & Data-Driven Testing
  • πŸ’» Reusable Modular Test Design

🏁 Final Note

This project was built to Learn And Demonstrate πŸ€– Robot Framework Automation with Selenium and Allure integration.

It highlights how test cases can be modular, maintainable, and visually represented using Allure reports πŸ’»βœ¨.


About

This Will Automates The OrangeHRM login scenarios with Robot Framework & Selenium β€” covering valid, invalid, and empty credential cases. Generates detailed Allure HTML reports for visual execution analysis and maintains a clean, modular test structure. πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors