0
8.0kviews
With Example explain Failure, Defect and Error.

Mumbai University > Information Technology> Sem 8 > Software Testing Quality Assurance

Marks: 5M

Year: May 2016

1 Answer
0
101views

i. Failure:

  • A failure is said to occur whenever the external behavior of a system does not conform to that prescribed in the system specification.

  • If under certain circumstances the defects get executed by the tester during the testing then it results into the failure which is known as software failure.

  • Failure occurs when fault executes.

ii. Defect:

  • Defect is the difference between expected and actual result in the context of testing.

  • Defect is the deviation of the customer requirement.

  • Defect is an error found AFTER the application goes into production.

  • A defect occurs only after a mistake done from the developer's end.

  • Programmatic errors give rise to software defect.

  • In software testing a defect is considered to be anything that can hamper the functioning or execution of the software application or service.

  • For instance, a defect can be either a failure of a certain section of the code to function accurately, a flaw in the design of the system, or a fault, which could either be an error in the program.

iii. Error:

  • An error is a state of the system. In absence of any corrective action by the system, an error state could lead to a failure which would not be attributed to any event subsequent to the error.

  • It the one which is generated because of wrong login, loop or due to syntax.

  • Error normally arises in software.

  • Error means to change the functionality of the program.

  • This is a part of a system state that is liable to lead to a failure.

  • Hence the process of failure manifestation can therefore be represented as a behavior chain as follows:

fault ->error ->failure

Figure : Relationship between error,failure and defect.

Please log in to add an answer.