CN109213644A - A kind of mobile hard disk burn-in test automated testing method and system - Google Patents

A kind of mobile hard disk burn-in test automated testing method and system Download PDF

Info

Publication number
CN109213644A
CN109213644A CN201810743601.XA CN201810743601A CN109213644A CN 109213644 A CN109213644 A CN 109213644A CN 201810743601 A CN201810743601 A CN 201810743601A CN 109213644 A CN109213644 A CN 109213644A
Authority
CN
China
Prior art keywords
hard disk
mobile hard
test
measured
script
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
CN201810743601.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.)
Hangzhou Jiji Intellectual Property Operation Co., Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201810743601.XA priority Critical patent/CN109213644A/en
Publication of CN109213644A publication Critical patent/CN109213644A/en
Pending 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/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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • G06F11/2635Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers using a storage for the test inputs, e.g. test ROM, script files

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 invention discloses a kind of mobile hard disk burn-in test automated testing method and systems, this method comprises: obtaining mobile hard disk information to be measured;Test script is executed according to default script operation duration;Calculate the test script implementing result.This method discharges artificial detection, improves testing efficiency, while realizing hard disk long lasting for operation, and records and monitor test process, and test result has high accuracy.

Description

A kind of mobile hard disk burn-in test automated testing method and system
Technical field
The invention belongs to seagate fields, more particularly, to a kind of mobile hard disk burn-in test automatic test side Method and system.
Background technique
For mechanical keyboard, due to using electromagnetic induction method when its read-write, magnetic head and magnetic disk surface are not connect Touching, frictional abrasion problem is not present, so there is no limit substantially for read-write number, but since its mechanical structure itself has used electricity Therefore the components such as machine still have service life.For solid state hard disk, according to the difference of its flash chip type, use Service life, most short section also can reach 5-10.
Mobile hard disk meeting aging, there is its service life, knows that its degree of aging and prediction use year in order to facilitate user Limit, can carry out mobile hard disk burn-in test.Existing mobile hard disk burn-in test mainly passes through copy and the big file of transmission, Accomplish the long-play of hard disk, but copy and the testing time of read-write fat file is limited, and cannot effectively record and test Journey.
The patent of publication number CN107832176A discloses hard disk pressure automatic test approach under a kind of Windows and is System, this method comprises: into hard disk pressure test software;It is sent and is ordered to operating system using autoit tool, to hard disk pressure Test parameter is arranged in power test software automatically;According to set test parameter, hard disk pressure test is carried out.The system includes: The automatic setup module of import modul, test parameter and hard disk pressure test module.Test method and system energy in the application Enough test parameters realized in automatic setting hard disk pressure test software, high degree of automation, for the more hard disk of CPU line journey Pressure test can save a large amount of time and manpower, to greatly improve testing efficiency.But this method cannot be recorded effectively Test process, and the testing time is shorter, test result accuracy is lower.
Compared with prior art, the present invention is based on Python to write automatic test script, and pass through default test foot This operation duration realizes the prolonged continuous service of hard disk, meanwhile, test process is recorded and has monitored, test result has High accuracy.
Summary of the invention
For the disadvantages described above and Improvement requirement of the prior art, the present invention provides a kind of mobile hard disk burn-in test is automatic Change test method and system, its purpose is to provide one kind to be able to achieve test script long-play, and effectively record was tested Journey promotes the mobile hard disk burn-in test automated testing method of test result accuracy, thus solves of the existing technology The technical problem that testing time is shorter, test result is inaccurate.
To achieve the above object, the present invention provides a kind of mobile hard disk burn-in test automated testing method, comprising steps of
S1. mobile hard disk information to be measured is obtained;
S2. test script is executed according to default script operation duration;
S3. the test script implementing result is calculated.
Further, it further comprises the steps of:
Mobile hard disk information to be measured is obtained according to prefixed time interval, to calculate test script implementing result.
Further, step S2 specifically includes step:
Test script 1 is executed according to default script operation duration, file and file are persistently created in mobile hard disk to be measured Content, and after prefixed time interval, test script 2 is executed, the file of the creation is persistently deleted in mobile hard disk to be measured And file content.
Further, it further comprises the steps of:
According to prefixed time interval judge mobile hard disk to be measured whether be written successfully and mobile hard disk to be measured whether carry On PC to be measured, whether the execution to judge test script is normal.
Further, step S3 specifically includes step:
According to the operation of the current mobile hard disk of mobile hard disk acquisition of information to be measured obtained by prefixed time interval Thus time calculates mobile hard disk and continues access time, and calculates the implementing result of the test script.
Correspondingly, also providing a kind of mobile hard disk burn-in test automatization test system, comprising:
Module is obtained, for obtaining mobile hard disk information to be measured;
Execution module, for executing test script according to default script operation duration;
Computing module, for calculating the test script implementing result.
Further, further includes:
Module is obtained, for obtaining mobile hard disk information to be measured according to prefixed time interval.
Further, further includes:
Creating unit creates file and file content for continuing according to test script 1 in a hard disk;
Unit is deleted, for persistently deleting the file and text of the creation according to test script 2 after prefixed time interval Part content.
Further, further includes:
Judgment module, for according to prefixed time interval judge mobile hard disk to be measured whether be written successfully, movement to be measured it is hard Whether carry is on PC to be measured for disk.
Further, further includes:
Computing module continues access time for calculating mobile hard disk.
Compared with prior art, the present invention having the following advantages:
Automatic test script is write based on Python, and by presetting test script operation duration, realizes hard disk Prolonged continuous service, meanwhile, test process is recorded and has monitored, test result has high accuracy.
Detailed description of the invention
Fig. 1 is a kind of mobile hard disk burn-in test automated testing method flow chart that embodiment one provides;
Fig. 2 is a kind of mobile hard disk burn-in test automatization test system structure chart that embodiment one provides;
Fig. 3 is a kind of mobile hard disk burn-in test automated testing method flow chart that embodiment two provides;
Fig. 4 is a kind of mobile hard disk burn-in test automatization test system structure chart that embodiment two provides.
Specific embodiment
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described, However, the present invention is not limited to these examples.
Embodiment one
A kind of mobile hard disk burn-in test automated testing method is present embodiments provided, as shown in Figure 1, comprising steps of
S11. mobile hard disk information to be measured is obtained;
S12. test script is executed according to default script operation duration;
S13. the test script implementing result is calculated.
Further, it further comprises the steps of:
Mobile hard disk information to be measured is obtained according to prefixed time interval, to calculate test script implementing result.
Further, step S12 specifically includes step:
Test script 1 is executed according to default script operation duration, file and file are persistently created in mobile hard disk to be measured Content, and after prefixed time interval, test script 2 is executed, the file of the creation is persistently deleted in mobile hard disk to be measured And file content.
Further, step S13 specifically includes step:
According to the operation of the current mobile hard disk of mobile hard disk acquisition of information to be measured obtained by prefixed time interval Thus time calculates mobile hard disk and continues access time, and calculates the implementing result of the test script.
Hard disk to be measured is inserted on PC to be measured, the information of mobile hard disk to be measured is obtained, information includes: hard disk identification name Title, hard disk power-on time and hard disk current time.After the relevant information for having obtained mobile hard disk to be measured, then start to execute test Script, the test script are automatic test scripts made of being write based on Python.Python is a kind of object-oriented Explanation type computer programming language, source code and interpreter CPython follow GPL (General Public License) agreement.Python has abundant and powerful library, can be the various modules made of other language very easily It is bound up.
The execution of test script is carried out under conditions of default script operation duration, and preset script operation duration can To be 72 hours, 10 days etc., user can set according to pressure test demand and environmental requirement, when reliable test Length is 3 days.Implementation procedure can be summarized as: test script 1 creates file and file content in mobile hard disk to be measured, and continues to create It builds;After test script 2 waits test script 1 to run 10s, persistently deletes in mobile hard disk to be measured and to be created in test script 1 File, file arrange sequentially in time, and it is full to guarantee that hard-disk capacity is not written.
After mobile hard disk to be tested powers on, during executing test script, need to constantly it be obtained according to prefixed time interval Take mobile hard disk information to be measured, this be on the one hand to monitor test script execution it is whether normal, on the other hand by obtaining Power-on time information T1, T2, T3 ... the Tn for taking mobile hard disk to be measured, obtains the current runing time of mobile hard disk to be measured, by This calculates the time that mobile hard disk is persistently read and write, and the operation result for calculating test script is PASS or FAIL.This is pre- If time interval can be 5 minutes, longer or shorter time interval can also be set, is further ensured that the standard of test result True property.
Correspondingly, also providing a kind of mobile hard disk burn-in test automatization test system, as shown in Figure 2, comprising:
Module 11 is obtained, for obtaining mobile hard disk information to be measured;
Execution module 12, for executing test script according to default script operation duration;
Computing module 13, for calculating the test script implementing result.
Further, further includes:
Module 11 is obtained, for obtaining mobile hard disk information to be measured according to prefixed time interval.
Further, further includes:
Creating unit 14 creates file and file content for continuing according to test script 1 in a hard disk;
Delete unit 15, for after prefixed time interval according to test script 2 persistently delete the creation file and File content.
Further, further includes:
Computing module 13 continues access time for calculating mobile hard disk.
It obtains after module 11 obtains the information such as mobile hard disk to be measured identification title, power-on time, current time, by execution mould Block 12 executes test script in mobile hard disk to be measured according to according to default script operation duration, specifically, by execution module 12 In creating unit 14 continue to create file and file content in a hard disk according to test script 1, after prefixed time interval, by Deletion unit 15 in execution module 12 persistently deletes the file and file content of the creation according to test script 2;It is executing During module 12 executes test script, module 11 is obtained according to prefixed time interval and obtains mobile hard disk information to be measured.When After execution module 12 has executed the runing time of test script, test script is calculated according to the data of record by computing module 13 and is held Row result.
The present embodiment writes automatic test script based on Python, and by presetting test script operation duration, real Show the prolonged continuous service of hard disk, meanwhile, test process is recorded and has monitored, test result has high accuracy.
Embodiment two
A kind of mobile hard disk burn-in test automated testing method is present embodiments provided, as shown in figure 3, comprising steps of
S21. mobile hard disk information to be measured is obtained;
S22. test script is executed according to default script operation duration;
S23. the test script implementing result is calculated.
Further, it further comprises the steps of:
Mobile hard disk information to be measured is obtained according to prefixed time interval, to calculate test script implementing result.
Further, step S22 specifically includes step:
Test script 1 is executed according to default script operation duration, file and file are persistently created in mobile hard disk to be measured Content, and after prefixed time interval, test script 2 is executed, the file of the creation is persistently deleted in mobile hard disk to be measured And file content.
Further, it further comprises the steps of:
According to prefixed time interval judge mobile hard disk to be measured whether be written successfully and mobile hard disk whether carry to It surveys on PC, whether the execution to judge test script is normal.
Further, step S23 specifically includes step:
According to the operation of the current mobile hard disk of mobile hard disk acquisition of information to be measured obtained by prefixed time interval Thus time calculates mobile hard disk and continues access time, and calculates the implementing result of the test script.
What is different from the first embodiment is that further comprising the steps of:
According to prefixed time interval judge mobile hard disk to be measured whether be written successfully and mobile hard disk to be measured whether carry On PC to be measured, whether the execution to judge test script is normal.
During test script executes, the read-write of mobile hard disk is checked, it is fixed by prefixed time interval Phase checks whether the read-write of mobile hard disk succeeds, if it succeeds, illustrating that test script is normally executing, then by the file of write-in Number is recorded, and to carry out data comparison when calculating implementing result after the completion of test script executes, is further promoted and is surveyed The accuracy of examination;, equally also will periodically to mobile hard disk, whether carry carries out on PC to be measured in test script implementation procedure It checks, by prefixed time interval, inspecting periodically mobile hard disk, whether carry is on PC to be measured, if still carry is in PC to be measured On, illustrate that test script is operating normally.
The present embodiment compared to embodiment one, the advantage is that:
The state of test script and mobile hard disk to be measured is inspected periodically, helps to find the problem in time, is promoted The accuracy of test script implementing result.
Correspondingly, also providing a kind of mobile hard disk burn-in test automatization test system, as shown in Figure 4, comprising:
Module 21 is obtained, for obtaining mobile hard disk information to be measured;
Execution module 22, for executing test script according to default script operation duration;
Computing module 23, for calculating the test script implementing result.
Further, further includes:
Module 21 is obtained, for obtaining mobile hard disk information to be measured according to prefixed time interval.
Further, further includes:
Creating unit 24 creates file and file content for continuing according to test script 1 in a hard disk;
Delete unit 25, for after prefixed time interval according to test script 2 persistently delete the creation file and File content.
Further, further includes:
Judgment module 26, for according to prefixed time interval judge mobile hard disk to be measured whether be written successfully, movement to be measured Whether carry is on PC to be measured for hard disk.
Further, further includes:
Computing module 23 continues access time for calculating mobile hard disk.
What is different from the first embodiment is that further including judgment module 26.
Judgment module 26, for according to prefixed time interval judge mobile hard disk to be measured whether be written successfully, movement to be measured Whether carry is on PC to be measured for hard disk.
In execution module 22 during executing test script, judgment module 26 judges to be measured according to prefixed time interval Mobile hard disk whether be written successfully, whether carry is on PC to be measured for mobile hard disk to be measured.It is hard to test script and movement to be measured The state of disk is inspected periodically, and helps to find the problem in time, promotes the accuracy of test script implementing result.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.

