?????????
???????????? ???????[ 2014/2/27 10:04:19 ] ????????????????? ?????? ?????? ??в???
????2.4 ??????????
????junit ??testng
????2.5 ?????????
????????????????(????); ???????(????????????);
???????? ??????(?????); ??????(???);
????2.6 ????????(Test Double)
????????? Dummy Objects??Test Stubs; Test Spies?? Mock Objects ??Fake Objects
????Dummy Objects : ??????????????????κ?????????
????Test Stubs?? ?滻???????????????????;
????Test Spies?? ??????????е????????????????;
????Mock Objects : ??Stub;???spies;
????Fake Objects : ??????????????????????????????????; ??ó???? ???????????????δ???; ?????????????????????;
????2.7 Mock??ó???
????????? ????????????????????????????;
???????? ????????????????????????????;
????3.???????????
???????????(Dependency Inject)????????????????????(?????????????????ú??????)?????????;
????????????(Dependency Look)?? ????????????????????? ???factory??????÷???λ??(service locator)?????Factory???????????;
????Humble Object?????????????????????????б????????????????????????????Humble Object??
???????????(test hood) :??????????д?????????????????????ж??????????????????????;
????4.?????????????
????????? ????Щ???????ò?????Ч???????????????fake object ?? mock object;
???????? ???????????????????????У???????????(???????)?????????????????д??????????????????á???????????????;
????5.???????????
????????洢????? ???SQLUnit??utPLSQL;
???????????????????????????в??????Fake Object????????;
????6.???????????????
????6.1 ??????е??????????????
??????????????????????;
????????????????????;
???????fixture?????????;
????6.2 ???????????????
????test+??????+?????
????6.3 ??????з??飺
???????Test Suite: ???飺 ?????????顢???????????;
???????Annotation????(junit4??testng);
????6.4 ????????????
??????????????????????????;
??????ò????;
?????????????????????????????·??;
????7.?????????????
????7.1 ????γ??:
??????????????и?????;
??????????е??????;
???????????????(??????30??);
????7.2 ??????????????????
??????????????????;
?????????????ζ?????????????;
????04 ??????
????1.API????
????1.1 ????????
??????в???????? ??????API??????????;
??????в???????? ???????API?????????;
????????????? ????????????е?????; API??????????;
????1.2 API?????????
????stub??mock??fake
????2.Http????web????
???????WebDriver??htmlDriver??htmlUnit;
????3.???????(???????????????????????)???????
???????????????????;
?????????????????÷?????°汾????????;
???????????????????????????;
????4.????????????
???????????г????????????????????????仯??????????Χ;
?????????????????????????г??????ɡ?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11