CN114141302A - Test method of solid state disk and electronic equipment - Google Patents

Test method of solid state disk and electronic equipment Download PDF

Info

Publication number
CN114141302A
CN114141302A CN202111497621.1A CN202111497621A CN114141302A CN 114141302 A CN114141302 A CN 114141302A CN 202111497621 A CN202111497621 A CN 202111497621A CN 114141302 A CN114141302 A CN 114141302A
Authority
CN
China
Prior art keywords
test
solid state
tested
state disk
sequence
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
CN202111497621.1A
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 Huadian Communication Co ltd
Original Assignee
Shenzhen Huadian Communication 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 Huadian Communication Co ltd filed Critical Shenzhen Huadian Communication Co ltd
Priority to CN202111497621.1A priority Critical patent/CN114141302A/en
Publication of CN114141302A publication Critical patent/CN114141302A/en
Pending legal-status Critical Current

Links

Images

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

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a test method of a solid state disk and electronic equipment, wherein the method comprises the following steps: s1, acquiring the running sequence of each test service model and the test sequence of each solid state disk to be tested; s2, determining the current solid state disk to be tested according to the test sequence; s3, starting formatting operation on the current solid state disk to be tested; s4, starting corresponding test service models according to the operation sequence, and testing the current solid state disk to be tested in the initial state to obtain a test report corresponding to the current solid state disk to be tested; s5, judging whether the corresponding test service models are started in sequence according to the running sequence to complete the test of the current solid state disk to be tested; and S6, if not, repeatedly executing the steps S3-S5 until the corresponding test service models are sequentially started according to the running sequence to complete the test of the current solid state disk to be tested so as to obtain a plurality of test reports. Therefore, manual operation can be reduced, and the testing efficiency of the solid state disk is improved.

Description

