Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 841f06OOmutation22Nov7 Exam 2 – Nov 9. 2 841f06OOmutation22Nov7 Articles u Frankl u Parnas u Chen-Kao (OCF graph) u Glass-etal (Viewpoints) u Kuhn-Wallace.

Similar presentations


Presentation on theme: "1 841f06OOmutation22Nov7 Exam 2 – Nov 9. 2 841f06OOmutation22Nov7 Articles u Frankl u Parnas u Chen-Kao (OCF graph) u Glass-etal (Viewpoints) u Kuhn-Wallace."— Presentation transcript:

1 1 841f06OOmutation22Nov7 Exam 2 – Nov 9

2 2 841f06OOmutation22Nov7 Articles u Frankl u Parnas u Chen-Kao (OCF graph) u Glass-etal (Viewpoints) u Kuhn-Wallace (fault interactions) u Nagappan (STREW) u May-etal (stat model) u Kim-Clark-McDermid (OO mutations) u Derezinska (OO mutations)

3 3 841f06OOmutation22Nov7 Exam Preview u Last year’s exam was based on different articles (other than Parnas) u Questions last year Parnas’ calculations Extending a concept from a paper Explaining a concept from a paper Explaining statistical concepts

4 4 841f06OOmutation22Nov7 Tuesday, Nov 7th u Investigating the effectiveness of object- oriented testing strategies using the mutation method u Object-Oriented Mutation to Asses the Quality of Tests u Do Making Meaning for the two articles and submit by email by 8am, Tues 11/7

5 5 841f06OOmutation22Nov7 Object-Oriented Mutations to Assess the Quality of Tests Anna Derezinska 29 th EuroMicro Conference

6 6 841f06OOmutation22Nov7 OO mutation ops for code and spec

7 7 841f06OOmutation22Nov7 Mutants Mutants 2, 9 and 24 were equivalent mutants. Mutant 11 was also not killed by any test from the basic test set. An additional test - Direction_indicator_lights_2 was developed to kill this mutant. Final minimal set of tests consists of 5 test cases, 4 from the basic set of functional tests and this additional test. This test set kills all non-equivalent mutants.

8 8 841f06OOmutation22Nov7 Results

9 9 841f06OOmutation22Nov7 Results The selected minimal test suite satisfies the coverage criteria with 83% coverage for functions and 85% for code lines. For 8 classes (from 17) the coverage was maximal. The above-discussed tests were also compared with another test set randomly generated and selected to maximize coverage of the code. In the comparison to the minimal selected test set, the coverage decreased to 43% for function calls and to 52% for line hits.

10 10 841f06OOmutation22Nov7 Investigating the effectiveness of object-oriented testing strategies using the mutation method Kim, Clark, and McDermid Software Testing, Verification and Reliability 2001

11 11 841f06OOmutation22Nov7 Table IX – traditional mutations

12 12 841f06OOmutation22Nov7 Table X – CM mutations

13 13 841f06OOmutation22Nov7 Coverage The majority of the mutants that the methods fail to kill, indicating inadequacies in the test sets of the methods, are related to program coverage. None of the OO methods explicitly require statement coverage, so it appears that these methods do not execute every statement of the program. This shortcoming can be easily fulfilled by applying traditional coverage methods such as control-flowtesting. In order to be effective, some kinds of coverage methods should be used with the OO methods.

14 14 841f06OOmutation22Nov7 Results The CM results also show that the OO methods, although they are claimed to be adequate for OO systems, are not particularly effective at dealing with a few OO features, especially the information hiding feature represented by the AMC operator. Special attention is required for those features in the testing of OO software.


Download ppt "1 841f06OOmutation22Nov7 Exam 2 – Nov 9. 2 841f06OOmutation22Nov7 Articles u Frankl u Parnas u Chen-Kao (OCF graph) u Glass-etal (Viewpoints) u Kuhn-Wallace."

Similar presentations


Ads by Google