AUTOMATIC GENERATION OF TEST CASES FROM ACTIVITY DIAGRAMS FOR UML BASED TESTING (UBT)
DOI:
https://doi.org/10.11113/jt.v77.6358Keywords:
MBT, TCG, UML diagrams, DFT, algorithmsAbstract
Activity diagrams are one of UML behavioural models suitable for system testing because it has the capacity to effectively describe the behaviours of systems under development. In this paper, a technique is proposed that generates test cases from activity diagrams by constructing an activity flow tree (AFT) which stores all the information extracted from the model file of the diagram through the help of a parser. Then, we applied an algorithm to generate test cases from the constructed tree. Test cases were generated based on the elements of activity diagrams such as activity sequences, associated descriptions and conditions. The proposed technique generated accurate test cases that completely tallied with the modeled requirements in the diagram. We utilized all-paths, basic pair paths, conditions, branches and transition criteria for generating test cases using ATM withdrawal operation software as a case study.References
Sharma, M. and Mall, R. 2009. Automatic Generation of Test Specifications for Coverage of System State Transitions. Information and Software Technology. 4(51): 418-432.
Linzhang, W., Y. Jiesong, Y. Xiaofeng, H. Ju, L. Xuandong, and Z. Guoliang. 2004. Generating Test Cases from UML Activity Diagram based on Gray-box Method. 11th Asia-Pacific Software Engineering Conference (APSEC04). Busan, Korea. Nov. 30-Dec. 3 2004. 284-291.
Li, H. and L. C. Peng. 2007. Software Test Data Generation using Ant Colony Optimization. International Journal of Computer, Electrical, Automation, Control and Information Engineering. 1(1): 137-140.
Swain, R. K. Panthi, V. and Beher, P. K. 2013. Generation of Test Cases using Activity Diagram. International Journal of Computer Science and Informatics. 2(2): 2231-5292.
Swain, S. K. and Mohapatra, D. P. 2010. Test Case Generation from Behavioral UML Models. International Journal of Computer Applications. 6(8): 6-11.
Lam, S. S. B. Raju, M. L. Ch, S. Srivastav, P. R. 2012. Automated Generation of Independent Paths and Test Suite Optimization using Artificial Bee Colony. Procedia Engineering. 1(30): 191-200.
Sun, C. A., B. Zhang, J. Li. 2009. TSGen: A UML Activity Diagram-Based Test Scenario Generation Tool. International Conference on Computational Science and Engineering (CSE'09). Vancouver, BC. 29-31 Aug. 2009. 853-858.
Far, B. H. 2010. SENG 421: Software Test Metrics. Chapter 10, Lecture Notes, Department of Electrical & Computer Engineering, University of Calgary, Canada. [Online]. From: http://www.enel.ucalgary.ca/People/far/Lectures/SENG421/10/. [Accessed on Jan. 15, 2015].
Li, L. Li, X. He, T. Xiong, J. 2013. Extenics-based Test Case Generation for UML Activity Diagram. Procedia Computer Science. 17(1): 1186-1193.
Patel, P. E., N. N. Patil. 2013. Testcases Formation Using UML Activity Diagram. International Conference on Communication Systems and Network Technologies (CSNT2013). Gwalior. 6-8 April 2013. 884-889.
Farooq, U., C. P. Lam, H. Li. 2008. Towards Automated Test Sequence Generation. Australian Software Engineering Conference (ASWEC2008). Perth. WA. 26-28 March 2008. 441-450.
Jena, A. K., S.K. Swain, D. P. Mohapatra. 2014. A Novel Approach for Test Case Generation from UML Activity Diagram. International Conference on Issues and Challenges in Intelligent Computing Techniques (ICICT). Ghaziabad. 7-8 Feb. 2014. 621-629.
Heinecke, A., T. Bruckmann, T. Griebe, V. Gruhn. 2010. Generating Test Plans for Acceptance Tests from UML Activity Diagrams. 17th International Conference on Engineering of Computer Based Systems (ECBS2010). Oxford. 22-26 March 2010. 57-66.
Pechtanun, K., Kansomkeat, S. 2012. Generation Test Case from UML activity Diagram based on AC Grammar. International Conference on Computer & Information Science (ICCIS). Kuala Lumpur. 12-14 June 2012. 895-899.
Chen, X., N. Ye, P. Jiang, L. Bu, X. Li. 2011. Feedback-directed Test Case Generation based on UML Activity Diagrams. 5th International Journal of Secure Software Integration & Reliability Improvement Companion (SSIRI-C2011). Jeju Island. 27-29 June 2011. 9-10.
Nayak, A. and Samanta, D. 2011. Synthesis of Test Scenarios using UML Activity Diagrams. Software & Systems Modeling. 10(1): 63-89.
Downloads
Published
Issue
Section
License
Copyright of articles that appear in Jurnal Teknologi belongs exclusively to Penerbit Universiti Teknologi Malaysia (Penerbit UTM Press). This copyright covers the rights to reproduce the article, including reprints, electronic reproductions, or any other reproductions of similar nature.