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 条
  • [21] Natural Language Generation from Graphs
    Dong, Ngan T.
    Holder, Lawrence B.
    INTERNATIONAL JOURNAL OF SEMANTIC COMPUTING, 2014, 8 (03) : 335 - 384
  • [22] Dynamic Partitioning and Additional Branch Coverage for Test Case Selection
    Sinaga, Arnaldo Marulitua
    Dharma, Arie Satia
    Hutajulu, Oscar
    Ginting, Anita
    Simanjuntak, Gustina
    1ST INTERNATIONAL CONFERENCE ON ADVANCE AND SCIENTIFIC INNOVATION, 2019, 1175
  • [23] Statistical acquisition of content selection rules for natural language generation
    Duboue, PA
    McKeown, KR
    PROCEEDINGS OF THE 2003 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING, 2003, : 121 - 128
  • [24] Automated model and test generation from textual requirements: The use of Natural Language Processing
    Gröpler R.
    Sudhi V.
    Kutty L.
    VDI Berichte, 2022, 2022 (2399): : 521 - 532
  • [25] Overview of Test Coverage Criteria for Test Case Generation from Finite State Machines Modelled as Directed Graphs
    Rechtberger, Vaclav
    Bures, Miroslav
    Ahmed, Bestoun S.
    2022 IEEE 15TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2022), 2022, : 207 - 214
  • [26] NLPLego: Assembling Test Generation for Natural Language Processing Applications
    Ji, Pin
    Feng, Yang
    Zhang, Ruohao
    Xue, Ruichen
    Zhang, Yichi
    Huang, Weitao
    Liu, Jia
    Zhao, Zhihong
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2025, 34 (02)
  • [27] CiRA: An Open-Source Python']Python Package for Automated Generation of Test Case Descriptions from Natural Language Requirements
    Frattini, Julian
    Fischbach, Jamiik
    Bauer, Andreas
    2023 IEEE 31ST INTERNATIONAL REQUIREMENTS ENGINEERING CONFERENCE WORKSHOPS, REW, 2023, : 68 - 71
  • [28] Test Case Generation using Unified Modeling Language
    Shah, Syed Asad Ali
    Bukhari, Syed Shafique Ali
    Humayun, Mamoona
    Jhanjhi, N. Z.
    Abbas, Syed Fakhar
    2019 INTERNATIONAL CONFERENCE ON COMPUTER AND INFORMATION SCIENCES (ICCIS), 2019, : 211 - 216
  • [29] Rule-base coverage analysis applied to test case selection
    Barr, V
    ANNALS OF SOFTWARE ENGINEERING, 1997, 4 : 171 - 189
  • [30] Quantification: The View From Natural Language Generation
    Carstensen, Kai-Uwe
    FRONTIERS IN ARTIFICIAL INTELLIGENCE, 2021, 4