Claims (10)

1. a kind of mobile hard disk aging automated testing method, which is characterized in that comprising steps of
S1. mobile hard disk information to be measured is obtained;
S2. test script is executed according to default script operation duration;
S3. the test script implementing result is calculated.
2. a kind of mobile hard disk burn-in test automated testing method as described in claim 1, which is characterized in that further include step It is rapid:
Mobile hard disk information to be measured is obtained according to prefixed time interval, to calculate test script implementing result.
3. a kind of mobile hard disk burn-in test automated testing method as described in claim 1, which is characterized in that step S2 tool Body comprising steps of
Test script 1 is executed according to default script operation duration, file and file content are persistently created in mobile hard disk to be measured, And after prefixed time interval, test script 2 is executed, the file and file of the creation are persistently deleted in mobile hard disk to be measured Content.
4. a kind of mobile hard disk burn-in test automated testing method as described in claim 1, which is characterized in that further include step It is rapid:
According to prefixed time interval judge mobile hard disk to be measured whether be written successfully and mobile hard disk to be measured whether carry to It surveys on PC, whether the execution to judge test script is normal.
5. a kind of mobile hard disk burn-in test automated testing method as described in claim 1, which is characterized in that step S3 tool Body comprising steps of
According to it is described by prefixed time interval obtain the current mobile hard disk of mobile hard disk acquisition of information to be measured runing time, Thus it calculates mobile hard disk and continues access time, and calculate the implementing result of the test script.
6. a kind of mobile hard disk burn-in test automatization test system characterized by comprising
Module is obtained, for obtaining mobile hard disk information to be measured;
Execution module, for executing test script according to default script operation duration;
Computing module, for calculating the test script implementing result.
7. a kind of mobile hard disk burn-in test automatization test system according to claim 6, which is characterized in that also wrap It includes:
Module is obtained, for obtaining mobile hard disk information to be measured according to prefixed time interval.
8. a kind of mobile hard disk burn-in test automatization test system according to claim 6, which is characterized in that also wrap It includes:
Creating unit creates file and file content for continuing according to test script 1 in a hard disk;
Unit is deleted, for persistently deleting in the file and file of the creation after prefixed time interval according to test script 2 Hold.
9. a kind of mobile hard disk burn-in test automatization test system according to claim 6, which is characterized in that also wrap It includes:
Judgment module, for judging mobile hard disk to be measured, to be measured according to prefixed time interval, whether carry is in PC to be measured.
10. a kind of mobile hard disk burn-in test automatization test system according to claim 6, which is characterized in that also wrap It includes:
Computing module continues access time for calculating mobile hard disk.
CN201810743601.XA 2018-07-09 2018-07-09 A kind of mobile hard disk burn-in test automated testing method and system Pending CN109213644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810743601.XA CN109213644A (en) 2018-07-09 2018-07-09 A kind of mobile hard disk burn-in test automated testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810743601.XA CN109213644A (en) 2018-07-09 2018-07-09 A kind of mobile hard disk burn-in test automated testing method and system

