A Heuristic Technique for Automated Test Cases Generation from UML Activity Diagram

A.V.K. Shanthi*, G. Mohan Kumar**
* Assistant Professor, Department of Electronic Sciences, Sathyabama University, Chennai, India.
** Principal, Park College of Engineering, Coimbatore, India. Description
Periodicity:January - March'2012
DOI : https://doi.org/10.26634/jse.6.3.1787

Abstract

In software development, testing plays an important role. Software testing is an important phase that ensures the quality of the software. This paper proposes a heuristic technique to test the software at the initial stage itself so that it will be easy for software testers to test the software in the later stages. Here test cases are an important entity or criteria by which software is being evaluated. Though Test cases can be generated by various approaches, Unified Modeling Languages attracts the recent researches and industrialists. This paper focus on test case generation by means of UML Activity diagram using Genetic Algorithm which best test cases are optimized and the test cases validated by prioritization.  The test cases generated using our approaches are capable of detecting more faults like synchronization faults, loop faults unlike the existing approaches A case study is used to illustrate the approach.

Keywords

Software Testing, Test cases, UML (unified Modeling Language), Genetic algorithm, and Activity Diagram.

How to Cite this Article?

Shanthi, A. V. K., and Kumar, A. (2012). A Heuristic Technique For Automated Test Cases Generation From Uml Activity Diagram. i-manager’s Journal on Software Engineering, 6(3),13-20. https://doi.org/10.26634/jse.6.3.1787

References

[1]. A.V.K. Shanthi, & Dr. G. Mohan Kumar (2011a). Automated Test Case From UML Diagram Using Data Mining Approach. CiiT International Journal of Software Engineering and Technology, Vol. 3, Issue No3.
[2]. A.V.K. Shanthi, & Dr. G. Mohan Kumar (2011b). Automated Test Cases Generation For Object Oriented Software. Indian Journal of Computer Science and Engineering, Vol.2, issue 4.
[3]. M. Prasanna, S., N. Sivanandam, Venkatesan, & R. Sundarrajan, (2005). A Survey on Automatic Test Case Generation, Academic Open Internet Journal.
[4]. M. Prasanna, K. R. Chandran. (2009). Automatic Test Case Generation for UML Object diagrams using Genetic Algorithm. Int. J. Advance. Soft Comput. Appl., Vol. 1, No. 1.
[5]. L. Briand and Y. Labiche. (2001). A UML-based approach to system testing. In 4th International Conference on The Unified Modeling Language, Modeling Languages, Concepts, and Tools, pp. 194-208.
[6]. W. Linzhang, Y. Jiesong, Y. Xiaofeng, H. Jun, L. Xuandong, and Z. Guoliang, (2004). Generating test cases from UML activity diagram based on gray-box th method, In 11 Asia-Pacfic Software Engineering Conference (APSEC04), pp. 284-291.
[7]. Bin Lei, Linzhang Wang, & Xuandong Li, (2008). UML Activity Diagram Based Testing of Java Concurrent Programs for Data Race and Inconsistency, International Conference on Software Testing, Verification, and Validation.
[8]. P. Samuel, R. Mall, & A.K. Bothra, (2008). Automatic test case generation using unified modeling language (UML) state diagrams. Published in IET Software.
[9]. Emanuela G. Cartaxo, Francisco G.O. Neto and Patr´icia D. L. Machado, (2007). Test Case Generation by means of UML Sequence Diagrams and Labeled Transition Systems. IEEE 2007.
[10]. Hyungchoul Kim, Sungwon Kang, Jongmoon Baik, Inyoung Ko, Test Cases Generation from UML Activity Diagrams. Eighth ACIS International Conference on Software Engineering, Artificial Intelligence, Networking, and Parallel/Distributed Computing.
[11]. Supaporn Kansomkeat and Sanchai Rivepiboon, (2003). Automated-Generating Test Case Using UML Statechart Diagrams, SAICSIT.
[12]. Z. Michalewicz. (1996). Genetic algorithms + data structures = evolution programs (3rd ed.). Springer- Verlag, London, UK,
[13]. M. Mitchell. (1998). An Introduction to Genetic Algorithms. MIT Press, Cambridge, MA, USA.
[14]. R.P. Pargas, M.J. Harrold, and R. Peck, (1999). Testdata generation using genetic algorithms. Softw. Test., Verif. Reliab., 9(4):263–282.
[15]. P.L. Navarro, D.S. Ruiz, and G.M. Perez, (2010). A Proposal for Automatic Testing of GUIs Based on Annotated Use Cases, Advances in Software Engineering, Vol. 2010, Article ID 671284, doi: 10.1155/2010/671284, 2010.
[16]. A. Nayak and D. Samanta, (2010). Automatic Test Data Synthesis using UML Sequence Diagrams. Journal of Object Technology, Vol. 09, No. 2, pp.75-104.
[17]. Kim Hyungchoul, Kang Sungwon, Baik Jongmoon, Inyoung Ko, (2007). Test Case generation from UML Activity Diagram, Eight ACIS International Conference on Software Engineering, Artificial Intelligence, Networking, and Parallal / Distributed Computing (SNPD 2007) - Volume 03. pp 556-561. IEEE.
[18]. Chen Mingsong, Qiu Xiaokang, and Li Xuandong, (2006). Automatic Test Case Generation for UML Activity Diagrams, AST'06, May 23, Shanghai, China.
[19]. P. Nanda, Dr. D.P. Mohapatra and S.K. Swain, (2008). Generation of Test Scenarios Using Activity Diagram. In Proceedings of SPIT-IEEE Colloquium and International Conference, Mumbai, India, vol-4, pages 69-73.
[20]. W. Linzhang, Y. Jiesong, Y. Xiaofeng, H. Jun, L. Xuandong, and Z. Guoliang, (2004). Generating test cases from UML activity diagram based on gray-box th method. In 11 Asia-Paci¯c Software Engineering Conference (APSEC04), pp. 284-291.
[21]. C. Mingsong, Q. Xiaokang, and L. Xuandong, (2006). Automatic test case generation for UML activity diagrams. In 2006 international workshop on Automation of software test, pp. 2-8.
[22]. Sangeeta Sabharwal, Ritu Sibal and Chayanika Sharma, (2011). Applying Genetic Algorithm for Prioritization of Test Case Scenarios Derived from UML Diagrams, IJCSI International Journal of Computer Science, Issues, Vol. 8, Issue 3, No. 2.
If you have access to this article please login to view the article or kindly login to purchase the article

Purchase Instant Access

Single Article

North Americas,UK,
Middle East,Europe
India Rest of world
USD EUR INR USD-ROW
Pdf 35 35 200 20
Online 35 35 200 15
Pdf & Online 35 35 400 25

Options for accessing this content:
  • If you would like institutional access to this content, please recommend the title to your librarian.
    Library Recommendation Form
  • If you already have i-manager's user account: Login above and proceed to purchase the article.
  • New Users: Please register, then proceed to purchase the article.