Welcome to the API test automation project for Indus Electricity Board, a real-time enterprise initiative aiming to digitize invoice processing. This project ensures accurate extraction of billing data from uploaded PDFs using backend REST APIs.
✅ Transforming manual electricity invoice workflows into automated, digital pipelines
This test suite verifies that when a Discom or Circle uploads a PDF invoice, the system correctly extracts fields like:
- 🔢
Account Number - 📄
Invoice Number - 📆
Billing Date - 💰
Invoice Amount
It’s part of Indus' broader effort to modernize utility operations.
| Tool | Purpose |
|---|---|
| Java | Core language |
| RestAssured | API test automation |
| TestNG | Test framework |
| Maven | Build and dependency manager |
| IntelliJ | Primary IDE |
🚫 All API endpoints and credentials are anonymized to protect enterprise confidentiality.
Indus_API_Testing/
├── pom.xml
├── README.md
└── src/
└── test/
└── java/
├── FiltestingPacakge/
│ └── NoidaPowerDelhi.java
└── CircleTesting/
└── NorthDelhiCircleTest.java
🗂️ PDFs are sourced internally, e.g.:
D:\Indus Tower\Invoices 500\Delhi\Delhi\Noida Power Company Limited\...
-
Clone the repository:
git clone https://github.com/princu2701/Indus_API_Testing.git
-
Open in IntelliJ
File → Open → Selectpom.xmlto load Maven structure -
Update file paths inside test classes for PDF locations
-
Run tests via:
- IntelliJ test runner (Right-click → Run)
- or command line:
mvn clean test
String accounts = response.jsonPath().getString("data.AccountNo_1");
if ("2000057674".equals(accounts != null ? accounts.trim() : "")) {
System.out.println("✅ Value is fine as expected");
} else {
System.out.println("❌ Error in this field exists");
}- ✅ Working test classes for multiple Discoms
- ✅ Retesting structure by Circle names
- ✅ Field-level validations
- 🔧 Actively under development
- 📊 Excel-based test parameterization
- 🔁 Loop-based batch file upload testing
- 🔍 Add validations for multiple fields (
GST,Invoice Date, etc.) - ⚙️ Optional Jenkins CI integration (currently out of scope)
This API test suite was developed as part of an enterprise backend validation effort, led during the mid-phase of development to support quality assurance and onboarding of new automation methods.
This repository contains code and logic related to internal systems.
All data, endpoints, and business logic are masked or anonymized in public-facing documentation.
Thanks for visiting this project!
If you found this useful or insightful, feel free to:
- ⭐ Star this repo for reference
- 👀 Explore more of my work on GitHub
- 🛠️ Check out other automation or API testing repositories on my profile
Happy testing! 🚀