- This project automates the OrangeHRM Login functionality using Robot Framework and Selenium WebDriver in Python.
- It performs multiple positive and negative login test cases β including valid, invalid, and empty credentials β and generates Allure Reports for detailed execution results.
- The setup follows a structured virtual environment approach and leverages data-driven testing for reusability πβ¨ .
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
python -m venv robotlearn1β
Creates a virtual environment named robotlearn1 to isolate project dependencies.
robotLearn1\Scripts\activateβ Activates your environment to ensure all Python libraries install locally.
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.
Extension:
Robot Framework Language Serverβ Enables syntax highlighting, code suggestions, and easy Robot execution in VS Code.
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.
π¦ Download from: π Allure 2.35.1 Release Page
Extract and copy the bin folder path.
Add The Copied Path to the Environment Variables.
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.
allure --versionβ Confirms Allure CLI is working.
robot --listener allure_robotframework;./allure-results OrangeLogin.robotβ
Executes the test suite and stores raw test data in the allure-results directory.
allure generate ./allure-results -o ./allure-report --cleanβ
Converts Allure results into a beautiful Interactive HTML report and saves it in allure-report.
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 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 |
- π Robot Framework + Selenium Integration
- π End-to-End Login Validation
- π Allure Report Visualization
- π§ Keyword-Driven & Data-Driven Testing
- π» Reusable Modular Test Design
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 π»β¨.





