CN116913361A - Automatic hard disk testing method, system and medium - Google Patents

Automatic hard disk testing method, system and medium Download PDF

Info

Publication number
CN116913361A
CN116913361A CN202310677761.XA CN202310677761A CN116913361A CN 116913361 A CN116913361 A CN 116913361A CN 202310677761 A CN202310677761 A CN 202310677761A CN 116913361 A CN116913361 A CN 116913361A
Authority
CN
China
Prior art keywords
test
hard disk
tested
software
testing
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
CN202310677761.XA
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.)
Shenzhen Jingcun Technology Co ltd
Original Assignee
Shenzhen Jingcun 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 Shenzhen Jingcun Technology Co ltd filed Critical Shenzhen Jingcun Technology Co ltd
Priority to CN202310677761.XA priority Critical patent/CN116913361A/en
Publication of CN116913361A publication Critical patent/CN116913361A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses an automatic hard disk testing method, a system and a medium, which are applied to a testing system, wherein the testing system comprises a plurality of testing options, and the method comprises the following steps: receiving a test instruction input by a user through a test system; determining the test times and at least one test option corresponding to the test instruction according to the test instruction; under the condition that the test times are more than or equal to two times, calling test software corresponding to the test options to test the hard disk to be tested, and performing full-disk erasing operation between two adjacent test processes; and when the test process meets the preset ending condition, performing full-disk erasing operation after the test software finishes testing the hard disk to be tested, and receiving a plurality of test results output by the test software. According to the technical scheme of the application, the automatic test of the hard disk can be realized, and the accuracy of the test of the hard disk is improved.

Description

