CFP last date
20 January 2025
Reseach Article

Test Case Generation using UML State Diagram and OCL Expression

by Md Azaharuddin Ali, Khasim Shaik, Shreyansh Kumar
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 95 - Number 12
Year of Publication: 2014
Authors: Md Azaharuddin Ali, Khasim Shaik, Shreyansh Kumar
10.5120/16644-6614

Md Azaharuddin Ali, Khasim Shaik, Shreyansh Kumar . Test Case Generation using UML State Diagram and OCL Expression. International Journal of Computer Applications. 95, 12 ( June 2014), 7-11. DOI=10.5120/16644-6614

@article{ 10.5120/16644-6614,
author = { Md Azaharuddin Ali, Khasim Shaik, Shreyansh Kumar },
title = { Test Case Generation using UML State Diagram and OCL Expression },
journal = { International Journal of Computer Applications },
issue_date = { June 2014 },
volume = { 95 },
number = { 12 },
month = { June },
year = { 2014 },
issn = { 0975-8887 },
pages = { 7-11 },
numpages = {9},
url = { https://ijcaonline.org/archives/volume95/number12/16644-6614/ },
doi = { 10.5120/16644-6614 },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Journal Article
%1 2024-02-06T22:19:15.213560+05:30
%A Md Azaharuddin Ali
%A Khasim Shaik
%A Shreyansh Kumar
%T Test Case Generation using UML State Diagram and OCL Expression
%J International Journal of Computer Applications
%@ 0975-8887
%V 95
%N 12
%P 7-11
%D 2014
%I Foundation of Computer Science (FCS), NY, USA
Abstract

Manual software testing is both an expensive and time consuming activity, requires proper planning and resource. This paper proposed a method to automate the process of test case generation. This proposed technique reduces time and increase the reliability of the software testing processes. The main criteria of software testing are to generate test cases. This methodology consist of transforming the state diagram (UML) into finite state machine (DFA / NDFA) where each node represent state and the arrow connecting the states represent transition. The nodes store state information and arrows maintain trigger information which is necessary for state transition. Mined information and pre- and post- condition of the states are used to build test case. The proposed technique attains sufficient test coverage without increasing the number of test cases. It also achieves much important coverage like transition coverage, transition pair coverage, and provides state coverage

References
  1. Myers G. "The Art of Software Testing" 2nd ed. Year 2004: John Wiley
  2. Beck K. "Test-Driven Development by Example" Year-2003: Addison- Wesley. 220.
  3. Monalisa Sarma, Debasish Kundu and Rajib Mall, "Automatic Test Case Generation from UML Sequence Diagrams", 15th International Conference on Advance Computing and Communication, 2007, pp. 196-201.
  4. Novada Haji Ali, Zarina Shukur and Sufian Idris, "A Design of an Assessment System for UML Class Diagram", 5th International Conference on computational Science and Applications, 2007, pp. 539-544.
  5. J. Hartmann, M. Vieira, H. Foster, and A. Ruder, A UML-based Approach to System Testing, Journal of Innovations System Software Engineering, Vol. 1, PP. 12-24, 2005.
  6. Ranajita Swain, Vikas Panthi, Prafulla Kumar Behera,Durga Prasad Mohapatra, "Automatic Test case Generation From UML State Chart Diagram", International Journal of Computer Application, Vol 42, March 2012,
  7. A. Bertolino, and F. Basanieri, A practical approach to UML-based derivation of integration tests, in Proceedings of the Fourth International Software Quality Week Europe, Brussels, Belgium, 2000.
  8. T. J. Ostrand, and M. J. Balcer, The category-partition method for specifying and generating fuctional tests, Communications of the ACM 31 (6)
  9. M. Lettrari M. and J. Klose, Scenario-Based Monitoring and Testing of Real Time UML Models, in the Proceedings of UML 2001, Springer Verlag, pp. 312-328. (1998).
  10. P. Tonella, and Potrich, A. Reverse Engineering of the Interaction Diagrams from C++ Code, in the Proceedings of IEEE International Conference on Software Maintenance (2003) 159–168.
  11. Object Constraint Language 2. 0 is available from the main website of Object Mangement Group (http://www. omg. org/).
  12. M. Esser and P. Struss,"Fault-model-based Test Generation for Embedded Software" International Journal of Computer Application, 2007.
  13. Absolute Astronomy Object Constraint Language, Encyclopedia (http://www. absoluteastronomy. com/topics/Object_Constraint_Language)
Index Terms

Computer Science
Information Sciences

Keywords

DFA NDFA Sequence diagram graph (SDG) OCL