Font Size: a A A

Design And Implementation Of Unit Testing Framework Based On LINUX Platform

Posted on:2018-09-03Degree:MasterType:Thesis
Country:ChinaCandidate:J L YangFull Text:PDF
GTID:2348330533461319Subject:Information and Communication Engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of science and technology,people's production and life go to a time closely related to the Internet,which makes the rapid development of computer software,a variety of applications have been produced,such as: game software,music player software,video software,Control software and so on.The stability of the software is an important indicator of the merits of the software,so in the software development process,the software pre-test is essential.The purpose of software testing is to identify problems and errors to guide the developer to make reasonable development.Software testing methods mainly contain white box testing,black box testing,static and dynamic testing,system testing and so on,to develop a reasonable test program and the use of the correct test method is an important guarantee for the final quality of the software.Therefore,in-depth analysis and research of the software testing methods and commonly used test framework has important practical significance and application value.This paper is based on the design and research of Linux platform unit testing framework.The main research contents and tasks include:(1)Discussing the principle of software tester assignment,analyzing the importance of developing scientific software testing tasks,and proposing that software testing should be Build a Guide to Software Testing Bug History Issues and Processing.(2)Focusing on the problems that may be encountered in the testing process,and then analyzing the methods and measures that should be taken to solve the problem according to several classical test methods.Finally,it introduces the impact of Bug on the software and the use of each test method(3)The design process of the unit testing framework of the Linux platform is described in detail.In the design of the unit framework,the CUnit framework is introduced,which is a platform independent of the platform and provides a rich set of test suites and test cases.Testers can use functions such as test registry,test suite,and test case management directly.(4)Introducing the implementation of the unit test process on the CUnit framework in detail,through the preparation of Makefile,we can automatically identify the reference to the file.Firstly,three groups of tests are taken as the example to analyze the specific process of writing and executing the test cases,and the experimental data of the two groups are compared.The results show that the results of the two kinds of test cases are basically the same.Then,three kinds of unit test modes based on CUnit structure frame are experimentally tested,and their advantages and disadvantages are analyzed according to the data results.Finally,according to the shortcomings of the three test modes,this paper has been optimized.On the one hand,it increases the error display function;on the other hand,it achieves the project code coverage and test case pass rate calculation function,improving the use of CUnit structure framework Software testing efficiency.In conclusion,the research,analysis and research of software testing methods are of practical value to the software development,and the optimization of the framework in this paper is also of great significance to improve the efficiency of testing and reduce the time cost of the enterprise.In conclusion,in this paper,the research,analysis and research of the software testing method are of practical value to the software development,and the optimization of the model in this paper can improve the test efficiency and reduce the time cost of the enterprise significance.
Keywords/Search Tags:Internet, software testing, test framework, unit testing, CUnit
PDF Full Text Request
Related items