DFS-KeyLevel: A Two-Layer Test Scenario Generation Approach for UML Activity Diagram

被引:0
|
作者
Xiaozhi Du
Jinjin Zhang
Kai Chen
Yanrong Zhou
机构
[1] Xi’an Jiaotong University,School of Software Engineering
来源
关键词
UML activity diagram; Test scenario generation; Concurrent module; Embedded system;
D O I
暂无
中图分类号
学科分类号
摘要
For automatic generation of test scenarios from UML (Unified Modeling Language) activity diagrams (ADs) are very important for improving test efficiency. However, state-of-the-art approaches mainly focus on simple approaches, without specifically considering the case of concurrent activity, which may result in the path explosion problem during the generation of test scenarios. In this paper, we put forward DFS-KeyLevel, a two-layer test scenario generation approach for UML Activity Diagram. First, the ADs of the software under test are modeled and preprocessed, and each concurrent module in each AD is simplified to a composite node. Then, primary test scenarios are generated from the concurrent activity modules using our proposed KeyLevel method. Next, the high-layer test scenarios are generated from the simplified AD with our improved Depth-First Search (DFS) algorithm. Finally, the primary and high-layer test scenarios are combined to generate the final test scenarios for the AD. The experimental results show that this DFS-KeyLevel is superior to the previous approaches. The DFS-KeyLevel can generate more test scenarios under constraints. Compared with DFS-LevelPermutes, the number of test scenarios generated by our DFS-KeyLevel is 1.13 times higher. Compared with Depth-First Search and Breadth-First Search (DFS-BFS) and Improved-DFS (IDFS), the DFS-KeyLevel produced 2.37 times test scenarios. The average coverage rates of staggered activities and total activity logical path coverage (TALPC) of the DFS-KeyLevel are 83.67% and 84% respectively, which is significantly higher than the above three approaches. In addition, when our method is applied to a real embedded system, it significantly reduces test scenarios generated to avoid path explosion while ensuring enough test scenarios.
引用
收藏
页码:71 / 88
页数:17
相关论文
共 20 条
  • [1] DFS-KeyLevel: A Two-Layer Test Scenario Generation Approach for UML Activity Diagram
    Du, Xiaozhi
    Zhang, Jinjin
    Chen, Kai
    Zhou, Yanrong
    JOURNAL OF ELECTRONIC TESTING-THEORY AND APPLICATIONS, 2023, 39 (01): : 71 - 88
  • [2] A Memorization Approach for Test Case Generation in Concurrent UML Activity Diagram
    Kamonsantiroj, Suwatchai
    Pipanmaekaporn, Luepol
    Lorpunmanee, Siriluck
    2019 2ND INTERNATIONAL CONFERENCE ON GEOINFORMATICS AND DATA ANALYSIS (ICGDA 2019), 2019, : 20 - 25
  • [3] A Novel Approach for Test Case Generation from UML Activity Diagram
    Jena, Ajay Kumar
    Swain, Santosh Kumar
    Mohapatra, Durga Prasad
    PROCEEDINGS OF THE 2014 INTERNATIONAL CONFERENCE ON ISSUES AND CHALLENGES IN INTELLIGENT COMPUTING TECHNIQUES (ICICT), 2014, : 621 - 629
  • [4] The Test Cases Generation From The UML Activity Diagram
    Xie, Tangtang
    Li, Jun
    Fang, Yonghui
    Xiong, Hailing
    FRONTIERS OF MANUFACTURING AND DESIGN SCIENCE II, PTS 1-6, 2012, 121-126 : 2387 - +
  • [5] Test Scenario Prioritization Using UML Use Case and Activity Diagram
    Bhuyan, Prachet
    Ray, Abhishek
    Das, Manali
    COMPUTATIONAL INTELLIGENCE IN DATA MINING, CIDM 2016, 2017, 556 : 499 - 512
  • [6] Test Case Generation from UML Subactivity and Activity Diagram
    Fan, Xin
    Shu, Jian
    Liu, LinLan
    Liang, QiJun
    PROCEEDINGS OF THE SECOND INTERNATIONAL SYMPOSIUM ON ELECTRONIC COMMERCE AND SECURITY, VOL II, 2009, : 244 - 248
  • [7] Test Case Generation for Access Control Based on UML Activity Diagram
    Fan, Ao
    Liao, Li
    Wang, Lulu
    Li, Bixin
    2024 IEEE 24TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY, QRS, 2024, : 95 - 104
  • [8] Automated test case generation based on UML activity diagram model
    Zhang, M., 2001, Beijing University of Aeronautics and Astronautics (BUAA) (27):
  • [9] Extenics-based Test Case Generation for UML Activity Diagram
    Li, Liping
    Li, Xingsen
    He, Tao
    Xiong, Jie
    FIRST INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY AND QUANTITATIVE MANAGEMENT, 2013, 17 : 1186 - 1193
  • [10] Test Case Generation For Concurrent Systems Using UML Activity Diagram
    Mahali, Prateeva
    Arabinda, Saswat
    Acharya, Arup Abhinna
    Mohapatra, Durga Prasad
    PROCEEDINGS OF THE 2016 IEEE REGION 10 CONFERENCE (TENCON), 2016, : 428 - 435