Font Size: a A A

The Design And Implementation Of Test Code Plagiarism Detection System Based On Program Slicing

Posted on:2021-04-21Degree:MasterType:Thesis
Country:ChinaCandidate:D DuanFull Text:PDF
GTID:2428330647950835Subject:Engineering
Abstract/Summary:PDF Full Text Request
Software testing is one of the important means to ensure the quality of software products,and it is also an important part of the software education curriculum.In order to improve learning efficiency and reduce learning costs,a large number of online practice platforms focusing on software testing technology training have emerged.Although many online test practice platforms have been able to achieve large-scale test development training,students do not train in a closed field,they train online in different places,there is a great possibility of copying each other at this time,how to ensure the quality of training becomes a problem.Therefore,the test code plagiarism detection becomes one of the key measures for all online test practice platforms to effectively control the training quality.However,it is not advisable to detect massive test code by means of manual audits,which requires a lot of human resources.Therefore,how to realize automatic code plagiarism detection to reduce audit cost is one of the current challenges.In order to solve the above problems,this thesis deeply analyzes the test code designed under the unit test framework and production code,explores the potential differences between them,designs and implements a test code plagiarism detection system based on program slicing.In order to achieve high-quality test code plagiarism detection,this system innovatively proposes a static two-way program slicing technology,extracting effective test fragments from non-standard test code based on the method under test,further calculates the similarity between test fragments,and carries out plagiarism analysis based on similarity.According to this idea,the system can be divided into five functional modules: method under test extraction,test fragment extraction,similarity calculation,plagiarism analysis and test report generation.The front-end of the system adopts the Angular2 framework technology,uses the Spring Boot technology to build the back-end framework,and stores information data through the My SQL database.In order to ensure the high scalability and availability of the system,Nginx is selected to achieve load balancing and Redis is selected as the cache.After a series of strict system tests,the system has achieved functional and nonfunctional requirements,which measures up to the anticipative assumptions.Through the analysis and verification on a large number of real datasets,the experiment results show that the system can effectively detect the plagiarism of test code,and the system has good robustness through performance analysis.Therefore,the system can improve the accuracy of test code plagiarism detection,greatly saving labor costs,and the system plays a positive role in promoting the construction of test plagiarism detection ecology.
Keywords/Search Tags:Test Code, Test Fragment, Plagiarism Detection
PDF Full Text Request
Related items