Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Program static analysis based Java unit test teaching feedback method

A technology of unit testing and static analysis, applied in teaching aids for electrical operations, software testing/debugging, educational tools, etc., can solve the problem that teachers cannot evaluate students' careful writing, cannot meet the training goals of excellent test developers, and cannot organize unit test programming Exams and other issues

Inactive Publication Date: 2016-10-12
NANJING MUCE INFORMATION TECH
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The current situation is that students can easily write Java unit tests with the help of Eclipse, but there are the following imperfections: 1. Students cannot evaluate the strength of the test cases they write; 2. Teachers cannot evaluate whether students write seriously; 3. Only Arranging free exercises, programming exams where unit tests cannot be organized
It is precisely because of the relative isolation between teachers and students in the white box test, it is difficult for teachers to collect students' understanding of test task points, and it is difficult to improve teaching content based on actual feedback
Therefore, the traditional test teaching method has been unable to meet the training objectives of excellent test developers

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Program static analysis based Java unit test teaching feedback method
  • Program static analysis based Java unit test teaching feedback method
  • Program static analysis based Java unit test teaching feedback method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0075] In order to better understand the technical content of the present invention, specific embodiments are given together with the attached drawings for description as follows.

[0076] figure 1 It is a flowchart of a teaching feedback method for Java unit testing based on program static analysis in an embodiment of the present invention.

[0077] A kind of Java unit test teaching feedback method based on program static analysis is characterized in that, comprises the following steps:

[0078] S101 Static structure analysis of source program code. Use the Soot framework to analyze the control flow of the bytecode program compiled by the Java source program, obtain the control flow data of the source program, and convert them into a common data format and store them in a file. Finally, for each function of each class of the source program, a JSON format file will be obtained, which records the intermediate instruction set of each node of the static structure of the source ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a Java unit test teaching feedback method based on program static analysis, comprising the following steps: 1) source program code static structure analysis; 2) source program test requirement generation; 3) Java unit test case writing; 4) Test case coverage data collection; 5) Summary statistics of test cases and coverage data; 6) Visual display of source program static structure and coverage data; 7) Execution process display of a single test case on source program static structure. The present invention solves the problem that the Java unit test teaching task is difficult to practice and evaluate in the current software test course, provides a platform for programming practice and automatic evaluation and visual display of the Java unit test, and greatly improves the practice and evaluation efficiency of the teaching task. It helps teachers improve teaching content based on practice feedback, and helps students continuously improve their ability to write test cases based on practice feedback.

Description

technical field [0001] The invention belongs to the technical field of software testing, and in particular relates to a teaching feedback method for Java unit testing based on program static analysis. Background technique [0002] Software testing is an exploratory activity designed to help software practitioners assess the quality status of the software under test. In the complete software development process, software testing activities run through and occupy most of the time of software development projects, so excellent testers are in great demand in the industry. As a core professional course in the software engineering education system, software testing trains students to attach importance to software quality and code quality, acts as a bridge connecting education and industry, and trains excellent developers and testers for the IT industry. [0003] White-box testing is an important task in software testing teaching, and we usually take Java unit testing as an exampl...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36G09B7/04
CPCG06F11/3684G09B7/04
Inventor 陈振宇卢依宁刘子聪张智轶时清凯
Owner NANJING MUCE INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products