Test program plagiarism detection method based on test code fragment similarity

A technology for testing codes and testing programs, which is applied in the fields of software testing and code similarity detection, software testing code plagiarism detection, and can solve problems such as difficult detection

Active Publication Date: 2019-12-06
NANJING UNIV
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention improves the accuracy of test program code similarity detection by providing a test program plagiarism detection method based on the similarity of test code segments, and fills the gap in the test code similarity detection technology; it is used to solve the problem of ...

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
  • Test program plagiarism detection method based on test code fragment similarity
  • Test program plagiarism detection method based on test code fragment similarity
  • Test program plagiarism detection method based on test code fragment similarity

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0142] 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.

[0143] figure 1 It is an overall framework diagram of a test program plagiarism detection method based on the similarity of test code fragments implemented in the present invention.

[0144] A test program plagiarism detection method based on the similarity of test code fragments is characterized in that it includes the following steps.

[0145]Step1 Analysis of the program to be tested: Given the source program of the project to be tested, the file to be tested, the class to be tested, and the method to be tested in the program to be tested are analyzed in sequence through static analysis technology, and the name of the class to be tested, the name of the method to be tested and Parameter sequence; then, calculate the unique identifier MID of each method to be tested based on the class name, meth...

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 relates to a test program plagiarism detection method based on test code fragment similarity. The test program plagiarism detection method comprises the following steps: for each to-be-tested method in a to-be-tested program, firstly, calculating a unique method identifier based on a class name, a method name and a parameter sequence; secondly, extracting all test code fragment setsfrom the test program, wherein each test fragment corresponds to one to-be-tested method; then, analyzing the similarity between the test fragments to obtain a similarity analysis report, and calculating a similarity value between the fragments; and finally, calculating the overall similarity degree value of the test programs by utilizing the similarity value of the test fragments, and judging theplagiarism condition between the test programs more accurately by utilizing the overall similarity degree value of the test programs. The test program plagiarism detection method aims to fill the blank of a test code similarity detection technology, and solves the problems of low precision of test code similarity analysis and low efficiency of test code plagiarism detection mainly depending on manual operation at present, thereby improving the efficiency and precision of test code similarity detection.

Description

technical field [0001] The invention belongs to the field of software testing and code similarity detection, is especially suitable for the field of software testing code plagiarism detection, and solves the problem of difficult detection of plagiarism between test codes submitted by developers and testers in software testing competitions. By detecting the similarity of the test code fragments more accurately, it is possible to judge the overall degree of plagiarism between the test programs, avoid time-consuming and labor-intensive manual detection operations, and improve the efficiency and accuracy of test code plagiarism detection. Background technique [0002] Copying and pasting source code is a common activity in software engineering. Copying and pasting code can be both beneficial and harmful. On the one hand, software reuse can quickly improve coding efficiency, which is a view that most software developers agree with. Therefore, in the process of software developm...

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): G06F8/75G06F11/36
CPCG06F8/751G06F11/3684G06F11/3688
Inventor 陈振宇孙伟松王兴亚段定巫浩然赵源孙泽嵩
Owner NANJING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products