1 841f06OOmutation22Nov7 Exam 2 Nov 9. 2 841f06OOmutation22Nov7 Articles u Frankl u Parnas u...

14
1 841f06OOmutation22Nov7 Exam 2 – Nov 9

description

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

Transcript of 1 841f06OOmutation22Nov7 Exam 2 Nov 9. 2 841f06OOmutation22Nov7 Articles u Frankl u Parnas u...

Page 1: 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.

1841f06OOmutation22Nov7

Exam 2 – Nov 9

Page 2: 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.

2841f06OOmutation22Nov7

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

Page 3: 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.

3841f06OOmutation22Nov7

Exam Preview

Last year’s exam was based on different articles (other than Parnas)

Questions last year• Parnas’ calculations• Extending a concept from a paper• Explaining a concept from a paper• Explaining statistical concepts

Page 4: 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.

4841f06OOmutation22Nov7

Tuesday, Nov 7th

Investigating the effectiveness of object-oriented testing strategies using the mutation method

Object-Oriented Mutation to Asses the Quality of Tests

Do Making Meaning for the two articles and submit by email by 8am, Tues 11/7

Page 5: 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.

5841f06OOmutation22Nov7

Object-Oriented Mutations to Assess the Quality of Tests

Anna Derezinska29th EuroMicro Conference

Page 6: 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.

6841f06OOmutation22Nov7

OO mutation ops for code and spec

Page 7: 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.

7841f06OOmutation22Nov7

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.

Page 8: 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.

8841f06OOmutation22Nov7

Results

Page 9: 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.

9841f06OOmutation22Nov7

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 comparedwith 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.

Page 10: 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.

10841f06OOmutation22Nov7

Investigating the effectiveness of object-oriented testing strategies using the mutation method

Kim, Clark, and McDermidSoftware Testing, Verification and

Reliability 2001

Page 11: 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.

11841f06OOmutation22Nov7

Table IX – traditional mutations

Page 12: 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.

12841f06OOmutation22Nov7

Table X – CM mutations

Page 13: 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.

13841f06OOmutation22Nov7

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.

Page 14: 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.

14841f06OOmutation22Nov7

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.