An Error found in the development environment before the product is shipped to the customer.
Defect is the difference between expected and actual result in the context of testing. Defect is the deviation of the customer requirement. An Error found in the product itself after it is shipped to the customer. Defect is an error found AFTER the application goes into production. Simply defect can be defined as a variance between expected and actual. Defect is an error found AFTER the application goes into production.
Categories of defects - There are three main category of defects;
Wrong: The requirements have been implement the wrong way. This defect is a variance from the given specification.
Missing: There was a requirement given by the client and it was not done. This is a variance from the specifications, an indication that a specification was not implemented, or a requirement of the customer was not noted correctly.
Error: It the one which is generated because of wrong login, loop or due to syntax. Error means normally arises in software Error means to change the functionality of the program.
Fault: A wrong or mistaken step, process or Data definition in a computed program which causes the program to perform in an unintended or unanticipated manner.
Difference between a defect and a failure -
When a defect reaches the end customer it is called a failure and if the defect is detected internally and resolved it’s called a defect.