Publications (1)

Publication Number Publication Date
CN109213644A true CN109213644A (en) 2019-01-15

Family

ID=64989970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810743601.XA Pending CN109213644A (en) 2018-07-09 2018-07-09 A kind of mobile hard disk burn-in test automated testing method and system

Country Status (1)

Country Link
CN (1) CN109213644A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222293A1 (en) * 2021-04-23 2022-10-27 深圳创维-Rgb电子有限公司 Storage device test method and apparatus, television, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521092A (en) * 2011-12-31 2012-06-27 曙光信息产业股份有限公司 Hard disk test method and device
CN102750221A (en) * 2012-05-29 2012-10-24 兰雨晴 Performance test method for Linux file system
CN103473158A (en) * 2013-09-18 2013-12-25 浪潮电子信息产业股份有限公司 Disk pressure testing method for Linux server
CN104765665A (en) * 2015-04-14 2015-07-08 浪潮电子信息产业股份有限公司 Method and device for testing hard disks
CN105740110A (en) * 2016-01-29 2016-07-06 浪潮电子信息产业股份有限公司 Detection method for smart information of hard disk in linux system
CN106710636A (en) * 2016-12-29 2017-05-24 记忆科技(深圳)有限公司 SSD product test system
CN108089965A (en) * 2017-12-08 2018-05-29 郑州云海信息技术有限公司 A kind of computer parallel type method for testing pressure

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521092A (en) * 2011-12-31 2012-06-27 曙光信息产业股份有限公司 Hard disk test method and device
CN102750221A (en) * 2012-05-29 2012-10-24 兰雨晴 Performance test method for Linux file system
CN103473158A (en) * 2013-09-18 2013-12-25 浪潮电子信息产业股份有限公司 Disk pressure testing method for Linux server
CN104765665A (en) * 2015-04-14 2015-07-08 浪潮电子信息产业股份有限公司 Method and device for testing hard disks
CN105740110A (en) * 2016-01-29 2016-07-06 浪潮电子信息产业股份有限公司 Detection method for smart information of hard disk in linux system
CN106710636A (en) * 2016-12-29 2017-05-24 记忆科技(深圳)有限公司 SSD product test system
CN108089965A (en) * 2017-12-08 2018-05-29 郑州云海信息技术有限公司 A kind of computer parallel type method for testing pressure

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222293A1 (en) * 2021-04-23 2022-10-27 深圳创维-Rgb电子有限公司 Storage device test method and apparatus, television, and storage medium

