Preprint Article Version 1 Preserved in Portico This version is not peer-reviewed

Answer Code Validation Program with Test Data Generation for Code Writing Problem in Java Programming Learning Assistant System

Version 1 : Received: 1 June 2023 / Approved: 2 June 2023 / Online: 2 June 2023 (08:10:28 CEST)

How to cite: Wai, K. H.; Funabiki, N.; Aung, S. T.; Lu, X.; Jing, Y.; Kyaw, H. H. S.; Kao, W.-C. Answer Code Validation Program with Test Data Generation for Code Writing Problem in Java Programming Learning Assistant System. Preprints 2023, 2023060153. https://doi.org/10.20944/preprints202306.0153.v1 Wai, K. H.; Funabiki, N.; Aung, S. T.; Lu, X.; Jing, Y.; Kyaw, H. H. S.; Kao, W.-C. Answer Code Validation Program with Test Data Generation for Code Writing Problem in Java Programming Learning Assistant System. Preprints 2023, 2023060153. https://doi.org/10.20944/preprints202306.0153.v1

Abstract

To assist Java programming learning of novice students, we have developed the web-based Java programming learning assistant system (JPLAS). JPLAS provides several types of exercise problems to cultivate code reading/writing skills at various levels. In JPLAS, the code writing problem (CWP) asks a student to write a source code that will pass the test code given in the assignment where the correctness is verified by running them on JUnit. In this paper, to reduce the teacher load at marking process, we present the answer code validation program that verifies all the source codes from a lot of students for each assignment at a time and reports the number of passing tests for each source code in the CSV file. Besides, to test a source code with various input data, we implement the test data generation algorithm that identifies the data type, generates a new data, and replaces it for each test data in the test code. Furthermore, to verify the correctness of the implemented procedure in the source code, we introduce the intermediate state testing in the test code. For evaluations, we applied the proposal to source codes and test codes in a Java programming course in Okayama university, Japan, and confirmed the validity and effectiveness.

Keywords

programming learning; Java; JUnit; code writing problem; code validation; test data generation

Subject

Computer Science and Mathematics, Computer Science

Comments (0)

We encourage comments and feedback from a broad range of readers. See criteria for comments and our Diversity statement.

Leave a public comment
Send a private comment to the author(s)
* All users must log in before leaving a comment
Views 0
Downloads 0
Comments 0


×
Alerts
Notify me about updates to this article or when a peer-reviewed version is published.
We use cookies on our website to ensure you get the best experience.
Read more about our cookies here.