Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Test coverage statistical method and system based on JVM

A technology of test coverage and statistical methods, applied in the field of JVM-based test coverage statistics, can solve the problem of inability to directly obtain black-box test code coverage data

Inactive Publication Date: 2014-06-18
AEROSPACE INFORMATION
View PDF2 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problem that the black-box test code coverage data cannot be directly obtained in the prior art, the present invention provides a JVM-based test coverage statistical method and system

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
  • Test coverage statistical method and system based on JVM
  • Test coverage statistical method and system based on JVM
  • Test coverage statistical method and system based on JVM

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0038] Due to the high degree of automation, black-box testing does not require manual reading and analysis of source code, and it is tested from the user's point of view. It is a very efficient, easy-to-understand and practical testing method, so it is an indispensable test in current software testing. Way. However, as mentioned above, black-box testing also has some obvious defects, such as the inability to know the test code coverage rate, the adequacy and completeness of the test cannot ...

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 relates to the technical field of software test, and provides a test coverage statistical method and a test coverage statistical system based on JVM. The method comprises the steps of: S1, introducing taxons needing subjecting to statistics as parameters while starting JVM; S2, judging whether classes loaded into a virtual machine need to be injected, if yes, executing a step S3, otherwise, directly executing a step S4; S3, implementing bytecode operation to the classes needing subjecting to statistics and writing back into the virtual machine; S4, normally executing the operation of the classes and automatically recording statistical information in the execution by the virtual machine; S5, when the virtual machine exits, computing test coverage according to the statistical information and outputting result. According to the test coverage statistical method and system based on JVM, the bytecode is injected without changing original program structure, the test coverage of the code line level can be obtained in a black-box testing manner, the test coverage of the software code can be quantitatively evaluated, and a forceful reference index can be provided for the sufficiency of the test and the execution efficiency of a test case.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a JVM-based test coverage statistical method and system. Background technique [0002] Computer software programs are mainly developed by humans, usually by multiple developers, and there will inevitably be various unexpected errors. Therefore, software products have to undergo multiple tests and revisions before the official release. The most fundamental purpose of software testing is to find as many defects as possible in the software before the release of the software product, so as to ensure the quality of the official product. Among them, black box testing starts from the user's point of view, regards the program as a black box that cannot be opened, and tests the input and output of the program without considering the internal structure and characteristics of the program. Black box testing is mainly aimed at the software interface. Testing with software functions ...

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 AEROSPACE INFORMATION
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
Eureka Blog
Learn More
PatSnap group products