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

Code testing method and device, equipment and storage medium

A technology of code testing and source code, applied in software testing/debugging, etc., can solve problems such as low efficiency of code testing methods, and achieve the effect of improving test efficiency and coverage

Pending Publication Date: 2022-07-29
PINGAN INT SMART CITY TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to solve the problem of low efficiency of existing code testing methods

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 method and device, equipment and storage medium
  • Code testing method and device, equipment and storage medium
  • Code testing method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0083] The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used can be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed steps or units, but may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

[0084] The present invention can acquire and process related data based on artificial intellige...

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 field of testing, and discloses a code testing method and device, equipment and a storage medium. The method comprises the following steps: receiving source codes of a plurality of application items, wherein the source code of each application item comprises a test mark; respectively calculating the test coverage rate of each application item according to the source code of each application item and the test mark of each application item; based on the test coverage rate of each application item, determining a target application item of which the test coverage rate is less than a threshold value; traversing the source code of the target application item to obtain a target code snippet without the test mark; obtaining a target code annotation text corresponding to the target code snippet from a preset annotation library; and generating a network model based on a preset first script, processing the target code annotation text, and obtaining and executing a first target test script corresponding to the target code snippet. The test script is generated based on the annotations corresponding to the code snippets with the test coverage rate smaller than the threshold value so as to directly test, and the test efficiency is improved.

Description

technical field [0001] The present invention relates to the field of testing, and in particular, to a code testing method, device, equipment and storage medium. Background technique [0002] In order to ensure the stability of software engineering, the development of software engineering is usually based on a stable baseline version, and new branches are developed to realize new functions. When a software project generates new branches, it is necessary to test the new branches to confirm that these new branches can achieve the expected functions. In order to measure whether the test is sufficient for the new branch, the adequacy of the test can be quantified by counting the number of lines of code, classes, branches, etc. covered by the test. This quantified adequacy is test coverage. In order to facilitate testers to adjust the test cases according to the test coverage of the new branch, the test coverage of the new branch needs to be indicated in the test coverage report...

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/3688
Inventor 李宇航
Owner PINGAN INT SMART CITY TECH 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