Test method of solid state disk and electronic equipment
Technical Field
The invention relates to the technical field of testing, in particular to a testing method of a solid state disk and electronic equipment.
Background
In order to ensure the reliability of the solid state disk in the prior art, a plurality of performance testing tools are required to test the solid state disk. Because each performance testing tool needs manual operation to execute a testing process, the situations that the testing process is repeated and time-consuming, manual operation is needed, the manual testing process cannot be traced back, the output of a test report is time-consuming and long, the output content is not uniform and the like exist, and the problems of low testing efficiency and high labor cost exist in the conventional solid state disk.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present invention provide a method for testing a solid state disk and an electronic device.
In a first aspect, an embodiment of the present invention provides a method for testing a solid state disk, where multiple solid state disks to be tested are connected to a testing device, and the testing device is configured with multiple test service models for performing performance testing on the solid state disks to be tested, where the method includes:
s1, acquiring the running sequence of each test service model and the test sequence of each solid state disk to be tested;
s2, determining the current solid state disk to be tested from the plurality of solid state disks to be tested according to the test sequence;
s3, starting formatting operation on the current solid state disk to be tested, so that the current solid state disk to be tested is in an initial state;
s4, starting corresponding test service models according to the operation sequence, and testing the current solid state disk to be tested in the initial state through the started test service models to obtain a test report corresponding to the current solid state disk to be tested;
s5, judging whether corresponding test service models are started in sequence according to the running sequence to complete the test of the current solid state disk to be tested;
and S6, if the corresponding test service models are not started in sequence according to the running sequence to finish the test of the current solid state disk to be tested, repeating the steps S3-S5 until the corresponding test service models are started in sequence according to the running sequence to finish the test of the current solid state disk to be tested so as to obtain a plurality of test reports.
In a second aspect, an embodiment of the present invention provides an electronic device, including a testing apparatus, where the testing apparatus is connected to multiple solid state disks to be tested, and the testing apparatus is configured with multiple test service models for performing performance tests on the solid state disks to be tested, where the electronic device further includes:
the acquisition module is used for acquiring the running sequence of each test service model and the test sequence of each solid state disk to be tested;
the determining module is used for determining the current solid state disk to be tested from the plurality of solid state disks to be tested according to the testing sequence;
the starting module is used for starting formatting operation on the current solid state disk to be tested so as to enable the current solid state disk to be tested to be in an initial state;
the test module is used for starting a corresponding test service model according to the operation sequence, and testing the current solid state disk to be tested in an initial state through the started test service model so as to obtain a test report corresponding to the current solid state disk to be tested;
the judging module is used for judging whether to start the corresponding test service models in sequence according to the running sequence to complete the test of the current solid state disk to be tested;
and the control module is configured to, if the corresponding test service models are not sequentially started according to the running sequence to complete the test on the current solid state disk to be tested, repeatedly execute the steps S3-S5 provided in the first aspect until the corresponding test service models are sequentially started according to the running sequence to complete the test on the current solid state disk to be tested, so as to obtain a plurality of test reports.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory and a processor, where the memory is used to store a computer program, and the computer program executes the method for testing a solid state disk provided in the first aspect when the processor runs.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program runs on a processor, the computer program performs the method for testing a solid state disk provided in the first aspect.
The solid state disk testing method and the electronic device provided by the application execute the following steps: s1, acquiring the running sequence of each test service model and the test sequence of each solid state disk to be tested; s2, determining the current solid state disk to be tested from the plurality of solid state disks to be tested according to the test sequence; s3, starting formatting operation on the current solid state disk to be tested, so that the current solid state disk to be tested is in an initial state; s4, starting corresponding test service models according to the operation sequence, and testing the current solid state disk to be tested in the initial state through the started test service models to obtain a test report corresponding to the current solid state disk to be tested; s5, judging whether corresponding test service models are started in sequence according to the running sequence to complete the test of the current solid state disk to be tested; and S6, if the corresponding test service models are not started in sequence according to the running sequence to finish the test of the current solid state disk to be tested, repeating the steps S3-S5 until the corresponding test service models are started in sequence according to the running sequence to finish the test of the current solid state disk to be tested so as to obtain a plurality of test reports. Therefore, the solid state disk to be tested can be automatically tested by the multiple test service models, manual operation is reduced, the test efficiency of the solid state disk is improved, and the labor cost is reduced.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 shows a flow chart of a method for testing a solid state disk according to an embodiment of the present application;
fig. 2 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of 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 present invention, 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 derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
The embodiment of the disclosure provides a method for testing a solid state disk, which can be applied to electronic equipment, wherein the electronic equipment comprises a testing device, a plurality of solid state disks to be tested are connected with the testing device, and the testing device is provided with a plurality of testing service models for performing performance testing on the solid state disks to be tested.
Specifically, referring to fig. 1, a method for testing a solid state disk provided in the embodiment of the present disclosure includes:
and S1, acquiring the running sequence of each test service model and the test sequence of each solid state disk to be tested.
In this embodiment, a corresponding test service model may be designed according to the performance test requirement of the solid state disk, and the type of the test service model is not limited. In this embodiment, the testing the service model may include: the terms "av _ stored properties", AS _ SSD _ Benchmark, Auto _ disk _ Benchmark, crystall disk, txb entry, and h2test w. The running sequence of each test service model may be set by default by the system, may be set by user-defined, and is not limited herein. For example, the operation sequence of the aforementioned 6 test service models is set as: (1): crystalDiskMark, (2): AS _ SSD _ Benchmark, (3): txbench. exe, (4): auto _ disk _ benchmark, (5): andvilstorageutities, (6): h2testw.exe.
In this embodiment, the test sequence of the solid state disks to be tested may be determined according to the sequence in which the solid state disks to be tested are respectively connected with the test device, or may be set by a user in a user-defined manner.
In order to accurately set the test sequence of the solid state disks to be tested, the test sequence can be determined according to the hard disk identification of the solid state disk to be tested. Specifically, in this embodiment, the obtaining of the test sequence of each solid state disk to be tested in S1 includes:
s7, receiving hard disk identifications input by a user, and recording the input sequence of each hard disk identification;
and S8, determining the test sequence of the solid state disk to be tested corresponding to each hard disk identification according to the input sequence of each hard disk identification.
In this embodiment, the testing apparatus may provide a user interaction interface, receive the hard disk identifiers input by the user through the user interaction interface, record an input sequence of the hard disk identifiers input by the user, and determine the input sequence of each hard disk identifier as a testing sequence of the solid state disk to be tested corresponding to each hard disk identifier. For example, the representations of the a solid state disk, the B solid state disk and the C solid state disk are YP1, YP2 and YP3, respectively, and if the user input sequence is (1): YP1, (2): YP3, (3): YP2, the test sequence corresponding to the solid state disk is: (1): a solid state disk, (2): c solid state disk, (3): and B, solid state disk.
Therefore, the test sequence can be accurately determined according to the input sequence of the hard disk identification, and the test sequence of each hard disk can be flexibly determined.
And S2, determining the current solid state disk to be tested from the plurality of solid state disks to be tested according to the test sequence.
For example, if an a solid state disk, a B solid state disk, and a C solid state disk need to be tested, the test sequence is (1): a solid state disk, (2): c solid state disk, (3): and B, determining the solid state disk A as the current solid state disk to be tested from the solid state disk A, the solid state disk B and the solid state disk C.
And S3, starting formatting operation on the current solid state disk to be tested, so that the current solid state disk to be tested is in an initial state.
In this embodiment, the above-mentioned test service models, i.e., the av _ storage utilities, the AS _ SSD _ Benchmark, the Auto _ disk _ Benchmark, the crystall disk, the txband, the h2test w.exe, and the like, cannot automatically format the to-be-tested solid state disk, and need to format the to-be-tested solid state disk in advance to enter the initial state (Fresh Of Box, FOB).
And S4, starting the corresponding test service models according to the running sequence, and testing the current solid state disk to be tested in the initial state through the started test service models to obtain a test report corresponding to the current solid state disk to be tested.
For example, if the operation sequence of the above 6 test service models is set as: (1): crystalDiskMark, (2): AS _ SSD _ Benchmark, (3): txbench. exe, (4): auto _ disk _ benchmark, (5): andvilstorageutities, (6): h2testw.exe, if the current solid state disk to be tested is an A solid state disk, sequentially according to the following steps: crystalDiskMark, (2): AS _ SSD _ Benchmark, (3): txbench. exe, (4): auto _ disk _ benchmark, (5): andvilstorageutities, (6): and testing the A solid state disk by using the test sequence of H2testw.exe to respectively obtain 6 corresponding test reports.
In this embodiment, in S4, the testing the current solid state disk to be tested through the started test service model includes:
s41, acquiring configuration parameters of the started test service model;
configuring the test flow of the current solid state disk to be tested according to the configuration parameters for the started test service model;
and S42, testing the current solid state disk to be tested in the initial state by the started test service model according to the test flow.
For example, if the started test service model is CrystalDiskMark and the current solid state disk to be tested is an a solid state disk, the test process of the test service model CrystalDiskMark includes: (1) testing 1G data of the A solid state disk for 3 times randomly; (2) formatting the A solid state hard disk; (3) performing all-zero test on 1G data of the A solid state disk for 1 time; (4) and performing disk partition removal on the A solid state disk.
When other test service models are started according to the running sequence to test the A solid state disk, different test flows are correspondingly provided. Specifically, if the started test service model is AS _ SSD _ Benchmark and the current solid state disk to be tested is an a solid state disk, the test process of the test service model AS _ SSD _ Benchmark includes: (1) testing 1G data of the A solid state disk for 3 times randomly; (2) and performing disk partition clearing operation on the A solid state disk.
If the started test service model is txband.exe and the current solid state disk to be tested is an a solid state disk, the test process of the test service model txband.exe comprises the following steps: (1) testing the data type of the A solid state disk for 3 times; (2) formatting the A solid state hard disk; (3) testing the type of all-zero data of the A solid state disk for 1 time; (4) and performing disk partition removal on the A solid state disk.
If the started test service model is the Auto _ disk _ benchmark and the current solid state disk to be tested is the A solid state disk, the test process of the test service model Auto _ disk _ benchmark comprises the following steps: (1) testing 512B to 64M data models of the A solid state disk for 1 time; (2) and performing disk partition removal on the A solid state disk.
If the started test service model is the Artificial StoragE Utilities and the current solid state disk to be tested is the A solid state disk, the test process of the test service model comprises the following steps: (1) testing the data model 100% (Incompressable) of the A solid state disk for 3 times; (2) formatting the A solid state hard disk; (3) testing the A solid state disk data model for 1 time in all 0 states; (4) and performing disk partition removal on the A solid state disk.
If the started test service model is H2testw.exe and the current solid state disk to be tested is A solid state disk, the test process of the test service model H2testw.exe comprises the following steps: (1) h2testw.exe test 1 time; (2) and performing disk partition clearing operation on the A solid state disk.
In this embodiment, in S4, after the corresponding test service model is started according to the running sequence to test the current solid state disk to be tested in the initial state to obtain the test report corresponding to the current solid state disk to be tested, the method further includes:
and S9, starting a disk partition clearing operation on the current solid state disk to be detected.
Therefore, the disk partition clearing operation of the current solid state disk to be detected is automatically carried out, the partition clearing operation of the solid state disk to be detected can be carried out without manual operation, and the manual operation is saved.
In this embodiment, after S4 starts a corresponding test service model according to the running sequence to test the current solid state disk to be tested in the initial state, the method further includes:
s12, acquiring the text content of the control of the running test service model;
and S13, determining whether the running test service model completes the test operation of the current solid state disk to be tested according to the text content.
In this embodiment, the control of the test service model includes an execution button, a progress bar, and other controls, the text content of the control of the test service model is obtained through the interface, and whether the test of the test service model is completed or not can be determined according to the text content. And if the test of the test service model is judged to be completed, collecting the generated test report to a specified storage position, if the test is not completed and the time upper limit is not exceeded, continuing to wait, and if the test is not completed and the time upper limit is exceeded, displaying abnormal reminding information. Therefore, whether the corresponding test service model is operated and finished or not can be automatically judged, and the test report comprising the performance data can be automatically stored to a designated position, so that the processing efficiency of the test report is improved.
And S5, judging whether to start the corresponding test service models in sequence according to the running sequence to complete the test of the current solid state disk to be tested.
For example, if the operation sequence of the above 6 test service models is set as: (1): crystalDiskMark, (2): AS _ SSD _ Benchmark, (3): txbench. exe, (4): auto _ disk _ benchmark, (5): andvilstorageutities, (6): and H2testw.exe, if only the business model CrystalDiskMark tests the A solid state disk, the rest five test business models do not execute the test on the A solid state disk.
And S6, if the corresponding test service models are not started in sequence according to the running sequence to finish the test of the current solid state disk to be tested, repeating the steps S3-S5 until the corresponding test service models are started in sequence according to the running sequence to finish the test of the current solid state disk to be tested so as to obtain a plurality of test reports.
In this embodiment, if the CrystalDiskMark tests the a solid state disk to obtain a first test report, the running sequence of the 6 test service models sets to sequentially start the remaining 5 test service models to test the a solid state disk to obtain a second test report, a third test report, a fourth test report, a fifth test report, and a sixth test report, which are all obtained. The generation process of each test report may refer to the test flow of the test service model, and is not described herein again to avoid repetition.
In this embodiment, after S6, the method further includes:
s10, editing the test reports of the current solid state disk to be tested according to a preset document format to obtain a comprehensive test report;
s11, storing the test reports and/or the comprehensive test report of the current solid state disk to be tested in a preset storage area.
In this embodiment, the test report includes test data such as a screenshot, a text, and test tool special data generated in the test process of the test service Model, and the test data in the test report is named in a standard manner, where the naming rule is "service name", "Model name (Model name) and Serial Number (Serial Number)" of the solid state disk to be tested, and a timestamp. Therefore, the problems that the test report is not unified or incomplete, the naming of the data file is not standard, and the data tracing is difficult are solved, and the data accuracy and the data effectiveness of the test report are improved.
In addition, the comprehensive test report obtained by editing the plurality of test reports can be a word-format test report, and compared with a process of manually sorting a plurality of test data of a plurality of test tools of a plurality of solid state disks to be tested, the embodiment of the disclosure can automatically summarize and output the test reports containing all test data, release more time input of testers, and reduce labor cost.
The method for testing the solid state disk in the embodiment further includes:
and S14, storing the test operation data of each test service model to each solid state disk to be tested into a service log.
In this embodiment, the test operation data includes process data such as basic information, test process information, and test time of the solid state disk to be tested, and the test operation data is printed to the log, where the basic information of the solid state disk to be tested includes a mode name (Model name), a Serial Number (Serial Number), a service name, and the like.
Therefore, the tested disk, the tested service, the testing time and the like can be effectively and truly traced by searching the service log.
In the method for testing a solid state disk provided by the embodiment of the present disclosure, S1 obtains an operation sequence of each test service model and a test sequence of each solid state disk to be tested; s2, determining the current solid state disk to be tested from the plurality of solid state disks to be tested according to the test sequence; s3, starting formatting operation on the current solid state disk to be tested, so that the current solid state disk to be tested is in an initial state; s4, starting corresponding test service models according to the operation sequence, and testing the current solid state disk to be tested in the initial state through the started test service models to obtain a test report corresponding to the current solid state disk to be tested; s5, judging whether corresponding test service models are started in sequence according to the running sequence to complete the test of the current solid state disk to be tested; and S6, if the corresponding test service models are not started in sequence according to the running sequence to finish the test of the current solid state disk to be tested, repeating the steps S3-S5 until the corresponding test service models are started in sequence according to the running sequence to finish the test of the current solid state disk to be tested so as to obtain a plurality of test reports. Therefore, the solid state disk to be tested can be automatically tested by the multiple test service models, manual operation is reduced, the test efficiency of the solid state disk is improved, and the labor cost is reduced.
Example 2
The embodiment of the disclosure provides electronic equipment, which comprises a testing device, wherein the testing device is connected with a plurality of solid state disks to be tested, and is provided with a plurality of testing service models for performing performance testing on the solid state disks to be tested.
Specifically, referring to fig. 2, the electronic device 200 includes:
an obtaining module 201, configured to obtain an operation sequence of each test service model and a test sequence of each solid state disk to be tested;
a determining module 202, configured to determine, according to the test sequence, a current solid state disk to be tested from the multiple solid state disks to be tested;
the starting module 203 is configured to start a formatting operation on the current solid state disk to be tested, so that the current solid state disk to be tested is in an initial state;
the test module 204 is configured to start a corresponding test service model according to the operation sequence, and test the current solid state disk to be tested in an initial state through the started test service model to obtain a test report corresponding to the current solid state disk to be tested;
the judging module 205 is configured to judge whether to start corresponding test service models in sequence according to the running order to complete the test on the current solid state disk to be tested;
the control module 206 is configured to, if the corresponding test service models are not sequentially started according to the running order to complete the test on the current solid state disk to be tested, repeatedly execute steps S3-S5 in embodiment 1 until the corresponding test service models are sequentially started according to the running order to complete the test on the current solid state disk to be tested, so as to obtain multiple test reports.
In this embodiment, the obtaining module 201 is further configured to receive a hard disk identifier input by a user, and record an input sequence of each hard disk identifier;
and determining the test sequence of the solid state disk to be tested corresponding to each hard disk identification according to the input sequence of each hard disk identification.
In this embodiment, the electronic device 200 further includes:
and the clearing module is used for starting the disk partition clearing operation of the current solid state disk to be detected.
In this embodiment, the electronic device 200 further includes:
the first processing module is used for editing the plurality of test reports of the current solid state disk to be tested according to a preset document format to obtain a comprehensive test report;
and storing the plurality of test reports and/or the comprehensive test report of the current solid state disk to be tested into a preset storage area.
In this embodiment, the electronic device 200 further includes:
the second processing module is used for acquiring the text content of the control of the running test service model;
and determining whether the running test service model completes the test operation of the current solid state disk to be tested according to the text content.
In this embodiment, the test module 204 is further configured to obtain configuration parameters of the started test service model;
configuring the test flow of the current solid state disk to be tested according to the configuration parameters for the started test service model;
and the started test service model tests the current solid state disk to be tested in the initial state according to the test flow.
In this embodiment, the electronic device 200 further includes:
and the storage module is used for storing the test operation data of each test service model to each solid state disk to be tested into a service log.
It should be understood that the electronic device provided in this embodiment may implement the method for testing a solid state disk provided in embodiment 1, and for related descriptions, reference may be made to the content of embodiment 1, and in order to avoid repetition, details are not described herein.
The solid state disk device provided by the embodiment of the disclosure can automatically test a plurality of solid state disks to be tested by a plurality of test service models, thereby reducing manual operation, improving the test efficiency of the solid state disks and reducing the labor cost.
Example 3
In addition, an embodiment of the present disclosure further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the computer program executes the method for testing a solid state disk provided in the above method embodiment when running on the processor.
It should be understood that the electronic device provided in this embodiment may implement the method for testing a solid state disk provided in embodiment 1, and for related descriptions, reference may be made to the content of embodiment 1, and in order to avoid repetition, details are not described herein.
Example 4
In addition, an embodiment of the present disclosure further provides a computer-readable storage medium, which stores a computer program, and when the computer program runs on a processor, the computer program executes the method for testing the solid state disk provided in embodiment 1.
It is to be understood that the computer-readable storage medium provided in this embodiment may implement the method for testing a solid state disk provided in embodiment 1, and for related descriptions, reference may be made to the contents of embodiment 1, and in order to avoid repetition, details are not described herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A test method for a solid state disk is characterized in that a plurality of solid state disks to be tested are connected with a test device, the test device is provided with a plurality of test service models for performing performance test on the solid state disks to be tested, and the method comprises the following steps:
s1, acquiring the running sequence of each test service model and the test sequence of each solid state disk to be tested;
s2, determining the current solid state disk to be tested from the plurality of solid state disks to be tested according to the test sequence;
s3, starting formatting operation on the current solid state disk to be tested, so that the current solid state disk to be tested is in an initial state;
s4, starting corresponding test service models according to the operation sequence, and testing the current solid state disk to be tested in the initial state through the started test service models to obtain a test report corresponding to the current solid state disk to be tested;
s5, judging whether corresponding test service models are started in sequence according to the running sequence to complete the test of the current solid state disk to be tested;
and S6, if the corresponding test service models are not started in sequence according to the running sequence to finish the test of the current solid state disk to be tested, repeating the steps S3-S5 until the corresponding test service models are started in sequence according to the running sequence to finish the test of the current solid state disk to be tested so as to obtain a plurality of test reports.
2. The method according to claim 1, wherein the obtaining of the test sequence of each solid state disk to be tested in S1 includes:
s7, receiving hard disk identifications input by a user, and recording the input sequence of each hard disk identification;
and S8, determining the test sequence of the solid state disk to be tested corresponding to each hard disk identification according to the input sequence of each hard disk identification.
3. The method of claim 1, wherein after S4, the method further comprises:
and S9, starting a disk partition clearing operation on the current solid state disk to be detected.
4. The method of claim 1, wherein after S6, the method further comprises:
s10, editing the test reports of the current solid state disk to be tested according to a preset document format to obtain a comprehensive test report;
s11, storing the test reports and/or the comprehensive test report of the current solid state disk to be tested in a preset storage area.
5. The method of claim 1, wherein after S4, the method further comprises:
s12, acquiring the text content of the control of the running test service model;
and S13, determining whether the running test service model completes the test operation of the current solid state disk to be tested according to the text content.
6. The method according to claim 1, wherein the testing the current solid state disk under test in the initial state through the initiated test service model in S4 includes:
s41, acquiring configuration parameters of the started test service model;
configuring the test flow of the current solid state disk to be tested according to the configuration parameters for the started test service model;
and S42, testing the current solid state disk to be tested in the initial state by the started test service model according to the test flow.
7. The method of claim 1, further comprising:
and S14, storing the test operation data of each test service model to each solid state disk to be tested into a service log.
8. An electronic device, comprising a testing apparatus, the testing apparatus being connected to a plurality of solid state disks to be tested, the testing apparatus being configured with a plurality of test service models for performing performance testing on the solid state disks to be tested, the electronic device further comprising:
the acquisition module is used for acquiring the running sequence of each test service model and the test sequence of each solid state disk to be tested;
the determining module is used for determining the current solid state disk to be tested from the plurality of solid state disks to be tested according to the testing sequence;
the starting module is used for starting formatting operation on the current solid state disk to be tested so as to enable the current solid state disk to be tested to be in an initial state;
the test module is used for starting a corresponding test service model according to the operation sequence, and testing the current solid state disk to be tested in an initial state through the started test service model so as to obtain a test report corresponding to the current solid state disk to be tested;
the judging module is used for judging whether to start the corresponding test service models in sequence according to the running sequence to complete the test of the current solid state disk to be tested;
a control module, configured to, if the corresponding test service models are not sequentially started according to the running order to complete the test on the current solid state disk to be tested, repeatedly execute steps S3-S5 in any one of claims 1 to 7 until the corresponding test service models are sequentially started according to the running order to complete the test on the current solid state disk to be tested, so as to obtain multiple test reports.
9. An electronic device, comprising a memory and a processor, wherein the memory is used for storing a computer program, and the computer program executes the testing method of the solid state disk of any one of claims 1 to 7 when the processor runs.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the method of testing a solid state disk of any of claims 1 to 7.
CN202111497621.1A 2021-12-09 2021-12-09 Test method of solid state disk and electronic equipment Pending CN114141302A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111497621.1A CN114141302A (en) 2021-12-09 2021-12-09 Test method of solid state disk and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111497621.1A CN114141302A (en) 2021-12-09 2021-12-09 Test method of solid state disk and electronic equipment

