12th Asia-Pacific Software Engineering Conference (APSEC'05) (2005)
Dec. 15, 2005 to Dec. 17, 2005
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/APSEC.2005.91
Tetsuro Katayama , University of Miyazaki.
Yusuke Yabuya , University of Miyazaki.
There is an increasing need for effective testing of software for complex safety-critical applications. This paper proposes a supporting method of testing for Java programs by using Unified Modeling Language (UML) in order to improve the reliability of them. The correspondences of source codes in Java and elements of a class diagram, a sequence diagram, and a statechart diagram have been extracted. By using the extracted correspondences as test items in testing, it becomes possible to test effectively the specification of software, the structure of Java programs, the flows of processing of a system, and the flow of transition between states. Moreover, in order to confirm the validity of the proposed method, a prototype tool to support testing for Java programs is implemented. The inputs of this prototype are three diagrams, and the outputs are test items generated from the extracted correspondences. As an example, a source code of blackjack game in Java has been tested by using the test items outputted from the prototype. It has been possible to test 67.2% of the number of lines in the whole source code.
software testing, Unified Modeling Language (UML), test items, functional testing, Java.
T. Katayama and Y. Yabuya, "Proposal of a Method to Support Testing for Java Programs with UML," 12th Asia-Pacific Software Engineering Conference (APSEC'05)(APSEC), Taipei, Taiwan, 2005, pp. 533-540.