Test case generation, selection and coverage from natural language

被引:6
|
作者
Nogueira, Sidney [1 ]
Araujob, Hugo [2 ,3 ]
Araujo, Renata [2 ]
Iyoda, Juliano [2 ]
Sampaio, Augusto [2 ]
机构
[1] Univ Fed Rural Pernambuco, Dept Comp, Recife, PE, Brazil
[2] Univ Fed Pernambuco, Ctr Informat, Recife, PE, Brazil
[3] Motorola Ind Ltda, Mobile Devices R&D, Sao Paulo, Brazil
关键词
Test generation; Natural language; Use case models; REQUIREMENTS;
D O I
10.1016/j.scico.2019.01.003
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In Model-based Testing (MBT), test cases are automatically generated from a formal model of the system. A disadvantage of MBT is that developers must deal with formal notations. This limitation is addressed in this paper, where use cases are used to model the system. In previous work, we have proposed an automatic strategy for generating test cases from use cases written in a Controlled Natural Language (CNL), which is an English textual notation with a well-defined grammar. Due to its precise syntax, it can be processed and translated into a formal representation for the purpose of automatic test case generation. This paper extends our previous work by proposing a state-based CNL for describing use case control flows enriched with state and data operations. We translate state-based use case descriptions into CSP processes from which test cases can be automatically generated. In addition, we show how a similar notation can be used to specify test selection via the definition of state-based test purposes, which are also translated into CSP processes. Test generation and selection are mechanised by refinement checking using the CSP tool FDR. Despite the fact that we work at a purely process algebraic level to define a test generation strategy, we are able to address model coverage criteria. Particularly, by using FDR, it is possible to have access to the underlying LTS models; we then implemented algorithms for covering events or transitions, possibly combined with selection using test purposes. We also discuss several ways of improving the efficiency of the test generation strategy. As far as we are aware, this integration between an algebraic approach to test case generation with an operational approach for coverage criteria is an original and promising insight. All steps of the strategy are integrated into a tool that provides a GUI for authoring use cases and test purposes described in the proposed CNL, so the formal CSP notation is completely hidden from the test designer. We illustrate our tool and techniques with a running example and a more elaborate case study taken from an industrial setting. (C) 2019 Elsevier B.V. All rights reserved.
引用
收藏
页码:84 / 110
页数:27
相关论文
共 50 条
  • [41] Test Data Generation of Path Coverage B ased on Negative Selection Genetic Algorithm
    Xia C.-Y.
    Zhang Y.
    Wan L.
    Song Y.
    Xiao N.
    Guo B.
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2019, 47 (12): : 2630 - 2638
  • [42] Exploring Test Suite Diversification and Code Coverage in Multi-Objective Test Case Selection
    Mondal, Debajyoti
    Hemmati, Hadi
    Durocher, Stephane
    2015 IEEE 8TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST), 2015,
  • [43] Specification coverage aided test selection
    Pyhälä, T
    Heljanko, K
    THIRD INTERNATIONAL CONFERENCE ON APPLICATION OF CONCURRENCY TO SYSTEM DESIGN, PROCEEDINGS, 2003, : 187 - 195
  • [44] Dynamic Analysis of Algebraic Structure to Optimize Test Generation and Test Case Selection
    Simons, Anthony J. H.
    Zhao, Wenwen
    2009 TESTING: ACADEMIC AND INDUSTRIAL CONFERENCE-PRACTICE AND RESEARCH TECHNIQUES, TAIC PART 2009, 2009, : 33 - 42
  • [45] Natural Language Generation for Intelligent Tutoring Systems: a case study
    Di Eugenio, Barbara
    Fossati, Davide
    Yu, Dan
    Haller, Susan
    Glass, Michael
    ARTIFICIAL INTELLIGENCE IN EDUCATION: SUPPORTING LEARNING THROUGH INTELLIGENT AND SOCIALLY INFORMED TECHNOLOGY, 2005, 125 : 217 - 224
  • [46] Case retrieval nets for heuristic lexicalization in natural language generation
    Hervás, R
    Gervás, P
    PROGRESS IN ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 2005, 3808 : 55 - 66
  • [47] Evaluation in Natural Language Generation: Lessons from Referring Expression Generation
    Viethen, Jette
    Dale, Robert
    TRAITEMENT AUTOMATIQUE DES LANGUES, 2007, 48 (01): : 141 - 160
  • [48] Adaptive Selection of Helper-Objectives for Test Case Generation
    Buzdalov, Maxim
    Buzdalova, Arina
    2013 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION (CEC), 2013, : 2245 - 2250
  • [49] Randomized test case generation for hybrid systems: metric selection
    Esposito, JM
    PROCEEDINGS OF THE THIRTY-SIXTH SOUTHEASTERN SYMPOSIUM ON SYSTEM THEORY, 2004, : 236 - 240
  • [50] USING GENETIC ALGORITHMS FOR TEST CASE GENERATION AND SELECTION OPTIMIZATION
    Alsmadi, Izzat
    2010 23RD CANADIAN CONFERENCE ON ELECTRICAL AND COMPUTER ENGINEERING (CCECE), 2010,