Automatic hard disk testing method, system and medium
Technical Field
The application relates to the technical field of data processing, in particular to an automatic hard disk testing method, an automatic hard disk testing system and a medium.
Background
The hard disk is one of the main storage media of the computer, and comprises a solid state hard disk, a mechanical hard disk and a hybrid hard disk, and the hard disk is designed by considering the influences of the performance, erasure loss and the like of the hard disk, so that the hard disk is required to be subjected to testing processes such as speed testing, quality testing and the like before products are sent to a client, and the quality problem of the hard disk is avoided.
In the aspect of testing hard disks, especially industrial solid state disks, most of testing methods mainly test performance of the hard disks under a system through conventional commercial testing software and read corresponding data. However, when the hard disk is tested through the test software, a tester is required to manually adjust the test parameters, and after each test link is completed, the next test link is required to be manually set, so that the test is inconvenient to carry out, the test performance is affected, the test efficiency of the hard disk is reduced, and the test period of the hard disk is prolonged.
Disclosure of Invention
The embodiment of the application provides a method, a system and a medium for automatically testing a hard disk, which can realize the automatic test of the hard disk and improve the accuracy of the test of the hard disk.
In a first aspect, an embodiment of the present application provides an automatic hard disk testing method, applied to a testing system, where the testing system includes a plurality of testing options, the method includes:
receiving a test instruction input by a user through the test system;
determining the test times and at least one test option corresponding to the test instruction according to the test instruction;
under the condition that the test times are more than or equal to two times, calling test software corresponding to the test options to test the hard disk to be tested, and performing full-disk erasing operation between two adjacent test processes;
and when the test process meets a preset ending condition, performing full-disk erasing operation after the test software finishes testing the hard disk to be tested, and receiving a plurality of test results output by the test software.
In some embodiments, before the invoking the test software corresponding to the test option tests the hard disk under test, the method further includes:
and performing full-disk erasing operation on the hard disk to be tested.
In some embodiments, the test option is provided with a software identification; the determining the test times and at least one test option corresponding to the test instruction according to the test instruction comprises the following steps:
determining the test times and the test identification according to the test instruction;
matching the test identifier with the software identifier;
and when the test identifier is consistent with the software identifier, determining at least one test option corresponding to the test instruction according to the test identifier.
In some embodiments, the invoking the test software corresponding to the test option tests the hard disk to be tested, including:
acquiring test parameters in the test instruction;
and calling test software corresponding to the test options, so that the test software tests the hard disk to be tested based on the test parameters.
In some embodiments, the calling the test software corresponding to the test option to test the hard disk to be tested and performing a full-disk erasing operation between two adjacent test processes includes:
under the condition that the test options are one, calling test software corresponding to the test options to perform initial test on the hard disk to be tested;
and when the initial test is determined to be finished, performing full-disk erasing operation on the hard disk to be tested, and after the full-disk erasing operation is finished, calling test software corresponding to the test option again to test the hard disk to be tested.
In some embodiments, the calling the test software corresponding to the test option tests the hard disk to be tested, and performs a full-disk erasing operation between two adjacent test processes, and further includes:
determining test software corresponding to each test option under the condition that the number of the test options is multiple;
sequencing a plurality of test software according to the test instruction to obtain a test sequence;
and calling test software corresponding to the test option based on the test sequence to test the hard disk to be tested, and performing full-disk erasing operation between two adjacent test processes in the test sequence.
In some embodiments, after said determining the number of tests according to said test instruction and at least one of said test options corresponding to said test instruction, further comprising:
under the condition that the test times are the first time, performing full-disk erasing operation on the hard disk to be tested;
calling test software corresponding to the test options to test the hard disk to be tested;
after the hard disk to be tested is tested, performing full-disk erasing operation on the hard disk to be tested again;
and receiving a target test result output by the test software.
In some embodiments, after receiving the plurality of test results output by the test software, further comprising:
summarizing a plurality of test results to generate a test report;
and updating the log of the hard disk to be tested according to the test report.
In a second aspect, an embodiment of the present application further provides an automatic hard disk testing system, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the hard disk automatic test method according to the first aspect when executing the computer program.
In a third aspect, embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions for performing the hard disk automatic test method according to the first aspect.
The embodiment of the application has at least the following beneficial effects: the method comprises the steps of receiving a test instruction input by a user through a test system, determining the test times and at least one test option corresponding to the test instruction according to the test instruction, calling test software corresponding to the test option to test a hard disk to be tested under the condition that the test times are more than or equal to two times, realizing automatic test of the hard disk, and performing full-disk erasing operation between two adjacent test processes, thereby deleting noise signals affecting test accuracy, improving test precision and reliability, and when the test processes meet preset ending conditions, performing full-disk erasing operation after the test of the hard disk to be tested by the test software is ended, and receiving a plurality of test results output by the test software, so that all data and traces are cleared, and the test results are more accurate and reliable.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
FIG. 1 is a flow chart of an automatic hard disk testing method according to an embodiment of the present application;
FIG. 2 is a flowchart of an automatic hard disk testing method according to another embodiment of the present application;
FIG. 3 is a flowchart of a specific method of step S102 in FIG. 1;
FIG. 4 is a flowchart of a specific method of step S103 in FIG. 1;
FIG. 5 is another flowchart of a specific method of step S103 in FIG. 1;
FIG. 6 is another flowchart of a specific method of step S103 in FIG. 1;
FIG. 7 is a flowchart of an automatic hard disk testing method according to another embodiment of the present application;
FIG. 8 is a flowchart of an automatic hard disk testing method according to another embodiment of the present application;
fig. 9 is a schematic structural diagram of an automatic hard disk testing system according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It should be noted that although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different from that in the flowchart. The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It should be noted that in the description of embodiments of the present application, the terms "first," "second," and the like in the description and claims and in the foregoing drawings are used for distinguishing between similar objects and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated. "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relation of association objects, and indicates that there may be three kinds of relations, for example, a and/or B, and may indicate that a alone exists, a and B together, and B alone exists. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. Although a logical order is depicted in the flowchart, in some cases the steps depicted or described may be performed in a different order than in the flowchart.
In addition, the technical features of the embodiments of the present application described below may be combined with each other as long as they do not collide with each other.
The hard disk is one of the main storage media of the computer, and comprises a solid state hard disk, a mechanical hard disk and a hybrid hard disk, and the hard disk is designed by considering the influences of the performance, erasure loss and the like of the hard disk, so that the hard disk is required to be subjected to testing processes such as speed testing, quality testing and the like before products are sent to a client, and the quality problem of the hard disk is avoided.
In the aspect of testing hard disks, especially industrial solid state disks, most of testing methods mainly test performance of the hard disks under a system through conventional commercial testing software and read corresponding data. However, when the hard disk is tested through the test software, a tester is required to manually adjust the test parameters, and after each test link is completed, the next test link is required to be manually set, so that the test is inconvenient to carry out, the test performance is affected, the test efficiency of the hard disk is reduced, and the test period of the hard disk is prolonged.
In order to solve the problems, the application provides an automatic hard disk testing method, system and medium, which are characterized in that a testing system receives a testing instruction input by a user, the testing times and at least one testing option corresponding to the testing instruction are determined according to the testing instruction, under the condition that the testing times are more than or equal to two times, testing software corresponding to the testing option is called to test a hard disk to be tested, automatic testing of the hard disk is realized, and full disk erasing operation is carried out between two adjacent testing processes, so that noise signals affecting testing accuracy are deleted, testing accuracy and reliability are improved, when the testing process meets a preset ending condition, the full disk erasing operation is carried out after the testing software finishes testing the hard disk to be tested, and a plurality of testing results output by the testing software are received, so that all data and traces are removed, and the testing results are more accurate and reliable.
Embodiments of the present application will be further described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a method for automatically testing a hard disk according to an embodiment of the present application, including but not limited to steps S101 to S104.
It should be noted that, the automatic hard disk testing method is applied to a testing system, and the testing system includes a plurality of testing options, each of which is bound with a corresponding testing software, where the testing software corresponding to each testing option is different, for example, three testing options are set, and fio (Flexible I/O Tester) software, CDM (Copy Data Management, data copy management) software, and ASSD (Advanced Solid-State Drive) software are bound on each testing option; or four test options are provided, and fio software, CDM software, HDTune software and ASSD software are bound on each test option, which is not particularly limited in this embodiment.
Step S101: receiving a test instruction input by a user through a test system;
in some embodiments, a test instruction input by a user through a test system is received, wherein the test instruction includes a performance test that the user wants to perform on a hard disk under test, such as a speed test, a read-write test, a capacity test, and so on.
In some embodiments, the user may select a corresponding test option in the test system, and each test option may further include a plurality of sub-test options, that is, different test items exist in the test software, where the test instruction carries a plurality of test parameters, for example, a test number, a test period, and the like, and the user may list all the test options through a drop-down menu at the interface of the test system.
Step S102: determining the test times and at least one test option corresponding to the test instruction according to the test instruction;
in some embodiments, the test times and at least one test option corresponding to the test instruction are determined according to the test instruction, so that the hard disk to be tested can be tested later, and accurate determination of the test option is realized.
Step S103: under the condition that the test times are more than or equal to two times, calling test software corresponding to the test options to test the hard disk to be tested, and performing full-disk erasing operation between two adjacent test processes;
in some embodiments, under the condition that the number of times of testing is greater than or equal to two, the testing software corresponding to the testing option is called to test the hard disk to be tested, and a full-disk erasing operation is inserted between two adjacent testing processes, so that interference of different testing processes in the testing period is avoided, the testing precision and reliability are improved, the testing result is more accurate and reliable, the time and power supply cost for reading the content of the hard disk can be reduced through the full-disk erasing operation, and the service life of the hard disk is prolonged.
Step S104: and when the test process meets the preset ending condition, performing full-disk erasing operation after the test software finishes testing the hard disk to be tested, and receiving a plurality of test results output by the test software.
In some embodiments, when the test process meets a preset ending condition, after the test software finishes testing the hard disk to be tested, performing a full-disk erasing operation, and receiving a plurality of test results output by the test software, thereby eliminating all data and traces, and enabling the test results to be more accurate and reliable.
It should be noted that the ending condition may include, but is not limited to, including the number of times of testing satisfying the preset ending number of times, the time of testing satisfying the preset ending time, and the like, and the embodiment is not particularly limited.
Referring to fig. 2, fig. 2 is a flowchart of an automatic hard disk testing method according to another embodiment of the present application, where the automatic hard disk testing method includes, but is not limited to, step S201.
It should be noted that step S201 occurs before the test software corresponding to the test option is invoked to test the hard disk under test.
Step S201: and performing full-disk erasing operation on the hard disk to be tested.
In some embodiments, before the test starts, the hard disk to be tested is subjected to a full-disk erasing operation, and invalid data on the hard disk to be tested is erased, so that the time and power consumption spent when the hard disk reads the content can be reduced, and the service life of the hard disk can be prolonged.
It should be noted that, during the process of using the hard disk, the surface of the hard disk may experience a lot of vibration or even collide due to frequent data reading and writing, which may result in a decrease in performance of the hard disk. Before the test starts, the whole disk erasure can help the user to thoroughly clean the hard disk data, prevent leakage holes, enhance the safety protection of equipment and also play a role in improving the performance and prolonging the service life of the equipment.
Referring to fig. 3, fig. 3 is a flowchart of a specific method of step S102 in fig. 1, and further describes step S102, where step S102 includes, but is not limited to, steps S301 to S303.
It should be noted that the test options are provided with software identifiers, and the test identifiers are different between each test option.
Step S301: determining the test times and the test identification according to the test instruction;
step S302: matching the test identifier with the software identifier;
step S303: and when the test identifier is consistent with the software identifier, determining at least one test option corresponding to the test instruction according to the test identifier.
In some embodiments, firstly, the number of tests and the test identifier are determined according to the test instruction, so that the test software to be called is conveniently determined, then, the test identifier is matched with the software identifier, and under the condition that the test identifier is consistent with the software identifier, the hit of the test option corresponding to the test request is indicated, and at least one test option corresponding to the test option is determined according to the test identifier, so that the accurate determination of the test option is realized.
Referring to fig. 4, fig. 4 is a flowchart of a specific method of step S103 in fig. 1, and further illustrates step S103, where step S103 includes, but is not limited to, steps S401 to S402.
Step S401: acquiring test parameters in a test instruction;
step S402: and calling the test software corresponding to the test option to enable the test software to test the hard disk to be tested based on the test parameter.
In some embodiments, test parameters in the test instruction are obtained, wherein the test parameters include file size, block size, operation type, concurrency, running time and the like, and then test software corresponding to the test options is called, so that the test software tests the hard disk to be tested according to the test parameters, thereby realizing comprehensive test of the hard disk and improving stability and performance of the hard disk.
It should be noted that different test software can perform various tests on the hard disk to be tested according to the test parameters, for example, in the case that the test software is HDTune software, the test software can be used for performing functions of checking and diagnosing health states of the hard disk, running error scanning of the magnetic disk, and the like; under the condition that the test software is crystal disk mark software, the read-write speed of the hard disk to be tested, performance performances under different modes such as random read-write, sequential read-write and the like can be measured.
Referring to fig. 5, fig. 5 is a flowchart of a specific method of step S103 in fig. 1, and further describes step S103, where step S103 includes, but is not limited to, steps S501 to S502.
Step S501: under the condition that the test options are one, calling test software corresponding to the test options to perform initial test on the hard disk to be tested;
step S502: and when the initial test is determined to be finished, performing full-disk erasing operation on the hard disk to be tested, and after the full-disk erasing operation is finished, calling test software corresponding to the test option again to test the hard disk to be tested.
In some embodiments, when the test options are one and the test times are multiple, it is indicated that the same test software needs to be called for multiple tests, then the test software corresponding to the test options can be directly called for performing initial tests on the hard disk to be tested, when the initial test is determined to be finished, the whole disk erasing operation is performed on the hard disk to be tested, the interference of the test software in the initial test process is avoided, then the whole disk erasing operation is performed on the hard disk to be tested, after the whole disk erasing operation is finished, the test software corresponding to the test options is called again for performing new round of tests on the hard disk to be tested, until the test process meets the preset end condition, and the test on the hard disk to be tested is finished, so that multiple automatic tests on the hard disk to be tested are realized, and the test options corresponding to the test instructions are automatically called.
It should be noted that, after the hard disk to be tested is tested, the test software generates a corresponding end signal or end information to characterize the end of the test, so that the whole disk erasing operation of the hard disk to be tested can be performed.
Referring to fig. 6, fig. 6 is a flowchart of another specific method of step S103 in fig. 1, and further describes step S103, where step S103 includes, but is not limited to, steps S601 to S603.
Step S601: determining test software corresponding to each test option in the case that the test options are multiple;
step S602: sequencing a plurality of test software according to the test instruction to obtain a test sequence;
step S603: and calling test software corresponding to the test options based on the test sequence to test the hard disk to be tested, and performing full-disk erasing operation between two adjacent test processes in the test sequence.
In some embodiments, in the case that the number of test options is multiple, it is stated that in the process of testing the hard disk to be tested, different types of test software need to be called for testing, then the test software corresponding to each test option needs to be determined, then the software identifications of the plurality of test software are ordered according to the test instruction, so as to obtain a test sequence, thereby improving the test efficiency, accelerating the test flow, and finally, according to the sequence of the test sequence, calling the test software corresponding to the test option for testing the hard disk to be tested, and performing full-disk erasing operation between two adjacent test processes, thereby realizing sequential testing of the hard disk to be tested, improving the test efficiency of the hard disk to be tested, and by performing full-disk erasing operation between two adjacent test processes, the personal privacy can be ensured not to be leaked, and the mutual influence between two adjacent test processes is avoided.
It should be noted that, in the process of sorting the plurality of test software, the priority of the test software may be first sorted, different priority parameters are given to different test software, and then the sequence of the test software is sorted according to the priority sequence, for example, the priority is from high to low or from low to high, etc.; the sorting may also be performed according to a test duration of the test software, for example, sorting according to an increment of the test duration or sorting according to a decrement of the test duration, and the embodiment is not limited in particular.
Referring to fig. 7, fig. 7 is a flowchart of an automatic hard disk testing method according to another embodiment of the present application, and the automatic hard disk testing method includes, but is not limited to, steps S701 to S704.
It should be noted that, steps S701 to S704 occur after determining the number of tests and at least one test option corresponding to the test instruction according to the test instruction.
Step S701: under the condition that the test times are the first time, performing full-disk erasing operation on the hard disk to be tested;
step S702: calling test software corresponding to the test option to test the hard disk to be tested;
step S703: after the hard disk to be tested is tested, performing full-disk erasing operation on the hard disk to be tested again;
step S704: and receiving a target test result output by the test software.
In some embodiments, under the condition that the test times are the first time, performing full-disk erasing operation on the hard disk to be tested before the test starts, removing all data on the hard disk, enabling the residual data to be more concentrated, then calling test software corresponding to the test options to test the hard disk to be tested, thereby being capable of determining performance parameters of the hard disk to be tested, realizing the test of the hard disk to be tested, and after the test of the hard disk to be tested is finished, performing full-disk erasing operation on the hard disk to be tested again, thereby enhancing the reliability of the test, improving the test precision and the reliability, and finally, receiving a target test result output by the test software, realizing the visualization of the test result, thereby ensuring the reliability and the data security of the hard disk.
Referring to fig. 8, fig. 8 is a flowchart of an automatic hard disk testing method according to another embodiment of the present application, and the automatic hard disk testing method includes, but is not limited to, steps S801 to S802.
Step S801: summarizing a plurality of test results to generate a test report;
step S802: and updating the log of the hard disk to be tested according to the test report.
In some embodiments, a plurality of test results are summarized, the plurality of test results are formatted uniformly, a test report is generated, and the log of the hard disk to be tested is updated according to the test report, so that the reliability and the data security of the hard disk are ensured.
The log of the hard disk mainly records the operation status, errors, warnings, events, and the like of the hard disk.
It will be appreciated that different results may be displayed by different test software, for example, the test result of the fio software is the original data txt, the test result of the CDM software is the screenshot, the test result of the HDTune software is the screenshot, and so on, so as to format the test result of the different test software uniformly and convert the test result into a consistent display form, for example, the test result is displayed in the original data form or the document form, thereby facilitating the user to watch.
Referring to fig. 9, fig. 9 illustrates a hardware structure of an automatic hard disk testing system according to another embodiment, and the automatic hard disk testing system includes:
the processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit ), a microprocessor, an application-specific integrated circuit (Application SpecificIntegrated Circuit, ASIC), or one or more integrated circuits, etc. for executing related programs to implement the technical scheme provided by the embodiments of the present application;
the Memory 1002 may be implemented in the form of a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a random access Memory (Random Access Memory, RAM). The memory 1002 may store an operating system and other application programs, and when the technical solutions provided in the embodiments of the present disclosure are implemented by software or firmware, relevant program codes are stored in the memory 1002, and the processor 1001 invokes a hard disk automatic test method for executing the embodiments of the present disclosure;
an input/output interface 1003 for implementing information input and output;
the communication interface 1004 is configured to implement communication interaction between the present device and other devices, and may implement communication in a wired manner (e.g. USB, network cable, etc.), or may implement communication in a wireless manner (e.g. mobile network, WIFI, bluetooth, etc.);
a bus 1005 for transferring information between the various components of the device (e.g., the processor 1001, memory 1002, input/output interface 1003, and communication interface 1004);
wherein the processor 1001, the memory 1002, the input/output interface 1003, and the communication interface 1004 realize communication connection between each other inside the device through the bus 1005.
Furthermore, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor or controller, for example, by one of the processors in the above system embodiment, so that the above processor performs the hard disk automatic test method in the above embodiment.
The embodiments described in the embodiments of the present application are for more clearly describing the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application, and those skilled in the art can know that, with the evolution of technology and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
It will be appreciated by those skilled in the art that the solutions shown in fig. 1-8 are not limiting on the embodiments of the application and may include more or fewer steps than shown, or certain steps may be combined, or different steps.
Those of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
The terms "first," "second," "third," "fourth," and the like in the description of the application and in the above figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is merely a logical function division, and there may be another division manner in actual implementation, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including multiple instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method of the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing a program.
The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and are not thereby limiting the scope of the claims of the embodiments of the present application. Any modifications, equivalent substitutions and improvements made by those skilled in the art without departing from the scope and spirit of the embodiments of the present application shall fall within the scope of the claims of the embodiments of the present application.

