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

Statistical method and device for incremental coverage information

A technology that covers information and increments, applied in the statistical field of incremental coverage information, can solve the problems of developers missing new function points, missed tests, and no explanations, so as to reduce missed tests, improve efficiency, and improve work efficiency Effect

Active Publication Date: 2012-10-10
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF6 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, developers usually do not state which functions they have tested, and testers often design some repeated use cases that developers have already tested, resulting in unnecessary duplication of work
In addition, during the communication process, it may appear that the developers have omitted to explain some new function points, which may lead to missed tests

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
  • Statistical method and device for incremental coverage information
  • Statistical method and device for incremental coverage information
  • Statistical method and device for incremental coverage information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0090] figure 1 It is a flow chart of the statistical method for incremental coverage information provided by this embodiment, such as figure 1 As shown, the method includes:

[0091] Step S101, acquiring the version code to be tested and the baseline version code.

[0092] Usually the baseline version code is the basis for modification and addition of the version code to be checked, and may be the previous version code of the version code to be checked, or a version code specified by the user.

[0093] Obtain the version code to be checked and the baseline version code corresponding to the version code to be checked, including all files and log files of the program code in the version.

[0094] Step S102 , run all single test cases on the version code to be tested, and obtain coverage information of all functions in the version code to be tested.

[0095] A unit test case is a test sub-item for some units. For a software unit in a module, developers or testers will write ...

Embodiment 2

[0162] image 3 It is a flow chart of the statistical method for incremental coverage information provided by this embodiment, such as image 3 As shown, the method includes:

[0163] Step S201, generating the content of the configuration file.

[0164] Generate different configuration file contents according to actual test requirements.

[0165] The content of the configuration file can include but is not limited to the following:

[0166] Various information such as preset keywords, version number to be tested and path of version code to be tested, baseline version number and path of baseline version code, preset access threshold, alarm receiver, and program language category.

[0167] Figure 4 is a schematic diagram of a configuration file, such as Figure 4 As shown, including: the preset keyword "blacklist" for filtering, the user information "user=*****" and "pwd=*****" in the version library (svn), the svn path of the module "[svn]path=https: / / svn.***.com / ** / ** / *...

Embodiment 3

[0186] Figure 5 It is a schematic diagram of a statistical device for incremental coverage information provided in this embodiment. Such as Figure 5 As shown, the device includes:

[0187] The version acquisition module 501 is configured to acquire the version code to be tested and the baseline version code.

[0188] Usually the baseline version code is the basis for modification and addition of the version code to be checked, and may be the previous version code of the version code to be checked, or a version code specified by the user.

[0189] Obtain the version code to be checked and the baseline version code corresponding to the version code to be checked, including all files and log files of the program code in the version.

[0190] The full-coverage acquisition module 502 is configured to run all unit test cases on the version code to be tested, and obtain coverage information of all functions in the version code to be tested.

[0191] A unit test case is a test s...

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 a statistical method and a statistical device for incremental coverage information. The statistical method comprises the following steps: S1, acquiring a test version code and a baseline version code; S2, running all single test cases for the test version code, acquiring coverage information of all functions in the test version code, and comparing the test version code and the baseline version code so as to obtain newly-added or modified function information; and S3, acquiring newly-added or modified incremental coverage information from the coverage information of all the functions according to the newly-added or modified function information. Compared with the prior art, the statistical method and the statistical device can automatically count the incremental information of a test version, so that a tester can quickly acquire the incremental coverage information and pertinently design a test case according to the incremental coverage information, thus improving the test efficiency and the test accuracy and reducing the missing test.

Description

【Technical field】 [0001] The invention relates to the technical field of computer software testing, in particular to a statistical method and device for incremental coverage information. 【Background technique】 [0002] Software testing is an important means to ensure software quality, software must pass the test to ensure that it works properly in the application environment. During the software project development process, the developers will do part of the unit test (that is, single test) to check whether the software unit has errors and whether it is consistent with the design, and then submit the completed software to the tester for testing. [0003] In order to improve the quality of the developers' test codes, the testers will formulate some test access standards. For example, the line coverage rate of new functions in the test codes must reach 60% or more. However, under normal circumstances, developers do not know whether the quality of the proposed software meets t...

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 BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
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