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. Preprints2023, 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
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. Preprints2023, 2023060153. https://doi.org/10.20944/preprints202306.0153.v1
APA Style
Wai, K. H., Funabiki, N., Aung, S. T., Lu, X., Jing, Y., Kyaw, H. H. S., & Kao, W. C. (2023). Answer Code Validation Program with Test Data Generation for Code Writing Problem in Java Programming Learning Assistant System. Preprints. https://doi.org/10.20944/preprints202306.0153.v1
Chicago/Turabian Style
Wai, K. H., Htoo Htoo Sandi Kyaw and Wen-Chung Kao. 2023 "Answer Code Validation Program with Test Data Generation for Code Writing Problem in Java Programming Learning Assistant System" Preprints. 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
Copyright:
This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.