Claims (10)

1. An automatic hard disk testing method, applied to a testing system, the testing system including a plurality of testing options, the method comprising:
receiving a test instruction input by a user through the test system;
determining the test times and at least one test option corresponding to the test instruction according to the test instruction;
under the condition that the test times are more than or equal to two times, calling test software corresponding to the test options to test the hard disk to be tested, and performing full-disk erasing operation between two adjacent test processes;
and when the test process meets a preset ending condition, performing full-disk erasing operation after the test software finishes testing the hard disk to be tested, and receiving a plurality of test results output by the test software.
2. The method for automatically testing a hard disk according to claim 1, further comprising, before said calling the test software corresponding to the test option to test the hard disk under test:
and performing full-disk erasing operation on the hard disk to be tested.
3. The method for automatically testing a hard disk according to claim 1, wherein the test option is provided with a software identifier; the determining the test times and at least one test option corresponding to the test instruction according to the test instruction comprises the following steps:
determining the test times and the test identification according to the test instruction;
matching the test identifier with the software identifier;
and when the test identifier is consistent with the software identifier, determining at least one test option corresponding to the test instruction according to the test identifier.
4. The method for automatically testing a hard disk according to claim 1, wherein the calling the test software corresponding to the test option to test the hard disk to be tested comprises:
acquiring test parameters in the test instruction;
and calling test software corresponding to the test options, so that the test software tests the hard disk to be tested based on the test parameters.
5. The method for automatically testing a hard disk according to claim 1, wherein the calling the test software corresponding to the test option to test the hard disk to be tested and performing the whole disk erasing operation between two adjacent test processes comprises:
under the condition that the test options are one, calling test software corresponding to the test options to perform initial test on the hard disk to be tested;
and when the initial test is determined to be finished, performing full-disk erasing operation on the hard disk to be tested, and after the full-disk erasing operation is finished, calling test software corresponding to the test option again to test the hard disk to be tested.
6. The method for automatically testing a hard disk according to claim 1, wherein the calling the test software corresponding to the test option tests the hard disk to be tested and performs a full-disk erase operation between two adjacent test processes, further comprising:
determining test software corresponding to each test option under the condition that the number of the test options is multiple;
sequencing a plurality of test software according to the test instruction to obtain a test sequence;
and calling test software corresponding to the test option based on the test sequence to test the hard disk to be tested, and performing full-disk erasing operation between two adjacent test processes in the test sequence.
7. The automatic hard disk testing method according to claim 1, further comprising, after said determining a number of tests and at least one of said test options corresponding to said test instruction according to said test instruction:
under the condition that the test times are the first time, performing full-disk erasing operation on the hard disk to be tested;
calling test software corresponding to the test options to test the hard disk to be tested;
after the hard disk to be tested is tested, performing full-disk erasing operation on the hard disk to be tested again;
and receiving a target test result output by the test software.
8. The method of automatic testing of hard disk according to claim 1, further comprising, after said receiving a plurality of test results outputted by said test software:
summarizing a plurality of test results to generate a test report;
and updating the log of the hard disk to be tested according to the test report.
9. An automatic hard disk testing system, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the hard disk automatic test method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium storing computer-executable instructions for performing the hard disk automatic test method according to any one of claims 1 to 8.
CN202310677761.XA 2023-06-08 2023-06-08 Automatic hard disk testing method, system and medium Pending CN116913361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310677761.XA CN116913361A (en) 2023-06-08 2023-06-08 Automatic hard disk testing method, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310677761.XA CN116913361A (en) 2023-06-08 2023-06-08 Automatic hard disk testing method, system and medium

