Model-based Testing of Scratch Programs

被引:1
|
作者
Goetz, Katharina [1 ]
Feldmeier, Patric [1 ]
Fraser, Gordon [1 ]
机构
[1] Univ Passau, Passau, Germany
关键词
Model-based Testing; Scratch; GUI Testing;
D O I
10.1109/ICST53961.2022.00047
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Learners are often introduced to programming via dedicated languages such as SCRATCH, where block-based commands are assembled visually in order to control the interactions of graphical sprites. Automated testing of such programs is an important prerequisite for supporting debugging, providing hints, or assessing learning outcomes. However, writing tests for SCRATCH programs can be challenging: The game-like and randomised nature of typical SCRATCH programs makes it difficult to identify specific timed input sequences used to control the programs. Furthermore, precise test assertions to check the resulting program slates are incompatible with the fundamental principle of creative freedom in programming in SCRATCH, where correct program behaviour may he implemented with deviations in the graphical appearance or timing of the program. The event-driven and actor-oriented nature of SCRATCH programs, however, makes them a natural fit for describing program behaviour using finite state machines. In this paper, we introduce a model-based testing approach by extending WHISKER, an automated testing framework for SCRATCH programs. The model-based extension describes expected program behaviour in terms of state machines, which makes it feasible to check the abstract behaviour of a program independent of exact timing and pixel-precise graphical details, and to automatically derive test inputs testing even challenging programs. A video demonstrating model-based testing with WHISKER is available at the following URL: https://youtu.be/edgCNbGSGEY
引用
收藏
页码:411 / 421
页数:11
相关论文
共 50 条
  • [11] Model-based testing
    Le Traon, Yves
    Xie, Tao
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2023, 33 (02):
  • [12] Model-based testing
    Pretschner, A
    ICSE 05: 27th International Conference on Software Engineering, Proceedings, 2005, : 722 - 723
  • [13] Combinatorial testing and model-based testing
    Hierons, Robert M.
    Xie, Tao
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2022, 32 (02):
  • [14] Model-Based Ideal Testing of GUI Programs-Approach and Case Studies
    Kilincceker, Onur
    Silistre, Alper
    Belli, Fevzi
    Challenger, Moharram
    IEEE ACCESS, 2021, 9 : 68966 - 68984
  • [15] Model Learning and Model-Based Testing
    Aichernig, Bernhard K.
    Mostowski, Wojciech
    Mousavi, Mohammad Reza
    Tappler, Martin
    Taromirad, Masoumeh
    MACHINE LEARNING FOR DYNAMIC SOFTWARE ANALYSIS: POTENTIALS AND LIMITS, 2018, 11026 : 74 - 100
  • [16] Model-based design of concurrent programs
    Magee, J
    Kramer, J
    COMMUNICATING SEQUENTIAL PROCESSES: THE FIRST 25 YEARS, 2005, 3525 : 211 - 219
  • [17] Model-based testing in practice
    Pretschner, A
    FM 2005: FORMAL METHODS, PROCEEDINGS, 2005, 3582 : 537 - 541
  • [18] Model-based testing as a service
    Herbold, Steffen
    Hoffmann, Andreas
    INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2017, 19 (03) : 271 - 279
  • [19] Model-Based Testing of Obligations
    Rubab, Iram
    Ali, Shaukat
    Briand, Lionel
    LeTraon, Yves
    2014 14TH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE (QSIC 2014), 2014, : 1 - 10
  • [20] Model-Based Flight Testing
    de Mendonca, Celso Braga
    da Silva, Edmar Thomaz
    Curvo, Marcelo
    Trabasso, Luis Gonzaga
    JOURNAL OF AIRCRAFT, 2013, 50 (01): : 176 - 186