Automated evaluation method for binary code coverage of testing case set for executable program

A technology of binary code and test case set, applied in the field of automatic evaluation of binary code coverage of test case set, to achieve the effect of improving quality and high accuracy

Active Publication Date: 2015-02-25
JIANGNAN INST OF COMPUTING TECH
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, there is no automated system solution or mature tool support for evaluating the code coverage of test case sets by analyzing assembly instructions

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
  • Automated evaluation method for binary code coverage of testing case set for executable program
  • Automated evaluation method for binary code coverage of testing case set for executable program
  • Automated evaluation method for binary code coverage of testing case set for executable program

Examples

Experimental program
Comparison scheme
Effect test

specific example

[0070] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the application examples of the solutions of the present invention will be described below, obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention shall fall within the protection scope of the present invention.

[0071] The code coverage evaluation method of the present invention can obtain the binary code coverage information of the test case set for testing the executable program. Systems developed through this program can automate the process of evaluating binary code coverage. The system imports the executable program for static analysis, and then imports the test case set. After the test case set is executed in the system, the corresponding binary code coverage evaluat...

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 provides an automated evaluation method for binary code coverage of a testing case set for an executable program. The automated evaluation method includes step 1, executing static analysis on the executable program with a binary code expression form, converting the binary code expression form into an assembly instruction expression form through disassembly during static analysis, and performing basic block division on the executable program with the assembly instruction expression form; step 2, utilizing a testing case to execute dynamic analysis on program process, executing instrumentation processing during dynamic analysis to capture executing track, executing filtering operation during instrumentation processing for basic block filtering to remove an external instruction of the executable program; step 3, utilizing a virtual memory address of the executable program to evaluate binary code coverage of the testing case set by matching static analysis result of the step 1 and dynamic analysis result of the step 2.

Description

technical field [0001] The invention relates to the computer field, and more specifically, the invention relates to an automatic evaluation method for binary code coverage of a test case set of an executable program. Background technique [0002] Code coverage is the number of process states that a test program can achieve or execute through test cases generated manually or by tools. This is an important concept that researchers conduct pioneering research in the field of testing. Code coverage is a measure used to describe the degree to which a program is tested through test cases. It is one of the bases that software developers and testers often use to decide whether the test for the application is sufficient, and it is also an important indicator for evaluating the quality of the test. [0003] Executable programs refer to files that are loaded into memory to perform specified tasks. Executable programs are composed of binary codes, including basic information of files ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 董超群张垚刘国平徐小春董芳泉林腾
Owner JIANGNAN INST OF COMPUTING TECH
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