A test program plagiarism detection method based on the similarity of test code fragments

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: 2021-07-06
NANJING UNIV
View PDF4 Cites 0 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 detecting software test contestants The problem of cheating and plagiarism is difficult to detect, helping test competition organizers reduce the workload of manual detection of cheating and plagiarism, and also improve the efficiency of cheating detection, ensuring a fairer software testing competition

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
  • A test program plagiarism detection method based on the similarity of test code fragments
  • A test program plagiarism detection method based on the similarity of test code fragments
  • A test program plagiarism detection method based on the similarity of test code fragments

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0145] FIG. 1 is an overall framework diagram of a test program plagiarism detection method based on similarity of test code segments implemented in the present invention.

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

[0147] 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, method name an...

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 segment similarity. This method is aimed at each method to be tested in the program to be tested. Firstly, the unique method identifier is calculated based on the class name, method name, and parameter sequence; secondly, a set of all test code fragments is extracted from the test program. The corresponding method; then, analyze the similarity between the test fragments to obtain the similarity analysis report, and thus calculate the similarity value between the fragments; finally, use the similarity value of the test fragment to calculate the overall similarity value of the test program, and use the overall test program The similarity value can more accurately judge the plagiarism between the test programs. The purpose of the present invention is to fill in the blank of test code similarity detection technology, solve the low precision of test code similarity analysis and the low efficiency of test code plagiarism detection mainly relying on manual operation, thereby improving the efficiency and accuracy 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
Patent Type & Authority Patents(China)
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