1、測試用例包括:
(1)測試輸入(Test Input):測試數據
(2)測試預言(Test Oracle):預期輸出
(3)其他設置:環境
2、Testing vs Debugging:
(1)測試:爲了執行程序並測試失效,即測試和預期不一樣的地方。
(2)調試:找出bug所在位置並進行修正。
3、Verification vs Validation:
(1)Validation:確認規格文檔是否滿足用戶的需求,是用戶最終想要的
(2)Verification:確認規格文檔和最終的實現是否一致,測試就是這一類。
4、靜態測試 vs 動態測試:
(1)Static Testing:不需要運行程序
(2)Dynamic Testing:需要運行程序
5、黑盒測試 vs 白盒測試:
(1)black-box Testing:不需要源代碼
(2)white-box Testing:需要源代碼
(3)gray-box Testing:通過其他軟件製品或者反編譯手段獲得了部分軟件結構信息進而進行測試。
【notice】白盒測試+黑盒測試≠灰盒測試
6、測試層次:(Testing Level)
(1)Unit testing:測試函數、方法等,最基本最小的測試單元
(2)Module testing:模塊級的輸入輸出測試
(3)Integration testing:多個模塊級組合起來的測試
(4)System testing:最後整個程序build的測試