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

2 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
CountryTaiwan
CityTaipei
Period17/3/2717/3/29

Fingerprint

Students
Websites
Education
Code generation

Keywords

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

ASJC Scopus subject areas

  • Engineering(all)

Cite this

Funabiki, N., Kusaka, R., Ishihara, N., & Kao, W-C. (2017). A proposal of test code generation tool for Java programming learning assistant system. In T. Enokido, H-H. Hsu, C-Y. Lin, M. Takizawa, & L. Barolli (Eds.), Proceedings - 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017 (pp. 51-56). [7920889] (Proceedings - International Conference on Advanced Information Networking and Applications, AINA). Institute of Electrical and Electronics Engineers Inc.. https://doi.org/10.1109/AINA.2017.60

A proposal of test code generation tool for Java programming learning assistant system. / Funabiki, Nobuo; Kusaka, Ryota; Ishihara, Nobuya; Kao, Wen-Chung.

Proceedings - 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017. ed. / Tomoya Enokido; Hui-Huang Hsu; Chi-Yi Lin; Makoto Takizawa; Leonard Barolli. Institute of Electrical and Electronics Engineers Inc., 2017. p. 51-56 7920889 (Proceedings - International Conference on Advanced Information Networking and Applications, AINA).

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

Funabiki, N, Kusaka, R, Ishihara, N & Kao, W-C 2017, A proposal of test code generation tool for Java programming learning assistant system. in T Enokido, H-H Hsu, C-Y Lin, M Takizawa & L Barolli (eds), Proceedings - 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017., 7920889, Proceedings - International Conference on Advanced Information Networking and Applications, AINA, Institute of Electrical and Electronics Engineers Inc., pp. 51-56, 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017, Taipei, Taiwan, 17/3/27. https://doi.org/10.1109/AINA.2017.60
Funabiki N, Kusaka R, Ishihara N, Kao W-C. A proposal of test code generation tool for Java programming learning assistant system. In Enokido T, Hsu H-H, Lin C-Y, Takizawa M, Barolli L, editors, Proceedings - 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017. Institute of Electrical and Electronics Engineers Inc. 2017. p. 51-56. 7920889. (Proceedings - International Conference on Advanced Information Networking and Applications, AINA). https://doi.org/10.1109/AINA.2017.60
Funabiki, Nobuo ; Kusaka, Ryota ; Ishihara, Nobuya ; Kao, Wen-Chung. / A proposal of test code generation tool for Java programming learning assistant system. Proceedings - 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017. editor / Tomoya Enokido ; Hui-Huang Hsu ; Chi-Yi Lin ; Makoto Takizawa ; Leonard Barolli. Institute of Electrical and Electronics Engineers Inc., 2017. pp. 51-56 (Proceedings - International Conference on Advanced Information Networking and Applications, AINA).
@inproceedings{560319be3ed0484184a1ffafa602649d,
title = "A proposal of test code generation tool for Java programming learning assistant system",
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.",
keywords = "Automatic generation, JPLAS, JUnit, Java programming, Test case, Test code",
author = "Nobuo Funabiki and Ryota Kusaka and Nobuya Ishihara and Wen-Chung Kao",
year = "2017",
month = "5",
day = "5",
doi = "10.1109/AINA.2017.60",
language = "English",
series = "Proceedings - International Conference on Advanced Information Networking and Applications, AINA",
publisher = "Institute of Electrical and Electronics Engineers Inc.",
pages = "51--56",
editor = "Tomoya Enokido and Hui-Huang Hsu and Chi-Yi Lin and Makoto Takizawa and Leonard Barolli",
booktitle = "Proceedings - 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017",

}

TY - GEN

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

AU - Funabiki, Nobuo

AU - Kusaka, Ryota

AU - Ishihara, Nobuya

AU - Kao, Wen-Chung

PY - 2017/5/5

Y1 - 2017/5/5

N2 - 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.

AB - 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.

KW - Automatic generation

KW - JPLAS

KW - JUnit

KW - Java programming

KW - Test case

KW - Test code

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

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

U2 - 10.1109/AINA.2017.60

DO - 10.1109/AINA.2017.60

M3 - Conference contribution

T3 - Proceedings - International Conference on Advanced Information Networking and Applications, AINA

SP - 51

EP - 56

BT - Proceedings - 31st IEEE International Conference on Advanced Information Networking and Applications, AINA 2017

A2 - Enokido, Tomoya

A2 - Hsu, Hui-Huang

A2 - Lin, Chi-Yi

A2 - Takizawa, Makoto

A2 - Barolli, Leonard

PB - Institute of Electrical and Electronics Engineers Inc.

ER -