Publications (1)

Publication Number Publication Date
CN116913361A true CN116913361A (en) 2023-10-20

Family

ID=88351914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310677761.XA Pending CN116913361A (en) 2023-06-08 2023-06-08 Automatic hard disk testing method, system and medium

Country Status (1)

Country Link
CN (1) CN116913361A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150135164A1 (en) * 2013-11-08 2015-05-14 Halliburton Energy Services, Inc. Integrated Software Testing Management
CN107943419A (en) * 2017-11-23 2018-04-20 郑州云海信息技术有限公司 A kind of SSD secure erase automated testing methods and device
US20180314613A1 (en) * 2017-04-28 2018-11-01 Advantest Corporation User control of automated test features with software application programming interface (api)
CN110277134A (en) * 2019-06-27 2019-09-24 鸿秦(北京)科技有限公司 A kind of system automating batch testing solid state hard disk
US20200151072A1 (en) * 2018-11-14 2020-05-14 Silicon Motion, Inc. Method, computer apparatus, and user interface for performing automatic test upon storage devices
CN111309535A (en) * 2020-02-14 2020-06-19 苏州浪潮智能科技有限公司 Method and system for testing hard disk in server, electronic equipment and storage medium
US20200200819A1 (en) * 2018-12-20 2020-06-25 Advantest Corporation Automated test equipment (ate) support framework for solid state device (ssd) odd sector sizes and protection modes
CN111414306A (en) * 2020-03-20 2020-07-14 深圳忆联信息系统有限公司 Method and device for generating and sending test reports in batches and computer equipment
CN111462811A (en) * 2020-04-22 2020-07-28 深圳佰维存储科技股份有限公司 Automatic testing method and device, storage medium and electronic equipment
US10884847B1 (en) * 2019-08-20 2021-01-05 Advantest Corporation Fast parallel CRC determination to support SSD testing
US11080168B1 (en) * 2018-05-17 2021-08-03 Konark Research, Inc. System, method and apparatus for selection of hardware and software for optimal implementation of one or more functionality or algorithm
CN113468009A (en) * 2021-07-21 2021-10-01 宁畅信息产业(北京)有限公司 Pressure testing method and device, electronic equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150135164A1 (en) * 2013-11-08 2015-05-14 Halliburton Energy Services, Inc. Integrated Software Testing Management
US20180314613A1 (en) * 2017-04-28 2018-11-01 Advantest Corporation User control of automated test features with software application programming interface (api)
CN107943419A (en) * 2017-11-23 2018-04-20 郑州云海信息技术有限公司 A kind of SSD secure erase automated testing methods and device
US11080168B1 (en) * 2018-05-17 2021-08-03 Konark Research, Inc. System, method and apparatus for selection of hardware and software for optimal implementation of one or more functionality or algorithm
US20200151072A1 (en) * 2018-11-14 2020-05-14 Silicon Motion, Inc. Method, computer apparatus, and user interface for performing automatic test upon storage devices
US20200200819A1 (en) * 2018-12-20 2020-06-25 Advantest Corporation Automated test equipment (ate) support framework for solid state device (ssd) odd sector sizes and protection modes
CN110277134A (en) * 2019-06-27 2019-09-24 鸿秦(北京)科技有限公司 A kind of system automating batch testing solid state hard disk
US10884847B1 (en) * 2019-08-20 2021-01-05 Advantest Corporation Fast parallel CRC determination to support SSD testing
CN111309535A (en) * 2020-02-14 2020-06-19 苏州浪潮智能科技有限公司 Method and system for testing hard disk in server, electronic equipment and storage medium
CN111414306A (en) * 2020-03-20 2020-07-14 深圳忆联信息系统有限公司 Method and device for generating and sending test reports in batches and computer equipment
CN111462811A (en) * 2020-04-22 2020-07-28 深圳佰维存储科技股份有限公司 Automatic testing method and device, storage medium and electronic equipment
CN113468009A (en) * 2021-07-21 2021-10-01 宁畅信息产业(北京)有限公司 Pressure testing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
满晓磊: "固态硬盘固件的测试系统设计与开发", 中国知网, 30 April 2017 (2017-04-30) *

