CN114116357A - Automatic test method, device and tool for hard disk - Google Patents

Automatic test method, device and tool for hard disk Download PDF

Info

Publication number
CN114116357A
CN114116357A CN202111463037.4A CN202111463037A CN114116357A CN 114116357 A CN114116357 A CN 114116357A CN 202111463037 A CN202111463037 A CN 202111463037A CN 114116357 A CN114116357 A CN 114116357A
Authority
CN
China
Prior art keywords
test
hard disk
information
preset
error
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.)
Pending
Application number
CN202111463037.4A
Other languages
Chinese (zh)
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.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry 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 Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN202111463037.4A priority Critical patent/CN114116357A/en
Publication of CN114116357A publication Critical patent/CN114116357A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a method, a device and a tool for automatically testing a hard disk, wherein the method comprises the steps of testing the currently accessed hard disk according to a current test scheme to obtain a test result; screening the test results to obtain at least one error report message in the test results; acquiring a preset information list; and listing error reporting information which does not exist in the preset information list in the test result, thereby realizing the automatic judgment of the hard disk test result and improving the efficiency of hard disk test.

Description

Automatic test method, device and tool for hard disk
Technical Field
The application relates to the technical field of hard disk testing, in particular to an automatic testing method, device and tool for a hard disk.
Background
The hard disk is the most important storage device in the computer and can provide storage capacity for the computer. Most data required by normal operation of a computer are stored on a hard disk, the hard disk is equivalent to a data warehouse, an operating system, software, documents, data and the like are stored in the hard disk in a data form, the computer acquires the data from the hard disk during operation and calls the data into a memory, a Central Processing Unit (CPU) and the memory perform data interaction, and finally, the operated result is put into the hard disk again for storage, so that the importance of the hard disk in the computer system is seen, and the hard disk test is especially important for ensuring the quality of the hard disk.
At present, automatic testing can be realized on testing of hard disks, but the automatic process of the current automatic testing is embodied in the testing process of the hard disks, the error of the testing result cannot be automatically judged after the testing is finished, the labor input is still huge, for example, after each kind of testing is finished, a tester needs to judge the result of each kind of testing, and the testing efficiency of the hard disks is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide an automatic test method, apparatus and tool for hard disks, so as to solve the above problems.
In a first aspect, the present invention provides an automatic test method for a hard disk, including: testing the currently accessed hard disk according to the current testing scheme to obtain a testing result; screening the test results to obtain at least one error report message in the test results; acquiring a preset information list, wherein the preset information list comprises a plurality of preset error reporting information; and listing the error information which does not exist in the preset information list in the test result.
In the automatic test method for the hard disk, the scheme firstly adopts the current test scheme to test the currently accessed hard disk to obtain a test result, then screens the test result to obtain at least one error reporting message in the test result, then compares the error reporting message in the test result with the error reporting message in the preset message list, and lists the error reporting messages which do not exist in the preset message list in the test result, thereby realizing the automatic judgment of the error reporting messages, further solving the problem of low efficiency caused by the judgment of the test result by the current manual work, and improving the efficiency of hard disk test.
In an optional implementation manner of the first aspect, the screening the test results to obtain at least one error report message in the test results includes: searching in the test result according to a preset keyword; and extracting each piece of searched information with the preset keyword to obtain at least one error report information in the test result.
In the embodiment designed above, the present solution searches for error information in the test result through the preset keyword, so as to obtain the required error information from a plurality of test results simply, conveniently and quickly.
In an optional implementation manner of the first aspect, the listing error information that is not present in the preset information list in the test result includes: judging whether the error information exists in the preset information list or not according to each error information in the test result; if so, neglecting error reporting information in the preset information list; if not, listing the error information which does not exist in the preset information list. In the above-designed automatic test method for a hard disk, filtering of error information can be realized by judging whether preset error information identical to the error information is found in the preset information list. In a preferred embodiment, the method can realize that only important/necessary error information is listed, and non-important/unnecessary error information is omitted, and the advanced filtering of the error information can reduce the number of error information finally presented to the operator and improve the processing efficiency of the operator.
In an optional implementation manner of the first aspect, after the listing of error information that is not in the preset information list, the method further includes: generating a test report according to the listed error reporting information; and sending the test report to a preset receiver.
In the embodiment designed above, the listed error report information is used to generate a test report and is directly sent to a preset receiver, so that a tester can receive the test result automatically without operation.
In an optional implementation manner of the first aspect, before the testing the currently accessed hard disk according to the current testing scheme and obtaining the testing result, the method further includes: determining a test scheme selected by a user according to the identified hard disk type and/or a selection instruction of the user, wherein a plurality of test schemes are preset, and the hard disk types corresponding to different test schemes are different; and determining the test scheme selected by the user as the current test scheme.
In an optional implementation manner of the first aspect, before the testing the currently accessed hard disk according to the current testing scheme and obtaining the testing result, the method further includes: determining a test scheme selected by a user according to the identified hard disk type and/or a selection instruction of the user, wherein a plurality of test schemes are preset, and the hard disk types corresponding to different test schemes are different; acquiring a test item configured by a user; and determining the current test scheme according to the test items configured by the user and the test scheme selected by the user.
In the two design modes, different test schemes are selected for different test hard disk types to test, so that the test on the hard disk is more reasonable and has pertinence.
In an optional implementation manner of the first aspect, the currently accessed hard disk is a hard disk currently accessed to a server, and the testing the hard disk of the server according to the current testing scheme to obtain a testing result includes: acquiring first hard disk information of a server acquired by a baseboard management controller through an intelligent platform management interface; acquiring second hard disk information of the server, which is acquired by the server under an operating system; and determining a matching result of the hard disk information of the server and the actual machine configuration according to the first hard disk information and the second hard disk information.
In the embodiment designed above, the configuration information of the machine is automatically confirmed, so as to test the matching degree of the hard disk configuration information of the machine.
In a second aspect, the present invention provides an automatic testing apparatus for a hard disk, comprising: the test module is used for testing the currently accessed hard disk according to the current test scheme to obtain a test result; the screening module is used for screening the test result to obtain error reporting information in the test result; the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a preset information list, and the preset information list comprises a plurality of preset error reporting information; and the filtering module is used for listing the error information which does not exist in the preset information list in the test result.
In the automatic test device for the hard disk, the scheme firstly adopts the current test scheme to test the currently accessed hard disk to obtain a test result, then screens the test result to obtain at least one error reporting message in the test result, then compares the error reporting message in the test result with the error reporting message in the preset message list, and lists the error reporting messages which do not exist in the preset message list in the test result, thereby realizing the automatic judgment of the error reporting messages, further solving the problem of low efficiency caused by the judgment of the test result by the current manual work, and improving the efficiency of hard disk test.
In an optional implementation manner of the second aspect, the screening module is specifically configured to search the test result according to a preset keyword; and extracting each piece of searched information with the preset keyword to obtain error reporting information in the test result.
In an optional implementation manner of the second aspect, the filtering module is specifically configured to search in a preset information list according to each error reporting information in the test result, so as to determine whether a preset error reporting information that is the same as the error reporting information is found in the preset information list; if not, determining the error information in the test result as the error information which does not exist in the preset information list, and listing the error information. In the filtering module, by judging whether the preset error information which is the same as the error information is found in the preset information list, the filtering of the error information can be realized. In a preferred embodiment, the method can realize that only important/necessary error information is listed, and non-important/unnecessary error information is omitted, and the advanced filtering of the error information can reduce the number of error information finally presented to the operator and improve the processing efficiency of the operator.
In an optional implementation manner of the second aspect, the apparatus further includes a determining module, configured to determine a test scheme selected by a user according to the identified hard disk type and/or a selection instruction of the user, where multiple test schemes are preset, and different types of hard disks corresponding to different test schemes are different; and determining the test scheme selected by the user as the current test scheme.
In an optional implementation manner of the second aspect, the determining module is further configured to determine a test scheme selected by the user according to the identified hard disk type and/or a selection instruction of the user, where a plurality of test schemes are preset, and different types of hard disks corresponding to different test schemes are different; the acquisition module is also used for acquiring the test items configured by the user; the determining module is further configured to determine a current test scheme according to the test items configured by the user and the test scheme selected by the user.
In an optional implementation manner of the second aspect, the currently accessed hard disk is a hard disk currently accessed to a server, and the obtaining module is further configured to obtain first hard disk information of the server, which is collected by a baseboard management controller through an intelligent platform management interface; acquiring second hard disk information of the server acquired by the server under an operating system; the determining module is further configured to determine a matching result between the hard disk information of the server and the actual machine configuration according to the first hard disk information and the second hard disk information.
In a third aspect, the present invention provides an automatic test tool for a hard disk, including: the user interaction unit is used for receiving the test items configured by the user; the test scheme module is used for receiving a selection instruction of a user to determine a selected test scheme, determining a current test scheme according to the selected test scheme and test items configured by the user, and testing the hard disk by using the current test scheme; the information screening unit is used for screening the test result to obtain error reporting information in the test result; and the filtering unit is used for neglecting the error information in the preset information list and listing the error information which is not in the preset information list.
In the automatic test tool for the hard disk, the test scheme unit is designed to automatically test the hard disk, and then error reporting information which does not exist in a preset information list in the test result is listed through the filtering unit, so that the automatic identification and extraction of the test result are realized, the problem of low efficiency caused by the judgment of the test result by the current manual work is solved, and the efficiency of hard disk test is improved.
In a fourth aspect, the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to perform the method in the first aspect or any optional implementation manner of the first aspect.
In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the method of the first aspect, any optional implementation manner of the first aspect.
In a sixth aspect, the present application provides a computer program product, which when run on a computer, causes the computer to perform the method of the first aspect, any of the alternative implementations of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic diagram of an automatic test tool for a hard disk according to an embodiment of the present disclosure;
fig. 2 is a first flowchart of an automatic testing method for a hard disk according to an embodiment of the present disclosure;
fig. 3 is a second flowchart of an automatic testing method for a hard disk according to an embodiment of the present application;
fig. 4 is a third flowchart of an automatic testing method for a hard disk according to an embodiment of the present disclosure;
fig. 5 is a fourth flowchart of an automatic test method for a hard disk according to an embodiment of the present application;
fig. 6 is a diagram illustrating an exemplary embodiment of an automatic hard disk testing method according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an automatic test apparatus for a hard disk according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 10-a user interaction unit; 20-a test protocol unit; 30-a filtration unit; 40-a test result processing unit; 50-a hardware information collection unit; 60-a software environment installation unit; 700-a test module; 710-a screening module; 720-an obtaining module; 730-a filtration module; 740-a determination module; 8-an electronic device; 801-a processor; 802-a memory; 803 — communication bus.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
First embodiment
An embodiment of the present application provides an automatic test tool for a hard disk, as shown in fig. 1, where the automatic test tool for a hard disk includes a user interaction unit 10, a test scheme unit 20, and a filtering unit 30, where the user interaction unit 10, as shown in fig. 1, may include a start test for starting a hard disk test, and the user interaction unit 10 further includes a test item configuration for obtaining a test item newly added or configured by a user.
The test scheme unit 20 is configured with a plurality of test schemes in advance, each test scheme corresponds to a different hard disk type, and the test scheme unit is configured to determine a selected test scheme according to an identified hard disk type and/or a selection instruction of a user, determine a current test scheme according to the selected test scheme and a test item configured by the user, and test the hard disk by using the current test scheme.
As shown in fig. 1, the test scheme unit 20 includes three parts, namely, a functional test, a performance test and a pressure test: the Hard Disk Drive system can be divided into three sets of test schemes of a Hard Disk Drive (HDD), a Solid State Drive (SSD) and a Solid State Disk (SSD) adopting a Non-Volatile Memory host controller interface specification (Non-Volatile Memory Express), wherein each test scheme is configured with a plurality of test items in advance, and the configured test items can be a combination of one or more of the following test items: the method comprises the following steps of partition testing, RAID testing, firmware upgrading and downgrading testing, I/O testing, drive information checking, safe erasing, writing checking, block size management functions, hard Disk equipment self-checking, mechanical Disk writing cache switch functions, nvme Disk multi-port testing and nvme-cli tool instruction testing.
And (3) performance testing: three options are available for a user to select, namely single-disk performance, multi-disk contrast performance and selectable performance test items, wherein the single-disk performance refers to sequential random performance tests of the hard disk by selecting different test models according to different types of disks, wherein the different test models can be configured in advance, for example, the performance tests are performed by switching on and off the hyper-threading and pre-post contrast performance tests, the performance tests are performed by setting different rotating speeds of a cooling fan, the Iozone test, the Quality of Service (Qos) test, the performance tests are performed by writing the cache switch and the pre-post contrast performance tests, and the like. The multi-disc contrast performance refers to that a plurality of discs are tested at one time, and the read-write performance of each disc is observed to float from the average value.
And (3) pressure testing: three options are available for the user to select, namely FIO hard disk pressure test, power cycle pressure test and selectable pressure test items, and the user can select the corresponding test scheme by clicking the corresponding option.
The filtering unit 30 includes log (log) collection and black and white list filtering as shown in fig. 1, where the log collection is used to filter the test results of the test scheme to obtain at least one error reporting message in the test results, and then the black and white list filtering is used to list the error reporting messages that do not exist in a preset message list in the test results, where the preset message list includes a plurality of preset error reporting messages and the preset message list can be updated in real time.
In addition to the above three units, the designed automatic test tool may further include a test result processing unit 40, a hardware information collecting unit 50, and a software environment installing unit 60, where the test result processing unit 40 may generate a test report from the listed error information, and then send the test report to a preset address; the hardware information collecting unit 50 may collect first hard disk information of the server through the baseboard management controller and the intelligent platform management interface, and obtain second hard disk information of the server collected by the server under the operating system, and further determine whether the hard disk information of the server matches with the actual machine configuration according to the first hard disk information and the second hard disk information; the software environment installation unit 60 mainly implements installation of hard disk monitoring control software, thereby implementing acquisition of hard disk information by using the hard disk monitoring control software.
In the automatic test tool for the hard disk, the test scheme unit is designed to automatically test the hard disk, and then error reporting information which does not exist in a preset information list in the test result is listed through the filtering unit, so that the automatic identification and extraction of the test result are realized, the problem of low efficiency caused by the judgment of the test result by the current manual work is solved, and the efficiency of hard disk test is improved.
Second embodiment
The embodiment of the application provides an automatic test method for a hard disk, which can automatically test the hard disk in the whole process and automatically analyze the test result of the hard disk, so as to improve the test efficiency of the hard disk, and the method can be applied to computing equipment, wherein the computing equipment can comprise a computer or a server, and the like, as shown in fig. 2, the automatic test method for the hard disk comprises the following steps:
step S200: and testing the currently accessed hard disk according to the current test scheme to obtain a test result.
Step S210: and screening the test results to obtain at least one error report message in the test results.
Step S220: and acquiring a preset information list.
Step S230: and listing error information which does not exist in the preset information list in the test result.
In step S200, the present scheme may first test a currently accessed hard disk according to a current test scheme, where the currently accessed hard disk may be a hard disk currently inserted in a server or a hard disk currently inserted in a test device; the current test scheme may be determined in two ways as follows according to the way of the first embodiment described above: first, the user may select a test scheme on the automatic test tool, for example, the user knows the type of the hard disk to be tested, and then the user may select the functional test of the corresponding type of hard disk in the functional test by himself, and the user may select the corresponding test option from the options of the performance test and the stress test according to the requirement, so as to obtain the current test scheme.
Secondly, on the basis of the first mode, the user can also configure the test items of the hard disk in the user interaction unit, so that the configured hard disk test items are combined with the function test options, the performance test options and the pressure test options selected by the user to obtain a current test scheme, and the currently accessed hard disk is tested to obtain a test result.
The test result obtained by testing the hard disk by the current test scheme contains the relevant information that the test passes and the relevant information that the test has error, and the relevant information that the test passes indicates that the corresponding function of the hard disk has no problem, and the relevant information that the test has error is the most concerned information in the test stage.
Therefore, in the present embodiment, after the test result is obtained in the foregoing step S200, step S210 is executed to screen the test result, so as to obtain at least one error message in the test result.
Wherein, the screening process for the test result can be as follows: and searching in the test result according to the preset keyword, and extracting each piece of searched information with the preset keyword so as to obtain at least one error report information in the test result. For example, error information in a conventional test result generally carries some error-reporting keywords, such as "error", "warning", "error", and the like, and according to the scheme of the present application, keyword search is performed in the test result, so as to extract related information with the keywords, thereby obtaining at least one error-reporting information in the test result. In addition, besides obtaining error information by keyword search, the present disclosure may also obtain error information in other manners, for example, a related neural network model may be trained by using conventional error information, and then sentence information in a test result is identified by using the trained neural network model, so that sentence information with a high identification probability is determined as error information. In a preferred embodiment, it is realized that only important/necessary error information is listed, i.e. "error" or "error" as described above, and that those non-important/unnecessary error information, i.e. "warning" as described above, is omitted, and this advanced filtering of the error information can reduce the amount of error information that is finally presented to the operator, and improve the processing efficiency of the operator.
After at least one error message in the test result is obtained by screening in the step S210, the present scheme may execute the step S220 to obtain a preset message list, where the preset message list may be referred to as a black and white list, and a plurality of preset error messages are recorded in the black and white list, where each preset error message represents an error message that is found in a previous test process and does not affect the actual application of the hard disk, that is, an error message that can be ignored; the preset information list can be maintained, updated and uploaded to the internet through a worker or a tester, and the preset information list in the internet can be called when step S220 is executed.
After obtaining the preset information list, the present solution performs step S230 to list error information that does not exist in the preset information list in the test result. As a possible implementation, as shown in fig. 3, step S230 may be implemented as follows:
step S300: judging whether the error information exists in a preset information list or not aiming at each error information in the test result, if so, turning to the step S310; if not, go to step S320.
Step S310: neglecting error reporting information existing in a preset information list;
step S320: and listing error information which does not exist in the preset information list.
In the embodiment designed above, the scheme searches each error reporting information in the test result in the preset information list, and if the same error reporting information is found in the preset information list, it is determined that the error reporting information can be ignored, and the performance of the hard disk is not affected; if the same error information is not found in the preset information list, determining that the error information does not exist in the preset information list, namely the error information can affect the performance of the hard disk, and listing the error information, thereby realizing the automatic judgment of error reporting.
In the automatic test method for the hard disk, the scheme firstly adopts the current test scheme to test the currently accessed hard disk to obtain a test result, then screens the test result to obtain at least one error reporting message in the test result, then compares the error reporting message in the test result with the error reporting message in the preset message list, and lists the error reporting messages which do not exist in the preset message list in the test result, thereby realizing the automatic judgment of the error reporting messages, further solving the problem of low efficiency caused by the judgment of the test result by the current manual work, and improving the efficiency of hard disk test.
In an optional implementation manner of this embodiment, after the error information is listed in step S230, the following steps may be further performed in the present solution to increase the function of automation of hard disk test, as shown in fig. 4, including:
step S400: and generating a test report according to the listed error reporting information.
Step S410: and sending the generated test report to a preset receiving party.
In the above steps, the present solution may generate a test report according to the listed error information, and specifically, the present solution may generate a test report according to the selected test scheme, the obtained test result, and the finally listed error information, and then send the generated test report to a preset receiving party, so that a testing person or other persons who need to know the test may receive the test result without operation, and automatic uploading of the hard disk test result is achieved.
In an optional implementation manner of this embodiment, before performing step S200 to test a currently accessed hard disk according to a current test scheme and obtain a test result, the present scheme may further determine hard disk information through the following steps, so as to avoid configuration errors and delay of test time, as shown in fig. 5, including:
step S500: and acquiring first hard disk information of the server acquired by the baseboard management controller through the intelligent platform management interface.
Step S510: and acquiring second hard disk information of the server acquired by the server under the operating system.
Step S520: and determining a matching result of the hard disk information of the server and the actual machine configuration according to the first hard disk information and the second hard disk information.
In step S500, the present solution may collect/collect first hard disk information of the server based on a Baseboard Management Controller (BMC) and an intelligent platform Management interface, and specifically, the following first hard disk information may be collected through the BMC and the intelligent platform Management interface: hard disk status, hard disk model, hard disk type, hard disk product Serial Number (SN), hard disk FirmWare version (FW), hard disk capacity, BMC hard disk sensor information, manufacturer, maximum transmission rate, temperature, remaining useful life, and the like.
In step S510, the present solution may obtain second hard disk information of the server itself collected by the server under the operating system, where the second hard disk information collected by the operating system may include the following information: the hard disk system management system comprises a hard disk identifier, hard disk controller information, a hard disk product Serial Number (SN), a hard disk FirmWare version (FW), hard disk Self-detection Analysis and report (Self-Monitoring, Analysis and Reporting Technology, SMART) information, a server basic software and hardware configuration information cpu memory and the like.
On the basis of obtaining the first hard disk information and the second hard disk information, the scheme can compare the first hard disk information with the second hard disk information to judge whether the hard disk information of the server is matched with the hard disk information actually configured by the server, specifically, the scheme can compare whether the hard disk product serial number and the hard disk firmware version in the first hard disk information are the same as those in the second hard disk information and judge whether the hard disk product serial number and the hard disk firmware version are matched, so that a matching result of hard disk information checking comparison is generated in a test result after the test is completed, for example, matching error information is generated under the condition of no match.
As a specific implementation manner, a user fills in a test configuration item on a tool and checks a test option to obtain a test scheme for a hard disk, and on this basis, as shown in fig. 6, the test scheme can automatically test the hard disk through the following specific processes, including:
step S600: and generating a current test scheme according to the test items selected by the user and the filled test configuration items, and testing the currently accessed hard disk based on the current test scheme to obtain the test result of each test item.
Step S610: and searching in all test results according to the preset keywords, and extracting each piece of searched information with the preset keywords so as to obtain at least one error report information in the test results.
Step S620: and calling to obtain a preset black and white list.
Step S630: judging whether the error information exists in a black and white list or not aiming at each error information in the test result, if so, turning to the step S640; if not, go to step S650.
Step S640: the error information existing in the black and white list is ignored.
Step S650: error information that does not exist in the black and white list is listed.
Step S660: and generating a test report according to the listed error reporting information.
Step S670: and sending the test report to a preset receiver to finish the automatic test of the hard disk.
Fig. 7 shows a schematic structural block diagram of an automatic test device for hard disks provided in the present application, it should be understood that the device corresponds to the method embodiments executed in fig. 2 to 6, and can execute the steps related to the foregoing method, and the specific functions of the device may be referred to the description above, and a detailed description is appropriately omitted herein to avoid redundancy. The device includes at least one software function that can be stored in memory in the form of software or firmware (firmware) or solidified in the Operating System (OS) of the device. Specifically, the apparatus includes: the test module 700 is configured to test a currently accessed hard disk according to a current test scheme to obtain a test result; the screening module 710 is configured to screen the test result to obtain error reporting information in the test result; an obtaining module 720, configured to obtain a preset information list, where the preset information list includes a plurality of preset error reporting messages; and the filtering module 730 is configured to list error information that does not exist in the preset information list in the test result.
In the automatic test device for the hard disk, the scheme firstly adopts the current test scheme to test the currently accessed hard disk to obtain a test result, then screens the test result to obtain at least one error reporting message in the test result, then compares the error reporting message in the test result with the error reporting message in the preset message list, and lists the error reporting messages which do not exist in the preset message list in the test result, thereby realizing the automatic judgment of the error reporting messages, further solving the problem of low efficiency caused by the judgment of the test result by the current manual work, and improving the efficiency of hard disk test.
In an optional implementation manner of this embodiment, the screening module 710 is specifically configured to search for a test result according to a preset keyword; and extracting each piece of searched information with the preset keyword to obtain error reporting information in the test result.
In an optional implementation manner of this embodiment, the filtering module 730 is specifically configured to search in a preset information list according to each error reporting information in the test result, so as to determine whether a preset error reporting information that is the same as the error reporting information is found in the preset information list; if not, determining the error information in the test result as the error information which does not exist in the preset information list, and listing the error information.
In an optional implementation manner of this embodiment, the apparatus further includes a determining module 740, configured to determine a test scheme selected by a user according to the identified hard disk type and/or a selection instruction of the user, where multiple test schemes are preset, and different types of hard disks corresponding to different test schemes are different; and determining the test scheme selected by the user as the current test scheme.
In an optional implementation manner of this embodiment, the determining module 740 is further configured to determine a test scheme selected by the user according to the identified hard disk type and/or a selection instruction of the user, where a plurality of test schemes are preset, and different types of hard disks corresponding to different test schemes are different; the obtaining module 720 is further configured to obtain a test item configured by a user; the determining module 740 is further configured to determine a current test scheme according to the test items configured by the user and the test scheme selected by the user.
In an optional implementation manner of this embodiment, the currently accessed hard disk is a hard disk currently accessed to the server, and the obtaining module 720 is further configured to obtain first hard disk information of the server, which is acquired by the baseboard management controller through the intelligent platform management interface; acquiring second hard disk information of the server, which is acquired by the server under an operating system; the determining module 740 is further configured to determine a matching result between the hard disk information of the server and the actual machine configuration according to the first hard disk information and the second hard disk information.
As shown in fig. 8, the present application provides an electronic device 8 comprising: the processor 801 and the memory 802, the processor 801 and the memory 802 being interconnected and communicating with each other via a communication bus 803 and/or other form of connection mechanism (not shown), the memory 802 storing a computer program executable by the processor 801, the computer program being executable by the processor 801 to perform the method of any of the alternative implementations when the computing device is running, for example, steps S200 to S230: testing the currently accessed hard disk according to the current testing scheme to obtain a testing result; screening the test results to obtain at least one error report message in the test results; acquiring a preset information list; and listing error information which does not exist in the preset information list in the test result.
The present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of any of the preceding alternative implementations.
The storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
The present application provides a computer program product which, when run on a computer, causes the computer to perform the method of any of the alternative implementations.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. An automatic test method of a hard disk is characterized by comprising the following steps:
testing the currently accessed hard disk according to the current testing scheme to obtain a testing result;
screening the test results to obtain at least one error report message in the test results;
acquiring a preset information list, wherein the preset information list comprises a plurality of preset error reporting information;
and listing the error information which does not exist in the preset information list in the test result.
2. The method of claim 1, wherein the screening the test results to obtain at least one error message in the test results comprises:
searching in the test result according to a preset keyword;
and extracting each piece of searched information with the preset keyword to obtain at least one error report information in the test result.
3. The method of claim 1, wherein the listing error messages that do not exist in the preset message list in the test result comprises:
judging whether the error information exists in the preset information list or not according to each error information in the test result;
if so, neglecting error reporting information in the preset information list;
if not, listing the error information which does not exist in the preset information list.
4. The method according to claim 1, wherein before the testing the currently accessed hard disk according to the current testing scheme and obtaining the testing result, the method further comprises:
determining a test scheme selected by a user according to the identified hard disk type and/or a selection instruction of the user, wherein a plurality of test schemes are preset, and the hard disk types corresponding to different test schemes are different;
and determining the test scheme selected by the user as the current test scheme.
5. The method according to claim 1, wherein before the testing the currently accessed hard disk according to the current testing scheme and obtaining the testing result, the method further comprises:
determining a test scheme selected by a user according to the identified hard disk type and/or a selection instruction of the user, wherein a plurality of test schemes are preset, and the hard disk types corresponding to different test schemes are different;
acquiring a test item configured by a user;
and determining the current test scheme according to the test items configured by the user and the test scheme selected by the user.
6. The method of claim 1, wherein the currently accessed hard disk is a hard disk currently accessed to a server, and the testing the hard disk of the server according to the current testing scheme to obtain the testing result comprises:
acquiring first hard disk information of the server, which is acquired by a baseboard management controller through an intelligent platform management interface;
acquiring second hard disk information of the server, which is acquired by the server under an operating system; and;
and determining a matching result of the hard disk information of the server and the actual machine configuration according to the first hard disk information and the second hard disk information.
7. An automatic test device of a hard disk, comprising:
the test module is used for testing the currently accessed hard disk according to the current test scheme to obtain a test result;
the screening module is used for screening the test result to obtain error reporting information in the test result;
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a preset information list, and the preset information list comprises a plurality of preset error reporting information; and;
and the filtering module is used for listing the error information which does not exist in the preset information list in the test result.
8. An automatic test tool for hard disks, comprising:
the user interaction unit is used for receiving the test items configured by the user;
the system comprises a test scheme unit, a test unit and a control unit, wherein a plurality of test schemes are configured in the test scheme unit in advance, each test scheme corresponds to different hard disk types, and the test scheme unit is used for determining a selected test scheme according to an identified hard disk type and/or a selection instruction of a user, determining a current test scheme according to the selected test scheme and a test item configured by the user, and testing the hard disk by using the current test scheme; and;
and the filtering unit is used for listing the error reporting information which does not exist in a preset information list in the test result, wherein the preset information list comprises a plurality of preset error reporting information.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the method of any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 6.
CN202111463037.4A 2021-12-03 2021-12-03 Automatic test method, device and tool for hard disk Pending CN114116357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111463037.4A CN114116357A (en) 2021-12-03 2021-12-03 Automatic test method, device and tool for hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111463037.4A CN114116357A (en) 2021-12-03 2021-12-03 Automatic test method, device and tool for hard disk

