Application Interface Automatic Testing Framework Design and Implementation of Embedded System Based on Lua Script

Author
YiLiNa
Advisor
LuZuo , LuZhiXing
School
South China University of Technology
Major
Software Engineering
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2013
Downloads
8
Citations
0

Request the full text

Abstract

This thesis is researching the automatic testing framework based on embedded systemcomponents and middleware interface, in order to meet the embedded product high qualitydemand.Nowadays, the embedded R&D enterprises are faced a common problem, that is, in theOEM development, they should provide different UI requirements or specific features ofproducts for different customers according to the various needs based on the same type ofproduct. It is very important to provide an embedded platform for a certain type of product, inorder to increase the rate of code reuse, reduce the amount of code changes, improve productquality and shorten product release period. Therefore, the embedded platform has becomeincreasingly modular. The problem is that there are more and more defects are exposed onthose modules in the practical application. What is more, it is difficult to locate the defects,which extend the debug phase and make product unstable. However, the cost of unit testbased on the function level is too high, in fact, it is impossible to be implemented in theenterprises. How to organize efficient testing to ensure the quality of those modules hasbecome a really difficult problem for many enterprises. In order to resolve this phenomenon,based on the author’s many years of practical experience and literature research, this thesisprovides an API testing framework, which can involve in the project in the early stage todetect the hidden defects, improving product quality, easily locating the problem andshortening the issue fixing period.This thesis researches module-level API for automatic testing framework based on theLua script interpreter, which is small, fast and open-source, has no platform restrictions andcan be easily extended. The testing framework is divided into five parts: test functions sets,the Lua interpreter, the script sets, the control set and supplementary set, achieving the APIautomatic testing on the embedded system, through loading test function sets dynamically,parsing Lua script.The features of the testing framework are the following:1) Separating business logic, test data from test code, simplifying the test code maximally,enhancing test code reuse rate, and speeding up the test code development;2) The business logic is implemented in the script, which can make the test designerfocus on the business logic;3) Carrying out automatically, according to the testing instructions through parsing Lua script;4) Providing general templates of the Lua script to simplify the Lua script developmentwork greatly.

Table of contents

