Design and Implementation of Test Case Reuse Model Based on Case-Based Reasoning

Author
ZhaoZhongFang
Advisor
WeiZhiQiang
School
Ocean University of China
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
96
Citations
4

Request the full text

Abstract

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.

Table of contents

Abstract 5-7 Abstract 7-12 1 Introduction 12-18 the research 1.1 Background 12-13 1.1.1 software testing problems faced 12-13 1.1.2 to solve the problem of the main countermeasures 13 1.2 Development of domestic and foreign 13-16 1.2.1 Foreign Development Analysis 14-15 1.2.2 domestic development analysis 15-16 1.3 research content and significance 16-17 1.3.1 research 16 1.3.2 research significance 16-17 1.4 thesis structure 17 1.5 This chapter Summary 17-18 2 key technology research 18-36 2.1 software testing technique 18-31 2.1.1 software testing theory research 18-19 2.1.2 automated testing theoretical research 19-24 2.1.3 mainstream testing tools introduced 24-28 2.1.4 test case theoretical research 28-31 2.2 CBR theoretical research 31-34 2.2.1 the CBR principle 31 2.2.2 CBR key technology 31-33 2.2.3 In this paper, the need for the introduction of the CBR analysis 33-34 2.3 This chapter Summary 34-36 3 test case library establishment 36-50 3.1 test environment to establish 36-38 3.1.1 ready condition 36 3.1.2 TestMaker the installation and configuration 36-37 3.1.3 TestMaker user environment 37-38 3.2 use case design methodology 38-39 Design and Implementation of the 3.3 base class 39-41 the 3.3.1 base class design 39-40 3.3.2 base class implementations 40-41 3.4 test case design and implementation 41-48 3.4.1 testing process design 42 the 3.4.2 test data design 42-46 3.4.3 test scripts to achieve 46-48 3.4.4 run the example 48 3.5 This chapter Summary 48-50 the design ideas based the CBR test case reuse model 50-54 4.1 model principle 50-51 4.2 process flow model 51-52 4.3 model advantages 52-53 4.4 This chapter Summary 53-54 5 based the CBR test case reuse model design 54-60 5.1 reuse PreparedStatements 54-57 5.1.1 reuse the significance of the pretreatment 54 5.1.2 reuse pretreatment principle 54-55 5.1.3 reuse the implementation process of the pretreatment 55-56 5.1.4 documentation example use case retrieval mode 56-57 5.2 CBR module retrieval algorithm 57-58 5.3 use cases correction 58-59 5.3.1 Dynamic correction 58-59 5.3.2 manual correction 59 5.4 This chapter Summary 59-60 the instance of the application development and system validation 60-66 6.1 database design and implementation 60-61 6.2 model system instance 61-64 6.2.1 system overall architecture 61-62 6.2.2 system layers to achieve 62-63 6.2.3 System Interface Example 63-64 6.3 Chapter Summary 64-66 7 Summary and Outlook 66-68 the References 68-71 Acknowledgements 71-72 The biographical papers published during the study period 72

Related dissertations

  1. Research on Web Service Testing Model and Testing Approach Based on Agent
    LiuShengLan ·Hunan University ·2011 ·Master's thesis
  2. The Research and Design of Test Case Generation Tool Based on Constraint Programming
  3. The Research and Implementation of Reusable Software Asset Management
    GuoJia ·Donghua University ·2009 ·Master's thesis
  4. Research on Software Test Module of Lead-free Solder Paste Printed Equipment
  5. Research and Application on Unit Testing Technology for Object Oriented Program by CppUnit
  6. Testing for Selecting Atm Equipments Based on Event-Driven
  7. N3806Mobile Phone Black Box Testing Management and Method
  8. Nuclear power software testing research based on local continuity
    LiuLiNa ·Nanhua University ·2013 ·Master's thesis
  9. Test Case Generation and Management
  10. Website Design and Implementation of Mobile Phone Sales
  11. Design and Implementation of Radar System Modeling and Simulation Software Based on Components
  12. The Design and Implementation of Software Testing Architecture of Wireless Sensor Networks
  13. Research on Analysis and Testing Techniques of Object-Oriented Programs
  14. Research and Implementation of Testing Techniques for UML
  15. Reuse Strategy and Its Implementation on Software Testing and Evaluation
    XiaQiMing ·Wuhan University ·2010 ·Doctoral dissertation
  16. Research on Some Key Technology of Software Testing Reuse Based on Formal Method
    CaiLiZhi ·Shanghai University ·2009 ·Doctoral dissertation
  17. Key Technology Research service grid environment scenario testing
    LiuZhenYu ·Fudan University ·2010 ·Doctoral dissertation
  18. Software Testing Study and Its Implementation in Multimedia Network Teaching System
  19. Research and Application of Software Unit Test
    FengLi ·Central China Normal University ·2008 ·Master's thesis
  20. Research and Application of a Test Case Generation System Based on Exploratory Testing
    LianRongZheng ·Beijing Jiaotong University ·2008 ·Master's thesis