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

Method and device for generating test cases

A test case and test case generation technology, applied in software testing/debugging, etc., can solve problems such as generating a sufficient number of test cases, and achieve the effect of improving efficiency

Active Publication Date: 2013-10-02
SIEMENS CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the existing fuzz testing schemes usually only generate test cases in a random way or according to preset rules, so that either it is impossible to generate a sufficient number of test cases according to the user-defined pattern, or the generated test cases are too similar ( This leads to many unnecessary redundant tests)

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 device for generating test cases
  • Method and device for generating test cases
  • Method and device for generating test cases

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0036] The main idea of ​​the present invention is to first perform exhaustive enumeration according to the preset test case generation rules to obtain a large number of test cases, and then delete redundant test cases according to the similarity between the test cases, so that the obtained test cases are in line with the fuzzy test pair test. The requirement for the number of test cases does not contain redundant test cases, so the efficiency of fuzz testing can be improved.

[0037] figure 1 Schematic flow diagram of the method for generating test cases for the present invention. see figure 1 , the method includes:

[0038] Step 101: Perform exhaustive enumeration according to preset test case generation rules to obtain a large number of test cases...

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 discloses a method for generating test cases. The method comprises the following steps of: firstly, carrying out exhaustion according to a test case generating rule which is set in advance to obtain a great deal of test cases, and then deleting redundant test cases according to the degree of approximation among the test cases. The obtained test cases can meet the requirement of a fuzz test on the amount of the test cases and do not contain redundant test cases, thereby the efficiency of the fuzz test can be improved. The invention also discloses a system for generating the test cases. By applying the invention, the efficiency of the fuzz test can be improved.

Description

technical field [0001] The invention relates to the technical field of software safety testing, in particular to a method and device for generating test cases. Background technique [0002] The security testing of software (including: application programs, protocols, etc.) is actually a detection in the software input space. The input space of software consists of all possible inputs of the software, or a combination of all possible inputs. Exhaustive enumeration is the most extreme method to verify the correctness of software behavior. However, exhaustive enumeration is not feasible for most cases, because the input space of software programs is usually very large, and may even be infinite. Compared with the exhaustive method, fuzz testing (Fuzz Testing), as a random sample method, is a more feasible black-box testing method. [0003] Fuzz testing is a software testing technique, which constructs some random or semi-random data (called fuzz) as the input of the tested sof...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 唐文
Owner SIEMENS CHINA
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