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 条
  • [1] Model-based Automated Testing of Critical PLC Programs
    Adiego, Borja Fernandez
    Vinuela, Enrique Blanco
    Tournier, Jean-Charles
    Gonzalez Suarez, Victor M.
    Bliudze, Simon
    2013 11TH IEEE INTERNATIONAL CONFERENCE ON INDUSTRIAL INFORMATICS (INDIN), 2013, : 722 - 727
  • [2] A Modular Approach to Model-Based Testing of Concurrent Programs
    Carver, Richard
    Lei, Yu
    MULTICORE SOFTWARE ENGINEERING, PERFORMANCE, AND TOOLS, 2013, 8063 : 85 - 96
  • [3] Model-based testing of concurrent programs with predicate sequencing constraints
    Wu, Peng
    Lin, Huimin
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2006, 16 (05) : 727 - 746
  • [4] Model-based testing of concurrent programs with predicate sequencing constraints
    Wu, P
    Lin, HM
    QSIC 2005: FIFTH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE, PROCEEDINGS, 2005, : 3 - 10
  • [5] Model-Based Testing of PLC Programs With Appropriate Conformance Relations
    Guignard, Anais
    Faure, Jean-Marc
    Faraut, Gregory
    IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, 2018, 14 (01) : 350 - 359
  • [6] Testing Scratch Programs Automatically
    Stahlbauer, Andreas
    Kreis, Marvin
    Fraser, Gordon
    ESEC/FSE'2019: PROCEEDINGS OF THE 2019 27TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2019, : 165 - 175
  • [7] Model-based ideal testing of hardware description language (HDL) programs
    Onur Kilincceker
    Ercument Turk
    Fevzi Belli
    Moharram Challenger
    Software and Systems Modeling, 2022, 21 : 1209 - 1240
  • [8] Model-based ideal testing of hardware description language (HDL) programs
    Kilincceker, Onur
    Turk, Ercument
    Belli, Fevzi
    Challenger, Moharram
    SOFTWARE AND SYSTEMS MODELING, 2022, 21 (03): : 1209 - 1240
  • [9] Model-based University Course Programs for Model-based Engineering
    Gati, Jozsef
    Kartyas, Gyula
    2012 4TH IEEE INTERNATIONAL SYMPOSIUM ON LOGISTICS AND INDUSTRIAL INFORMATICS (LINDI), 2012, : 245 - 249
  • [10] Model-Based Testing
    Schieferdecker, Ina
    IEEE SOFTWARE, 2012, 29 (01) : 14 - 18