Device driver software test method and test system
A software testing method and device-driven technology, applied in the direction of software testing/debugging, etc., can solve the problems of no parameter construction method design discussion, difficulty in achieving the comprehensiveness of test cases, and failure to realize the sufficiency of test cases for detection points. Effective accumulation and rapid inheritance, rapid full software automated testing, and realization of the effect of full software automated testing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment 1
[0087] Embodiment 1: Carry out sufficient instruction-based white-box testing on the driver interface.
[0088] Firstly, the code is automatically analyzed, using the driver analysis module to analyze the tested driver interface, and using the state diagram analysis module to analyze the device state diagram.
[0089] If a driver interface is a single-instruction interface, the state diagram analysis module first analyzes which states the device can be in before the instruction is executed, and then translates into what conditions are imposed on the input parameters of the single-instruction driver interface, and how large is the parameter input range. The driver program analysis module obtains the parameter input requirements, range and restriction conditions of the driver interface. Whether the two are the same, if not, it means that the input of the driver interface can be improved, and the code needs to be modified. Then, the state diagram analysis module analyzes which s...
specific Embodiment 2
[0097] Specific embodiment 2: A sufficient state-based black-box test is performed on a certain device state.
[0098] First, the state diagram analysis module analyzes the equipment state diagram, and analyzes the equipment state diagram based on the equipment state, such as figure 1 It is the analysis result of the device in state m. State m has three preceding states i, j, and k in total, and four subsequent states. In order to fully test in state m, it is necessary to prepare the virtual device for testing. When When the virtual device is in state i, execute the corresponding command to see whether it can successfully reach state m, and the same is true for j and k, so that all path tests for state m can be completed, and a sufficient test for the path arrival of device state m can be realized.
[0099] Then the driver analysis module obtains the instructions of all driver interface functions, and tracks the status parameters of each device after each instruction is execut...
specific Embodiment 3
[0103] Specific embodiment three: carry out sufficient flow-based pressure tests on each state loop.
[0104] The state diagram analysis module analyzes the equipment state diagram and finds out all state loops on the equipment state diagram. Because the state graph is a directed graph, existing well-known algorithms, such as Hamiltonian algorithm and genetic algorithm, can be used to realize the traversal of the state graph loop.
[0105] The driver program analysis module obtains the instruction inclusion of all driver interface functions, and the driver program analysis module uses the driver interface for matching according to the command sequence of the state loop, so as to realize the transformation from the state loop to the command sequence and then to the interface sequence. A state loop, if viewed from the state, is a loop composed of a series of state transitions; if viewed from the instruction, a series of instructions are executed in an orderly manner; and the ins...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com