An Optimal Solution for Test Case Generation Using ROBDD Graph and PSO Algorithm

被引:15
|
作者
Kalaee, Akram [1 ]
Rafe, Vahid [1 ]
机构
[1] Arak Univ, Dept Comp Engn, Fac Engn, Arak 3815688349, Iran
关键词
test case generation; specification-based testing; cause-effect graph testing; reduced ordered binary decision diagram; COVERING ARRAYS; STRATEGY; BOUNDS;
D O I
10.1002/qre.1934
中图分类号
T [工业技术];
学科分类号
08 ;
摘要
Software testing is one of the most important techniques to examine the behavior of the software products to assure their quality. An effective and efficient testing approach must balance two important but conflicting requirements. One of them is the accuracy that needs a large number of test cases for testing, and the second one is reducing the time and cost, which requires a few test cases. Even for small software, the number of possible test cases is typically very large, and exhaustive testing is impractical. Hence, selecting appropriate test suite is necessary. Cause-effect graph testing is a common black-box testing technique, which is equivalently representing Boolean relations between input parameters. However, the other traditional black-box strategies cannot identify the relations that it may result in loss of some of the important test cases. Although the cause-effect graph is regarded very promising in specification testing, it is observed that most of the proposed approaches using the graph are complex or generate impossible and a large number of test cases. This observation has motivated our research to propose an efficient strategy to generate minimal test suite that simultaneously achieves high coverage of input parameters. To do so, at first, we identify major effects from the cause-effect graph using reduced ordered binary decision diagram (ROBDD). ROBDD makes the related Boolean expression of the graph concise and obtains a unique representation of the expression. Using the ROBDD, it is possible to reduce the size of the generated test suite and to perform testing faster. After that, our proposed method utilizes particle swarm optimization (PSO) algorithm to select the optimal test suite, which covers all pairwise combinations of input parameters. The experimental results show that our approach simultaneously achieves high efficacy and reduces cost of testing by selecting appropriate test cases, respectively, to both test size and coverage size. Also, it outperforms some existing state-of-the-art strategies in the black-box testing. Copyright (c) 2015 John Wiley & Sons, Ltd.
引用
收藏
页码:2263 / 2279
页数:17
相关论文
共 50 条
  • [21] Optimal MC/DC Test Case Generation
    Jaffar, Joxan
    Godboley, Sangharatna
    Maghareh, Rasool
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2019), 2019, : 288 - 289
  • [22] Test cases generation for multiple paths based on PSO algorithm with metamorphic relations
    Lv, Xue-Wei
    Huang, Song
    Hui, Zhan-Wei
    Ji, Hai-Jin
    IET SOFTWARE, 2018, 12 (04) : 306 - 317
  • [23] A new automatic test data generation algorithm based on PSO-ACO
    Zhao, Xiaomin
    Wang, Yiting
    Ding, Xiaoming
    PROCEEDINGS OF THE 4TH INTERNATIONAL CONFERENCE ON MECHATRONICS, MATERIALS, CHEMISTRY AND COMPUTER ENGINEERING 2015 (ICMMCCE 2015), 2015, 39 : 1159 - 1165
  • [24] Optimal Solution Generation from Reviews and Micro-Reviews using Greedy Algorithm
    Hulyalkar, Sarika S.
    Khanuja, H. K.
    2017 INTERNATIONAL CONFERENCE ON COMPUTING, COMMUNICATION, CONTROL AND AUTOMATION (ICCUBEA), 2017,
  • [25] On using genetic algorithm for test generation
    Brik, M
    Raik, J
    Ubar, R
    Ivask, E
    BEC 2004: Proceeding of the 9th Biennial Baltic Electronics Conference, 2004, : 233 - 236
  • [26] OPTIMAL CONSTRAINT GRAPH GENERATION ALGORITHM FOR LAYOUT COMPACTION USING ENHANCED PLANE-SWEEP METHOD
    AWASHIMA, T
    SATO, M
    OHTSUKI, T
    IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 1993, E76A (04) : 507 - 512
  • [27] Optimal Placement of Fault Indicators in Distribution System Using PSO Algorithm
    Li, Weijian
    Chen, Wei
    Guo, Chuangxin
    Jin, Yu
    Gong, Xiao
    IECON 2017 - 43RD ANNUAL CONFERENCE OF THE IEEE INDUSTRIAL ELECTRONICS SOCIETY, 2017, : 375 - 380
  • [28] Test Case Generation from UML-Diagrams Using Genetic Algorithm
    Sahoo, Rajesh Kumar
    Derbali, Morched
    Jerbi, Houssem
    Doan Van Thang
    Kumar, P. Pavan
    Sahoo, Sipra
    CMC-COMPUTERS MATERIALS & CONTINUA, 2021, 67 (02): : 2321 - 2336
  • [29] A Hybrid Genetic Algorithm Based Test Case Generation Using Sequence Diagrams
    Shirole, Mahesh
    Kumar, Rajeev
    CONTEMPORARY COMPUTING, PT 1, 2010, 94 : 53 - +
  • [30] Optimal Economic Operation of Islanded Microgrid by Using a Modified PSO Algorithm
    Ma, Yiwei
    Yang, Ping
    Zhao, Zhuoli
    Wang, Yuewu
    MATHEMATICAL PROBLEMS IN ENGINEERING, 2015, 2015