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

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

Info

Publication number
CN111240928A
CN111240928A CN202010010942.3A CN202010010942A CN111240928A CN 111240928 A CN111240928 A CN 111240928A CN 202010010942 A CN202010010942 A CN 202010010942A CN 111240928 A CN111240928 A CN 111240928A
Authority
CN
China
Prior art keywords
driving information
terminal
detected
historical
current
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.)
Granted
Application number
CN202010010942.3A
Other languages
Chinese (zh)
Other versions
CN111240928B (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 Wentai Information Technology Co Ltd
Original Assignee
Shanghai Wentai 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 Wentai Information Technology Co Ltd filed Critical Shanghai Wentai 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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for automatically detecting equipment drive, 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 device driving information with the historical device 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, developers can check the detection result at any time through the detection log without manually checking the equipment driving, the development efficiency of the developers is improved, and the labor cost is reduced.

Description

Automatic detection method, device and equipment for equipment drive and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for automatically detecting equipment driving.
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 with the device.
In the development and test stage of the notebook computer project, more problems about drive loss or abnormal working state occur, and at present, a tester is relied on to manually check the drive. This method is very careless, for example, a hidden device in the device manager is lost, and cannot be judged in the device manager in an intuitive manner, and at this time, a tester needs to open a hidden list and open a higher-level directory for viewing. Such complicated operation makes it difficult to avoid missing or erroneous judgment in manual operation if a plurality of machines need to be checked simultaneously.
Disclosure of Invention
The embodiment of the invention provides an automatic detection method, device, equipment and storage medium for equipment driving, so as to realize automatic detection of equipment driving information, improve the development efficiency of developers and reduce labor cost.
In one embodiment, an embodiment of the present invention provides an apparatus 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 device driving information with the historical device 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 saving the current device driving information to the temporary file.
Further, the extracting the current device driving information of the terminal to be detected includes:
and extracting the current equipment driving information of the terminal to be detected from the temporary file.
Further, the creating a temporary file includes:
determining whether a history temporary file exists;
and if the historical temporary file exists, deleting the historical 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 file exists;
and if the historical reference file exists, extracting the historical equipment driving information of the terminal to be detected from the historical reference file.
Further, after determining whether the history reference file exists, the method further includes:
if no history reference file exists, creating a reference file;
traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected;
taking the current device driving information as historical device driving information of the terminal to be detected and storing the historical device driving information to the reference file;
and extracting historical equipment driving information of the terminal to be detected from the reference file.
Further, the current device driver information includes a current device ID, a current device driver state, a current device driver description, and a current device driver 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 an apparatus driving automation detection apparatus, including:
the current equipment driving information extraction module is used for extracting the current equipment driving information of the terminal to be detected;
the historical device driving information extraction module is used for extracting the historical device 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, where the terminal device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the device driver automation detection method provided by any embodiment of the invention.
In one embodiment, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the device driver automation detection method provided in any embodiment of the present invention.
The automatic detection method for the equipment drive provided by the embodiment of the invention extracts the current equipment drive information of the terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current device driving information with the historical device 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, developers can check the detection result at any time through the detection log, the equipment driving is not required to be manually checked, the development efficiency of the developers is improved, and the labor cost is reduced.
Drawings
FIG. 1 is a schematic flow chart illustrating an exemplary method for automated device driver detection;
FIG. 2 is a schematic flow chart illustrating an apparatus driver automatic detection method according to another embodiment;
FIG. 3 is a schematic diagram of an apparatus driving automatic detection device according to an embodiment;
fig. 4 is a schematic structural diagram of a terminal device in an embodiment.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, 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", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "plurality", "batch" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In this embodiment, fig. 1 is a schematic flowchart of an apparatus driver automated detection method implemented by the present invention, and this embodiment is applicable to automated monitoring of apparatus driver information of a computer. As shown in fig. 1, an automatic detection method for device drivers according to an embodiment of the present invention includes:
and S110, extracting the current equipment driving information of the terminal to be detected.
Specifically, the terminal to be detected represents a terminal device that needs device driving detection, such as a notebook computer, a desktop computer, and the like. 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.
Current device driver information includes, but is not limited to: current device id (hardware id), current device Driver state (Status), current device Driver Description (Description), and current device Driver Version (Driver Version). The DEVICE ID indicates an ID of a hardware DEVICE corresponding to the driver, for example, HID _ DEVICE. The device driving state indicates whether the driving is normally operated, and may be determined by a preset return value, for example, a return value of 0 indicates that the driving is normally operated, a return value of 1 indicates that the driving is disabled, and other return values indicate that the driving is abnormal. The device driver description represents the 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.
And S120, extracting historical equipment driving information of the terminal to be detected.
Specifically, the historical device driving information is reference data of the current device driving information, which is obtained in advance, and represents normal device driving information of the terminal to be detected, and includes a historical device ID, a historical device driving state, a historical device driving description, and a historical device driving version, where definitions of the device ID, the device driving state, the device driving description, and the device driving version are the same as those in step S110, and are not described herein again. And extracting the historical device driving information, and using the historical device driving information as reference data for judging whether the current device driving information is normal or not.
S130, comparing the current device driving information with the historical device 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 indicates the difference between the current device driving information and the historical device driving information. The comparison of the current device driving information with the historical device driving information includes a comparison of a current device ID with a historical device ID, a comparison of a current device driving state with a historical device driving state, a comparison of a current device driving description with a historical device driving description, and a comparison of a current device driving version with a historical device driving 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, such as a log file, and developers can check the comparison result at any time through the detection log, so as to know the relevant information of the device driving.
Furthermore, the detection log can only comprise different items between the current device driving information and the historical device driving information, and classification and sorting are carried out, so that developers can check the abnormity 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 automatic detection method for the device driver provided by the embodiment extracts the current device driver information of the terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current device driving information with the historical device 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, developers can check the detection result at any time through the detection log, the equipment driving is not required to be manually checked, the development efficiency of the developers is improved, and the labor cost is reduced.
In this embodiment, fig. 2 is a schematic flowchart of an apparatus driving automation detection method according to an embodiment of the present invention, which is a further refinement of the foregoing embodiment. As shown in fig. 2, an apparatus driving automatic detection method provided by an embodiment of the present invention includes:
s210, creating a temporary file.
Specifically, the temporary file is a file used for storing the current device driving information of the terminal to be detected in the current device driving automatic detection process, for example, a tmp file, a temp file, or the like.
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 automation detection process and used for storing the current device driver information, and if the history temporary file exists, the history temporary file should be deleted, so that confusion between the current device driver information and the current device driver information is avoided, and a new temporary file is created to store the current device driver information. Further, if no history temporary file exists, a new temporary file can be directly created.
And S220, traversing the terminal to be detected to acquire the current equipment driving information equipment of the terminal to be detected.
Specifically, under a normal condition, 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 driver information of the terminal to be detected. Further, the obtained current device driving information is the driving information of the external hardware device connected with the terminal to be detected, and the device driving information carried by the terminal system to be detected is not recorded.
And S230, saving the current device driving information to the temporary file.
And S240, extracting the current equipment driving information of the terminal to be detected from the temporary file.
Specifically, the current device driving information is saved in a temporary file, and when the current device driving information is extracted, the current device driving information can be directly extracted from the temporary file.
And S250, determining whether a history reference file exists.
Further, it is determined whether or not a history reference file exists, and 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 device driving information of the terminal to be detected from the history reference file.
Specifically, the history reference file is a file for storing the history device driving information, and may be a log-type 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 at this time, the history device driving information can be directly extracted from the history reference file.
And S271, if the history reference file does not exist, creating a reference file.
Specifically, if there is no history reference file, it is indicated that the terminal to be detected performs the automatic detection of the device driver for the first time, and at this time, a reference file needs to be created to store the history device driver information.
And S272, traversing the terminal to be detected to acquire the current equipment driving information equipment of the terminal to be detected.
And S273, taking the current device driving information as historical device driving information of the terminal to be detected and storing the historical device driving information to the reference file.
And S274, extracting historical device driving information of the terminal to be detected from the reference file.
Specifically, if the terminal to be detected performs the automatic detection of the device driver for the first time, the historical device driver information at this time is the current device driver information, the current device driver information is obtained by traversing the terminal to be detected and is stored in the reference file as the historical device driver information, and the historical device driver information is extracted from the reference file when being extracted.
S280, comparing the current device driving information with the historical device 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 indicates the difference between the current device driving information and the historical device driving information. The comparison of the current device driving information with the historical device driving information includes a comparison of a current device ID with a historical device ID, a comparison of a current device driving state with a historical device driving state, a comparison of a current device driving description with a historical device driving description, and a comparison of a current device driving version with a historical device driving 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, such as a log file, and developers can check the comparison result at any time through the detection log, so as to know the relevant information of the device driving.
Furthermore, the detection log can only comprise different items between the current device driving information and the historical device driving information, and classification and sorting are carried out, so that developers can check the abnormity 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.
Further, if the terminal to be detected performs the automatic detection of the device driver for the first time, it is obvious that the current device driver information is the same as the historical device driver information, and in this case, the detection log may not be generated, and 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, evenlog-application.
According to the automatic detection method for the device driver, the automatic detection of the device driver information is realized, developers can check the detection result at any time through the detection log, the device driver does not need to be checked manually, the development efficiency of the developers is improved, and the labor cost is reduced.
In this embodiment, fig. 3 is a schematic structural diagram of an apparatus driver automatic detection device according to an embodiment of the present invention, which is applicable to automatically monitoring apparatus driver information of a computer. The device driver automatic detection apparatus provided by the third embodiment of the present invention can implement the device driver automatic detection method provided by any embodiment of the present invention, and specifically implement the corresponding functional structure and beneficial effects of the method.
As shown in fig. 3, an apparatus driving automation detecting apparatus provided in an embodiment of the present invention includes: a current device driver information extraction module 310, a historical device driver information extraction module 320, a device driver information comparison module 330, and a detection log generation module 340.
The current device driver information extraction module 310 is configured to extract current device driver information of the terminal to be detected;
the historical device driving information extraction module 320 is configured to extract historical device driving information of the terminal to be detected;
the device driving information comparison 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 creating module, wherein the temporary file creating module is specifically configured to:
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 saving the current device driving information to the temporary file.
Further, the current device driver information extraction module 310 is specifically configured to:
and extracting the current equipment driving information of the terminal to be detected from the temporary file.
Further, the temporary file creating module is further configured to:
determining whether a history temporary file exists; and if the historical temporary file exists, deleting the historical temporary file and then creating the temporary file.
Further, the historical device driver information extracting module 320 is specifically configured to:
determining whether a history reference file exists; and if the historical reference file exists, extracting the historical equipment driving information of the terminal to be detected from the historical reference file.
Further, the historical device driver information extracting module 320 is further configured to:
if no history reference file exists, creating a reference file; traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected; taking the current device driving information as historical device driving information of the terminal to be detected and storing the historical device driving information to the reference file; and extracting historical equipment driving information of the terminal to be detected from the reference file.
Further, the current device driver information includes a current device ID, a current device driver state, a current device driver description, and a current device driver 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 automatic detection device for the equipment drive, provided by the embodiment of the invention, the automatic detection of the equipment drive information is realized through the current equipment drive information extraction module, the historical equipment drive information extraction module, the equipment drive information comparison module and the detection log generation module, developers can check the detection result at any time through the detection log without manually checking the equipment drive, the development efficiency of the developers 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 illustrates a block diagram of an exemplary terminal device 412 suitable for use in implementing embodiments of the present invention. The terminal device 412 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 4, the terminal device 412 is represented in the form of a general terminal device. The components of the terminal device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and 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.
Storage 428 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 430 and/or cache Memory 432. The 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 and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard 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 Compact disk Read-Only Memory (CD-ROM), Digital Video disk Read-Only Memory (DVD-ROM) or other optical media may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules that are 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 instance, in 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 of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The 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 devices (e.g., network card, modem, etc.) that enable the terminal device 412 to communicate with one or more other computing terminal devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the terminal device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network, such as the internet) via the Network adapter 420. As shown in fig. 4, the network adapter 420 communicates with the other modules of the terminal device 412 over the bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the terminal device 412, including but not limited to: microcode, end device drivers, Redundant processors, external disk drive Arrays, Redundant Array of Independent Disks (RAID) systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing by running programs stored in the storage 428, for example, implementing a device driver automation 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 device driving information with the historical device driving information to obtain a comparison result; and generating a detection log according to the comparison result.
In one embodiment, the processor 416, when running the computer program, 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 saving the current device driving information to the temporary file.
In one embodiment, the processor 416, when running the computer program, further performs the steps of:
and extracting the current equipment driving information of the terminal to be detected from the temporary file.
In one embodiment, the processor 416, when running the computer program, further performs the steps of:
determining whether a history temporary file exists; and if the historical temporary file exists, deleting the historical temporary file and then creating the temporary file.
In one embodiment, the processor 416, when running the computer program, further performs the steps of:
determining whether a history reference file exists; and if the historical reference file exists, extracting the historical equipment driving information of the terminal to be detected from the historical reference file.
In one embodiment, the processor 416, when running the computer program, further performs the steps of:
if no history reference file exists, creating a reference file; traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected; taking the current device driving information as historical device driving information of the terminal to be detected and storing the historical device driving information to the reference file; and extracting historical equipment driving information of the terminal to be detected from the reference file.
The automatic detection method for the equipment drive provided by the embodiment of the invention extracts the current equipment drive information of the terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current device driving information with the historical device 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, developers can check the detection result at any time through the detection log, the equipment driving is not required to be manually checked, the development efficiency of the developers is improved, and the labor cost is reduced.
In this embodiment, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a device driver automation detection method according to any embodiment of the present invention, where 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 device driving information with the historical device 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 saving the current device driving information to the temporary file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and extracting the 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; and if the historical temporary file exists, deleting the historical 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 file exists; and if the historical reference file exists, extracting the historical equipment driving information of the terminal to be detected from the historical reference file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if no history reference file exists, creating a reference file; traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected; taking the current device driving information as historical device driving information of the terminal to be detected and storing the historical device driving information to the reference file; and extracting historical equipment driving information of the terminal to be detected from the reference file.
The automatic detection method for the equipment drive provided by the embodiment of the invention extracts the current equipment drive information of the terminal to be detected; extracting historical equipment driving information of a terminal to be detected; comparing the current device driving information with the historical device 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, developers can check the detection result at any time through the detection log, the equipment driving is not required to be manually checked, the development efficiency of the developers is improved, and the labor cost is reduced.
Computer storage media for embodiments of the invention may employ 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. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 the context of 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 for aspects 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 + + or the like 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. 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, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An automatic detection method for device driving, comprising:
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 device driving information with the historical device driving information to obtain a comparison result;
and generating a detection log according to the comparison result.
2. The method of claim 1, wherein before extracting the current device driver information of the terminal to be detected, the method further comprises:
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 saving the current device driving information to the temporary file.
3. The method of claim 2, wherein the extracting current device driver information of the terminal to be detected comprises:
and extracting the current equipment driving information of the terminal to be detected from the temporary file.
4. The method of claim 2, wherein the creating a temporary file comprises:
determining whether a history temporary file exists;
and if the historical temporary file exists, deleting the historical temporary file and then creating the temporary file.
5. The method of claim 4, wherein the extracting historical device driver information for the terminal to be detected comprises:
determining whether a history reference file exists;
and if the historical reference file exists, extracting the historical equipment driving information of the terminal to be detected from the historical reference file.
6. The method of claim 5, wherein after determining whether a history reference exists, further comprising:
if no history reference file exists, creating a reference file;
traversing the terminal to be detected to obtain the current equipment driving information equipment of the terminal to be detected;
taking the current device driving information as historical device driving information of the terminal to be detected and storing the historical device driving information to the reference file;
and extracting historical equipment driving information of the terminal to be detected from the reference file.
7. The method of claim 1, wherein the current device driver information includes a current device ID, a current device driver state, a current device driver description, and a current device driver 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.
8. An equipment drive automation detection device, characterized by comprising:
the current equipment driving information extraction module is used for extracting the current equipment driving information of the terminal to be detected;
the historical device driving information extraction module is used for extracting the historical device 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.
9. A terminal device, characterized in that the terminal device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the device driver automated detection method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a device driver automation detection method according to any one of claims 1 to 7.
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 true CN111240928A (en) 2020-06-05
CN111240928B 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 (26)

