What is a bug? | Everything about Bugs a QA should know!
Japneet Sachdeva
Become a successful SDET with my Road To Full Stack QA Courses, Guides & Newsletters
First thing first, let's quickly define it and jump to real world picture understanding
A bug is an error or flaw in an application that causes it to behave in unintended ways or produce incorrect results.
Not every bug is a bug!
But why?
Before reporting a bug/issue its highly recommended to check for its occurrence count. As if it is reported by a client (end-user) than it might not be the first time it's occurring.
Also, always make sure to know and share bug attribute (characteristics) before filing or showing your findings to development team or product managers.
What are bug characteristics?
1) Severity
2) Priority
3) Steps to reproduce
4) Issue description
5) Scenario (if more then one mention all of them one by one)
6) Expected Result & Actual Result
7) Additional information (which can help to resolve the issue)
Some of the top characteristics mentioned above are incomplete without their proper description and why they are used in a bug report (or ticket). Let's dive deep into it:
Severity & Priority
More precisely the impact of a bug on the system. It can be broadly categorized into:
Example:
Logging in a application as a valid user, but you get access to some other user's account. This is a critical bug because it can cause unwanted data breaches.
Example: Discount availing service in Ecommerce applications fails on checkout but it can than be invoked in another transaction.
Note: Critical, High, Medium & Low terms can change but the true meaning remains the same.
Reproducibility
Ability to consistently replicate an issue. Now to demonstrate this reproducibility we need to provide "Steps to reproduce"
The information could be:
领英推荐
With the information provided, the product managers can decide whether it’s truly a bug or a hidden gem, uncovering any quirks in the requirements. The developer can easily use the information in the bug report to swiftly spot it, squash it, and get back to their coffee break!
Issue Description
High level information which outlines the issue. Basically can provide a summary about the bug.
Now there 2 key areas to understand:
1) Issue Headline: This should display the bug/issue concern
2) Issue Description: This should provide a brief summary about the bug.
Example:
Issue Headline: Unable to add products the cart
Issue Summary: When user tries to add items with product category "mobile phones" than cart display "empty cart, please add products to purchase" message.
Scenario
When does an issue/bug occur? If it occurs several times in different ways than its better to mention each scenario separately with its steps to reproduce.
Expected Result & Actual Result are self explanatory, hence skipping it.
Additional Information
There are other attributes like:
When this information is collected from the QA, a bug report is filed
Note: Only submit a bug report if you are certain about the issue. If unsure, always seek approval from the responsible party beforehand.
The point of writing a problem report (bug report) is to get bugs fixed” — Cem Kaner.
QA & SDET free resources video: https://youtu.be/BQtrEgplpDA?si=quZzU6E4IKY8SxgH
I hope this helps article provides the necessary understanding to create an effective bug report which maximizes the throughput of developers. Let me know in comments, if I missed any critical aspect of bug reporting!
-x-x-
Watch latest SDET & AI Trends on my YouTube channel: Link
Get access to 1050+ SDET Interview Q&A for 2025: Link
#japneetsachdeva