Similar Documents

Publication Publication Date Title
CN103578568B (en) The performance test methods of solid state hard disc and device
WO2018010552A1 (en) Test method and device
CN107622014A (en) Test report generation method and device, readable storage medium and computer equipment
CN109359052A (en) Mobile terminal automated testing method and system based on UI
CN103744759A (en) Method for verifying unattended disk performance and stability under Linux system
CN111756575A (en) Performance analysis method and device of storage server and electronic equipment
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN104536863A (en) Application program test method and device
CN107665168A (en) A kind of embedded software GUI automated test devices
CN109669798B (en) Crash analysis method, crash analysis device, electronic equipment and storage medium
CN109979520A (en) Chip functions automated testing method, device and computer equipment
CN107608839A (en) A kind of design method of server radiating automatic test
CN111966590A (en) Service testing method, device and system
CN110764960B (en) Solid state disk firmware testing method
CN109213644A (en) A kind of mobile hard disk burn-in test automated testing method and system
CN104978241B (en) A kind of data reconstruction method and device of COW type file systems
CN108038031A (en) A kind of method and device for monitoring hard disk presence in real time
CN111414287A (en) Method, system and device for analyzing chip test result
CN116306429A (en) Method, device, computer storage medium and terminal for realizing state data capture
CN116820932A (en) BMC fault diagnosis method, device, equipment and medium
CN115392802A (en) Method, system, medium, and apparatus for detecting defects of industrial products
CN110806981B (en) Application program testing method, device, equipment and storage medium
CN113591147A (en) Data extraction method and device, computer equipment and storage medium
CN102521134A (en) Test information detecting method and test information detecting device based on mainframe
CN103914366B (en) A kind of automatic monitoring application program carries out the method and device of memory information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20201209

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201616 No. 3666 Sixian Road, Songjiang District, Shanghai

Applicant before: Phicomm (Shanghai) Co.,Ltd.

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination