測試準則
測試準則,是軟件測試員或軟件工程師用來檢測測試是否通過的一種機制。[1]測試準則決定在給定的測試用例輸入下產品應有的輸出,從而與被測試系統的輸出做比較。這一術語在威廉·豪登(William Howden)的《測試理論入門》一書中首次被使用和定義。[2]艾琳·韋約克又對不同類型的測試準則給予了拓展。[3]測試準則經常獨立於被測試系統。[4] 在自動化測試中後置條件方法是通常被使用的自動化了的測試準則。[5]測試準則問題往往比看起來要難得多,同時會連帶要求解決可控性和可觀測性問題。[6]
常見的測試準則包括:
參考資料
- ^ Kaner, Cem; A Course in Black Box Software Testing (頁面存檔備份,存於網際網路檔案館), 2004
- ^ Miller, Edward; and Howden, William E.; Software Testing and Validation Techniques, Long Beach, CA: IEEE Computer Society Press, 1978 (first edition), pp. 16-19
- ^ Weyuker, Elaine J.; "The Oracle Assumption of Program Testing", in Proceedings of the 13th International Conference on System Sciences (ICSS), Honolulu, HI, January 1980, pp. 44-49
- ^ Jalote, Pankaj; An Integrated Approach to Software Engineering, Springer/Birkhäuser, 2005, ISBN 0-387-20881-X
- ^ Meyer, Bertrand; et al.; "Programs that Test Themselves", IEEE Computer, 42:9 (September 2009), pp. 46-55
- ^ 6.0 6.1 Ammann, Paul; and Offutt, Jeff; "Introduction to Software Testing", Cambridge University Press, 2008, ISBN 978-0-521-88038-1
- ^ Peters, Dennis K. Generating a Test Oracle from Program Documentation (M. Eng.論文). McMaster University. 1995. CiteSeerX: 10.1.1.69.4331 .
- ^ Peters, Dennis K.; Parnas, David L. Generating a Test Oracle from Program Documentation (PDF). Proceedings of the 1994 International Symposium on Software Testing and Analysis. ISSTA. ACM Press: 58–65. [2014-07-30]. (原始內容 (PDF)存檔於2015-09-24).
- ^ Hoffman, Douglas; Heuristic Test Oracles (頁面存檔備份,存於網際網路檔案館), Software Testing & Quality Engineering Magazine, 1999
- ^ Mayer, Johannes; and Guderlei, Ralph; Test Oracles Using Statistical Methods (頁面存檔備份,存於網際網路檔案館)
- ^ Hoffman, Douglas; Analysis of a Taxonomy for Test Oracles (頁面存檔備份,存於網際網路檔案館), Quality Week, 1998
- ^ Robinson, Harry; Finite State Model-Based Testing on a Shoestring (頁面存檔備份,存於網際網路檔案館), STAR West 1999
參見
- Binder, Robert V. (1999). "Chapter 18 - Oracles" in Testing Object-Oriented Systems: Models, Patterns, and Tools, Addison-Wesley Professional, 7 November 1999, ISBN 978-0-201-80938-1