CN110489289A - A kind of method for testing hard disk and system - Google Patents

A kind of method for testing hard disk and system Download PDF

Info

Publication number
CN110489289A
CN110489289A CN201910680153.8A CN201910680153A CN110489289A CN 110489289 A CN110489289 A CN 110489289A CN 201910680153 A CN201910680153 A CN 201910680153A CN 110489289 A CN110489289 A CN 110489289A
Authority
CN
China
Prior art keywords
hard disk
replacement
wscript
exe
identification
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.)
Withdrawn
Application number
CN201910680153.8A
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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910680153.8A priority Critical patent/CN110489289A/en
Publication of CN110489289A publication Critical patent/CN110489289A/en
Withdrawn legal-status Critical Current

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/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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention relates to server the field of test technology, providing a kind of method for testing hard disk and system, method includes: that preconfigured replacement hard disk is called to identify wscript.exe, is identified to the hard disk replaced after fault diagnosis;When the hard disk replaced after recognizing fault diagnosis, automatic performance test is carried out to the hard disk of replacement, automatic performance test is carried out to the hard disk after replacement to realize, avoids the secondary retest to the hard disk passed through after tested, simplify entire test process, improves testing efficiency.

Description

A kind of method for testing hard disk and system
Technical field
The invention belongs to server the field of test technology more particularly to a kind of method for testing hard disk and systems.
Background technique
The hard disk quantity for storing the configuration of product type is more, and capacity is also increasing.Therefore, also lead to hard disk test project Complex, test used time longer problem.
During actual hard disk test, when one or a few hard disk test breaks down in certain machine, need Replacement operation is executed to faulty hard disk.After replacing faulty hard disk, need to re-execute hard disk failure diagnostic test program to machine Device whole hard disk carries out retest, the operation of this retest, so that the hard disk power-on time not broken down increases, To increase the testing time of entire machine.
Summary of the invention
For the defects in the prior art, the present invention provides a kind of method for testing hard disk, it is intended to solve in the prior art After replacing faulty hard disk, needs to re-execute hard disk failure diagnostic test program and retest is carried out to machine whole hard disk, So that the hard disk power-on time not broken down increases, thus the problem of increasing the testing time of entire machine.
The technical solution provided by the present invention is: a kind of method for testing hard disk, the method includes the following steps:
Preconfigured replacement hard disk identification wscript.exe is called, the hard disk replaced after fault diagnosis is identified;
When the hard disk replaced after recognizing fault diagnosis, automatic performance test is carried out to the hard disk of replacement.
As an improvement scheme, it is described to call preconfigured replacement hard disk identification wscript.exe, to fault diagnosis The hard disk replaced afterwards is identified that judging whether the step of recognizing the hard disk of fault diagnosis thickness replacement before further includes following steps It is rapid:
It is pre-configured with replacement hard disk identification wscript.exe, after the replacement hard disk identification wscript.exe is used for failure replacement Hard disk include sequence number including hard disk information screened.
As an improvement scheme, it is described to call preconfigured replacement hard disk identification wscript.exe, to fault diagnosis The step of hard disk replaced afterwards is identified specifically include the following steps:
Preconfigured replacement hard disk identification wscript.exe is called, identification obtains the sequence number comprising the hard disk after replacement and exists Interior hard disk information;
Including judging whether the replacement hard disk identification wscript.exe recognizes the sequence number comprising the hard disk after replacement Hard disk information;
Hard disk letter including the sequence number of hard disk after the replacement hard disk identification wscript.exe is recognized comprising replacement When breath, according to the hard disk after the hard disk information positioning replacement including the sequence number comprising the hard disk after replacement;
Hard disk including the sequence number of hard disk after the replacement hard disk identification wscript.exe is unidentified to be arrived comprising replacement When information, then determine that hard disk failure diagnostic test terminates.
As an improvement scheme, when the hard disk replaced after recognizing fault diagnosis, to the hard disk of replacement into Further include following step after the step of row automatic performance is tested:
When being tested for the property completion to the hard disk of replacement, judge that the hard disk performance of replacement tests whether normally;
When the hard disk performance test of judgement replacement is normal, then determine that hard disk failure diagnostic test terminates;
When the hard disk performance test of judgement replacement is abnormal, execution continues to replace the hard disk of Current Diagnostic dynamic Make, and return execute it is described call preconfigured replacement hard disk to identify wscript.exe, to the hard disk replaced after fault diagnosis into The step of row identification.
Another object of the present invention is to provide a kind of hard disk test system, the system comprises:
Hard disk identification module is replaced, for calling preconfigured replacement hard disk identification wscript.exe, after fault diagnosis The hard disk of replacement is identified;
It replaces hard disk test module, when hard disk for being replaced after recognizing fault diagnosis, the hard disk of replacement is carried out Automatic performance test.
As an improvement scheme, the system also includes:
Replace hard disk identify wscript.exe configuration module, for be pre-configured with replacement hard disk identification wscript.exe, it is described more Hard disk identification wscript.exe is changed to be used to screen the hard disk after failure replacement comprising the hard disk information including sequence number.
As an improvement scheme, the replacement hard disk identification module specifically includes:
Wscript.exe calling module, for calling preconfigured replacement hard disk identification wscript.exe, identification, which obtains, includes Hard disk information including the sequence number of hard disk after replacement;
First judgment module, it is hard after whether the replacement hard disk identification wscript.exe recognizes comprising replacement for judging Hard disk information including the sequence number of disk;
Hard disk locating module is replaced, for the hard disk after replacement hard disk identification wscript.exe is recognized comprising replacement Sequence number including hard disk information when, according to comprising replacement after hard disk sequence number including hard disk information positioning replacement after Hard disk;
Test terminates determination module, for hard after the replacement hard disk identifies that wscript.exe is unidentified and arrives comprising replacement When hard disk information including the sequence number of disk, then determine that hard disk failure diagnostic test terminates.
As an improvement scheme, the system also includes:
Second judgment module, for when being tested for the property completion to the hard disk of replacement, judging the hard disk performance of replacement It tests whether normal;
Hard disk replacement control module, for when the hard disk performance test of judgement replacement is abnormal, execution to continue to current The movement that the hard disk of diagnosis is replaced, and return and execute the preconfigured replacement hard disk identification wscript.exe of the calling, it is right The step of hard disk replaced after fault diagnosis is identified;
When the hard disk performance test of judgement replacement is normal, then the test terminates determination module judgement hard disk failure diagnosis Test terminates.
In embodiments of the present invention, preconfigured replacement hard disk identification wscript.exe is called, to replacing after fault diagnosis Hard disk identified;When the hard disk replaced after recognizing fault diagnosis, automatic performance test is carried out to the hard disk of replacement, from And realize and automatic performance test is carried out to the hard disk after replacement, the secondary retest to the hard disk passed through after tested is avoided, Simplify entire test process, improves testing efficiency.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described.In all the appended drawings, similar element Or part is generally identified by similar appended drawing reference.In attached drawing, each element or part might not be drawn according to actual ratio.
Fig. 1 is the implementation flow chart of method for testing hard disk provided by the invention;
Fig. 2 be it is provided by the invention call preconfigured replacement hard disk to identify wscript.exe, to being replaced after fault diagnosis The implementation flow chart that is identified of hard disk;
Fig. 3 is the structural block diagram of hard disk test system provided by the invention.
Specific embodiment
It is described in detail below in conjunction with embodiment of the attached drawing to technical solution of the present invention.Following embodiment is only used for Clearly illustrate of the invention, technical solution, therefore be only used as example, and cannot be used as a limitation and limit protection model of the invention It encloses.
Fig. 1 is the implementation flow chart of method for testing hard disk provided by the invention, specifically include the following steps:
In step s101, preconfigured replacement hard disk is called to identify wscript.exe, it is hard to what is replaced after fault diagnosis Disk is identified;
In step s 102, when the hard disk replaced after recognizing fault diagnosis, automatic performance is carried out to the hard disk of replacement Test.
In this embodiment, preconfigured replacement hard disk is called to identify wscript.exe, it is hard to what is replaced after fault diagnosis Disk is identified that judging whether the step of recognizing the hard disk of fault diagnosis thickness replacement before further includes following step:
It is pre-configured with replacement hard disk identification wscript.exe, after the replacement hard disk identification wscript.exe is used for failure replacement Hard disk include sequence number including hard disk information screened;
In this embodiment, replacement hard disk identification wscript.exe and normal hard disk test program are two independent works Make script, the latter is mainly tested for the property hard disk, and the former setting is the letter of the hard disk to replace after fault diagnosis Breath identification and test, the two can also be compatible with certainly, and details are not described herein.
In embodiments of the present invention, as shown in Fig. 2, calling preconfigured replacement hard disk to identify wscript.exe, to failure The step of hard disk replaced after diagnosis is identified specifically include the following steps:
In step s 201, preconfigured replacement hard disk is called to identify wscript.exe, identification is obtained comprising after replacement Hard disk information including the sequence number of hard disk;
In step S202, judge whether the replacement hard disk identification wscript.exe recognizes comprising the hard disk after replacement Hard disk information including sequence number is to then follow the steps S203, no to then follow the steps S204;
In step S203, the sequence number of the hard disk after replacement hard disk identification wscript.exe is recognized comprising replacement When hard disk information inside, according to the hard disk after the hard disk information positioning replacement including the sequence number comprising the hard disk after replacement;
In step S204, the sequence of the hard disk after replacement hard disk identification wscript.exe is unidentified to be arrived comprising replacement When hard disk information including number, then determine that hard disk failure diagnostic test terminates.
In this embodiment, when failure hard disk, then performance detection only is carried out to faulty hard disk, makes entire hard disk Energy test process shortens, and the degree of automation improves, optimal inspection method.
In embodiments of the present invention, when the hard disk replaced after recognizing fault diagnosis, the hard disk of replacement is carried out automatic Further include following step after the step of performance test:
(1) when being tested for the property completion to the hard disk of replacement, judge that the hard disk performance of replacement tests whether normally;
(2) when the hard disk performance test of judgement replacement is normal, then determine that hard disk failure diagnostic test terminates;
(3) when the hard disk performance test of judgement replacement is abnormal, execution continues to replace the hard disk of Current Diagnostic Movement, and return execute it is described call preconfigured replacement hard disk to identify wscript.exe, it is hard to what is replaced after fault diagnosis The step of disk is identified.
In embodiments of the present invention, above-mentioned Fig. 1 and method shown in Fig. 2, the hard disk after realizing automatic identification test replacement, It does not need that whole hard disk retests are reduced the test used time, avoid the occurrence of hard disk power-on time and substantially increase in test process The case where adding, improves burn-in test efficiency;And meet the quick supply of material demand of client, the satisfaction of client is improved, is reduced Because test the used time it is longer can not be put in storage in time caused by order deliver problem.
Fig. 3 shows the structural block diagram of hard disk test system provided by the invention, for ease of description, only gives in figure Part related to the embodiment of the present invention.
Hard disk test system includes:
Hard disk identification module 11 is replaced, for calling preconfigured replacement hard disk identification wscript.exe, to fault diagnosis The hard disk replaced afterwards is identified;
Replace hard disk test module 12, when hard disk for being replaced after recognizing fault diagnosis, to the hard disk of replacement into The test of row automatic performance.
In this embodiment, the system also includes:
It replaces hard disk and identifies wscript.exe configuration module 13, it is described for being pre-configured with replacement hard disk identification wscript.exe Replacement hard disk identification wscript.exe is used to screen the hard disk after failure replacement comprising the hard disk information including sequence number.
In embodiments of the present invention, replacement hard disk identification module 11 specifically includes:
Wscript.exe calling module 14, for calling preconfigured replacement hard disk identification wscript.exe, identification obtains packet Hard disk information including sequence number containing the hard disk after replacement;
First judgment module 15, for judging whether the replacement hard disk identification wscript.exe recognizes comprising after replacement Hard disk information including the sequence number of hard disk;
Hard disk locating module 16 is replaced, for hard after the replacement hard disk identification wscript.exe is recognized comprising replacement When hard disk information including the sequence number of disk, replacement is positioned according to the hard disk information including the sequence number comprising the hard disk after replacement Hard disk afterwards;
Test terminate determination module 17, for when it is described replacement hard disk identification wscript.exe it is unidentified to comprising replace after When hard disk information including the sequence number of hard disk, then determine that hard disk failure diagnostic test terminates.
In this embodiment, the system also includes:
Second judgment module 18, for when being tested for the property completion to the hard disk of replacement, judging the hard disk of replacement It can test whether normal;
Hard disk replacement control module 19, for when the hard disk performance test of judgement replacement is abnormal, execution to continue to working as The movement that the hard disk of preceding diagnosis is replaced, and return and execute the preconfigured replacement hard disk identification wscript.exe of the calling, The step of hard disk replaced after fault diagnosis is identified;
When the hard disk performance test of judgement replacement is normal, then the test end determination module 17 determines that hard disk failure is examined Disconnected test terminates.
Wherein, the function of above-mentioned modules is as recorded in above method embodiment, and details are not described herein.
In embodiments of the present invention, preconfigured replacement hard disk identification wscript.exe is called, to replacing after fault diagnosis Hard disk identified;When the hard disk replaced after recognizing fault diagnosis, automatic performance test is carried out to the hard disk of replacement, from And realize and automatic performance test is carried out to the hard disk after replacement, the secondary retest to the hard disk passed through after tested is avoided, Simplify entire test process, improves testing efficiency.
The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;Although referring to aforementioned each reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified, or equivalent substitution of some or all of the technical features;And These are modified or replaceed, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution, It should all cover within the scope of the claims and the description of the invention.

