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

Code testing information collecting method and system

A technology for code testing and information collection, applied in the field of code test information collection methods and a code test information collection system, can solve problems such as increasing workload, affecting the efficiency of code coverage information collection, and inconvenient use

Active Publication Date: 2013-12-04
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF4 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These two collection methods require a lot of manual participation during implementation, are opaque to testers, and are very inconvenient to use, which will affect the normal test process of testers and increase extra workload for testers, thus affecting the Efficiency of code coverage information collection

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
  • Code testing information collecting method and system
  • Code testing information collecting method and system
  • Code testing information collecting method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] figure 1 A schematic flowchart of Embodiment 1 of the code test collection method of the present invention is shown in . Such as figure 1 As shown, the code test information collection method in this embodiment includes steps:

[0032] Step S101: Deploy the tested code to the test environment through the automated publishing system. The so-called test environment refers to the description of the software and hardware environment on which the test runs, and any other software that interacts with the tested software, including Drivers and stubs, etc., also refer to the general term of computer hardware, software, network equipment, and historical data necessary for the completion of software testing. Therefore, in the following descriptions of the present invention, the test environment will not be described in detail;

[0033] Step S102: Test the code under test in the above test environment to obtain code test information, wherein the code test information here can be...

Embodiment 2

[0037] figure 2 shows the schematic flow chart of Embodiment 2 of the code test information collection method of the present invention. In the solution of Embodiment 2, the main difference from Embodiment 1 above is that in this embodiment, only code coverage is collected rate information as an example.

[0038] Such as figure 2 As shown, in the second embodiment, the code test information collection method of the present invention includes steps:

[0039] Step S201: Deploy the tested source code to the test environment through the automated release system;

[0040] Step S202: Instrumenting the above-mentioned source code under test deployed to the test environment;

[0041] Step S203: Execute the functional test case, and collect code coverage information when executing the functional test case;

[0042] Step S204: Publish the above-mentioned source code under test after moving the pile of the above-mentioned source code under test.

[0043] According to the method for...

Embodiment 3

[0061] Figure 4 shows a schematic flow chart of Embodiment 3 of the code test information collection method of the present invention. In this embodiment, the difference from Embodiment 1 above is that in this embodiment, only code differentiation information is collected. Example to illustrate.

[0062] Such as Figure 4 As shown, the code test information collection method in this embodiment includes steps:

[0063] Step S401: Deploy the source code under test to the test environment through the automated release system;

[0064] Step S402: Detect the old source code corresponding to the above-mentioned source code under test;

[0065] Step S403: Generate code differentiation information according to the source code under test and the source code of the old version.

[0066] According to the code test information collection method in this embodiment as described above, it not only realizes the collection of code differentiation information, but also collects code differe...

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

Disclosed is a code testing information collecting method and system. The method includes: deploying to-be-tested codes to a testing environment through an automatic publishing system; testing the to-be-tested codes in the testing environment to obtain code testing information which can be code coverage rate information and / or code differentiation information. The method has the advantages that the to-be-tested source codes are deployed to the testing environment through the automatic publishing system and tested so as to collect code testing information, combination of code testing information collection and automatic publishing tools, massive user intervention is avoided, code testing information are collected without being noticed by users, work load of testing staff is reduced, and efficiency is increased.

Description

technical field [0001] The invention relates to the field of testing, in particular to a code testing information collection method and a code testing information collection system. Background technique [0002] In current software applications, after the software is developed, it is usually necessary to test the software code, and to collect code test information during the process of testing the code, so as to test the code of the written software based on the collected code test information. The performance of the code is evaluated. The code test information here will be different according to the actual test purpose. One of the code test information can be code coverage. Code Coverage (Code Coverage) refers to the coverage of the code during execution. Code coverage is an important indicator reflecting the degree of test case coverage of the tested code and an important indicator for measuring the progress of the test work. Code differentiation is It is the differential...

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 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