CN111240928B - Automatic detection method, device, equipment and storage medium for equipment drive - Google Patents

Automatic detection method, device, equipment and storage medium for equipment drive Download PDF

Info

Publication number
CN111240928B
CN111240928B CN202010010942.3A CN202010010942A CN111240928B CN 111240928 B CN111240928 B CN 111240928B CN 202010010942 A CN202010010942 A CN 202010010942A CN 111240928 B CN111240928 B CN 111240928B
Authority
CN
China
Prior art keywords
driving information
terminal
current
detected
historical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010010942.3A
Other languages
Chinese (zh)
Other versions
CN111240928A (en
Inventor
梁康乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wingtech Information Technology Co Ltd
Original Assignee
Shanghai Wingtech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wingtech Information Technology Co Ltd filed Critical Shanghai Wingtech Information Technology Co Ltd
Priority to CN202010010942.3A priority Critical patent/CN111240928B/en
Publication of CN111240928A publication Critical patent/CN111240928A/en
Application granted granted Critical
Publication of CN111240928B publication Critical patent/CN111240928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting

Abstract

The embodiment of the invention discloses a device driving automatic detection method, a device, equipment and a storage medium, wherein the method comprises the following steps: extracting current equipment driving information of a terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result; and generating a detection log according to the comparison result. According to the embodiment of the invention, the automatic detection of the equipment driving information is realized, a developer can check the detection result at any time through the detection log, the manual detection of the equipment driving is not needed, the development efficiency of the developer is improved, and the labor cost is reduced.

Description

Automatic detection method, device, equipment and storage medium for equipment drive
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a device driving automatic detection method, a device, equipment and a storage medium.
Background
A driver is a small piece of code added to the operating system that contains information about the hardware device with which the computer can communicate.
In the development and testing stage, the notebook computer type project has more problems about drive loss or abnormal working state, and currently, the drive inspection is dependent on manual inspection of testers. This approach involves a significant careless error, such as the loss of hidden devices in the device manager, which cannot be determined in an intuitive manner in the device manager, where a tester is required to open the hidden list and open more levels of directories for viewing. Such complicated operations, if the manual operation is inevitably omitted or erroneous judgment when a plurality of machines need to be checked at the same time.
Disclosure of Invention
The embodiment of the invention provides an automatic detection method, an automatic detection device, automatic detection equipment and a storage medium for equipment driving so as to realize automatic detection of equipment driving information, improve the development efficiency of developers and reduce the labor cost.
In one embodiment, an embodiment of the present invention provides a device driver automation detection method, including:
extracting current equipment driving information of a terminal to be detected;
extracting historical equipment driving information of a terminal to be detected;
comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result;
and generating a detection log according to the comparison result.
Further, before extracting the current device driving information of the terminal to be detected, the method further includes:
creating a temporary file;
traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected;
and storing the current equipment driving information into the temporary file.
Further, the extracting the current device driving information of the terminal to be detected includes:
and extracting current equipment driving information of the terminal to be detected from the temporary file.
Further, the creating the temporary file includes:
determining whether a history temporary file exists;
if the history temporary file exists, deleting the history temporary file and then creating the temporary file.
Further, the extracting the historical device driving information of the terminal to be detected includes:
determining whether a history reference exists;
and if the history reference file exists, extracting the history equipment driving information of the terminal to be detected from the history reference file.
Further, after determining whether the history reference file exists, the method further includes:
if the history reference file does not exist, creating the reference file;
traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected;
the current equipment driving information is used as historical equipment driving information of the terminal to be detected and is stored in the reference file;
and extracting historical equipment driving information of the terminal to be detected from the reference file.
Further, the current device driving information comprises a current device ID, a current device driving state, a current device driving description and a current device driving version; the history device driver information includes a history device ID, a history device driver status, a history device driver description, and a history device driver version.
In one embodiment, an embodiment of the present invention provides a device driver automation detection apparatus, including:
the current equipment driving information extraction module is used for extracting current equipment driving information of the terminal to be detected;
the historical equipment driving information extraction module is used for extracting historical equipment driving information of the terminal to be detected;
the device driving information comparison module is used for comparing the current device driving information with the historical device driving information to obtain a comparison result;
and the detection log generation module is used for generating a detection log according to the comparison result.
In one embodiment, an embodiment of the present invention provides a terminal device, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the device-driven automated detection method provided by any of the embodiments of the present invention.
In one embodiment, an embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the device driver automation detection method provided by any embodiment of the present invention.
The device driving automatic detection method provided by the embodiment of the invention is characterized by extracting the current device driving information of the terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result; and generating a detection log according to the comparison result. The automatic detection of the equipment driving information is realized, a developer can check the detection result at any time through the detection log, the manual detection of the equipment driving is not needed, the development efficiency of the developer is improved, and the labor cost is reduced.
Drawings
FIG. 1 is a flow chart of a method for device driven automated detection in one embodiment;
FIG. 2 is a flow chart of a method for device driven automated inspection in another embodiment;
FIG. 3 is a schematic diagram of a device driven automated inspection apparatus in one embodiment;
fig. 4 is a schematic structural diagram of a terminal device in an embodiment.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts steps as a sequential process, many of the steps may be implemented in parallel, concurrently, or with other steps. Furthermore, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Furthermore, the terms "first," "second," and the like, may be used herein to describe various directions, acts, steps, or elements, etc., but these directions, acts, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. The terms "first," "second," and the like, are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, "plurality", "batch" means at least two, for example, two, three, etc., unless specifically defined otherwise.
In this embodiment, fig. 1 is a schematic flow chart of a device driving automation detection method provided by the embodiment of the present invention, which is applicable to automatic monitoring of device driving information of a computer. As shown in fig. 1, the device driving automatic detection method provided by the embodiment of the invention includes:
s110, extracting current device driving information of the terminal to be detected.
Specifically, the terminal to be detected represents a terminal device, such as a notebook computer, a desktop computer, or the like, which needs to perform device driving detection. The current device driving information of the terminal to be detected includes driving information of all hardware devices installed at the current time of the terminal to be detected. And extracting the current equipment driving information of the terminal to be detected to judge whether the current equipment driving information is normal or not.
Current device driver information includes, but is not limited to: current device ID (Hardware ID), current device Driver Status (Status), current device Driver Description (Description), and current device Driver Version (Driver Version). The DEVICE ID indicates an ID of a hardware DEVICE to which the driver corresponds, for example, hid_device. The device driving state indicates whether the driving is operating normally or not, and may be determined by a preset return value, for example, a return value of 0 indicates that the driving is operating normally, a return value of 1 indicates that the driving is disabled, and a return value of other indicates that the driving is abnormal. The device driver description indicates a device type of the hardware device, e.g., disk drive, keyboard, etc. The device driver version then represents the version of the driver, e.g., 6.1.7601.17514.
S120, extracting historical equipment driving information of the terminal to be detected.
Specifically, the history device driver information is reference data of the current device driver information, which is obtained in advance, and indicates normal device driver information of the terminal to be detected, including a history device ID, a history device driver state, a history device driver description, and a history device driver version, where definitions of the device ID, the device driver state, the device driver description, and the device driver version are the same as those in step S110, and are not described herein again. And extracting the historical equipment driving information to be used as reference data for judging whether the current equipment driving information is normal or not.
S130, comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result.
Specifically, by comparing the current device driving information with the historical device driving information, the obtained comparison result represents the distinction between the current device driving information and the historical device driving information. The comparison of the current device driver information and the historical device driver information includes a comparison of the current device ID and the historical device ID, a comparison of the current device driver state and the historical device driver state, a comparison of the current device driver description and the historical device driver description, and a comparison of the current device driver version and the historical device driver version.
And S140, generating a detection log according to the comparison result.
Specifically, the comparison result shows that the current device driving information is the same as or different from the historical device driving information, the detection log records the comparison result to generate a log file, for example, a log file, and a developer can check the comparison result at any time through the detection log, so that relevant information of the device driving is known.
Furthermore, the detection log can only comprise different items between the current device driving information and the historical device driving information and is classified and arranged, so that a developer can check abnormality of the device driving information more conveniently. For example, there are three categories of newly added items, deleted items and changed items, and different information between the current device driving information and the historical device driving information is displayed in the corresponding category.
The device driving automatic detection method provided by the embodiment is used for extracting the current device driving information of the terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result; and generating a detection log according to the comparison result. The automatic detection of the equipment driving information is realized, a developer can check the detection result at any time through the detection log, the manual detection of the equipment driving is not needed, the development efficiency of the developer is improved, and the labor cost is reduced.
In this embodiment, fig. 2 is a schematic flow chart of a device driver automatic detection method according to an embodiment of the present invention, where the embodiment is further detailed in the foregoing embodiment. As shown in fig. 2, an apparatus driving automation detection method provided by an embodiment of the present invention includes:
s210, creating a temporary file.
Specifically, the temporary file is a file for storing current device driving information of the terminal to be detected, for example, a tmp file, a temp file, or the like, in the current device driving automatic detection flow.
Optionally, a method of creating a temporary file includes steps S211 to S212 (not shown in the figure).
S211, determining whether a history temporary file exists;
s212, if the history temporary file exists, deleting the history temporary file and then creating the temporary file.
Specifically, the history temporary file is a file generated in the history device driver automatic detection process and used for storing the current device driver information, if the history temporary file exists, the history temporary file should be deleted, so that the confusion between the current device driver information and the current device driver information is avoided, and a new temporary file is created for storing the current device driver information. Further, if there is no history temporary file, a new temporary file may be directly created.
S220, traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected.
Specifically, in general, the terminal to be detected includes a plurality of device drivers, and the terminal to be detected needs to be traversed to obtain all current device driving information of the terminal to be detected. Further, the obtained current device driving information is driving information of an external hardware device connected with the terminal to be detected, and the device driving information of the terminal system to be detected is not recorded.
S230, storing the current equipment driving information into the temporary file.
S240, extracting current device driving information of the terminal to be detected from the temporary file.
Specifically, the current device driving information is stored in a temporary file, and the current device driving information can be directly extracted from the temporary file when the current device driving information is extracted.
S250, determining whether a history reference file exists.
Further, it is determined whether or not there is a history reference file, if so, step S260 is executed, and if not, steps S271 to S274 are executed.
And S260, if the history reference file exists, extracting the history equipment driving information of the terminal to be detected from the history reference file.
Specifically, the history reference file is a file for storing history device driving information, and may be a log class file, for example, a log file. If the history reference file exists, the history device driving information of the terminal to be detected is stored in the history reference file, and the history device driving information can be directly extracted from the history reference file.
S271, if there is no history reference file, creating a reference file.
Specifically, if no history reference file exists, it means that the terminal to be detected is performing the device driving automatic detection for the first time, and at this time, a reference file needs to be created to store the history device driving information.
And S272, traversing the terminal to be detected to acquire the current equipment driving information equipment of the terminal to be detected.
S273, the current device driving information is used as historical device driving information of the terminal to be detected and stored in the reference file.
S274, extracting historical equipment driving information of the terminal to be detected from the reference file.
Specifically, if the terminal to be detected is to automatically detect the device driving for the first time, the historical device driving information at this time is the current device driving information, the current device driving information is obtained by traversing the terminal to be detected and is stored as the historical device driving information into the reference file, and when the historical device driving information is extracted, the historical device driving information is extracted from the reference file.
S280, comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result.
Specifically, by comparing the current device driving information with the historical device driving information, the obtained comparison result represents the distinction between the current device driving information and the historical device driving information. The comparison of the current device driver information and the historical device driver information includes a comparison of the current device ID and the historical device ID, a comparison of the current device driver state and the historical device driver state, a comparison of the current device driver description and the historical device driver description, and a comparison of the current device driver version and the historical device driver version.
And S290, generating a detection log according to the comparison result.
Specifically, the comparison result shows that the current device driving information is the same as or different from the historical device driving information, the detection log records the comparison result to generate a log file, for example, a log file, and a developer can check the comparison result at any time through the detection log, so that relevant information of the device driving is known.
Furthermore, the detection log can only comprise different items between the current device driving information and the historical device driving information and is classified and arranged, so that a developer can check abnormality of the device driving information more conveniently. For example, there are three categories of newly added items, deleted items and changed items, and different information between the current device driving information and the historical device driving information is displayed in the corresponding category.
Furthermore, if the terminal to be detected is to automatically detect the device driving for the first time, it is obvious that the current device driving information is the same as the historical device driving information, and the detection log may not be generated under the condition that the recording significance is not great.
Further, after the detection log is generated, the detection log is stored in a preset position, and a conventional log file of the terminal to be detected can be automatically copied to the preset position for storage, for example, eventlog-application. Evtx, eventlog-system evtx, dumplog, batteryreprot, sleepstudy, setupapi.
According to the automatic detection method for the equipment driver, which is provided by the embodiment, automatic detection of the equipment driver information is realized, a developer can check a detection result at any time through a detection log, the equipment driver is not required to be checked manually, the development efficiency of the developer is improved, and the labor cost is reduced.
In this embodiment, fig. 3 is a schematic structural diagram of an apparatus driving automation detection device provided in the embodiment of the present invention, and this embodiment may be suitable for automatic monitoring of apparatus driving information of a computer. The device driver automatic detection device provided in the third embodiment of the present invention may implement the device driver automatic detection method provided in any embodiment of the present invention, specifically implement the corresponding functional structure and beneficial effects of the method, and the content that is not described in the embodiment in a similar manner may refer to the description of any method embodiment of the present invention.
As shown in fig. 3, an apparatus driving automation detection device provided in an embodiment of the present invention includes: the device driver information extraction module 310, the historical device driver information extraction module 320, the device driver information comparison module 330 and the detection log generation module 340.
The current device driving information extracting module 310 is configured to extract current device driving information of a terminal to be detected;
the historical device driving information extraction module 320 is configured to extract historical device driving information of a terminal to be detected;
the device driving information comparing module 330 is configured to compare the current device driving information with the historical device driving information to obtain a comparison result;
the detection log generating module 340 is configured to generate a detection log according to the comparison result.
Further, the system further comprises a temporary file creation module, wherein the temporary file creation module is specifically used for:
creating a temporary file; traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected; and storing the current equipment driving information into the temporary file.
Further, the current device driver information extraction module 310 is specifically configured to:
and extracting current equipment driving information of the terminal to be detected from the temporary file.
Further, the temporary file creation module is further configured to:
determining whether a history temporary file exists; if the history temporary file exists, deleting the history temporary file and then creating the temporary file.
Further, the historical device driving information extraction module 320 is specifically configured to:
determining whether a history reference exists; and if the history reference file exists, extracting the history equipment driving information of the terminal to be detected from the history reference file.
Further, the historical device driver information extraction module 320 is further configured to:
if the history reference file does not exist, creating the reference file; traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected; the current equipment driving information is used as historical equipment driving information of the terminal to be detected and is stored in the reference file; and extracting historical equipment driving information of the terminal to be detected from the reference file.
Further, the current device driving information comprises a current device ID, a current device driving state, a current device driving description and a current device driving version; the history device driver information includes a history device ID, a history device driver status, a history device driver description, and a history device driver version.
According to the device driving automatic detection device provided by the embodiment of the invention, through the current device driving information extraction module, the historical device driving information extraction module, the device driving information comparison module and the detection log generation module, automatic detection of the device driving information is realized, a developer can check a detection result at any time through the detection log, the device driving is not required to be checked manually, the development efficiency of the developer is improved, and the labor cost is reduced.
In this embodiment, fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. Fig. 4 shows a block diagram of an exemplary terminal device 412 suitable for use in implementing embodiments of the invention. The terminal device 412 shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 4, the terminal device 412 is in the form of a general purpose terminal device. The components of terminal device 412 may include, but are not limited to: one or more processors 416, a storage 428, and a bus 418 that connects the various system components (including the storage 428 and the processors 416).
Bus 418 represents one or more of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Subversive Alliance, ISA) bus, micro channel architecture (Micro Channel Architecture, MAC) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
Terminal device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by terminal device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The storage 428 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 430 and/or cache memory 432. Terminal device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable nonvolatile optical disk such as a Read Only Memory (CD-ROM), digital versatile disk (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media, may be provided. In such cases, each drive may be coupled to bus 418 via one or more data medium interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for example, in the storage 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 442 generally perform the functions and/or methodologies in the described embodiments of the invention.
Terminal device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing terminal device, display 424, etc.), with one or more terminal devices that enable a user to interact with the terminal device 412, and/or with any terminal device (e.g., network card, modem, etc.) that enables the terminal device 412 to communicate with one or more other computing terminal devices. Such communication may occur through an input/output (I/O) interface 422. Also, terminal device 412 can communicate with one or more networks such as a local area network (Local Area Network, LAN), a wide area network (Wide Area Network, WAN) and/or a public network such as the internet via network adapter 420. As shown in fig. 4, network adapter 420 communicates with other modules of terminal device 412 over bus 418. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with terminal device 412, including but not limited to: microcode, end device drivers, redundant processors, external disk drive arrays, disk array (Redundant Arrays of Independent Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processor 416 executes various functional applications and data processing by running programs stored in the storage 428, such as implementing the device driver automated detection method provided by any embodiment of the present invention, which may include:
extracting current equipment driving information of a terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result; and generating a detection log according to the comparison result.
In one embodiment, the processor 416, when executing the computer program, also performs the steps of:
creating a temporary file; traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected; and storing the current equipment driving information into the temporary file.
In one embodiment, the processor 416, when executing the computer program, also performs the steps of:
and extracting current equipment driving information of the terminal to be detected from the temporary file.
In one embodiment, the processor 416, when executing the computer program, also performs the steps of:
determining whether a history temporary file exists; if the history temporary file exists, deleting the history temporary file and then creating the temporary file.
In one embodiment, the processor 416, when executing the computer program, also performs the steps of:
determining whether a history reference exists; and if the history reference file exists, extracting the history equipment driving information of the terminal to be detected from the history reference file.
In one embodiment, the processor 416, when executing the computer program, also performs the steps of:
if the history reference file does not exist, creating the reference file; traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected; the current equipment driving information is used as historical equipment driving information of the terminal to be detected and is stored in the reference file; and extracting historical equipment driving information of the terminal to be detected from the reference file.
The device driving automatic detection method provided by the embodiment of the invention is characterized by extracting the current device driving information of the terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result; and generating a detection log according to the comparison result. The automatic detection of the equipment driving information is realized, a developer can check the detection result at any time through the detection log, the manual detection of the equipment driving is not needed, the development efficiency of the developer is improved, and the labor cost is reduced.
In this embodiment, the embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the device driver automation detection method as provided in any embodiment of the present invention, and the method may include:
extracting current equipment driving information of a terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result; and generating a detection log according to the comparison result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
creating a temporary file; traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected; and storing the current equipment driving information into the temporary file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and extracting current equipment driving information of the terminal to be detected from the temporary file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining whether a history temporary file exists; if the history temporary file exists, deleting the history temporary file and then creating the temporary file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining whether a history reference exists; and if the history reference file exists, extracting the history equipment driving information of the terminal to be detected from the history reference file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the history reference file does not exist, creating the reference file; traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected; the current equipment driving information is used as historical equipment driving information of the terminal to be detected and is stored in the reference file; and extracting historical equipment driving information of the terminal to be detected from the reference file.
The device driving automatic detection method provided by the embodiment of the invention is characterized by extracting the current device driving information of the terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result; and generating a detection log according to the comparison result. The automatic detection of the equipment driving information is realized, a developer can check the detection result at any time through the detection log, the manual detection of the equipment driving is not needed, the development efficiency of the developer is improved, and the labor cost is reduced.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A device driven automated inspection method, comprising:
extracting current equipment driving information of a terminal to be detected, wherein the current equipment driving information comprises a current equipment ID, a current equipment driving state, a current equipment driving description and a current equipment driving version;
extracting historical equipment driving information of a terminal to be detected, wherein the historical equipment driving information comprises a historical equipment ID, a historical equipment driving state, a historical equipment driving description and a historical equipment driving version;
comparing the current equipment driving information with the historical equipment driving information to obtain a comparison result;
generating a detection log according to the comparison result;
the content of the detection log comprises different items between the current equipment driving information and the historical equipment driving information, and the detection log is classified and arranged, wherein the detection log comprises the following components: newly added items, deleted items and changed items;
and storing the detection log to a preset position.
2. The method of claim 1, wherein before extracting the current device driving information of the terminal to be detected, further comprising:
creating a temporary file;
traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected;
and storing the current equipment driving information into the temporary file.
3. The method of claim 2, wherein the extracting current device driving information of the terminal to be detected comprises:
and extracting current equipment driving information of the terminal to be detected from the temporary file.
4. The method of claim 2, wherein creating the temporary file comprises:
determining whether a history temporary file exists;
if the history temporary file exists, deleting the history temporary file and then creating the temporary file.
5. The method of claim 4, wherein extracting historical device driving information of the terminal to be detected comprises:
determining whether a history reference exists;
and if the history reference file exists, extracting the history equipment driving information of the terminal to be detected from the history reference file.
6. The method of claim 5, wherein after determining whether a history reference exists, further comprising:
if the history reference file does not exist, creating the reference file;
traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected;
the current equipment driving information is used as historical equipment driving information of the terminal to be detected and is stored in the reference file;
and extracting historical equipment driving information of the terminal to be detected from the reference file.
7. A device-driven automated inspection apparatus, comprising:
the device comprises a current device driving information extraction module, a current device driving information extraction module and a current device driving information extraction module, wherein the current device driving information comprises a current device ID, a current device driving state, a current device driving description and a current device driving version;
the historical equipment driving information extraction module is used for extracting historical equipment driving information of the terminal to be detected, wherein the historical equipment driving information comprises a historical equipment ID, a historical equipment driving state, a historical equipment driving description and a historical equipment driving version;
the device driving information comparison module is used for comparing the current device driving information with the historical device driving information to obtain a comparison result;
the detection log generation module is used for generating a detection log according to the comparison result;
the content of the detection log comprises different items between the current equipment driving information and the historical equipment driving information, and the detection log is classified and arranged, wherein the detection log comprises the following components: newly added items, deleted items and changed items;
and storing the detection log to a preset position.
8. A terminal device, characterized in that the terminal device comprises:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the device-driven automated detection method of any of claims 1-6.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the device driven automatic detection method according to any of claims 1-6.
CN202010010942.3A 2020-01-06 2020-01-06 Automatic detection method, device, equipment and storage medium for equipment drive Active CN111240928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010010942.3A CN111240928B (en) 2020-01-06 2020-01-06 Automatic detection method, device, equipment and storage medium for equipment drive

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010010942.3A CN111240928B (en) 2020-01-06 2020-01-06 Automatic detection method, device, equipment and storage medium for equipment drive

Publications (2)

Publication Number Publication Date
CN111240928A CN111240928A (en) 2020-06-05
CN111240928B true CN111240928B (en) 2024-04-09

Family

ID=70870714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010010942.3A Active CN111240928B (en) 2020-01-06 2020-01-06 Automatic detection method, device, equipment and storage medium for equipment drive

Country Status (1)

Country Link
CN (1) CN111240928B (en)

Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6408406B1 (en) * 1999-08-31 2002-06-18 Western Digital Technologies, Inc. Hard disk drive infant mortality test
CN101281467A (en) * 2007-04-04 2008-10-08 英业达股份有限公司 Method for refreshing chip driver program
KR20110046850A (en) * 2009-10-29 2011-05-06 주식회사 반딧불소프트웨어 Apparatus and method for detecting malignant code
CN102306117A (en) * 2011-08-12 2012-01-04 奇智软件(北京)有限公司 Automatic hardware test alarm method and device
CN105487978A (en) * 2015-12-01 2016-04-13 北京浩瀚深度信息技术股份有限公司 Method and system for automatically testing application software based on UFT
CN105955876A (en) * 2016-05-13 2016-09-21 腾讯科技(深圳)有限公司 Data monitoring processing method and apparatus
CN107577597A (en) * 2017-08-08 2018-01-12 广州视源电子科技股份有限公司 Installation kit automated testing method, device, equipment and storage medium
CN107678970A (en) * 2017-10-20 2018-02-09 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN107844426A (en) * 2017-11-24 2018-03-27 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN107908568A (en) * 2017-11-29 2018-04-13 中标软件有限公司 Operating system performance automated testing method and device
CN107908540A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and medium
CN107959673A (en) * 2017-11-17 2018-04-24 广东省信息安全测评中心 Abnormal login detecting method, device, storage medium and computer equipment
CN108040159A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving
CN108229171A (en) * 2018-02-11 2018-06-29 腾讯科技(深圳)有限公司 Driver processing method, device and storage medium
CN108399125A (en) * 2018-02-08 2018-08-14 深圳壹账通智能科技有限公司 Automated testing method, device, computer equipment and storage medium
CN108449342A (en) * 2018-03-20 2018-08-24 北京搜狐互联网信息服务有限公司 Malicious requests detection method and device
CN108989150A (en) * 2018-07-19 2018-12-11 新华三信息安全技术有限公司 A kind of login method for detecting abnormality and device
CN109067763A (en) * 2018-08-29 2018-12-21 阿里巴巴集团控股有限公司 Safety detection method, equipment and device
CN109062741A (en) * 2018-07-03 2018-12-21 南京百敖软件有限公司 A kind of detection determination method of computer hardware configuration
CN109614309A (en) * 2018-10-22 2019-04-12 中国平安财产保险股份有限公司 Compare the method, apparatus, computer equipment and storage medium of test result
CN109739742A (en) * 2018-11-27 2019-05-10 口碑(上海)信息技术有限公司 Business datum checking method, device and equipment
CN109960653A (en) * 2019-02-18 2019-07-02 天津五八到家科技有限公司 Regression testing method, device, equipment and storage medium
CN110426634A (en) * 2019-09-10 2019-11-08 上海大制科技有限公司 A kind of method and apparatus of the predicting abnormality for drive system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6201670B2 (en) * 2013-11-15 2017-09-27 富士通株式会社 Determination device, determination program, and determination method
JP6648915B2 (en) * 2015-07-21 2020-02-14 キヤノン株式会社 Information processing apparatus, method and program
US10585789B2 (en) * 2018-03-19 2020-03-10 International Business Machines Corporation Intelligent generation of log messages by a SaaS offering in a continuous pipeline

Patent Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6408406B1 (en) * 1999-08-31 2002-06-18 Western Digital Technologies, Inc. Hard disk drive infant mortality test
CN101281467A (en) * 2007-04-04 2008-10-08 英业达股份有限公司 Method for refreshing chip driver program
KR20110046850A (en) * 2009-10-29 2011-05-06 주식회사 반딧불소프트웨어 Apparatus and method for detecting malignant code
CN102306117A (en) * 2011-08-12 2012-01-04 奇智软件(北京)有限公司 Automatic hardware test alarm method and device
CN105487978A (en) * 2015-12-01 2016-04-13 北京浩瀚深度信息技术股份有限公司 Method and system for automatically testing application software based on UFT
CN105955876A (en) * 2016-05-13 2016-09-21 腾讯科技(深圳)有限公司 Data monitoring processing method and apparatus
CN107908540A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and medium
CN107577597A (en) * 2017-08-08 2018-01-12 广州视源电子科技股份有限公司 Installation kit automated testing method, device, equipment and storage medium
CN107678970A (en) * 2017-10-20 2018-02-09 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN107959673A (en) * 2017-11-17 2018-04-24 广东省信息安全测评中心 Abnormal login detecting method, device, storage medium and computer equipment
CN107844426A (en) * 2017-11-24 2018-03-27 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN107908568A (en) * 2017-11-29 2018-04-13 中标软件有限公司 Operating system performance automated testing method and device
CN108040159A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Localization method, mobile terminal and readable storage medium storing program for executing are restarted based on hardware driving
CN108399125A (en) * 2018-02-08 2018-08-14 深圳壹账通智能科技有限公司 Automated testing method, device, computer equipment and storage medium
CN108229171A (en) * 2018-02-11 2018-06-29 腾讯科技(深圳)有限公司 Driver processing method, device and storage medium
CN108449342A (en) * 2018-03-20 2018-08-24 北京搜狐互联网信息服务有限公司 Malicious requests detection method and device
CN109062741A (en) * 2018-07-03 2018-12-21 南京百敖软件有限公司 A kind of detection determination method of computer hardware configuration
CN108989150A (en) * 2018-07-19 2018-12-11 新华三信息安全技术有限公司 A kind of login method for detecting abnormality and device
CN109067763A (en) * 2018-08-29 2018-12-21 阿里巴巴集团控股有限公司 Safety detection method, equipment and device
CN109614309A (en) * 2018-10-22 2019-04-12 中国平安财产保险股份有限公司 Compare the method, apparatus, computer equipment and storage medium of test result
CN109739742A (en) * 2018-11-27 2019-05-10 口碑(上海)信息技术有限公司 Business datum checking method, device and equipment
CN109960653A (en) * 2019-02-18 2019-07-02 天津五八到家科技有限公司 Regression testing method, device, equipment and storage medium
CN110426634A (en) * 2019-09-10 2019-11-08 上海大制科技有限公司 A kind of method and apparatus of the predicting abnormality for drive system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种自动精确衡量信息发布系统客观服务质量的方法;李露露;叶德建;刘新;;计算机应用与软件;20150115(第01期);全文 *

Also Published As

Publication number Publication date
CN111240928A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN110764945B (en) Crash log processing method, device, equipment and storage medium
CN109086203B (en) Page detection method and device
US20140129875A1 (en) Method for reading kernel log upon kernel panic in operating system
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN114168222B (en) Method and device for acquiring time consumption during starting, terminal equipment and storage medium
CN113688398B (en) Vulnerability scanning result evaluation method, device and system
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN108874441B (en) Board card configuration method, device, server and storage medium
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN111694684B (en) Abnormal construction method and device of storage device, electronic device and storage medium
CN111274130A (en) Automatic testing method, device, equipment and storage medium
CN114003269A (en) Component processing method and device, electronic equipment and storage medium
CN111367813B (en) Automatic testing method and device for decision engine, server and storage medium
CN111240928B (en) Automatic detection method, device, equipment and storage medium for equipment drive
US20090259835A1 (en) System and method for tracking and recording system configurations of electronic devices
CN112631621A (en) Dependency package management method, device, server and storage medium
CN110597724B (en) Calling method and device of application security test component, server and storage medium
CN112114811A (en) Compiling method, device and equipment
CN111124423A (en) Multi-platform-based compiling detection method, device, server and medium
CN110825572A (en) Method, device and system for detecting I2C equipment address and electronic equipment
CN116820946B (en) Method and device for automatically testing compatibility of target software
CN112181761B (en) Program execution control method, program execution test device, code detection device, program execution equipment and medium
CN113590225B (en) Mapping detection method and device, electronic equipment and storage medium
CN111367537B (en) Installation method and device of device driver, computer device and storage medium
CN110806981B (en) Application program testing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant