Research on Unit Test Methods of Special Transformer Acquisition Terminal Based on Embedded Linux

Author
ZhouYunBo
Advisor
YangJingYan , GuWeiBin
School
North China Electric Power University
Major
Electrical Engineering
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2012
Downloads
42
Citations
0

Request the full text

Abstract

In accordance with the general requirements of the State Grid Corporation of building a strong and smart grid, the industry is vigorously the construction of the information collection system. Special transformer acquisition terminal is to collect information of users of electricity using a dedicated transformer equipment, mostly developed with ARM9platform and embedded Linux operating system. Due to the nature of the embedded system software:operating environment resources are scarce, and less testing tools, currently more domestic research for embedded systems software testing, system testing, but few software module unit-level test, so it is necessary to change the method of collection terminal unit test based on embedded Linux designed.In this paper, Special transformer acquisition terminal unit test method, summed up in the actual work discusses the generic unit test method based on embedded Linux software, specific contents are as follows:(1) Steps of the unit test activities, is also divided into four steps:plan, design, implementation, and execution;(1) Unit testing activities, including the detailed design stage of document review, unit testing, model design, unit test case design and coding phase of the code to view the dynamic execution of test;(3) Code to view the use of relevant tools specification checking, resource bounds checking, grammar problems, check the Day for code changes;(4) Unit test output documentation to comply with the test acceptanceIn addition, accordance with the needs and draws at home and abroad on the basis of a variety of unit testing tools, exploration and research applicable specifically to change the special transformer acquisition terminal development process of unit testing several tools, and detailed study of the use of tools, in order to promote the use of keeping continuous innovation, focuses on the special transformer acquisition terminal software code review concerns, how to use PC-Lint code checking, and how to use the CppUnit tool for unit testing the dynamic execution, how to use the tool Ccmalloc/Valgrind is a memory leak check.

Table of contents

Summary 5-6 Abstract 6-10 Chapter 1 Introduction purpose and meaning 10-15 1.1 Background and research topics 10-11 1.2 embedded systems and embedded systems software testing development overview 11-13 1.3 embedded software testing and abroad 13-14 <br / > 1.4 This article contents 14-15 Chapter 2 Embedded software unit Testing 15-26 2.1 variable collection terminal designed system architecture and software hierarchy 15-16 2.1.1 designed to test the effect of varying the terminal unit comparative analysis 16 2.2 embedded software unit testing 16-18 2.2.1 unit testing Life cycle 16-17 2.2.2 unit Testing formal description 17-18 2.3 detailed design process early intervention work 18-19 2.3 .1 design document review 18-19 2.3.2 test case design 19 2.4 coding phase of unit testing 19-22 2.4. 1 Code View 20 2.4.2 Lint code checking 20-21 2.4.3 code memory check 21 2.4.4 dynamic test execution 21-22 2.5 unit testing tool described 22-23 2.6 test code directory structure 23-24 writing test code specification 2.7 24 2.8 test acceptance 24-25 2.8.1 unit testing process documentation 24 2.8.2 unit testing products 24 -25 2.8.3 unit test acceptance 25 2.9 Summary 25-26 Chapter 3 terminal software code review techniques designed research variables collected 26-33 3.1 overall combined PC-LINT code view ; 26-30 3.1.1 operator precedence problems 26-27 3.1 .2 memory leaks 27 3.1.3 bounds array access problems 27-29 3.1.4 programming normative questions 29-30 3.2 specific issues thread safety inspection 30-31 3.3 using the code BEYONDCOMPARE commuting 31-32 3.4 Summary 32-33 4 embedded LINUX under Chapter memory leak check test 33-37 4.1 Introduction 33 4.2 tools for use CCMALLOC memory leak checking 33-34 4.3 VALGRIND tools for memory leak checking 34-36 4.4 Summary unit test 36-37 Chapter 5 based CPPUNIT tools of 37-44 5.1 Introduction 37 5.2 how to use CPPUNIT 37 5.3 CPPUNIT using the steps 37-39 5.3.1 define test parts 37-38 5.3.2 expectations assertion , the test results match 38 5.3.3 Creating test sets 38-39 5.3.4 execution units test 39 5.3.5 browser test results 39 5.4 MONEY class unit test sample analysis 39-40 5.5 CPPUNIT tool application mode 40-41 5.6 CPPUNIT EXCEL macro tools and tools used in conjunction 41-43 5.7 Summary 43-44 Chapter 6 on PC design and Implementation -LINT and EXCEL macro code review tool 44-49 6.1 Introduction traditional use 44 6.2 PC-LINT of 44-45 6.3 PC-LINT and EXCEL -based code review tool 45-48 6.5 Summary 48-49 Chapter 7 conclusions and Outlook 49-50 References published 50-53 master's degree theses and other outcomes 53-54 Thanks 54-55 About the Author 55

Related dissertations

  1. Design of remote meter reading system based on GPRS network
  2. Research and Implementation of PKCS#11Test Platform
    TangWeiZhong ·Beijing Jiaotong University ·2014 ·Master's thesis
  3. Code Coverage Analysis and Path Selection Technology Research and Application
  4. Research and Implementation of Automatic Stub Generation Technology in Unit Test
  5. Research on the Testing Method of Safety Critical Software and Its Application in the Testing of CTCS-3On-board Equipment
    ZhouRong ·Beijing Jiaotong University ·2012 ·Master's thesis
  6. Aspect-oriented Programming-based Unit Test Effectiveness Detection System
  7. Research and Design of Automatic Software Fault Locatlization Technology in Unit Test
  8. Design and implementation of online bookstore system based on Struts Framework
  9. Research and Implementation of Automated Testing for Communication-based Train Control Platform
  10. Research on nuclear power software unit test suite reduction
    ZhuLingLi ·Nanhua University ·2013 ·Master's thesis
  11. Research on Memory Leak Detection of C/C++Code
    Wang ·Dalian University of Technology ·2012 ·Master's thesis
  12. Research on Static Analysis of Memory Errors in C Programs
  13. The Design and Implementation of a Static Analysis System in Source Code
  14. The Research and Implementation of a Memory Leak Detective Technology
    WangZuo ·Beijing Jiaotong University ·2008 ·Master's thesis
  15. Research and Implementation on Unit Test Based Network Management System
  16. Research of Dynamic Memory Management Method on Real-Time Embedded System
    LiZhiJun ·Chongqing University ·2007 ·Master's thesis
  17. The Study and Implementation of Unit Test System for C++ Programs
    LiYan ·Shenyang University of Technology ·2007 ·Master's thesis
  18. Dynamic memory management fault test programming language model
    ZhangHong ·Zhengzhou University ·2006 ·Master's thesis
  19. In the SGSN side GTPC protocol design , implementation, and testing
  20. Motor vehicle management information system development
    LiuJiangTao ·Zhejiang University ·2004 ·Master's thesis