Summary 5-6 ABSTRACT 6-11 first chapter 11-15 1.1 Significance 11-13 1.1.1 Status and Prospects meaning 12-13 1.1.2 Research 13 1.1.3 the purpose of the study 13 <br / > 1.2 papers main job 13-14 1.3 dissertation structure 14-15 Chapter II embedded system interface test technical analysis 15-27 2.1 embedded Software testing Overview 15-18 2.1.1 embedded system Definition 15 2.1.2 embedded general structure 15-16 2.1.3 embedded system development features 16-17 2.1.4 embedded Software Testing 17-18 2.2 interface test 18 - 24 2.2.1 Interface test definition 18-23 level 2.2.1.1 Interface testing 18-20 test type 2.2.1.2 Interface testing 20-21 2.2.1.3 embedded interface test methods and environmental 21-23 2.2.2 Interface significance testing 23 2.2.3 Embed difficulties interface testing 23-24 2.3 interface test automation 24-26 2.3.1 software test automation concept 24-25 2.3.2 software test automation technology 25 2.3.3 API level automated testing 25-26 2.4 Lua scripting language Introduction 26-27 Chapter III API -level automated testing requirements and the overall framework 27-36 3.1 embedded Interface level automated testing needs 27-29 3.1.1 test environment 27 3.1.2 test data and test code separation 27-28 3.1.3 interfaces separating business logic and test code 28-29 3.1.4 automatic perform tests 29 3.1.5 automatically generate test results 29 3.1.6 process Monitoring 29 3.1.7 has better readable sex and scalability 29 3.2 Lua script 29-30 3.2.1 Why have scripting 29-30 3.2.2 Why select Lua 30 3.3 overall framework for embedded automated test 30-34 3.4 API -level automated testing framework 34-36 Chapter IV Interface level automated testing framework for design and implementation 36-61 4.1 interface-level automated testing framework designed 36-39 4.2 script interpreter 39-44 <br / > Design and Implementation 4.3 test function set 44-54 4.3.1 test set of functions available to Lua calls achieve 45-48 4.3.2 library to be tested requirements 48-50 4.3.2.1 provides functionality 48 4.3.2.2 External packaging prototype 48 4.3.2.3 function named 48-49 4.3.2.4 function of input and output parameters 49 4.3.2.5 comment 49-50 interfaces nbsp 4.3.3 provided ; 50-52 4.3.4 realized Sample 52-54 4.4 script set design and implementation 54-58 4.4.1 defines the overall structure 54 4.4.2 each module functions defined 54-56 4.4.2.1 initialization definition section 54 4.4.2.2 generic function part 54-55 4.4.2.3 test Interface generic function 55 4.4.2.4 Case definitions achieve some 55 4.4.2.5 Case Group to achieve some defined 55-56 4.4.2.6 call flow part 56 4.4.3 invoke rules define 56 4.4.4 Sample 56-58 4.5 test Control script design 58-59 4.6 assisted design 59-61 4.6.1 log information obtained 59-60 <br / > 4.6.2 monitoring information acquisition 60-61 Chapter V operating results and analysis 61-75 5.1 test environment 61 5.1 .1 hardware environment 61 5.1.2 software environment 61 5.2 use effect 61-72 5.2.1 open Lua script interpreter 61-62 5.2.2 load test function set 62-64 5.2.3 using the script file run the test 64-72 5.3 effect Analysis 72-75 5.3.1 original API interface test methods 72-73 5.3.2 API interface test methods using Lua formed 73-75 <br / > Chapter VI summary and Outlook 75-76 6.1 summarizes 75 6.2 Prospects 75-76 References 76 -78 studying for a master's degree obtained during research 78-79 Thanks 79-80 defense defense committee resolution book 80

Related dissertations

  1. Research on the Coordination Management of Large-scale Project Interface of Chemical Enterprise
  2. Research of Layer-model of the Long-term Preservation of Digital Information Based on OASI
    ZhangBo ·Liaoning Normal University ·2013 ·Master's thesis
  3. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  4. The Study of Remote Video Monitor System Baced on ARM
    GuoZuo ·Hebei University of Technology ·2012 ·Master's thesis
  5. Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
    JinPing ·Central South University ·2013 ·Master's thesis
  6. Video Surveillance System Based on Embedded Technology Research
  7. Design of Video Monitoring System Based on the Embedded
  8. The Design of Embedded Network Video Surveillance System Based on ARM9
  9. Research and implementation of remote monitor system of ship based on the technology of the Internet of things
  10. Design of Video Surveillance Software Based on Ti Dm6446Processor
    YuanWei ·Zhejiang University of Technology ·2013 ·Master's thesis
  11. Data Acquisition System of Cavern Based on Embedded Web Server
  12. Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
    LiuDaoLin ·Dalian Polytechnic University ·2008 ·Master's thesis
  13. Research on the Indoor Air Monitoring System Based on Embedded Linux
  14. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  15. Automatic Switcher Based on Embedded System Design and Implementation of Test Platform
  16. Research on Meteorological Data Acquisition and Processing System
    ZhaoSheng ·Wuhan University of Technology ·2013 ·Master's thesis
  17. The Research of the Design and Application for Embedded Remote Terminal Unit
    XiaRui ·Northeastern University ·2013 ·Master's thesis
  18. Design and Implementation of Magnetic Card Detection System Based on Embedded System
  19. Design of distributed control system based on embedded platform
    JieZhouKai ·Xi'an Optics and Fine Mechanics ·2010 ·Master's thesis
  20. Design and Implementation of Car Embedded Systems to Multimedia Intelligent Terminal
    LiShun ·Northeastern University ·2012 ·Master's thesis