首页> 外文会议>IEEE International Conference on Advanced Information Networking and Applications >A Proposal of Test Code Generation Tool for Java Programming Learning Assistant System
【24h】

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

机译:Java编程学习助手系统测试代码生成工具的建议

获取原文

摘要

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.
机译:为了推进Java编程教育,我们开发了Java编程学习助手系统(JPLAS),该系统可以使用测试驱动开发(TDD)方法自动验证学生代码的正确性。然后,要在JPLAS中注册新作业,除参考源代码外,还要求教师编写测试代码。不幸的是,大多数学校的老师都不习惯编写测试代码。在本文中,我们提出了一种测试代码生成工具,该工具通过使用JUnit中的函数提取给定输入的输出,从而从参考源代码自动生成测试用例。作为Java新手的作业,强调了包含标准输入/输出的代码。为了进行评估,我们从Java编程教科书或网站上收集了97个包含标准输入/输出的代码。实验结果表明,所提出的工具使用随机生成器正确地为它们生成了测试代码(除了一个代码)。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号