A Python-based QA utility that analyzes Excel test suites, detects duplicate or similar test cases, and produces a clean Excel report that can be reviewed before importing or updating tests in Jira, Xray, Zephyr, or another test management tool.
This project is designed as a practical portfolio/client showcase: it solves a real QA operations problem, produces business-friendly output, and can be run locally with a simple command.
Large QA teams often build test suites over multiple releases, teams, and imports. This can create:
The tool reads an Excel file, groups rows by test case ID, compares each test case summary/description, and generates a new Excel workbook with:
Summary and Test Case NameTest Case ID| File | Purpose |
|---|---|
analyze_tests.py |
Main production-ready duplicate analysis script |
test_cases.xlsx |
Small sample Excel file used for demo and verification |
dedup_tool.py |
Minimal starter script showing basic duplicate detection |
HOW_TO_RUN.md |
Step-by-step user guide for non-technical users |
COPILOT_PROMPT_TEMPLATE.md |
Prompt template for reviewing Jira story coverage |
test-suite-ai.jsx |
Frontend prototype concept for a future UI |
Install dependencies once:
pip install pandas openpyxl
Run the included demo:
python analyze_tests.py
This uses the included test_cases.xlsx file and creates:
test_cases_DUPLICATES_FLAGGED.xlsx
Run against your own Excel file:
python analyze_tests.py Your_Test_Cases.xlsx
Optional custom output filename:
python analyze_tests.py Your_Test_Cases.xlsx --output duplicate_report.xlsx
The tool requires:
Test Case IDSummary or Test Case NameOptional columns improve matching and reporting:
DescriptionTest Case AreaAreaModuleFeatureThe script is flexible with common variations, so files exported from Jira/Xray or manually maintained spreadsheets should be easy to adapt.
The generated workbook contains three tabs:
| Tab | Description |
|---|---|
SUMMARY |
High-level totals, color guide, and recommended next steps |
All Tests - Flagged |
Original test rows plus DUPLICATE STATUS |
Duplicate Pairs Report |
Side-by-side duplicate pairs with match percentage |
Status colors:
| Status | Meaning | Action |
|---|---|---|
| Red | Exact duplicate | Review and remove/merge one test case |
| Orange | Near duplicate | Review manually before merging |
| Green | Unique | Keep |
Using the included test_cases.xlsx, the tool finds the duplicate Login Test scenario and writes a formatted Excel report.
Example terminal output:
Total unique test cases : 3
Exact duplicate pairs : 1
Near duplicate pairs : 0
Test cases flagged : 2
Output file saved : test_cases_DUPLICATES_FLAGGED.xlsx
This project demonstrates:
For clients, the value is reduced execution effort, cleaner test management, and faster review of duplicated coverage.
For recruiters, this project shows applied automation, data analysis, and QA domain knowledge in a working tool.
Completed and working as a local Excel-based duplicate detection tool.
Verified capabilities: