A proposal of test code generation tool for Java programming learning assistant system

Nobuo Funabiki, Ryota Kusaka, Nobuya Ishihara, Wen Chung Kao

Research output: Chapter in Book/Report/Conference proceedingConference contribution

6 Citations (Scopus)

Abstract

To advance Java programming educations, we have developed the Java programming learning assistant system (JPLAS) that can verify the correctness of the code from a student automatically using the test-driven development (TDD) method. Then, to register a new assignment in JPLAS, teachers are required to write the test code in addition to the reference source code. Unfortunately, most teachers at schools are not accustomed to writing test codes. In this paper, we propose a test code generation tool that automatically generates the test cases from the reference source code by extracting the outputs for given inputs using functions in JUnit. As assignments for Java novice students, the code that contains standard inputs/outputs is emphasized. For evaluation, we collected 97 codes containing standard inputs/outputs from Java programming text books or Web sites. The experimental result has shown that the proposed tool correctly generated the test codes for them except for one code using a random generator.

Original languageEnglish
Title of host publicationProceedings - 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017
EditorsTomoya Enokido, Hui-Huang Hsu, Chi-Yi Lin, Makoto Takizawa, Leonard Barolli
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages51-56
Number of pages6
ISBN (Electronic)9781509060283
DOIs
Publication statusPublished - 2017 May 5
Event31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017 - Taipei, Taiwan
Duration: 2017 Mar 272017 Mar 29

Publication series

NameProceedings - International Conference on Advanced Information Networking and Applications, AINA
ISSN (Print)1550-445X

Other

Other31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017
Country/TerritoryTaiwan
CityTaipei
Period2017/03/272017/03/29

Keywords

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

ASJC Scopus subject areas

  • General Engineering

Fingerprint

Dive into the research topics of 'A proposal of test code generation tool for Java programming learning assistant system'. Together they form a unique fingerprint.

Cite this