Model-based Testing of Scratch Programs

被引:1
作者
Goetz, Katharina [1 ]
Feldmeier, Patric [1 ]
Fraser, Gordon [1 ]
机构
[1] Univ Passau, Passau, Germany
来源
2022 IEEE 15TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST 2022) | 2022年
关键词
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
相关论文
共 16 条
  • [1] An orchestrated survey of methodologies for automated software test case generation
    Anand, Saswat
    Burke, Edmund K.
    Chen, Tsong Yueh
    Clark, John
    Cohen, Myra B.
    Grieskamp, Wolfgang
    Harman, Mark
    Harrold, Mary Jean
    McMinn, Phil
    Bertolino, Antonia
    Li, J. Jenny
    Zhu, Hong
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2013, 86 (08) : 1978 - 2001
  • [2] Boe B., 2013, Proceeding of the 44th ACM technical symposium on Computer science education, P215
  • [3] Chang Z, 2018, INT WIREL COMMUN, P950, DOI 10.1109/IWCMC.2018.8450296
  • [4] Deiner A, 2020, LECT NOTES COMPUT SC, V12420, P58, DOI 10.1007/978-3-030-59762-7_5
  • [5] Dias Neto A. C., 2007, P INT WORKSHOP EMPIR, P31
  • [6] Fradrich C., 2020, ACM ITICSE, P89
  • [7] Hermans F, 2016, S VIS LANG HUM CEN C, P68, DOI 10.1109/VLHCC.2016.7739666
  • [8] Johnson D.E., 2016, Proceedings of the 47th ACM Technical Symposium on Computing Science Education, P223
  • [9] Delivering cognitive analytic consultancy to community mental health teams: Initial practice-based evidence from a multi-site evaluation
    Kellett, Stephen
    Ghag, Jeetender
    Ackroyd, Katie
    Freshwater, Kate
    Finch, Jayne
    Freear, Adam
    Hartley, Judith
    Simmonds-Buckley, Mel
    [J]. PSYCHOLOGY AND PSYCHOTHERAPY-THEORY RESEARCH AND PRACTICE, 2020, 93 (03) : 429 - 455
  • [10] Keuning Hieke., 2016, Proceedings of the 2016 ACM Conference on Innovation and Technology in Computer Science Education, P41, DOI 10.1145/2899415.2899422