QA Tutorials

MUTATION TESTING

PART 2

MUTATION TESTING

Following steps are used to execute mutation testing:

CLICK HERE TO READ FIRST PART

  1. Faults are introduced to the actual source code in program called mutants by creating different versions of the program each mutant should contain a single fault and the goal is to fail these mutant versions
  2. Test cases are applied to both original and mutant program, it should be adequate to find the defect or fault in the program.
  3. Comparing the results of both original and mutant program.
  4. If the original and mutant program’s results are different then the mutant is killed.
  5. If both the program generate same output then the mutant is kept alive. In these cases more effective test cases need to be created to kill mutants.

The advantages of Mutation testing

  1. It is powerful way to reach the high coverage of the source program.
  2. This testing is capable of testing the mutant program also.
  3. This testing brings a good level of error detection to the software developer. Those faults can be identified which have missed from the developer’s attention.
  4. This testing has the capacity to detect all the faults in the program and removes all the ambiguities in the source code.
  5. Customers are benefited by getting the most reliable and stable system by this testing.

The disadvantages of the Mutation Testing

  1. Mutation testing is very expensive and time consuming as there are mutant programs to be created and tested with the original program.
  2. Testing cannot be done without an automation tool.
  3. Each mutant program will have the same number of test cases as the original program has which makes the tester to test large number to mutant programs.
  4. It is not well suited for black box testing.

Questions

  1. What is Mutation Testing?
  2. Explain some examples of mutation testing?
  3. What are the characteristics of mutation testing?
  4. What is the difference between mutation testing and Happy testing?
Facebook Comments
Tags

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Close