Example of Defect
a = 7
b = 5
ans = a * b
print(“Addition of {} and {} = {}.”.format(a, b, ans))
When you compile and run this program you see the printed statement as below:
Addition of 7 and 5 = 35
This is a program of adding two numbers, but the output is deviated from its actual result which is 12. Now we have detected a failure. As the failure has been detected a defect can be raised.
Differences between defect, bug and failure – Software Engineering
Generally, when the system/application does not act as per expectation or abnormally, we call it an error or it’s a fault, and so on. Many of the newbies in the Software Testing industry are confused about using this, so let’s know what is the difference between defect, bug, error, and failure. We will see these terms in detail one by one.
Contact Us