Similar Documents

Publication Publication Date Title
CN108984389B (en) Application program testing method and terminal equipment
CN110764945A (en) Crash log processing method, device, equipment and storage medium
CN109359020A (en) Start time test method and device, computer installation and storage medium
CN116340076B (en) Hard disk performance test method, device and medium
CN105045714A (en) Method and device for testing starting duration of application software and terminal
CN110674047A (en) Software testing method and device and electronic equipment
CN110569194A (en) interface testing method and device, electronic equipment and storage medium
CN111124911A (en) Automatic testing method, device, equipment and readable storage medium
CN116662214A (en) Hard disk garbage recycling method, device, system and medium based on fio
CN112133357B (en) eMMC test method and device
CN108595332B (en) Software testing method and device
CN111694684A (en) Abnormal construction method and device of storage equipment, electronic equipment and storage medium
CN116913361A (en) Automatic hard disk testing method, system and medium
CN114911706A (en) Use case recommendation method, device, equipment and storage medium
CN114141302A (en) Test method of solid state disk and electronic equipment
CN114647588A (en) Interface test method and device
CN110866492B (en) Baseline branch identification method and device and computer system
CN113900875A (en) Startup test method and device, computer equipment and storage medium
CN112269733A (en) Automatic aging test method for server and storage medium
CN112506786A (en) Regression testing method and regression testing device
CN116483641B (en) Method, system and medium for abnormal power failure detection of hard disk
CN111414194A (en) Interface information generation method and system, electronic equipment and storage medium
CN116844627B (en) Method, system and medium for power failure test of hard disk
TWI817128B (en) Enterprise resource planning device and smart debugging method thereof
CN117234949B (en) Test data noise reduction method and device, storage medium and computer equipment

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