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 条
  • [41] Model-Based Testing of Electronic Passports
    Mostowski, Wojciech
    Poll, Erik
    Schmaltz, Julien
    Tretmans, Jan
    Schreur, Ronny Wichers
    FORMAL METHODS FOR INDUSTRIAL CRITICAL SYSTEMS, 2009, 5825 : 207 - 209
  • [42] A symbolic framework for model-based testing
    Frantzen, L.
    Tretmans, J.
    Willemse, T. A. C.
    FORMAL APPROACHES TO SOFTWARE TESTING AND RUNTIME VERIFICATION, 2006, 4262 : 40 - +
  • [43] Efficient model-based bioequivalence testing
    Moellenhoff, Kathrin
    Loingeville, Florence
    Bertrand, Julie
    Nguyen, Thu Thuy
    Sharan, Satish
    Zhao, Liang
    Fang, Lanyan
    Sun, Guoying
    Grosser, Stella
    Mentre, France
    Dette, Holger
    BIOSTATISTICS, 2022, 23 (01) : 314 - 327
  • [44] Model-based testing: Challenges ahead
    Heimdahl, MPE
    Proceedings of the 29th Annual International Computer Software and Applications Conference, 2005, : 330 - 330
  • [45] Model-based testing through a GUI
    Kervinen, Antti
    Maunumaa, Mika
    Paakkonen, Tuula
    Katara, Mika
    FORMAL APPROACHES TO SOFTWARE TESTING, 2006, 3997 : 16 - 31
  • [46] Fast model-based penetration testing
    Singh, S
    Lyons, J
    Nicol, DM
    PROCEEDINGS OF THE 2004 WINTER SIMULATION CONFERENCE, VOLS 1 AND 2, 2004, : 309 - 317
  • [47] Model-based testing with Spec#
    Jacky, J
    FORMAL METHODS AND SOFTWARE ENGINEERING, PROCEEDINGS, 2004, 3308 : 5 - 6
  • [48] Model-Based Testing for Avionics Systems
    Brauer, Joerg
    Schulze, Uwe
    FORMAL METHODS, 2018, 10951 : 657 - 661
  • [49] Model-Based Automated Accessibility Testing
    Brajnik, Giorgio
    Pighin, Chiara
    Fabbro, Sara
    ASSETS'15: PROCEEDINGS OF THE 17TH INTERNATIONAL ACM SIGACCESS CONFERENCE ON COMPUTERS & ACCESSIBILITY, 2015, : 319 - 320
  • [50] A methodology and a framework for model-based testing
    Lucio, L
    Pedro, L
    Buchs, D
    RAPID INTEGRATION OF SOFTWARE ENGINEERING TECHNIQUES, 2005, 3475 : 57 - 70