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 条
  • [31] Abstract Interpretation of Programs for Model-Based Debugging
    Mayer, Wolfgang
    Stumptner, Markus
    20TH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2007, : 471 - 476
  • [32] Model-based Derivation and Refinement of Abstract Programs
    Mano, N.
    Denki Gakkai Ronbunshi. C, Erekutoronikusu Joho Kogaku, Shisutemu, 1995, 115 (08):
  • [33] Model-Based Testing for Asynchronous Systems
    Graf-Brill, Alexander
    Hermanns, Holger
    CRITICAL SYSTEMS: FORMAL METHODS AND AUTOMATED VERIFICATION (FMICS-AVOCS 2017), 2017, 10471 : 66 - 82
  • [34] Testing concept for model-based development
    Fey, Ines
    WMSCI 2005: 9th World Multi-Conference on Systemics, Cybernetics and Informatics, Vol 7, 2005, : 48 - 52
  • [35] Model-based regression testing by OCL
    Philipp Zech
    Philipp Kalb
    Michael Felderer
    Colin Atkinson
    Ruth Breu
    International Journal on Software Tools for Technology Transfer, 2017, 19 : 115 - 131
  • [36] Model-based testing of optimizing compilers
    Zelenov, Sergey
    Zelenova, Sophia
    TESTING OF SOFTWARE AND COMMUNICATING SYSTEMS, PROCEEDINGS, 2007, 4581 : 365 - +
  • [37] Model-Based Testing of Networked Applications
    Li, Yishuai
    Pierce, Benjamin C.
    Zdancewic, Steve
    ISSTA '21: PROCEEDINGS OF THE 30TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, 2021, : 529 - 539
  • [38] Model-based testing of automotive electronics
    Lamberg, Klaus
    2006 DESIGN AUTOMATION AND TEST IN EUROPE, VOLS 1-3, PROCEEDINGS, 2006, : 89 - 89
  • [39] Incremental Model-based Mutation Testing
    Tiran, Stefan
    2015 IEEE 8TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST), 2015,
  • [40] A model-based approach for robustness testing
    Fernandez, JC
    Mounier, L
    Pachon, C
    TESTING OF COMMUNICATING SYSTEMS, PROCEEDINGS, 2005, 3502 : 333 - 348