A test code generation method for coding standard input/output with exception handling in Java programming learning assistant system

Ei Ei Mon, Nobuo Funabiki, Ryota Kusaka, Khin Khin Zaw, Wen Chung Kao

Research output: Contribution to journalArticle

Abstract

To advance Java programming educations, we have developed the Java Programming Learning Assistant System (JPLAS) that provides the code writing problem. This problem asks a student to write a source code to satisfy the specification of a given assignment, where the correctness is verified by running test code on JUnit. For a novice student, a code of implementing the standard input/output with the exception handling should be mastered at the early stage as the first step programming for human interfaces. However, for a teacher, it is not easy to write the test code for it. In this paper, we propose a test code generation method to generate the test code using the reference source code for the assignment. In the evaluation of this proposal, all the students completed the codes using the generated test codes for exception handling, although the use of exception handling functions was sometimes insufficient or incorrect.

Original languageEnglish
Pages (from-to)30-37
Number of pages8
JournalAdvances in Science, Technology and Engineering Systems
Volume3
Issue number1
DOIs
Publication statusPublished - Jan 1 2018

Fingerprint

programming
learning
coding
Students
output
students
Education
Specifications
Code generation
Java
Programming
instructors
proposals
specifications
education
evaluation

Keywords

  • Automatic generation
  • Java programming
  • JPLAS
  • JUnit
  • Test case
  • Test code

ASJC Scopus subject areas

  • Engineering (miscellaneous)
  • Management of Technology and Innovation
  • Physics and Astronomy (miscellaneous)

Cite this

A test code generation method for coding standard input/output with exception handling in Java programming learning assistant system. / Mon, Ei Ei; Funabiki, Nobuo; Kusaka, Ryota; Zaw, Khin Khin; Kao, Wen Chung.

In: Advances in Science, Technology and Engineering Systems, Vol. 3, No. 1, 01.01.2018, p. 30-37.

Research output: Contribution to journalArticle

@article{fd466243d59640c294511f2c9587bccf,
title = "A test code generation method for coding standard input/output with exception handling in Java programming learning assistant system",
abstract = "To advance Java programming educations, we have developed the Java Programming Learning Assistant System (JPLAS) that provides the code writing problem. This problem asks a student to write a source code to satisfy the specification of a given assignment, where the correctness is verified by running test code on JUnit. For a novice student, a code of implementing the standard input/output with the exception handling should be mastered at the early stage as the first step programming for human interfaces. However, for a teacher, it is not easy to write the test code for it. In this paper, we propose a test code generation method to generate the test code using the reference source code for the assignment. In the evaluation of this proposal, all the students completed the codes using the generated test codes for exception handling, although the use of exception handling functions was sometimes insufficient or incorrect.",
keywords = "Automatic generation, Java programming, JPLAS, JUnit, Test case, Test code",
author = "Mon, {Ei Ei} and Nobuo Funabiki and Ryota Kusaka and Zaw, {Khin Khin} and Kao, {Wen Chung}",
year = "2018",
month = "1",
day = "1",
doi = "10.25046/aj030105",
language = "English",
volume = "3",
pages = "30--37",
journal = "Advances in Science, Technology and Engineering Systems",
issn = "2415-6698",
publisher = "ASTES Publishers",
number = "1",

}

TY - JOUR

T1 - A test code generation method for coding standard input/output with exception handling in Java programming learning assistant system

AU - Mon, Ei Ei

AU - Funabiki, Nobuo

AU - Kusaka, Ryota

AU - Zaw, Khin Khin

AU - Kao, Wen Chung

PY - 2018/1/1

Y1 - 2018/1/1

N2 - To advance Java programming educations, we have developed the Java Programming Learning Assistant System (JPLAS) that provides the code writing problem. This problem asks a student to write a source code to satisfy the specification of a given assignment, where the correctness is verified by running test code on JUnit. For a novice student, a code of implementing the standard input/output with the exception handling should be mastered at the early stage as the first step programming for human interfaces. However, for a teacher, it is not easy to write the test code for it. In this paper, we propose a test code generation method to generate the test code using the reference source code for the assignment. In the evaluation of this proposal, all the students completed the codes using the generated test codes for exception handling, although the use of exception handling functions was sometimes insufficient or incorrect.

AB - To advance Java programming educations, we have developed the Java Programming Learning Assistant System (JPLAS) that provides the code writing problem. This problem asks a student to write a source code to satisfy the specification of a given assignment, where the correctness is verified by running test code on JUnit. For a novice student, a code of implementing the standard input/output with the exception handling should be mastered at the early stage as the first step programming for human interfaces. However, for a teacher, it is not easy to write the test code for it. In this paper, we propose a test code generation method to generate the test code using the reference source code for the assignment. In the evaluation of this proposal, all the students completed the codes using the generated test codes for exception handling, although the use of exception handling functions was sometimes insufficient or incorrect.

KW - Automatic generation

KW - Java programming

KW - JPLAS

KW - JUnit

KW - Test case

KW - Test code

UR - http://www.scopus.com/inward/record.url?scp=85061700854&partnerID=8YFLogxK

UR - http://www.scopus.com/inward/citedby.url?scp=85061700854&partnerID=8YFLogxK

U2 - 10.25046/aj030105

DO - 10.25046/aj030105

M3 - Article

VL - 3

SP - 30

EP - 37

JO - Advances in Science, Technology and Engineering Systems

JF - Advances in Science, Technology and Engineering Systems

SN - 2415-6698

IS - 1

ER -