Program testing method and device

A technology of program testing and program, which is applied in the field of program testing methods and devices, can solve the problems that the test code coverage rate cannot be guaranteed, the test process is not comprehensive, etc., and achieve the effect of improving code coverage rate and ensuring comprehensiveness

Active Publication Date: 2020-02-07
SECZONE TECH CO LTD +1
View PDF8 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a program testing method and device, which can solve the problem that the test cases in the prior art often cover the same path of the program, and the code coverage rate of the test cannot be guaranteed, resulting in an incomplete testing process.

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
  • Program testing method and device
  • Program testing method and device
  • Program testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

[0030] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and / or collections thereof.

[0031] It should...

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 is suitable for the technical field of computer application, and provides a program testing method and device. The program testing method comprises the steps: obtaining a to-be-tested program and program information thereof; constructing a generation mode of a test case corresponding to the to-be-tested program according to the program information, and generating the test case according to the generation mode; performing variation processing on the test cases according to program information to obtain a plurality of variation cases; selecting a target variation case for testing the to-be-tested program from all variation cases; and testing the to-be-tested program according to the target variation case to obtain a test result. A test case corresponding to a to-be-tested program is generated according to program information of the to-be-tested program; the test cases are mutated to obtain the multiple mutation cases, and the mutation case with the highest case coverage rate is determined from the multiple mutation cases to serve as the target mutation case to test the to-be-tested program; and the code coverage rate when the to-be-tested program is tested is effectively increased, and the comprehensiveness of the test process and the test result is guaranteed.

Description

technical field [0001] The present application belongs to the field of computer application technology, and in particular relates to a program testing method and device. Background technique [0002] With the rapid development of computer science and Internet technology, software security issues emerge in an endless stream, and software security has always attracted much attention. In the process of information security confrontation, the defender will adopt various products and strategies to protect against threats, such as anti-virus software, intrusion detection equipment, etc. Although these measures can reduce the losses caused by attacks to a certain extent, they are only It is a passive defense method, and it can only be blocked after the malicious code is disclosed, so it is not the best way of defense. It is necessary to be able to actively find out unknown security vulnerabilities in the software while passively defending, so as to comprehensively protect the secu...

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/3684
Inventor 万振华张海春
Owner SECZONE TECH 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
Try Eureka
PatSnap group products