Font Size: a A A

Design And Implementation Of Test Case Reuse Model Based On Case-Based Reasoning

Posted on:2009-01-28Degree:MasterType:Thesis
Country:ChinaCandidate:Z F ZhaoFull Text:PDF
GTID:2178360245487735Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the rapid development of software today, software testing is becoming the most important method to assure its quality and reliability. The traditional labor-intensive manual testing has been unable to meet the needs of software testing. Automated testing provides a successful solution to this. As a new branch of software testing, more and more scholars and research institutions pay much attention to automated testing. The wise choice of test cases for software testing plays a vital role in the success of testing. The design and implementation of test case is becoming the core study of people. The efficient way of test case generation becomes the focus of research in the testing field.The purpose of test case design is to identify a group of data and processes which are most likely to find out the mistakes or errors of certain types and achieve its functional test, etc. Because the software test case design mostly depends on the testers'personal experience, and the format of test cases varies from different testers, the actual testing jobs have great blindness. All these lead to that the software maintenance costs account for a large proportion of the whole software's costs. Test reuse is software test in which the reuse thinking is applied in the testing process. It makes full use of the past outcomes, accumulated knowledge and experiences to the development of new tests. The reuse of test case resolves the issue of experience lack, and can avoid duplication of effort. Testers can greatly improve the efficiency of software testing through test case reuse.Software reuse and component have achieved great success in the field of software engineering. There has also been a large number of available high-quality test cases in the field of automated testing. However, the software testing research mainly concentrated in the test methodology, people pay little attention to the test case reuse and it's not well developed. To resolve this, this paper Design and implement a platform which is based on case-based reasoning, featured cross-platform and can adaptation to software changes, etc. This study is based on actual deficiencies in the software testing, then turn to study the theoretical to obtain the solution to the problem. Finally, an example system is given to prove the rationality and effectiveness of the solution. The whole research includes the following listed:Software testing and automated testing related theories, automated testing tools, test cases design and implementation methods; CBR fundamental theory and its key technology. On the basis of theoretical research, the paper put out a model which applies the CBR retrieve reuse method in the test case reuse field.The paper presents the principles and processes of the reuse model. It describes the method of test case design and establishes sample automated test cases base at first. Then the test cases are pretreated: the information of the cases is extracted and weight configured. The pretreatment will output an XML format file containing all the information. The XML technology can improve software reuse ability to provide a unified description of the framework of norms. It describes structured information in the form of simple and common text format. The model transforms the user's input of the new tests'conditions to XML retrieval files. Through the CBR retrieval, as well as the model's amendment, the model will eventually output test cases which adapt to the new test objectives.The paper focuses on the introduction of the test case pretreatment, CBR retrieval algorithm, and case revise. And also gives an instance system to verify the practicality and effectiveness of the model. The CBR based test case reuse model provides high test coverage test cases for the testers. This model improves the quality of test case and efficiency of software testing, shortens the cycle of the software testing, and saves the cost of testing.
Keywords/Search Tags:Software Testing, Automated Test, Test Case, Software Reuse, Test Case Reuse, Case-Based Reasoning (CBR), XML
PDF Full Text Request
Related items