CN117130844A - Hard disk testing method - Google Patents

Hard disk testing method Download PDF

Info

Publication number
CN117130844A
CN117130844A CN202311405293.7A CN202311405293A CN117130844A CN 117130844 A CN117130844 A CN 117130844A CN 202311405293 A CN202311405293 A CN 202311405293A CN 117130844 A CN117130844 A CN 117130844A
Authority
CN
China
Prior art keywords
test
hard disk
items
retest
item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311405293.7A
Other languages
Chinese (zh)
Other versions
CN117130844B (en
Inventor
易林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Huakun Zhenyu Intelligent Technology Co ltd
Original Assignee
Sichuan Huakun Zhenyu Intelligent 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 Sichuan Huakun Zhenyu Intelligent Technology Co ltd filed Critical Sichuan Huakun Zhenyu Intelligent Technology Co ltd
Priority to CN202311405293.7A priority Critical patent/CN117130844B/en
Publication of CN117130844A publication Critical patent/CN117130844A/en
Application granted granted Critical
Publication of CN117130844B publication Critical patent/CN117130844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/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
    • G06F11/2221Detection 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 to test input/output devices or peripheral units
    • 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
    • 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/26Functional testing

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 invention relates to the field of computers, and discloses a hard disk testing method, which comprises the following steps: step one, obtaining a hard disk specification, and matching the hard disk specification to a test item to be tested; step two, according to the obtained correlation of the test items, obtaining the test mode of the test items, and setting the test parameters of the test items according to the test mode; step three, obtaining test results of all test items, comparing the test results with standard test values according to the obtained test results and corresponding test modes to obtain test value comparison results, and entering step five if the comparison results are qualified; if not, entering a step four; step four, matching corresponding retest strategies according to unqualified items of hard disk test, carrying out hard disk retest according to the matched retest strategies, entering step five if the retest is qualified, otherwise, giving out unqualified alarms; and step five, testing is completed. By the method, automatic hard disk testing is realized, retesting is automatically performed, and testing efficiency is improved.

Description

Hard disk testing method
Technical Field
The invention relates to the field of computers, in particular to a hard disk testing method.
Background
The existing hard disk test method is to test python or shell scripts separately for various test projects. If needed, the test is performed on items such as BasicPerformance, longStressPerformance, ATACommandRespond, powerCycle, hot plug, thread depth traversal, QOS, long and short DST, formatted sectors and the like: the test engineer needs to modify the test parameters for the test script of each project; the test script is carried out by the carrier, and the next project is carried out by the carrier after the test is completed.
At this point the test engineer will know the expected completion time, but the end time may be at night or the engineer is handling another emergency, at which point the server is in an idle state. The test progress is delayed, and the working efficiency is low; for the test result, a test engineer is required to conduct data arrangement and comparison with a nominal value, whether the test result is qualified or not is judged, and then follow-up actions are conducted; if the test fails, the test engineer needs to adjust the test parameters, then test the test parameters, and judge whether the result is qualified; the test engineer is required to sort the test results and output a test report.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a hard disk testing method, which comprises the following steps:
step one, obtaining a hard disk specification, and matching the hard disk specification to a test item to be tested;
step two, according to the obtained correlation of the test items, obtaining the test mode of the test items, and setting the test parameters of the test items according to the test mode;
step three, obtaining test results of all test items, comparing the test results with standard test values according to the obtained test results and corresponding test modes to obtain test value comparison results, and entering step five if the comparison results are qualified; if not, entering a step four;
step four, matching corresponding retest strategies according to unqualified items of hard disk test, carrying out hard disk retest according to the matched retest strategies, entering step five if the retest is qualified, otherwise, giving out unqualified alarms;
and step five, testing is completed.
Further, the obtaining the specification of the hard disk, matching the specification of the hard disk to a test item to be tested, includes: the method comprises the steps of obtaining the model of a hard disk, matching the model of the hard disk with a testable test item in a cloud data server according to the model of the hard disk, and screening the test item corresponding to the testable test item according to the performance of the hard disk to be tested, so as to obtain the test item; and obtaining performance nominal values of the performance of each hard disk to be tested at the cloud data server according to the model of the hard disk.
Further, according to the obtained correlation of the test items, a test mode of the test items is obtained, and test parameters of the test items are set according to the test mode, wherein if the test items are strongly correlated, parallel test is adopted; if the test items are weakly related, adopting serial test; the strong correlation is that when a certain test in the test items is performed, test data of other test items can be obtained, the test items are strong correlations, the certain test item is a central test item, the other items are accompanying test items, and otherwise, the test items are weak correlations.
Further, the step of obtaining the test result of each test item, comparing with a standard test value according to the obtained test result and a corresponding test mode, includes: if the test is parallel test, firstly comparing the test value of the central test item with the standard test value, and if the test value is qualified, comparing the test data of the accompanying test item with the standard data; if the result is not qualified, an alarm is sent out;
if the test is serial test, completing one test item, comparing the test value with the standard test value until all the test items are tested, and outputting a comparison result.
Further, the matching to the corresponding retest strategy according to the unqualified items of the hard disk test, and performing hard disk retest according to the matched retest strategy, includes:
if the parallel test is performed, matching the corresponding retest strategy to perform retest according to the central test item; if the test items are serial test items, matching the test items to corresponding retest strategies according to disqualified items in the comparison result, and retesting the test items in sequence according to the sequence of the test items corresponding to the disqualified items.
The beneficial effects of the invention are as follows: by the technical scheme provided by the invention, automatic hard disk test can be realized, retesting is automatically performed according to hard disk test data, and the test efficiency is improved.
Drawings
FIG. 1 is a flow chart of a method for testing a hard disk;
fig. 2 is a schematic diagram of an implementation of a hard disk testing method.
Detailed Description
The technical solution of the present invention will be described in further detail with reference to the accompanying drawings, but the scope of the present invention is not limited to the following description.
For the purpose of making the technical solution and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the particular embodiments described herein are illustrative only and are not intended to limit the invention, i.e., the embodiments described are merely some, but not all, of the embodiments of the invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention. It is noted that relational terms such as "first" and "second", and the like, are 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.
Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The features and capabilities of the present invention are described in further detail below in connection with the examples.
As shown in fig. 1, a hard disk testing method includes the following steps:
step one, obtaining a hard disk specification, and matching the hard disk specification to a test item to be tested;
step two, according to the obtained correlation of the test items, obtaining the test mode of the test items, and setting the test parameters of the test items according to the test mode;
step three, obtaining test results of all test items, comparing the test results with standard test values according to the obtained test results and corresponding test modes to obtain test value comparison results, and entering step five if the comparison results are qualified; if not, entering a step four;
step four, matching corresponding retest strategies according to unqualified items of hard disk test, carrying out hard disk retest according to the matched retest strategies, entering step five if the retest is qualified, otherwise, giving out unqualified alarms;
and step five, testing is completed.
The obtaining of the hard disk specification, according to the hard disk specification, matching to the test item to be tested, includes: the method comprises the steps of obtaining the model of a hard disk, matching the model of the hard disk with a testable test item in a cloud data server according to the model of the hard disk, and screening the test item corresponding to the testable test item according to the performance of the hard disk to be tested, so as to obtain the test item; and obtaining performance nominal values of the performance of each hard disk to be tested at the cloud data server according to the model of the hard disk.
Obtaining a test mode of the test items according to the obtained correlation of the test items, and setting test parameters of the test items according to the test mode, wherein if the test items are strongly correlated, parallel test is adopted; if the test items are weakly related, adopting serial test; the strong correlation is that when a certain test in the test items is performed, test data of other test items can be obtained, the test items are strong correlations, the certain test item is a central test item, the other items are accompanying test items, and otherwise, the test items are weak correlations.
The step of obtaining the test result of each test item, comparing the test result with a standard test value according to the obtained test result and a corresponding test mode, and comprises the following steps: if the test is parallel test, firstly comparing the test value of the central test item with the standard test value, and if the test value is qualified, comparing the test data of the accompanying test item with the standard data; if the result is not qualified, an alarm is sent out;
if the test is serial test, completing one test item, comparing the test value with the standard test value until all the test items are tested, and outputting a comparison result.
Matching the hard disk test unqualified items to corresponding retest strategies, and carrying out hard disk retest according to the matched retest strategies, wherein the method comprises the following steps:
if the parallel test is performed, matching the corresponding retest strategy to perform retest according to the central test item; if the test items are serial test items, matching the test items to corresponding retest strategies according to disqualified items in the comparison result, and retesting the test items in sequence according to the sequence of the test items corresponding to the disqualified items.
Specifically, as shown in fig. 2, integrating all test scripts, the interface item can input the nominal value of the hard disk to be tested, and the test parameters such as thread, depth and test time; the test item can autonomously select parameters to be tested; the single test item can also independently set the test parameters; the software in the process of testing can display the progress of the current test project and the current test value; the software realizes the graphic processing of the test result; the test result is automatically compared with an input nominal value, and a qualified label is preset for judging whether the test result is qualified or not; presetting a plurality of schemes which cannot be tested and are qualified by the software, and recommending retests after the test fails;
a. preset retest recommendation scheme
Scheme 1: increasing the pressure parameter for retesting;
scheme 2: performing CPU binding core retest on the test;
scheme 3: re-measuring by increasing the time length;
scheme 4: parameter unchanged simple retest verification;
b. the system recommends different retest schemes according to different test indexes;
the test in the aspect of the read-write performance index is not passed, and the system recommends schemes 1 and 2;
performance fluctuation index tests are not passed, and the system recommends schemes 3 and 4;
the time delay index test is not passed, and the system recommends a scheme 2;
c. if the test result 1 is obtained, the read-write performance is lower than a preset standard value, and the system automatically recommends schemes 1 and 2 for a test engineer to select retest;
if the obtained test result 2 is larger than the preset standard value, the system automatically recommends a scheme 2 for a test engineer to select retest; the test results may be autonomously derived from the report.
The foregoing is merely a preferred embodiment of the invention, and it is to be understood that the invention is not limited to the form disclosed herein but is not to be construed as excluding other embodiments, but is capable of numerous other combinations, modifications and environments and is capable of modifications within the scope of the inventive concept, either as taught or as a matter of routine skill or knowledge in the relevant art. And that modifications and variations which do not depart from the spirit and scope of the invention are intended to be within the scope of the appended claims.

Claims (5)

1. The hard disk testing method is characterized by comprising the following steps of:
step one, obtaining a hard disk specification, and matching the hard disk specification to a test item to be tested;
step two, according to the obtained correlation of the test items, obtaining the test mode of the test items, and setting the test parameters of the test items according to the test mode;
step three, obtaining test results of all test items, comparing the test results with standard test values according to the obtained test results and corresponding test modes to obtain test value comparison results, and entering step five if the comparison results are qualified; if not, entering a step four;
step four, matching corresponding retest strategies according to unqualified items of hard disk test, carrying out hard disk retest according to the matched retest strategies, entering step five if the retest is qualified, otherwise, giving out unqualified alarms;
and step five, testing is completed.
2. The method for testing a hard disk according to claim 1, wherein the step of obtaining the specification of the hard disk and matching the specification of the hard disk to the test item to be tested comprises: the method comprises the steps of obtaining the model of a hard disk, matching the model of the hard disk with a testable test item in a cloud data server according to the model of the hard disk, and screening the test item corresponding to the testable test item according to the performance of the hard disk to be tested, so as to obtain the test item; and obtaining performance nominal values of the performance of each hard disk to be tested at the cloud data server according to the model of the hard disk.
3. The method for testing hard disk according to claim 2, wherein the step of obtaining the test mode of the test item according to the obtained correlation of the test item, and setting the test parameters of the test item according to the test mode comprises adopting parallel test if the test items are strongly correlated; if the test items are weakly related, adopting serial test; the strong correlation is that when a certain test in the test items is performed, test data of other test items can be obtained, the test items are strong correlations, the certain test item is a central test item, the other items are accompanying test items, and otherwise, the test items are weak correlations.
4. A method for testing a hard disk according to claim 3, wherein the obtaining the test result of each test item, comparing with a standard test value according to the obtained test result and a corresponding test mode, comprises: if the test is parallel test, firstly comparing the test value of the central test item with the standard test value, and if the test value is qualified, comparing the test data of the accompanying test item with the standard data; if the result is not qualified, an alarm is sent out;
if the test is serial test, completing one test item, comparing the test value with the standard test value until all the test items are tested, and outputting a comparison result.
5. The method for testing a hard disk according to claim 4, wherein the matching the hard disk test failure item to the corresponding retest policy and the matching retest policy to perform hard disk retest includes:
if the parallel test is performed, matching the corresponding retest strategy to perform retest according to the central test item; if the test items are serial test items, matching the test items to corresponding retest strategies according to disqualified items in the comparison result, and retesting the test items in sequence according to the sequence of the test items corresponding to the disqualified items.
CN202311405293.7A 2023-10-27 2023-10-27 Hard disk testing method Active CN117130844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311405293.7A CN117130844B (en) 2023-10-27 2023-10-27 Hard disk testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311405293.7A CN117130844B (en) 2023-10-27 2023-10-27 Hard disk testing method

Publications (2)

Publication Number Publication Date
CN117130844A true CN117130844A (en) 2023-11-28
CN117130844B CN117130844B (en) 2024-03-12

Family

ID=88856817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311405293.7A Active CN117130844B (en) 2023-10-27 2023-10-27 Hard disk testing method

Country Status (1)

Country Link
CN (1) CN117130844B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6314382B1 (en) * 1998-10-27 2001-11-06 Inventec Corporation Methodology for testing a high capacity floppy disk unit installed in a notebook computer
US20040138856A1 (en) * 2002-12-31 2004-07-15 Hung-En Tai Method for analyzing final test parameters
CN102306193A (en) * 2011-09-05 2012-01-04 浪潮电子信息产业股份有限公司 Method for testing performance of magnetic disc database
CN106021047A (en) * 2016-05-13 2016-10-12 浪潮电子信息产业股份有限公司 Method and apparatus for processing hard disk test data
CN113628675A (en) * 2021-07-22 2021-11-09 成都思科瑞微电子股份有限公司 SSD solid state disk testing method
CN114882936A (en) * 2022-04-26 2022-08-09 浪潮商用机器有限公司 Hard disk testing method, computer readable storage medium, device and server
CN116721690A (en) * 2023-05-17 2023-09-08 超聚变数字技术有限公司 Disk array performance test method and computing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6314382B1 (en) * 1998-10-27 2001-11-06 Inventec Corporation Methodology for testing a high capacity floppy disk unit installed in a notebook computer
US20040138856A1 (en) * 2002-12-31 2004-07-15 Hung-En Tai Method for analyzing final test parameters
CN102306193A (en) * 2011-09-05 2012-01-04 浪潮电子信息产业股份有限公司 Method for testing performance of magnetic disc database
CN106021047A (en) * 2016-05-13 2016-10-12 浪潮电子信息产业股份有限公司 Method and apparatus for processing hard disk test data
CN113628675A (en) * 2021-07-22 2021-11-09 成都思科瑞微电子股份有限公司 SSD solid state disk testing method
CN114882936A (en) * 2022-04-26 2022-08-09 浪潮商用机器有限公司 Hard disk testing method, computer readable storage medium, device and server
CN116721690A (en) * 2023-05-17 2023-09-08 超聚变数字技术有限公司 Disk array performance test method and computing device

Also Published As

Publication number Publication date
CN117130844B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN106294120B (en) Method, apparatus and computer program product for testing code
US8978009B2 (en) Discovering whether new code is covered by tests
CN107798047B (en) Repeated work order detection method, device, server and medium
US20120084756A1 (en) Accurate identification of software tests based on changes to computer software code
US7797584B2 (en) SATA interface tester and testing method
CN112052172B (en) Rapid test method and device for third-party channel and electronic equipment
CN109522181B (en) Performance test method, device and equipment of distributed storage system
KR101976629B1 (en) Commit sensitive tests
CN107632909B (en) Method and system for automatically testing device functions
CN109669436B (en) Test case generation method and device based on functional requirements of electric automobile
CN117130844B (en) Hard disk testing method
CN105653455A (en) Program vulnerability detection method and detection system
CN109376285B (en) Data sorting verification method based on json format, electronic device and medium
CN112527573B (en) Interface testing method, device and storage medium
CN111737072B (en) Eye pattern testing system and method for hard disk TX signal
CN114546749A (en) Chip random test case regression method, device, equipment and readable medium
US20230086626A1 (en) System and method for detection of anomalies in test and measurement results of a device under test (dut)
CN110851366A (en) Method and device for realizing regression test
CN117555812B (en) Cloud platform automatic testing method and system
CN105531726A (en) Product sampling inspection method, apparatus and system
CN110046067A (en) Interface test method and device
CN113434408B (en) Unit test case sequencing method based on test prediction
US20220252647A1 (en) Method of generating metadata from acquired signals for search, filtering, and machine learning inputs
CN117233581B (en) Chip testing method, device, equipment and medium
CN114401032B (en) Testing method and system for satellite communication comprehensive tester

Legal Events

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