???????????????
????????????????????????????????????????????????????????????????????????????????????????????????????Ч???
???????????????Щ???????????
?????????????????????
???????????????????????????????????????????????????????????????????????????14????????????????????????????????????????????????????????????????????“?????”??????
???????????????????????????????13?????μ??????????????????????????????????????????????14????????
??????????????????????д??
????1) Read Age
????2) If age>14
????3) Doctor= General Physician()
????4) End if
???????????????????????κα???????????????С????????衣
?????????????????????????????????14??15??0??13——?Щ????????
????????????????????4???????14??15??0??13????????????Щ????????????????п???????????
???????????? => Tips to design test data before executing your test cases ???????????????????????????????飩
???????????????????????????
??????????????????????????-??????mutants- variations???????????壨mutant?????????????д????????????????????self-seeded????
???????????£?
????· Arithmetic operator replacement
????· Logical connector replacement
????· Statement removal
????· Relational operator replacement
????· Absolute value insertion?? etc.
??????Щ?????????“Mutation Operators”??
??????????????Щ?????
????Mutant #1: Relational operator replacement
????1) Read Age
????2) If age<14 ‘Changing the > with <’
????3) Doctor= General Physician()
????4) End if
????Mutant #2:
????1) Read Age
????2) If age=14 ‘Changing the > with =’
????3) Doctor= General Physician()
????4) End if
????Mutant #3:
????1) Read Age
????2) If age>=14 ‘Changing the > with >=’
????3) Doctor= General Physician()
????4) End if
????Mutant #4:
????1) Read Age
????2) If age<=14 ‘Changing the > with <=’
????3) Doctor= General Physician()
????4) End if
????Mutant #5: Statement Removal
????1) Read Age
????2) If age=14
????3) ‘remove the doctor assignment statement’
????4) End if
????Mutant #6: Absolute Value Insertion
????1) Read Age
????2) If age>14
????3) Doctor= Mr.X (Absolute value insertion- let’s say X is a pediatrician)
????4) End if
????Mutant #7: Incorrect syntax
????1) Read Age
????2) If age%%14 (incorrect syntax)
????3) Doctor=General Physician()
????4) End if
????Mutant #8: Does the same thing as the original test
????------------
????1) Read Age
????2) If age> 14 & age>14 ‘means the same thing as age>14’
????3) Doctor= General Physician()
????4) End if
???????????????嶼??????????????????????????????????????????14??15??0??13????????????????????Щ??????е??????
?????????????????????

??????????????????????????14?????????2??3??4???????????????????????14??????????2??3??4???????1??6??8????????????????????Ч????
???????????????????????е?????壬??????Ч????????????????????????????????????????????????????????????????塣????????????????????????е??????壩?????磺14???2??3??4??15???1??2??4??????????
????5??7??8??????
????Mutant #5– ???????????????κ?????????????????????????????????????????Ч????Ч??????????????κα???
????Mutant #7– ????????????????????????????????????????????е????
????Mutant #8– ??????????????????
???????????????????????????????????????С?
??????????????????
????· ??????/“Still-Born”????壺?????????????????塣?????Mutant 7
????· ??Ч????壺??Щ???????????????????????????????塣?????Mutant 8
????· ?????????????κ????????????????Mutant 5
??????????
????· ???????????????????С??????????????????????????????????????????????????????????????????????????á???????????????????????
????· ?????г?????????????????????б??????????????????仯???????????Щ????????????????
????· ?????????????ó???????????????????????????
????· ???????????λ????Щ?????????????ζ???????????????Ч??????壨??5??7??8???????????????????????????????????????????????
????· ??????????????????????????????????????????fault-injection????fault-seeding??????????????塣
????· ?к??????????????????????????????????????????
????Jester for JUnit
????Pester for Python
????MuClipse for eclipse?????
????????????????????????????????????????????????????
????????????????????????????
????· ????????????????????????????????????????д??????С?δ?????????ó???д????????
????· ???Ч??????????2?????????????γ??????????????????????????????????????????á?
??????????????????С??????????????????????????????????????????????
???????
??????????????????????????????????????——???????