What the difference between a 'defect' and a 'failure' in software testing is?



What the difference between a 'defect' and a 'failure' in software testing is?..

Answer / Nazakat Ali

{"statement": "A defect refers to an error or imperfection in the code or design of a software that can potentially cause it to fail under certain conditions. A failure, on the other hand, occurs when a software does not behave as intended due to a defect or any other reason.", "example": "If we have a function that is supposed to add two numbers but always returns zero, this would be considered a defect in the code. If we call this function with arguments 2 and 3, and it returns 0 instead of 5, this would be a failure caused by the defect."}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Testing AllOther Interview Questions

In real time how you do the soak testing?

1 Answers  


kya aurat ko taleem dena islam men jaez hi

1 Answers  


Describe your ideal working environment.

1 Answers   ICICI,


Will you write a test plan in all phases?

11 Answers   Accenture, HCL,


What is incremental analysis?

1 Answers  


What is stub? Explain in testing point of view?

2 Answers   TCS,


What is the difference between testing techniques and testing tools?

1 Answers  


What is fault tree analysis?

1 Answers  


Did you write test cases of design phase?

6 Answers  


While monitoring your project what all things you have to consider?

1 Answers  


Hi plz provide me the ISTQB foundation level exam sample question papar . Ashutosh Dubey

1 Answers  


What do you think is the perfect test management system for test service vendors like me?

1 Answers  


Categories