A Block-Based Testing Framework for Scratch

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Feldmeier, Patric, Fraser, Gordon, Heuer, Ute, Obermüller, Florian, Steckenbiller, Siegfried
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912069441290240
author Feldmeier, Patric
Fraser, Gordon
Heuer, Ute
Obermüller, Florian
Steckenbiller, Siegfried
author_facet Feldmeier, Patric
Fraser, Gordon
Heuer, Ute
Obermüller, Florian
Steckenbiller, Siegfried
contents Block-based programming environments like Scratch are widely used in introductory programming courses. They facilitate learning pivotal programming concepts by eliminating syntactical errors, but logical errors that break the desired program behaviour are nevertheless possible. Finding such errors requires testing, i.e., running the program and checking its behaviour. In many programming environments, this step can be automated by providing executable tests as code; in Scratch, testing can only be done manually by invoking events through user input and observing the rendered stage. While this is arguably sufficient for learners, the lack of automated testing may be inhibitive for teachers wishing to provide feedback on their students' solutions. In order to address this issue, we introduce a new category of blocks in Scratch that enables the creation of automated tests. With these blocks, students and teachers alike can create tests and receive feedback directly within the Scratch environment using familiar block-based programming logic. To facilitate the creation and to enable batch processing sets of student solutions, we extend the Scratch user interface with an accompanying test interface. We evaluated this testing framework with 28 teachers who created tests for a popular Scratch game and subsequently used these tests to assess and provide feedback on student implementations. An overall accuracy of 0.93 of teachers' tests compared to manually evaluating the functionality of 21 student solutions demonstrates that teachers are able to create and effectively use tests. A subsequent survey confirms that teachers consider the block-based test approach useful.
format Preprint
id arxiv_https___arxiv_org_abs_2410_08835
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Block-Based Testing Framework for Scratch
Feldmeier, Patric
Fraser, Gordon
Heuer, Ute
Obermüller, Florian
Steckenbiller, Siegfried
Software Engineering
Computers and Society
97P50
D.2.5; K.3.2
Block-based programming environments like Scratch are widely used in introductory programming courses. They facilitate learning pivotal programming concepts by eliminating syntactical errors, but logical errors that break the desired program behaviour are nevertheless possible. Finding such errors requires testing, i.e., running the program and checking its behaviour. In many programming environments, this step can be automated by providing executable tests as code; in Scratch, testing can only be done manually by invoking events through user input and observing the rendered stage. While this is arguably sufficient for learners, the lack of automated testing may be inhibitive for teachers wishing to provide feedback on their students' solutions. In order to address this issue, we introduce a new category of blocks in Scratch that enables the creation of automated tests. With these blocks, students and teachers alike can create tests and receive feedback directly within the Scratch environment using familiar block-based programming logic. To facilitate the creation and to enable batch processing sets of student solutions, we extend the Scratch user interface with an accompanying test interface. We evaluated this testing framework with 28 teachers who created tests for a popular Scratch game and subsequently used these tests to assess and provide feedback on student implementations. An overall accuracy of 0.93 of teachers' tests compared to manually evaluating the functionality of 21 student solutions demonstrates that teachers are able to create and effectively use tests. A subsequent survey confirms that teachers consider the block-based test approach useful.
title A Block-Based Testing Framework for Scratch
topic Software Engineering
Computers and Society
97P50
D.2.5; K.3.2
url https://arxiv.org/abs/2410.08835