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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com