How ahmed-9595/hybrid-automation-framework-selenium-restassured works
This is a hybrid OrangeHRM automation framework: tests establish a browser session, create employee data through the API, then exercise employee UI workflows and validate results. The main stages are login/session capture, API setup, PIM employee lookup, and contact/job updates; shared configuration, request, browser-action, and session-data utilities support them. The README documents Allure reporting and the end-to-end sequence. Test orchestration and reporting internals were not sampled, so those links reflect README statements rather than inspected test code.
Main entry points: EmployeeAPI.java Create employee · LoginPage.java Login and session · PersonalDetailsAPI.java Personal details API · TestBase.java Test setup
Components 20
Test workflows
- Test setup
src/test/java/base/TestBase.java - API test cases
src/test/java/testCases/api - UI test cases
src/test/java/testCases/ui
Browser workflows
- Driver factory
src/main/java/com/orangehrmlive/qa/factoryPage/DriverFactory.java - Login and session
src/main/java/com/orangehrmlive/qa/pages/LoginPage.java - PIM employee search
src/main/java/com/orangehrmlive/qa/pages/PIMPage.java - Contact details
src/main/java/com/orangehrmlive/qa/pages/ContactDetailsPage.java - Job details
src/main/java/com/orangehrmlive/qa/pages/JobDetailsPage.java
API workflows
- Create employee
src/main/java/com/orangehrmlive/qa/api/EmployeeAPI.java - Personal details API
src/main/java/com/orangehrmlive/qa/api/PersonalDetailsAPI.java - API request setup
src/main/java/com/orangehrmlive/qa/api/ApiBase.java
Shared infrastructure
- Configuration
src/main/java/com/orangehrmlive/qa/utils/ConfigUtils.java - Properties loader
src/main/java/com/orangehrmlive/qa/utils/PropertiesUtils.java - Shared session data
src/main/java/com/orangehrmlive/qa/utils/TestSessionData.java - JSON data loader
src/main/java/com/orangehrmlive/qa/utils/JsonUtils.java - Element actions
src/main/java/com/orangehrmlive/qa/utils/ElementActions.java
Reporting
- Allure reporting
.allure/allure-2.20.1
Other components
- Test runner
- Browser
- OrangeHRM
Connections 29
- Test runner → Test setup: starts tests
README.md - Test setup → Login and session: logs in
- Test setup → Create employee: creates employee
README.md - Test setup → PIM employee search: opens employee
README.md - API test cases → Create employee: tests creation
README.md - API test cases → Personal details API: tests details
README.md - UI test cases → Contact details: tests contact
README.md - UI test cases → Job details: tests job
README.md - Driver factory → Browser: creates driver
- Login and session → Browser: uses driver
- Login and session → Configuration: reads URL
src/main/java/com/orangehrmlive/qa/pages/LoginPage.java - Login and session → Element actions: uses actions
src/main/java/com/orangehrmlive/qa/pages/LoginPage.java - Login and session → Shared session data: stores cookie
src/main/java/com/orangehrmlive/qa/pages/LoginPage.java - PIM employee search → Element actions: uses actions
src/main/java/com/orangehrmlive/qa/pages/PIMPage.java - Contact details → Element actions: uses actions
src/main/java/com/orangehrmlive/qa/pages/ContactDetailsPage.java - Job details → Element actions: uses actions
src/main/java/com/orangehrmlive/qa/pages/JobDetailsPage.java - Create employee → JSON data loader: loads payload
src/main/java/com/orangehrmlive/qa/api/EmployeeAPI.java - Create employee → Shared session data: stores IDs
src/main/java/com/orangehrmlive/qa/api/EmployeeAPI.java - Personal details API → JSON data loader: loads payload
src/main/java/com/orangehrmlive/qa/api/PersonalDetailsAPI.java - Personal details API → Shared session data: reads IDs
src/main/java/com/orangehrmlive/qa/api/PersonalDetailsAPI.java - Create employee → API request setup: builds request
src/main/java/com/orangehrmlive/qa/api/EmployeeAPI.java - Personal details API → API request setup: builds request
src/main/java/com/orangehrmlive/qa/api/PersonalDetailsAPI.java - API request setup → Configuration: reads API URL
src/main/java/com/orangehrmlive/qa/api/ApiBase.java - API request setup → Shared session data: reads cookie
src/main/java/com/orangehrmlive/qa/api/ApiBase.java - Configuration → Properties loader: loads properties
src/main/java/com/orangehrmlive/qa/utils/ConfigUtils.java - Create employee → OrangeHRM: sends API request
src/main/java/com/orangehrmlive/qa/api/EmployeeAPI.java - Personal details API → OrangeHRM: sends API request
src/main/java/com/orangehrmlive/qa/api/PersonalDetailsAPI.java - Browser → OrangeHRM: drives UI
- UI test cases → Allure reporting: reports results
README.md