April 19, 2011

Bug vs Failure vs Defect vs Error vs Mistake



Error - Deviation of the result (Expected something but will get something)

Bug - It is a common word for Mistake, Fault, Failure and Error.
              Mistake - Human error
              Fault - Incorrect Step
              Failure - Incorrect result
              Error - Deviation of the result
 A human being can make an error (mistake), which produces a defect (fault, bug) in the code, in software or a system, or in a document. If a defect in code is executed, the system will fail to do what it should do (or do something it shouldn’t), causing a failure. Defects in software, systems or documents may result in failures, but not all defects do so.
Defect - A variance from the product attribute. That means imperfection of the product. Difference between the expected result and getting result. Defects occur because human beings are fallible and because there is time pressure, complex code, complexity of infrastructure, changed technologies, and/or many system interactions.

Failures can be caused by environmental conditions as well: radiation, magnetism, electronic fields, and pollution can cause faults in firmware or influence the execution of software by changing hardware conditions.


3 comments:

  1. So bug and error is the same thing? What's the exact difference between an error, a defect and a bug?

    ReplyDelete
  2. Error : It is the Deviation from actual and the expected value, caused due to programing mistakes.

    Bug : It is found in the development environment before the product is shipped to the respective customer.

    Defect : It is found in the product itself after it is shipped to the respective customer.

    ReplyDelete
  3. They are all used for the same meaning in most of the real life project.

    Thanks
    David
    The Path to Successful Defect Tracking

    ReplyDelete