Font Size: a A A

Application Interface Automatic Testing Framework Design And Implementation Of Embedded System Based On Lua Script

Posted on:2014-04-03Degree:MasterType:Thesis
Country:ChinaCandidate:L N YiFull Text:PDF
GTID:2268330401459003Subject:Software engineering
Abstract/Summary:PDF Full Text Request
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.
Keywords/Search Tags:Embedded System, Test Framework, Interface, Lua
PDF Full Text Request
Related items