Publications (1)

Publication Number Publication Date
CN114141302A true CN114141302A (en) 2022-03-04

Family

ID=80385099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111497621.1A Pending CN114141302A (en) 2021-12-09 2021-12-09 Test method of solid state disk and electronic equipment

Country Status (1)

Country Link
CN (1) CN114141302A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116705129A (en) * 2023-05-08 2023-09-05 深圳市晶存科技有限公司 Testing method of solid state disk

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116705129A (en) * 2023-05-08 2023-09-05 深圳市晶存科技有限公司 Testing method of solid state disk
CN116705129B (en) * 2023-05-08 2024-05-07 深圳市晶存科技有限公司 Testing method of solid state disk

Similar Documents

Publication Publication Date Title
JP5669630B2 (en) Test case generation method, program and system
CN112597028A (en) Method and device for displaying case test result and readable storage medium
CN109522181B (en) Performance test method, device and equipment of distributed storage system
CN107080945B (en) Method and device for testing artificial intelligence behaviors in game and electronic equipment
CN113065300A (en) Method, system and device for backtracking simulation waveform in chip EDA (electronic design automation) simulation
CN114141302A (en) Test method of solid state disk and electronic equipment
CN106294109B (en) Method and device for acquiring defect code
CN108733674A (en) A2L file merging method and device
CN110888804B (en) Interface test method and interface test platform
CN108828427B (en) Criterion searching method, device, equipment and storage medium for signal integrity test
CN111897737A (en) Omission detection method and device for program test of micro-service system
CN108628744B (en) Fault diagnosis method and device and electronic equipment
WO2014164079A1 (en) Method and system for analyzing a trace timeline of computer system activity
CN112416735A (en) Application program detection method and device, terminal equipment and storage medium
CN111159028A (en) Webpage testing method and device
CN113591147A (en) Data extraction method and device, computer equipment and storage medium
CN114676061A (en) Knowledge graph-based automatic firmware detection method
CN112329124B (en) CAE model error checking method, apparatus, computer device and storage medium
CN111881021A (en) Interface test method, device and system
CN110704326A (en) Test analysis method and device
CN107102938B (en) Test script updating method and device
CN113971126A (en) Test case generation method and system based on automobile instrument test
CN116795723B (en) Chain unit test processing method and device and computer equipment
CN111352824A (en) Test method and device and computer equipment
CN117608484A (en) Storage method and device for semiconductor chip test data and electronic 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