Font Size: a A A

Design And Implementation Of An API Interface Automated Unit Test System Based On Jenkins

Posted on:2024-06-03Degree:MasterType:Thesis
Country:ChinaCandidate:Z W YuanFull Text:PDF
GTID:2568306920994149Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the rapid development of software technology,the structure and functions of software products have become increasingly complex,and the iteration cycle of software has also become shorter and shorter.In the agile development process,it is crucial for developers to provide stable and efficient business function interfaces.Self testing by developers is also a necessary step.Due to the short development and testing cycle of agile development and testing,the workload of API interface testing is enormous,However,each product version often has a significant portion of the same testing requirements before and after the update.In order to avoid R&D personnel investing too much effort and improve work efficiency,it is urgent to design and implement an API interface automation unit testing system to meet the cross platform API interface functionality and performance automation unit testing requirements of the product.Based on the SDK API business interface testing,this paper introduces the automated testing method of continuous integration and combines with the Gtest testing framework to build an automated unit testing system that is suitable for API interface function and performance testing under different operating systems,to achieve cross platform API interface function and performance testing.Secondly,based on the analysis of system requirements,the system is briefly designed.The whole system includes six functional modules: continuous integration module,unit test module,domestic virtualization module,CMake cross platform compilation module,resource monitoring module,and test report module.The specific sub modules contained in these functional modules are shown through flow charts,and the module functions are modeled through Use Case Diagram,Describe the implementation process of each core function in detail through a sequence diagram.Combining continuous integration Jenkins tool and docker virtualization container technology with automation script,an API interface automation unit test system with compatibility and portability reaching the expected effect is realized.Finally,through the repeated testing of the API interface automated unit test system and its application in the actual testing work,as well as the comparison of the testing efficiency before and after the use of the system,the advantages of automated testing over manual testing methods are listed.At the same time,the specific test process of the system is given,so that continuous integration and automated testing can be successfully applied in the actual project,improving the testing efficiency of the API interface,Reduced development practice and costs,achieving the expected results.
Keywords/Search Tags:Continuous integration, automated testing, Docker, Google Test, Domestic platform
PDF Full Text Request
Related items