Supercharge Your Innovation With Domain-Expert AI Agents!

Module ash box behavior specification description and ash box test case design method

A test case and design method technology, applied in software testing/debugging, computing, error detection/correction, etc., can solve problems such as low test efficiency and too many test cases, and achieve the effect of shortening the number of steps and improving test efficiency

Active Publication Date: 2019-04-12
艾瑞克李
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the above-mentioned defects in the prior art, the present invention proposes a module gray-box behavior specification and gray-box test case design method, which solves the problems of too many test cases and low test efficiency in the existing black-box test

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
  • Module ash box behavior specification description and ash box test case design method
  • Module ash box behavior specification description and ash box test case design method
  • Module ash box behavior specification description and ash box test case design method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] The present invention proposes a strictly and precisely defined gray-box module behavior specification and gray-box testing method as one of the ways to solve the above-mentioned black-box problem. Gray box testing is simpler than white box testing and more efficient than black box testing.

[0045] Software consists of modules. Modules are composed of smaller modules. The smallest module can be a class, and the largest module is the developed software itself. A module can be thought of as consisting of a data structure and a collection of functions. Data structures are implemented by member variables. According to whether it is called by the outside of the module, the member functions can be divided into: one type constitutes the interface that the module interacts with the outside world, and the other type is used internally. Member functions can be divided into two categories according to whether they affect the value of module member variables. Black-box testin...

Embodiment 2

[0055] In Embodiment 2, the object state is determined by setting the Getter and Setter for each member variable value of the object, and the relevant steps are visually displayed in the form of a table, as shown in Table 2 below.

[0056] Table 2: Test case set step table of embodiment 2

[0057]

[0058]

Embodiment 3

[0060] This embodiment provides a simple C# class program. By using the method given in Embodiment 3, the number of test cases and the number of steps in test cases can be reduced.

[0061] SimpleClass is a very simple C# class

[0062]

[0063] This class has only three functions: SimpleClass(), Get(), and Set(int a). If you use the black box testing theory, the following are different test cases:

[0064] 1. SimpleClass(), Set(5), Get()

[0065] 2. SimpleClass(), Set(5), Set(5), Get()

[0066] 3. SimpleClass(), Set(5)Set(5), Set(5),..., Set(5), Get()

[0067] According to any black box testing software reliability model, there will be many test cases.

[0068] However, if the gray box test model is used, the equivalence class for the variable x of the class is 2 16 16 . If you choose a typical test data for this equivalence class, there can be three test cases:

[0069] 1. SimpleClass(); AssertState(SimpleClass.x=0);

[0070] 2. SimpleClass(); AssertState(SimpleC...

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 module ash box behavior specification description and ash box test case design method, and belongs to the technical field of computer software engineering. The method solvesthe problems of too many black box test cases and low test efficiency in the prior art. The method comprises the following steps of: introducing a grey box behavior specification, namely dividing equivalent classes of variable values according to an input-output relation when internal member variables of a tested module are input and output of a member function, and determining an equivalent state set of the tested module by using reasonable combination of the equivalent classes; dividing the input and output equivalence classes of the tested module interface function, and taking the two classes as condition results for calling the interface function; a gray box test case design is introduced: a tested module is initialized, a module state variable value is set directly according to module gray box behavior specifications, an interface function is called at a module interface, and the module state variable value is checked. The method has the advantages of eliminating redundant blackbox test cases, improving the test efficiency and the like, and can be widely applied to computer software development and inspection and detection occasions.

Description

technical field [0001] The invention relates to a module gray box behavior specification description and a gray box test case design method, belonging to the technical field of computer software engineering. Background technique [0002] Software behavior specification is an important design record document for software development, and software testing is an essential part of software development. The main technical content of the software testing process is to write software test cases according to the behavior defined in the software behavior specification, and then operate the tested program according to the test cases, evaluate software quality and find software defects. [0003] At present, the software industry divides software testing into black box testing, white box testing, and gray box testing. Black-box testing provides input and calls the external interface function of the module under test under the specified software environment, and then verifies whether th...

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/3684G06F11/3688
Inventor 艾瑞克·李
Owner 艾瑞克李
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More