Claims (8)

1. a kind of method for testing hard disk, which is characterized in that the method includes the following steps:
Preconfigured replacement hard disk identification wscript.exe is called, the hard disk replaced after fault diagnosis is identified;
When the hard disk replaced after recognizing fault diagnosis, automatic performance test is carried out to the hard disk of replacement.
2. method for testing hard disk according to claim 1, which is characterized in that described that preconfigured replacement hard disk is called to know Other wscript.exe, identifies the hard disk replaced after fault diagnosis, judges whether the hard disk for recognizing the replacement of fault diagnosis thickness The step of before further include following step:
It is pre-configured with replacement hard disk identification wscript.exe, the replacement hard disk identification wscript.exe is used for hard after failure replacement Disk is screened comprising the hard disk information including sequence number.
3. method for testing hard disk according to claim 2, which is characterized in that described that preconfigured replacement hard disk is called to know Other wscript.exe, the step of hard disk replaced after fault diagnosis is identified specifically include the following steps:
Preconfigured replacement hard disk identification wscript.exe is called, identification obtains including the sequence number comprising the hard disk after replacement Hard disk information;
Judge whether the replacement hard disk identification wscript.exe recognizes the hard disk including the sequence number comprising the hard disk after replacement Information;
When the hard disk information replaced including hard disk identification wscript.exe recognizes the sequence number comprising the hard disk after replacement, According to the hard disk after the hard disk information positioning replacement including the sequence number comprising the hard disk after replacement;
Hard disk information including the sequence number of hard disk after the replacement hard disk identification wscript.exe is unidentified to be arrived comprising replacement When, then determine that hard disk failure diagnostic test terminates.
4. method for testing hard disk according to claim 3, which is characterized in that described to replace after recognizing fault diagnosis Further include following step after the step of carrying out automatic performance test to the hard disk of replacement when hard disk:
When being tested for the property completion to the hard disk of replacement, judge that the hard disk performance of replacement tests whether normally;
When the hard disk performance test of judgement replacement is normal, then determine that hard disk failure diagnostic test terminates;
When the hard disk performance test of judgement replacement is abnormal, the movement for continuing to replace the hard disk of Current Diagnostic is executed, And return and execute the preconfigured replacement hard disk identification wscript.exe of the calling, the hard disk replaced after fault diagnosis is known Other step.
5. a kind of hard disk test system, which is characterized in that the system comprises:
Hard disk identification module is replaced, for calling preconfigured replacement hard disk to identify wscript.exe, to replacing after fault diagnosis Hard disk identified;
It replaces hard disk test module, when hard disk for being replaced after recognizing fault diagnosis, the hard disk of replacement is carried out automatic Performance test.
6. hard disk test system according to claim 5, which is characterized in that the system also includes:
It replaces hard disk and identifies wscript.exe configuration module, for being pre-configured with replacement hard disk identification wscript.exe, the replacement is hard Disk identification wscript.exe is used to screen the hard disk after failure replacement comprising the hard disk information including sequence number.
7. hard disk test system according to claim 6, which is characterized in that the replacement hard disk identification module specifically wraps It includes:
Wscript.exe calling module, for calling preconfigured replacement hard disk identification wscript.exe, identification is obtained comprising replacement Hard disk information including the sequence number of hard disk afterwards;
First judgment module, for judging whether the replacement hard disk identification wscript.exe recognizes comprising the hard disk after replacement Hard disk information including sequence number;
Hard disk locating module is replaced, the sequence for the hard disk after replacement hard disk identification wscript.exe is recognized comprising replacement When hard disk information including row number, according to hard after the hard disk information positioning replacement including the sequence number comprising the hard disk after replacement Disk;
Test terminates determination module, for the hard disk after replacement hard disk identifies that wscript.exe is unidentified and arrives comprising replacement When hard disk information including sequence number, then determine that hard disk failure diagnostic test terminates.
8. hard disk test system according to claim 7, which is characterized in that the system also includes:
Second judgment module, for when being tested for the property completion to the hard disk of replacement, judging the hard disk performance test of replacement It is whether normal;
Hard disk replacement control module, for when the hard disk performance test of judgement replacement is abnormal, execution to continue to Current Diagnostic The movement replaced of hard disk, and return execute it is described call preconfigured replacement hard disk to identify wscript.exe, to failure The step of hard disk replaced after diagnosis is identified;
When the hard disk performance test of judgement replacement is normal, then the test terminates determination module judgement hard disk failure diagnostic test Terminate.
CN201910680153.8A 2019-07-26 2019-07-26 A kind of method for testing hard disk and system Withdrawn CN110489289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910680153.8A CN110489289A (en) 2019-07-26 2019-07-26 A kind of method for testing hard disk and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910680153.8A CN110489289A (en) 2019-07-26 2019-07-26 A kind of method for testing hard disk and system