Publications (1)

Publication Number Publication Date
CN114116357A true CN114116357A (en) 2022-03-01

Family

ID=80365999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111463037.4A Pending CN114116357A (en) 2021-12-03 2021-12-03 Automatic test method, device and tool for hard disk

Country Status (1)

Country Link
CN (1) CN114116357A (en)

Similar Documents

Publication Publication Date Title
US10147048B2 (en) Storage device lifetime monitoring system and storage device lifetime monitoring method thereof
US8893111B2 (en) Event evaluation using extrinsic state information
CN105471675A (en) Method and system of testing nodes in batches
CN111108481B (en) Fault analysis method and related equipment
US11693731B2 (en) System and methods for diagnosing and repairing a smart mobile device by disabling components
CN114077525A (en) Abnormal log processing method and device, terminal equipment, cloud server and system
CN113190401A (en) Fast game abnormity monitoring method, electronic equipment, mobile terminal and storage medium
US11474809B2 (en) Upgrades based on analytics from multiple sources
CN115794519A (en) Test method, test system, electronic device and readable storage medium
CN113934758A (en) Vehicle fault repairing method and device, vehicle-mounted terminal, server and storage medium
CN112269697A (en) Equipment storage performance testing method, system and related device
CN116405412B (en) Method and system for verifying cluster effectiveness of simulation server based on chaotic engineering faults
CN114116357A (en) Automatic test method, device and tool for hard disk
US10776240B2 (en) Non-intrusive performance monitor and service engine
US20210334153A1 (en) Remote error detection method adapted for a remote computer device to detect errors that occur in a service computer device
CN114064510A (en) Function testing method and device, electronic equipment and storage medium
CN115237641A (en) Fault detection method and device, electronic equipment and readable medium
CN107885640B (en) Hard disk management method and device
CN112783789A (en) Adaptation test method, device and computer readable storage medium
US20110246642A1 (en) Aggregating network activity using software provenance data
CN117369732B (en) Logic disc processing method and device, electronic equipment and storage medium
CN115981982A (en) Equipment management method, device, equipment and storage medium
CN116560921A (en) RAID card testing method and device, electronic equipment and storage medium
CN114063881A (en) Disk management method and device of distributed system
CN115543387A (en) Upgrading method and device of integrated SOC software, vehicle 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
CB03 Change of inventor or designer information

Inventor after: Liu Dengyuan

Inventor after: Qin Xiaojuan

Inventor after: Wang Weigang

Inventor after: Guo Qing

Inventor before: Liu Dengyuan

Inventor before: Qin Xiaojuan

Inventor before: Wang Weigang

Inventor before: Guo Qing

CB03 Change of inventor or designer information