Embedded software testing pile inserting method based on logic execution block

An embedded software and stub-instrumenting technology, applied in the field of embedded system testing, can solve problems such as unfavorable program structure analysis, disturbing program hierarchical relationship and nesting relationship, etc., and achieve the effect of easy analysis and processing and reducing the amount of code

Active Publication Date: 2012-06-27
陕西埃菲克能源科技有限公司
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this kind of method disrupts the hierarchical relationship and nesting relati

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Embedded software testing pile inserting method based on logic execution block
  • Embedded software testing pile inserting method based on logic execution block
  • Embedded software testing pile inserting method based on logic execution block

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] to combine figure 1 And embodiment the present invention is described in further detail:

[0029] 1. Organize the program under test, complete the start and end curly braces of each logical execution block, and generate the line number correspondence of the files before and after sorting. Then, according to the different coverage types, the branch statement and loop statement in the program are processed. The specific strategies are as follows:

[0030] (1) If it is a statement coverage test, no processing is required.

[0031] (2) If it is a judgment coverage test, add a branch when the condition is not true to the do-while statement, complete all if statements that lack else, and add an else branch. The added branch does not contain specific execution statements, but acts as a logical execution block.

[0032] (3) If it is a conditional coverage test, a decision / conditional coverage test, or a conditional combination coverage test, the preprocessing methods are th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an embedded software testing pile inserting method based on a logic execution block. Firstly a tested program is pretreated according to different coverage testing types. Secondly a structure of the tested program is analyzed to obtain information of statement types, hierarchical relationships, nesting relationships and the like. The tested program is divided according to the information and a logic execution relationship, a probe function is respectively inserted in an inlet position and an outlet position of each logic execution block. The tested program after inserted a pile is operated, pile information is collected, and execution times of sentences of pile inserting point is stated. Finally execution times of the sentences in each section of a code is determined according to the statement types of the pile inserting point and the hierarchical relationships and the nesting relationships of the tested program. The method can clear up the hierarchical relationships and the nesting relationships of the program, and calculates various covering rates including statement covering, judgment covering, condition covering, judgment/condition covering and condition combination covering. The embedded software testing pile inserting method is based on code block pile inserting, greatly reduces expansion ratio after program pile inserting, and reduces influences of the Heisenberg effect on real-time testing.

Description

technical field [0001] The invention belongs to the technical field of embedded system testing, and in particular relates to an embedded software testing method based on logic execution blocks. This method can complete various coverage tests of embedded software, can accurately and quickly analyze the execution times and coverage rate of statements, greatly reduces the expansion rate after program insertion, and reduces the impact of the Heisenberg effect on real-time testing. influences. Background technique [0002] Software testing refers to the effective control of software quality in the whole life cycle of software development, which is an important guarantee of software quality. According to statistics, testing can reduce software defects by at least 75%, thereby reducing software investment risks and increasing return on investment. [0003] Code coverage testing is an important index to evaluate the quality of software testing. It evaluates the credibility of test...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
Inventor 王忠民霍艺伟梁琛王文浪范琳
Owner 陕西埃菲克能源科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products