rg-testforge
v1.0.4
Published
Automation framework starter kit with clean folder structure
Maintainers
Readme
🚀 TestForge Automation Framework
TestForge is a scalable automation testing framework boilerplate designed for modern web testing. It provides a clean folder structure, reusable page objects, utilities, and organized test suites.
📦 Installation
Install using npx
npx rg-testforgeor install globally
npm install rg-testforge📁 Project Structure
project-root
│
├── artifacts
│ ├── reports
│ └── screenshots
│
├── scripts
│
├── src
│ │
│ ├── configs
│ │ ├── env.config.js
│ │ └── example.config.js
│ │
│ ├── core
│ │ └── common_page_objects
│ │ ├── action-utils.js
│ │ ├── button.js
│ │ ├── navigation.js
│ │ └── ui_selectors.js
│ │
│ ├── page-objects
│ │
│ ├── test-data
│ │ ├── login.fixture.json
│ │ └── sampledata.json
│ │
│ ├── tests-suites
│ │ ├── auth
│ │ │ └── login.test.js
│ │ │
│ │ └── settings
│ │ └── settings.test.js
│ │
│ └── utils
│ ├── api.client.js
│ ├── dataGenerator.js
│ ├── errorHandler.js
│ ├── logger.js
│ └── xpathHandler.js
│
└── README.md📂 Folder Explanation
artifacts
Stores test execution outputs.
reports → Test execution reports
screenshots → Failure screenshotsconfigs
Environment configuration files.
env.config.js → Environment settings
example.config.js → Sample configurationcore/common_page_objects
Reusable UI interaction components.
action-utils.js → common UI actions
button.js → button interactions
navigation.js → navigation helpers
ui_selectors.js → shared selectorspage-objects
Page Object Model implementation.
Each page should contain UI actions and locators for a specific page.
Example:
loginPage.js
settingsPage.jstest-data
Stores test input data.
login.fixture.json
sampledata.jsontests-suites
Test cases organized by feature.
auth
settingsExample:
login.test.js
settings.test.jsutils
Helper utilities used across the framework.
api.client.js
dataGenerator.js
errorHandler.js
logger.js
xpathHandler.js⚡ Features
✔ Clean automation framework structure ✔ Page Object Model support ✔ Reusable utilities ✔ Config driven testing ✔ Organized test suites ✔ Easy setup using CLI
👨💻 Author
Ritik Gowardhan
GitHub https://github.com/ritikgowardhan
📜 License
MIT License.
