{"title":"Automating the Testing of Object Behaviour: A Statechart-Driven Approach","authors":"Dong He Nam, Eric C. Mousset, David C. Levy","volume":11,"journal":"International Journal of Computer and Information Engineering","pagesStart":3755,"pagesEnd":3760,"ISSN":"1307-6892","URL":"https:\/\/publications.waset.org\/pdf\/11472","abstract":"<p>The evolution of current modeling specifications gives rise to the problem of generating automated test cases from a variety of application tools. Past endeavours on behavioural testing of UML statecharts have not systematically leveraged the potential of existing graph theory for testing of objects. Therefore there exists a need for a simple, tool-independent, and effective method for automatic test generation. An architecture, codenamed ACUTE-J (Automated stateChart Unit Testing Engine for Java), for automating the unit test generation process is presented. A sequential approach for converting UML statechart diagrams to JUnit test classes is described, with the application of existing graph theory. Research byproducts such as a universal XML Schema and API for statechart-driven testing are also proposed. The result from a Java implementation of ACUTE-J is discussed in brief. The Chinese Postman algorithm is utilised as an illustration for a run-through of the ACUTE-J architecture.<\/p>\r\n","references":"[1] I. A. Niaz and J. Tanaka, \"An Object-Oriented Approach To Generate\r\nJava Code From UML Statecharts,\" International Journal of Computer\r\n& Information Sceinces (IJCIS), vol. Vol. 6, 2005.\r\n[2] I. A. Niaz and J. Tanaka, \"Mapping Statecharts to Java Code\", IASTED\r\nInternational Conference on Software Engineering (SE2004), Innsbruck,\r\nAustria, February 2004.\r\n[3] C. Crichton, A. Cavarra, and J. Davies, \"Using UML for Automatic Test\r\nGeneration\", Automated Software Engineering, 2001.\r\n[4] H. Robinson, \"Graph Theory Techniques in Model-Based Testing\",\r\nInternational Conference on Testing Computer Software, 1999.\r\n[5] H. Robinson, \"Intelligent Test Automation\". Soft-ware Testing &\r\nQuality Engineering magazine, September-October 2000.\r\nhttp:\/\/www.geocities.com-\/harry_robinson_testing\/robinson.pdf\r\n[6] E. Gamma, R. Helm, R. Johnson and J. Vlissides, Design Patterns -\r\nElements of Reusable Object-Oriented Software, Addison-Wesley, 1996.\r\n[7] B.P. Douglass, Real Time UML - Developing efficient objects for\r\nembedded systems, Addison-Wesley, Massachusetts, 1998.\r\n[8] I. K. El-Far and J. A. Whittaker, \"Model-based Software Testing,\"\r\nEncyclopedia on Software Engineering, 2001.\r\n[9] P. Metz, J O-Brien and W. Weber, \"Code Generation Concepts for\r\nStatechart Diagrams of the UML v1.1\", Object Technology Group\r\n(OTG) Conference, University of Vienna, Austria, June 1999.\r\n[10] Y.G. Kim, H.S. Hong, S.M. Cho, D.H. Bae, S.D. Cha, \"Test Cases\r\nGeneration from UML State Diagrams\", IEE Proceedings - Software,\r\n146(4):187-192, August 1999.\r\n[11] J. Offutt and A. Abdurazik, \"Generating Tests from UML\r\nSpecifications\", Second International Conference on the Unified\r\nModeling Language (UML 99), Fort Collins, CO, October 1999, pp.\r\n416-429.\r\n[12] J. Hartmann, C. Imoberdorf, and M. Meisinger, \"UML-Based Integration\r\nTesting\", International Symposium on Software Testing and Analysis\r\n2000 (ISSTA 2000), Portland, USA, 2000.\r\n[13] J. Takahashi and Y. Kakuda, \"Extended-model Based Testing by\r\nDirected Chinese Postman Algorithm\", 7th IEEE International\r\nSymposium on High Assurance Systems Engineering (HASE'02), Tokyo,\r\nJapan, 2002.\r\n[14] J. Grundy, Y. Cai and A. Lui, \"Generation of Distributed System Testbeds\r\nfrom High-level Software Architecture Descriptions\", Automated\r\nSoftware Engineering Conference, San Diego, USA, 2001.\r\n[15] Li. Liuying and Q. Zhichang, \"Test Selection from UML Statecharts\",\r\n31st International Conference on Technology of Object-Oriented\r\nLanguage and Systems, Nanjing, China, 1999.\r\n[16] S. Kansomkeat and W. Rivepiboon, \"Automated-Generating Test Case\r\nUsing UML Statechart Diagrams\", 2003 Annual Research Conference of\r\nthe South African Institute of Computer Scientists and Information\r\nTechnologists on Enablement Through Technology, South Africa, 2003.\r\n[17] M. J. Rutherford and A.L. Wolf, \"A Case for Test-Code Generation in\r\nModel-Driven Systems\", Second International Conference on\r\nGenerative Programming and Component Engineering, Erfurt,\r\nGermany, 2003.\r\n[18] N. Eickelmann and A. Willey, \"An Integrated System Test\r\nEnvironment\", 14th International Internet & Software Quality Week\r\n2001 (QW2001), San Francisco, May 2001.\r\n[19] Testing Software Based Systems: The Final Frontier (Online). Available:\r\nhttp:\/\/www.softwaretechnews.com\/stn3-3\/final-frontier.html","publisher":"World Academy of Science, Engineering and Technology","index":"Open Science Index 11, 2007"}