Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for generating test value of target object

A target object and target generation technology, which is applied in the field of generating test values ​​of target objects, can solve the problems of increasing test space, increasing the number of test cases, increasing test time and test cost, etc.

Active Publication Date: 2013-04-03
SIEMENS CHINA
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

A large number of equivalent test values ​​will increase the number of test cases and increase the test space, resulting in an increase in test time and test cost

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 value of target object
  • Method and device for generating test value of target object

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0012] Below, various embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0013] Firstly, various embodiments of the present invention are described by taking the information unit of the message of the communication protocol used by the program code object as the target object for which the test value is generated.

[0014] figure 1 is a flowchart showing a method for generating a test value of an information element of a message of a communication protocol used by a program code object according to the first embodiment of the present invention. Such as figure 1 As shown, firstly, each basic character in the basic character set is numbered one by one, so as to assign a unique identification code to each basic character in the basic character set (step S100). For example, taking the ASCII basic table as the basic character set as an example, the ASCII basic table includes 128 basic characters, wherein, the 128 basic ...

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 method and a device for generating the test values of target objects, wherein the method comprises the following steps of: generating a random process; respectively sampling a given number of sample functions of the generated random process to obtain a plurality groups of sampling values, wherein a plurality of sampling values obtained by sampling each of the given number of sample functions form one group of the plurality groups of sampling values; rounding the sampling values of the plurality groups of sampling values so that the sampling values of the plurality groups of sampling values are integers; and mapping the rounded plurality groups of sampling values into a plurality of character strings as the test values of the target objects according to identification codes of basic characters of a basic character set. The method and the device can be used for generating the test values of the target objects, without generating equivalent test values.

Description

technical field [0001] The present invention relates to software testing, in particular to a method and device for generating test values ​​of target objects. Background technique [0002] Generally, software may include functions, modules, components and / or packages. In general, the functions, modules, components, and program packages included in the software, as well as the software itself, receive one or more inputs and perform specific functions according to the received one or more inputs. In this article, the functions, modules, components, and program packages included in the software, as well as the software itself, are called program code objects. [0003] Input to a program code object can come from other program code objects and / or users. Typically, communication protocols are used between program code objects and between program code objects and users to transfer information to each other. Communication protocols are generally implemented through various messa...

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