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

Active Publication Date: 2015-04-15
GRG BAKING EQUIP CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This test method does not solve the rapid and sufficient testing and automated testing of the entire instruction set, state set and process set of the device
In addition, due to the many factors of human intervention in the testing process, the experience of the testers is highly dependent, because this kind of testing is time-consuming and blind
[0003] There are some existing testing technologies and methods. Although there are solutions for automated script testing of application software, these solutions cannot be simply grafted to device-driven testing.
Especially for the state test adequacy, instruction test adequacy, and execution loop test adequacy (process combination test adequacy) of device driver testing, it is difficult to directly implement, and it is also difficult to achieve comprehensive test case coverage
There are also some software unit tests, although they talk about the parameters needed to construct the unit under test, they do not discuss the design of the construction method of the parameters, nor do they technically design whether the test cases are sufficient when constructing the parameters and discussion
There are also some test methods that have done research on setting test detection points, but it is still difficult to make a comprehensive and thoughtful analysis of the state of the software module when it runs to the detection point, so that the various program execution results that appear at the detection point can be simulated during the test. As a result, the adequacy of the probe point test case is not realized

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
  • Device driver software test method and test system
  • Device driver software test method and test system
  • Device driver software test method and test system

Examples

Experimental program
Comparison scheme
Effect test

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...

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 device driver software test method and a test system. The test method comprises analyzing, through intelligent analysis program, the device state based on each state, each command and a flow or circuit consisting of each command according to a device state diagram of a device to be tested so as to design a complete test library of the device from three technical angles of command, state and flow or circuit; and calling corresponding test case from the test library to form a test script of the driver to be tested by analyzing command composition characteristics of the driver program to be tested as well as the relationship among the interface functions, and completing test by using an automatic testing platform. According to the invention, the device driver software test method can ensure the sufficiency of device driver testing based on the equipment state diagram, and can realize rapid full-software automatic testing for testing personnel in designing and developing software virtual equipment and simulating hardware equipment function by use of the software virtual equipment, thereby providing more real and reliable virtual testing means.

Description

technical field [0001] The invention relates to a software testing method and a testing system, in particular to a testing method and a testing system of device driving software. Background technique [0002] Common device driver testing methods are basically that testers write one or several test tools to test device drivers based on their understanding of device driver interface documentation and device operating experience. Or according to the reference flow chart given in the device driver interface documentation, write one or several tools, call several device driver interfaces, and perform integration tests and stress tests on the device driver interfaces. This test method does not solve the rapid and sufficient testing and automated testing of the entire instruction set, state set and process set of the device. In addition, due to the many factors of human intervention in the testing process, it is highly dependent on the experience of the testers, because this kind ...

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 GRG BAKING EQUIP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products