Search-Based Testing for Scratch Programs

被引:5
作者
Deiner, Adina [1 ]
Fraedrich, Christoph [1 ]
Fraser, Gordon [1 ]
Geserer, Sophia [1 ]
Zantner, Niklas [1 ]
机构
[1] Univ Passau, Innstr 33, D-94032 Passau, Germany
来源
SEARCH-BASED SOFTWARE ENGINEERING, SSBSE 2020 | 2020年 / 12420卷
基金
英国工程与自然科学研究理事会;
关键词
Search-based testing; Block-based programming; Scratch;
D O I
10.1007/978-3-030-59762-7_5
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Block-based programming languages enable young learners to quickly implement fun programs and games. The Scratch programming environment is particularly successful at this, with more than 50 million registered users at the time of this writing. Although Scratch simplifies creating syntactically correct programs, learners and educators nevertheless frequently require feedback and support. Dynamic program analysis could enable automation of this support, but the test suites necessary for dynamic analysis do not usually exist for Scratch programs. It is, however, possible to cast test generation for Scratch as a search problem. In this paper, we introduce an approach for automatically generating test suites for Scratch programs using grammatical evolution. The use of grammatical evolution clearly separates the search encoding from framework-specific implementation details, and allows us to use advanced test acceleration techniques. We implemented our approach as an extension of the Whisker test framework. Evaluation on sample Scratch programs demonstrates the potential of the approach.
引用
收藏
页码:58 / 72
页数:15
相关论文
共 26 条
[21]   iSnap: Towards Intelligent Tutoring in Novice Programming Environments [J].
Price, Thomas W. ;
Dong, Yihuan ;
Lipovac, Dragan .
PROCEEDINGS OF THE 2017 ACM SIGCSE TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION (SIGCSE'17), 2017, :483-488
[22]   Testing Scratch Programs Automatically [J].
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
[23]  
Techapalokul P, 2019, S VIS LANG HUM CEN C, P117, DOI [10.1109/VLHCC.2019.8818950, 10.1109/vlhcc.2019.8818950]
[24]  
Techapalokul P, 2017, S VIS LANG HUM CEN C, P337, DOI 10.1109/VLHCC.2017.8103498
[25]  
Techapalokul P, 2017, S VIS LANG HUM CEN C, P43, DOI 10.1109/VLHCC.2017.8103449
[26]   Evolutionary test environment for automatic structural testing [J].
Wegener, J ;
Baresel, A ;
Sthamer, H .
INFORMATION AND SOFTWARE TECHNOLOGY, 2001, 43 (14) :841-854