Font Size: a A A

Research And Application Of The Instrumentation In Embedded Software White-Box Testing

Posted on:2011-04-23Degree:MasterType:Thesis
Country:ChinaCandidate:C LuFull Text:PDF
GTID:2178360305954112Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With embedded software testing development, in areas that require high reliability, the requirements on white-box testing are higher and higher. Research of embedded software white-box testing technology has become a hotspot in IT field. It is an effective and practical method to implement the embedded software white-box testing thchnology. Many foreign institutions and companied have research thoroughly and carefully on instrumentation technology. But in our country the research of instrumentation technology is slightly behind, more using foreign products. This increases the white-box testing costs.As an effective and practical method to implement embedded software white-box testing technology, the main task of this paper is that research of two questions: code expansion and program executed efficiency in instrumentation technology, then using GCC as the development platform to implement the instrumentation technology. According the characteristics of embedded software testing, the paper analyzes that instrumentation technology will have two major quesions: code expansion and program executed efficiency. For the two problems, the paper designed improved instrumentation model. After a series of research, the paper proposed to use replacement macro definition and strategy instrumentation to solve the problem code expansion and improve the executed efficient. Because uncertainty embedded software, Specifically propose to optimized code on the abstract syntax tree to eliminate redundant information algorithm. then insturmentating code. Because there is not UI, propose to module probe instrumentation strategies, facilitate the testing of embedded software. Because there is limited resoures, Specificall designed the probe function that is responsible for data collection and transmission. Data storage and analysis carried out in the cartridge library. At the same time, the paper relized the statement coverage, branch coverage algorithm for coverage calculation, then studied the MC/DC coverage criteria, implemented MC/DC testing process. The subject is using GCC compiler for the development platform, and implement abstract syntax tree to eliminate redundant information algorithm, that provides a solution for code expansion and instrumentation efficiency. Last through experiments compared instrumentation model was proved the feasibility and validity.Abstract syntax tree to eliminate redundant information algorithm is applied to instrumentation technology in this paper for the first time. It make more rapid and accurate determination of the location of instrumentation point, to some extent, solve the code expand and instrumentation efficiency by instrumentation technology. At the same time, implement the strategy instrumentation, further resolved instrumentation thchnology problems arising. Because of GCC as a platform for research and development, we can use GCC's highly optimized and highly portability. Instrumentation technology can be applied to a wider range of areas.
Keywords/Search Tags:Instrumentation, White-box testing, Coverage rate, GCC, Code expansion, Abstract Sysntax Tree
PDF Full Text Request
Related items