Code testing method and device, storage medium and electronic device

A technology of code testing and target code, which is applied in the field of software testing, can solve the problems of low code detection accuracy, achieve the effect of improving code quality, improving code detection efficiency, and avoiding uncontrollable code quality

Active Publication Date: 2019-03-08
NETEASE HANGZHOU NETWORK
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present disclosure is to provide a code testing method, a code testing device, a computer-readable storage medium, and an electroni

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

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms, and should not be construed as being limited to the examples set forth herein; on the contrary, the provision of these embodiments makes the present disclosure more comprehensive and complete, and fully conveys the concept of the example embodiments To those skilled in the art. The described features, structures or characteristics may be combined in one or more embodiments in any suitable way. In the following description, many specific details are provided to give a sufficient understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be used. In other cases, the known technical solution...

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 a code testing method and device, a storage medium and an electronic device, belonging to the technical field of software testing. The method comprises the following steps ofobtaining an abstract syntax tree of an object code and obtaining at least one static information from the abstract syntax tree; analyzing the object code through the at least one static information to obtain an analysis result corresponding to each static information; comparing each of the analysis results with reference information associated with each of the static information to determine whether the object code meets a preset condition. The method tests the object code by static information, and improves the test accuracy.

Description

Technical field [0001] The present disclosure relates to the technical field of software testing, and in particular to a code testing method, a code testing device, a computer-readable storage medium, and electronic equipment. Background technique [0002] In the process of writing or debugging the program file, testing the program file can ensure the accuracy of the program file. [0003] In related technologies, when testing program files, static testing is generally performed. Static testing refers to not running the tested program file itself, and only checking whether there are grammatical problems in the program file and whether it complies with the code writing specifications by analyzing or checking the syntax, structure, process, and interface of the source program. [0004] However, with the rapid development of the software industry, due to the limitations of static code inspection results, it will lead to uncontrollable code quality problems or unpredictable destructive ...

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
CPCG06F11/3608G06F11/3612
Inventor 周羽奇
Owner NETEASE HANGZHOU NETWORK
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
Try Eureka
PatSnap group products