Real-Time Example: Defect vs Bug
Example 1: Internet Banking Application
Requirement: User should be able to transfer up to ₹1,00,000 per day.
Actual Implementation: The application allows transfers up to ₹10,00,000 per day.
Defect: The code does not comply with the business requirement.
Bug: QA tests a ₹5,00,000 transfer, observes it succeeds, and logs a bug in Jira.
Interview Statement: "The incorrect implementation is the defect. Once the tester discovers and reports it, it becomes a bug."
---
Example 2: Healthcare Application
Requirement: Patient date of birth must not be a future date.
Actual Behavior: System accepts a future date such as 01-Jan-2030.
Defect: Validation logic is missing.
Bug: Tester enters a future date and reports the issue.
---
Example 3: E-Commerce Website
Requirement: Apply 10% discount on orders above ₹5,000.
Actual Behavior: System applies only 5% discount.
Defect: Discount calculation logic is incorrect.
Bug: Customer or tester notices the wrong discount and raises a bug ticket.
---
Project Manager / Delivery Manager Interview Answer
"A defect is a flaw in the design, code, or requirement implementation. When the defect is identified during testing or by a customer and logged for resolution, it is referred to as a bug. For example, if a banking application allows transactions beyond the approved limit, the incorrect code is the defect, and the issue reported by QA is the bug."
Comments
Post a Comment