Automatic Testing for Classes in Object Oriented Design

Author
HuangYuPing
Advisor
WangQun
School
Chinese Geology University (Beijing)
Major
Applied Computer Technology
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2007
Downloads
134
Citations
1

Request the full text

Abstract

With the continuous development of computer technology, software complexity has been greatly improved. The software is increasingly prominent. Therefore, to improve software quality and reliability has become an important task for the current field of software engineering. Software testing is an important way to ensure software quality. Object-oriented software testing is an important part of object-oriented software development is the key to ensure the quality of the software and improve software reliability. The rapid development of object-oriented software technology makes research and development of object-oriented software testing tool has become a top priority. Therefore, this paper will test the characteristics and methods of the object-oriented software as an object of study, discusses the basic features of object-oriented software testing, testing object-oriented mechanisms between object level software testing division as well as class-oriented the test sequence. Based on the above, we have chosen the automatic test based on the class of service as the focus of the study. The type of test is the key to object-oriented software testing, object-oriented software testing is divided into three levels: the class level testing, cluster level testing and system level testing. Class-level test their test steps can be divided into three levels: the test based on the class of service, state-based class testing, based on the response of the state class test three service-based test main test class per way to a service; tests are mainly based on the state visits instance of the class in its life cycle state; based on the response of the state test from the responsibility of classes and objects, a specific sequence of messages sent to the object to the outside world test the response status of each object. In this paper, a test method based on the class of service, an object-oriented class service level test automation. This automation mainly from the following three aspects: 1, the use of some of the properties and the nature of the System.Reflection, System.Type class to automatically learn the application under test classes, methods, as well as a variety of properties, which is behind the automatic tests to gather information for a variety of classes, methods, and using Excel.dll mechanisms to store information; 2, the use of XML technology to read data stored in the application under test, the test cases, saved in an XML document from the XML document read these use cases, and then stored in the EXCEL spreadsheet; using powerful System.CodeDom namespace class to write code, generate test class namespace, class, and various methods of test scripts, and read Excel spreadsheet data as a test case, test script generation, and the code automatically perform testing tasks, and the test results are stored in an Excel spreadsheet. This article focuses on the principle of the technology and programming process.

Table of contents

Summary the 5-6 Abstract 6-8 1 Introduction 8-12 1.1 software testing technology development and the status quo -10 the 1.2 research purposes and significance I work 10-11 1.3 topics 11-12 software testing 12 - 17 2.1 software test definition 12 2.2 software testing purposes 12-14 2.3 software testing strategy 14-15 2.4 software testing process 15-17 object - oriented software testing 17-30 3.1 object-oriented programming features 17-19 3.2 features of object-oriented software test 19-22 3.3 object-oriented software testing strategy 22-25 3.4 test level division 25 -30 4 object-oriented programming of automated testing to achieve the 30-72 4.1 to be tested class information access 31-38 4.2 obtained information storage 38-57 4.3 automatically generates test scripts 57-69 4.4 running test tools the 69-72 5 summarizes Looking 72-73 Acknowledgements 73-74 References 74-76 biographical notes 76

Related dissertations

  1. Object-Oriented Software Testing Method and Application in Composite Explosives Detection System
  2. Digital Voice Teaching System Design and Implementation of Object-Oriented Programming
    HuZuoZuo ·Hunan University ·2011 ·Master's thesis
  3. Study on the Techniques for Testing Client/Server Software System
    LiXiaoJiang ·Northwestern Polytechnical University ·2002 ·Doctoral dissertation
  4. Object - oriented software testing research
    YaoZuo ·Zhejiang University ·2002 ·Doctoral dissertation
  5. Study of the Theory and Techniques for Testing Object-Oriented Software
  6. Software Design for Control System of Electro-hydraulic Three-axis Flight Simulator
    KongJie ·Harbin Institute of Technology ·2012 ·Master's thesis
  7. The Design and Implementation of Website Construction Based on OpenCms Technology
  8. And the realization of software testing reuse management subsystem design
  9. Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
    XiongLiPing ·Hunan University ·2013 ·Master's thesis
  10. Design and Implementation of Materials Management System of Multi-level Educational Institutions
    PeiZhiChao ·Northeastern University ·2013 ·Master's thesis
  11. Research on software testing technology based on complex network theory
  12. Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
    FuLiYu ·Shanghai Jiaotong University ·2013 ·Master's thesis
  13. The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
    YaoZuo ·Harbin University of Commerce ·2013 ·Master's thesis
  14. Research of Software Testing Method Based on Cloud Computing
  15. Research on Path-oriented Test Data Generation
    WangShiTao ·Hunan University ·2013 ·Master's thesis
  16. Design and Implementation of Ji’nan Waterconservancy Bureau Covers Security Information System
    MaShiTao ·Shandong University ·2013 ·Master's thesis
  17. Research on Process Improvement in Y Co. Based on CMM
    FengFei ·China Academy of Railway Sciences ·2013 ·Master's thesis
  18. Method Research and System Development of Software Automatic Testing
    LiangYueYuan ·Chang'an University ·2013 ·Master's thesis
  19. Research and implementation of TaaS test management services
    YangDan ·Northwestern University ·2013 ·Master's thesis
  20. The Design and Implementation of Sinopec Sales Co.,Ltd Personnel Management System
    LinYan ·Dalian University of Technology ·2013 ·Master's thesis