From BDD Scenarios to Test Case Generation

被引:2
作者
Zameni, Tannaz [1 ]
van den Bos, Petra [1 ]
Tretmans, Jan [2 ,3 ]
Foederer, Johan [4 ]
Rensink, Arend [1 ]
机构
[1] Univ Twente, Formal Methods & Tools, Enschede, Netherlands
[2] Radboud Univ Nijmegen, Dept Software Sci, Nijmegen, Netherlands
[3] TNO ESI, Eindhoven, Netherlands
[4] TOPIC Embedded Syst, Best, Netherlands
来源
2023 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS, ICSTW | 2023年
基金
荷兰研究理事会;
关键词
Behavior-Driven Development; Model-Based testing; Compositional testing;
D O I
10.1109/ICSTW58534.2023.00019
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Model-based testing (MBT) offers the possibility of automatic generation and execution of tests. However, it is not yet widely used in industry due to the difficulty in creating and maintaining models. On the other hand, Behavior Driven Development (BDD) is becoming more popular in the agile development process to achieve a common understanding of the system under development among stakeholders and to automate testing. However, BDD scenarios are written in human language and are usually not precise enough. Moreover, tests extracted from BDD scenarios are too short and incomplete; they only cover a very small part of the system. Our goal is to combine these two approaches to benefit from the usability of BDD and the test automation capabilities of MBT. In this paper, we first define a formal model of scenarios that we call BDD Transition Systems, second, we create more complete tests by composing scenarios (model composition), and finally, we generate and execute tests automatically. We demonstrate the applicability of this approach in a real-world example: an industrial printer.
引用
收藏
页码:36 / 44
页数:9
相关论文
共 25 条
  • [1] Bridging the Gap between Requirements Modeling and Behavior-driven Development
    Alferez, Mauricio
    Pastore, Fabrizio
    Sabetzadeh, Mehrdad
    Briand, Lionel C.
    Riccardi, Jean-Richard
    [J]. 2019 ACM/IEEE 22ND INTERNATIONAL CONFERENCE ON MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS (MODELS 2019), 2019, : 239 - 249
  • [2] Cartaxo EG, 2007, IEEE SYS MAN CYBERN, P2885
  • [3] Chelimsky D., 2010, RSPEC BOOK BEHAVIOUR, V1st, DOI [10.5555/1965448, DOI 10.5555/1965448]
  • [4] cucurbitgenomics, About us
  • [5] Diepenbeck Melanie, 2014, Tests and Proofs. 8th International Conference (TAP 2014). Held as Part of STAF 2014. Proceedings: LNCS 8570, P61, DOI 10.1007/978-3-319-09099-3_5
  • [6] Fitnect, about us
  • [7] Frantzen L, 2006, LECT NOTES COMPUT SC, V4262, P40
  • [8] Frantzen L, 2005, LECT NOTES COMPUT SC, V3395, P1
  • [9] Harel D, 2005, LECT NOTES COMPUT SC, V3393, P309
  • [10] Harel D, 2001, LECT NOTES COMPUT SC, V2088, P1