A Proposal of Test Code Generation Tool for Java']Java Programming Learning Assistant System

被引:3
|
作者
Funabiki, Nobuo [1 ]
Kusaka, Ryota [1 ]
Ishihara, Nobuya [1 ]
Kao, Wen-Chung [2 ]
机构
[1] Okayama Univ, Dept Elect & Commun Engn, Okayama, Japan
[2] Natl Taiwan Normal Univ, Dept Elect Engn, Taipei, Taiwan
关键词
!text type='Java']Java[!/text] programming; JPLAS; test code; test case; automatic generation; JUnit;
D O I
10.1109/AINA.2017.60
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页码:51 / 56
页数:6
相关论文
共 50 条
  • [1] File Access Extension of Test Code Generation Tool for Java']Java Programming Learning Assistant System
    Funabiki, Nobuo
    Kusaka, Ryota
    Ishihara, Nobuya
    Kao, Wen-Chung
    [J]. 2017 IEEE 6TH GLOBAL CONFERENCE ON CONSUMER ELECTRONICS (GCCE), 2017,
  • [2] A Proposal of Code Completion Problem for Java']Java Programming Learning Assistant System
    Kyaw, Htoo Htoo Sandi
    Aung, Shwe Thinzar
    Thant, Hnin Aye
    Fiinabiki, Nobuo
    [J]. COMPLEX, INTELLIGENT, AND SOFTWARE INTENSIVE SYSTEMS, 2019, 772 : 855 - 864
  • [3] A Proposal of Code Correction Problem for Java']Java Programming Learning Assistant System
    Funabiki, Nobuo
    He, Sai
    Kyaw, Htoo Htoo Sandi
    Kao, Wen-Chun
    [J]. COMPLEX, INTELLIGENT, AND SOFTWARE INTENSIVE SYSTEMS (CISIS 2019), 2020, 993 : 671 - 680
  • [4] Answer Code Validation Program with Test Data Generation for Code Writing Problem in Java']Java Programming Learning Assistant System
    Wai, Khaing Hsu
    Funabiki, Nobuo
    Aung, Soe Thandar
    Lu, Xiqin
    Jing, Yanhui
    Kyaw, Htoo Htoo Sandi
    Kao, Wen-Chung
    [J]. ENGINEERING LETTERS, 2024, 32 (05) : 981 - 994
  • [5] A Proposal of Software Architecture for Java']Java Programming Learning Assistant System
    Ishihara, Nobuya
    Funabiki, Nobuo
    Kuribayashi, Minoru
    Kao, Wen-Chung
    [J]. 2017 IEEE 31ST INTERNATIONAL CONFERENCE ON ADVANCED INFORMATION NETWORKING AND APPLICATIONS (AINA), 2017, : 64 - 70
  • [6] A Proposal of Java']Javadoc Hint Function for Java']Java Programming Learning Assistant System
    Funabiki, Nobuo
    Nakamura, Takuya
    Kao, Wen-Chung
    [J]. 2014 IEEE 3RD GLOBAL CONFERENCE ON CONSUMER ELECTRONICS (GCCE), 2014, : 304 - 308
  • [7] An Improved Informative Test Code Approach for Code Writing Problem in Java']Java Programming Learning Assistant System
    Funabiki, Nobuo
    Zaw, Khin Khin
    Mon, Ei Ei
    Kao, Wen-Chung
    [J]. ADVANCES IN INTERNET, DATA & WEB TECHNOLOGIES, 2018, 17 : 687 - 698
  • [8] A Proposal of Coding Rule Learning Function in Java']Java Programming Learning Assistant System
    Funabiki, Nobuo
    Ogawa, Takuya
    Ishihara, Nobuya
    Kuribayashi, Minoni
    Kao, Wen-Chung
    [J]. PROCEEDINGS OF 2016 10TH INTERNATIONAL CONFERENCE ON COMPLEX, INTELLIGENT, AND SOFTWARE INTENSIVE SYSTEMS (CISIS), 2016, : 561 - 566
  • [9] An Extension of Code Correction Problem for Java']Java Programming Learning Assistant System
    Funabiki, Nobuo
    Yamaguchi, Masaki
    Kuribayashi, Minoru
    Kyaw, Htoo Htoo Sandi
    Wint, Su Sandy
    Aung, Soe Thandar
    Kao, Wen-Chung
    [J]. ICIET 2020: 2020 8TH INTERNATIONAL CONFERENCE ON INFORMATION AND EDUCATION TECHNOLOGY, 2020, : 110 - 115
  • [10] A Proposal of Grammar-Concept Understanding Problem in Java']Java Programming Learning Assistant System
    Aung, Soe Thandar
    Funabiki, Nobuo
    Syaifudin, Yan Watequlis
    Kyaw, Htoo Htoo Sandi
    Aung, Shune Lae
    Dim, Nem Khan
    Kao, Wen-Chung
    [J]. JOURNAL OF ADVANCES IN INFORMATION TECHNOLOGY, 2021, 12 (04) : 342 - 350