* 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
US20150142385A1 (en) * 2013-11-15 2015-05-21 Fujitsu Limited Determination method, determination apparatus, and recording medium
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
US20170024202A1 (en) * 2015-07-21 2017-01-26 Canon Kabushiki Kaisha Information processing apparatus, method, and program
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
US20190286552A1 (en) * 2018-03-19 2019-09-19 International Business Machines Corporation Intelligent generation of log messages by a saas offering in a continuous pipeline
CN110426634A (en) * 2019-09-10 2019-11-08 上海大制科技有限公司 A kind of method and apparatus of the predicting abnormality for drive system

Patent Citations (26)

* 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
US20150142385A1 (en) * 2013-11-15 2015-05-21 Fujitsu Limited Determination method, determination apparatus, and recording medium
US20170024202A1 (en) * 2015-07-21 2017-01-26 Canon Kabushiki Kaisha Information processing apparatus, method, and program
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
US20190286552A1 (en) * 2018-03-19 2019-09-19 International Business Machines Corporation Intelligent generation of log messages by a saas offering in a continuous pipeline
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
李露露;叶德建;刘新;: "一种自动精确衡量信息发布系统客观服务质量的方法", 计算机应用与软件, no. 01, 15 January 2015 (2015-01-15) *

Also Published As

Publication number Publication date
CN111240928B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US9262283B2 (en) Method for reading kernel log upon kernel panic in operating system
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN107193747B (en) Code testing method and device and computer equipment
CN108874441B (en) Board card configuration method, device, server and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN111274130A (en) Automatic testing method, device, equipment and storage medium
CN114003269A (en) Component processing method and device, electronic equipment and storage medium
CN113688398B (en) Vulnerability scanning result evaluation method, device and system
CN111694684A (en) Abnormal construction method and device of storage equipment, 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
CN110806981B (en) Application program testing method, device, equipment 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
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN110825572A (en) Method, device and system for detecting I2C equipment address and electronic equipment
CN117931552A (en) Method, device, equipment and storage medium for distinguishing functional test files of display module
CN117742897B (en) Method for realizing automatic repair of vulnerability based on container mirror image
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
CN112307131B (en) Equipment inspection method, system, electronic equipment and storage medium
CN111897774B (en) File uploading method and device, electronic 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