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 条
  • [21] Compositionality in Model-Based Testing
    van Cuyck, Gijs
    van Arragon, Lars
    Tretmans, Jan
    TESTING SOFTWARE AND SYSTEMS, ICTSS 2023, 2023, 14131 : 202 - 218
  • [22] The role of model-based testing
    Utting, Mark
    VERIFIED SOFTWARE: THEORIES, TOOLS, EXPERIMENTS, 2008, 4171 : 510 - 517
  • [23] Model-Based Security Testing
    Schieferdecker, Ina
    Grossmann, Juergen
    Schneider, Martin
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2012, (80): : 1 - 12
  • [24] Model-based testing as a service
    Steffen Herbold
    Andreas Hoffmann
    International Journal on Software Tools for Technology Transfer, 2017, 19 : 271 - 279
  • [25] Reusable Model-Based Testing
    Olimpiew, Erika Mir
    Gomaa, Hassan
    FORMAL FOUNDATIONS OF REUSE AND DOMAIN ENGINEERING, PROCEEDINGS, 2009, 5791 : 76 - 85
  • [26] Model-based testing - A glossary
    Pretschner, A
    Leucker, M
    MODEL-BASED TESTING OF REACTIVE SYSTEMS, 2005, 3472 : 607 - 609
  • [27] Traceability in Model-Based Testing
    George, Mathew
    Fischer-Hellmann, Klaus-Peter
    Knahl, Martin
    Bleimann, Udo
    Atkinson, Shirley
    FUTURE INTERNET, 2012, 4 (04): : 1026 - 1036
  • [28] Abstractions for Model-Based Testing
    Prenninger, Wolfgang
    Pretschner, Alexander
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2005, 116 : 59 - 71
  • [29] Model-Based Testing and the UML Testing Profile
    Krishnan, Padmanabhan
    Pari-Salas, Percy
    SEMANTICS AND ALGEBRAIC SPECIFICATION: ESSAYS DEDICATED TO PETER D. MOSSES ON THE OCCASION OF HIS 60TH BIRTHDAY, 2009, 5700 : 315 - 328
  • [30] Improving Models for Model-based Testing based on Exploratory Testing
    Gebizli, Ceren Sahin
    Sozer, Hasan
    2014 38TH ANNUAL IEEE INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE WORKSHOPS (COMPSACW 2014), 2014, : 656 - 661