题名 |
An Object-Oriented Testing Framework Specified in Z Notation |
DOI |
10.6180/jase.1999.2.1.02 |
作者 |
Ming-Chi Lee |
关键词 |
Object-Oriented Testing ; Finite State Machine ; Automaton |
期刊名称 |
淡江理工學刊 |
卷期/出版年月 |
2卷1期(1999 / 06 / 01) |
页次 |
11 - 22 |
内容语文 |
英文 |
英文摘要 |
Many researches to testing object-oriented programs (OOPs) have been proposed for the past decade. However, most of these researches have centered only around the class-level testing instead of the whole profiles of OOP development. This paper presents a framework to test OOPs from em formal specification to em test data generation. The formal specification of object-oriented program is specified in Z notation which is a mathematically rigorous specification language. A state transition diagram (STD) derived from Z specification provides a complementary representation of the dynamic behavior of a given OOP. In addition, the STD can be used to generate a test data which consists of anticipated operation sequences of OOPs. Moreover, a testing algorithm modeled by em finite state machine is proposed to run against test data. Two important testing criteria, consistency and completeness (C & C), are used to evaluate testing result. The final test result shows that the testing framework is executable and pragmatic. |
主题分类 |
基礎與應用科學 >
基礎與應用科學綜合 工程學 > 工程學綜合 工程學 > 工程學總論 |