Publications (1)

Publication Number Publication Date
CN110489289A true CN110489289A (en) 2019-11-22

Family

ID=68548345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910680153.8A Withdrawn CN110489289A (en) 2019-07-26 2019-07-26 A kind of method for testing hard disk and system

Country Status (1)

Country Link
CN (1) CN110489289A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182251A (en) * 2020-01-06 2020-05-19 成都佳发安泰教育科技股份有限公司 Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium
CN111857573A (en) * 2020-06-24 2020-10-30 苏州浪潮智能科技有限公司 Intelligent replacement method and system based on RAID (redundant array of independent disks) fault member disk

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182251A (en) * 2020-01-06 2020-05-19 成都佳发安泰教育科技股份有限公司 Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium
CN111857573A (en) * 2020-06-24 2020-10-30 苏州浪潮智能科技有限公司 Intelligent replacement method and system based on RAID (redundant array of independent disks) fault member disk

Similar Documents

Publication Publication Date Title
CN109361562B (en) Automatic testing method based on associated network equipment access
CN108536593A (en) CS Framework Softwares automated testing method based on UI and system
CN110489289A (en) A kind of method for testing hard disk and system
CN111881014B (en) System test method, device, storage medium and electronic equipment
CN107193730A (en) A kind of interface test method of automation
CN112052130A (en) CAN network automatic test system and test method thereof
CN108009085B (en) Channel package testing method
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN109522181A (en) A kind of performance test methods of distributed memory system, device and equipment
CN112985488B (en) Temperature stress accelerated life test system and method for sensor
CN101706752B (en) Method and device for in-situ software error positioning
CN116107794B (en) Ship software fault automatic diagnosis method, system and storage medium
JP2019160270A (en) Method, device, server, and program for checking defective function
CN112484922A (en) Process chamber leakage rate detection method and semiconductor process equipment
CN112631841A (en) Method, system and medium for cyclic aging test and data collection
CN114121120A (en) Detection system, method and chip of memory
WO2016011732A1 (en) Line diagnosis method and apparatus
CN109542476A (en) A kind of automatic identification HDD type and the method, system and device for refreshing hard disk firmware
US8739130B2 (en) Quality assurance testing
CN115373916A (en) Abnormality detection method, abnormality detection device, electronic apparatus, and computer-readable storage medium
CN115391110A (en) Test method of storage device, terminal device and computer readable storage medium
CN108717388A (en) A kind of memory diagnosis test method that can be positioned in real time under DOS environment
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN114363145A (en) BIT fault injection and detection time sequence control method for airborne electronic system
CN114328262A (en) Method and device for monitoring sequencing data processing flow

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20191122