Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for acquiring code coverage rate

A code coverage and code coverage technology, applied in the field of obtaining code coverage, can solve problems such as the inability to achieve parallel cross-testing of APPs with multiple users, multiple test devices or multiple versions

Active Publication Date: 2016-03-16
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Existing technical solutions are limited to one user testing one version of APP on one test device, and cannot realize parallel cross-testing of multiple users, multiple test devices or multiple versions of APP

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
  • Method and apparatus for acquiring code coverage rate
  • Method and apparatus for acquiring code coverage rate
  • Method and apparatus for acquiring code coverage rate

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0043] see figure 1 , figure 1 It is a diagram of a network architecture applied in an embodiment of the present invention, and the network architecture may include at least one server 120 and a terminal 140 .

[0044] The server 120 is used to store the first code coverage information file, and the first code coverage information file may include the device identification of the terminal 140, the user identification of the user who executes the test, the compilation number of each APP tested, and the compilation number of each APP. number corresponding to the executed code line coverage information.

[0045] The server 120 may also be configured to obtain at least one of the above-mentioned device identification, user identification...

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 present invention discloses a method and an apparatus for acquiring a code coverage rate, and belongs to the field of communication. The method comprises: a testing device acquiring compilation results and compilation numbers of m APPs; the testing device acquiring a testing case, configured by a user, of each of the m APPs; the testing device testing each compilation result according to the testing case of each APP, and generating a first code coverage information file; and the testing device sending the first code coverage information file to a server, so that the server calculates a code coverage rate according to the first code coverage information file. The method and apparatus solve the problem that a valid code coverage rate cannot be accurately acquired in the case that a parallel crossed test is performed on multiple users, multiple testing devices or multiple versions of APPs, thereby enhancing convenience of acquiring the code coverage rate and improving working efficiency of testers.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and device for acquiring code coverage. Background technique [0002] Code coverage is a measure in software testing that describes the proportion and degree to which source code in a program is executed. Currently, in the field of software testing, technicians need to obtain the code coverage rate of the program, and determine whether the program is completely and effectively tested according to the code coverage rate. [0003] Currently there is a method for obtaining code coverage, including: the user can input the version number of the application program (Application, APP) to be tested to the server, and the server obtains the source code of the corresponding version according to the version number, and inserts the source code Pile compilation, to obtain the compilation result and the effective line file, the effective line file includes the effective code lines in the so...

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
CPCG06F11/3676
Inventor 符阳辉王寸涛
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products