Automatic testing method and device for abnormal power failure of solid state hard disk
Through the automated test device controlled by IP Power, it simulates and tests the abnormal power outage of the solid-state drive, solves the problems of manual operation and inconvenience in testing in the existing technology, and realizes efficient automated testing of abnormal power outage of the solid-state drive, improving the Test efficiency and coverage.
Patent Information
- Application Number
- CN202111613266.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-12-27
AI Technical Summary
It is difficult for the prior art to effectively simulate and test the stability and reliability of solid-state drives in case of abnormal power outages, and the existing testing methods require a lot of manual operation, which is time-consuming and inconvenient for automation and batch testing.
An automated test device that uses IP Power to control abnormal power outage of solid-state drives. Through the coordinated work of Test PC, IP Power and Control PC, it automatically simulates abnormal power outage, performs read and write operations, and obtains test information and results, and evaluates the stability of solid-state drives. sex.
It realizes automated performance testing of abnormal power outage of solid-state drives, reduces manual operations, reduces the risk of misjudgment, improves test efficiency and coverage, and is suitable for large-scale and long-term testing deployment.
Smart Images

Figure CN114265733B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of solid state hard disk performance testing, and in particular to a solid state hard disk abnormal power failure automatic testing method and device. Background Art
[0002] At present, solid-state hard disk products have been widely used in various occasions due to their advantages such as fast speed and low power consumption, such as consumer-grade, industrial-grade, enterprise-grade and other application environments. The power-off test of solid-state hard disks is crucial to measure the stability and reliability of solid-state hard disk products.
[0003] With the continuous improvement of NAND technology and the gradual increase in single-chip capacity, there are many abnormal power-off processing issues in the SSD product design and firmware implementation process to cover various possible power-off situations. Corresponding various abnormal power-off related testing technologies have also emerged.
[0004] When using the product, there are two types of power outages: normal power outages and abnormal power outages due to system reasons, environmental factors, and human operations.
[0005] Normal power failure: Normal power failure means that the user performs a normal shutdown operation through the OS, i.e. the operating system. This operation will notify the SSD before the system is completely powered off, and provide the SSD with a certain amount of time to perform background processing such as storage of cached data, update of logical and physical mapping tables, and internal metadata, so that the next time the whole system is powered on, it can quickly respond to commands issued by the host and enter the OS normally. For normal power failure, it is relatively easy to implement in testing technology, that is, use the shutdown command provided by the OS to shut down the whole system, and then control the power-on jumper on the Test PC or Test Server motherboard, and use relays to generate a short-circuit signal to achieve the purpose of powering on. In this way, shutdown and startup can be achieved by sending commands, and with multiple (e.g., 1,000) cycles of automated testing, the stability and reliability of SSD products under normal power failure in the whole system can be evaluated.
[0006] Abnormal power outage: Abnormal power outage means that the user does not perform normal shutdown operations through the OS, including but not limited to the following situations:
[0007] The power supply of the Test PC or Test Server itself is unstable, causing the entire machine to lose power;
[0008] The power supply of the test PC or test server is cut off due to power restrictions in the environment.
[0009] When the operating system freezes, the user cannot perform a forced restart and must perform some operations by powering off.
[0010] Other situations;
[0011] Once this abnormal power outage occurs, the system cannot provide the SSD with power outage notification, resulting in some cache data, logical and physical mapping tables, internal metadata, etc. in the system and SSD being unable to be completely updated. This power outage may also occur during the NAND programming process, causing physical page damage.
[0012] This will result in the next time the whole system is powered on, it will not be able to respond quickly and normally to the commands issued by the host, and may even cause data reading errors, loss, or even failure to enter the OS normally. Therefore, when designing SSD products, the focus will be on handling abnormal power failures, and its firmware also has complex logic for error handling and data recovery and reconstruction after powering on.
[0013] From the actual situation analysis of abnormal power outages, it is mainly caused by the sudden failure of the external power supply of the Test PC or Test Server. The verification of this test requires the simulation and coverage of this abnormal situation. In addition, different test cases are used to test and evaluate the stability and robustness of the solid-state drive product under abnormal power outages.
[0014] Especially when data is being read and written to the SSD, an abnormal power outage causes complex internal processing of the SSD firmware, which can easily lead to various problems, such as the inability to enter the OS, loss of SSD data, or even the SSD being unable to be recognized by the system. The purpose of the test is to simulate abnormal power outages as much as possible and to improve reliable evaluation and verification structures and methods.
[0015] Existing testing technology solutions: There are mainly two ways to simulate abnormal power failure testing of the system:
[0016] Use relays and other methods: control the power on / off jumper on the Test PC or Test Server motherboard. This control is used to simulate the user forcibly pressing the power off button on the motherboard for more than 5 seconds. After 5 seconds, the Test PC or TestServer will shut down. However, this method is different from the abnormal power outage situation planned to be simulated. The difference is that after the power off button is forcibly pressed, there is a delay of more than 5 seconds. During this time, the OS has actually detected that the user has pressed the power off button signal. The OS may send a power off notification to the solid-state drive, which cannot fully achieve our desired purpose; and this method is only applicable to controlling the power on / off jumper on the Test PC or Test Server motherboard. It cannot be used when the Test PC or TestServer does not have a power on / off jumper or it is inconvenient to connect it separately;
[0017] Manual power removal: Testers manually remove (or turn off) the power supply of the Test PC or Test Server, for example, turn off the power supply of the chassis (or cabinet) of the Test PC or Test Server to achieve the purpose of powering off the entire machine. This test technology better simulates the abnormal power outage we hope to encounter above, but this method consumes a lot of human resources and requires a lot of manual monitoring and operation, which is not convenient for batch deployment and statistical analysis of test results.
[0018] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0019] Using relays and other methods: This method is different from the abnormal power outage situation planned for simulation. The difference is that after the shutdown button is forcibly pressed, there is a delay of more than 5 seconds. During this time, the OS has actually detected the interrupt signal of the user pressing the shutdown button. The OS may send a power-off notification to the solid-state drive, which cannot fully achieve our desired purpose; and this method is only applicable to controlling the power-on and power-off jumper on the Test PC or Test Server motherboard. It cannot be used when the TestPC or Test Server does not have a power-on and power-off jumper or cannot be connected separately;
[0020] Manual power removal: Although this method better simulates the abnormal power outage we hope for above, it consumes a lot of human resources, requires a lot of manual monitoring and operation, and takes a lot of time for manual operation;
[0021] There is a possibility of misjudgment in the process of manual inspection of test results. At the same time, due to the inertia of manual inspection, it is not convenient to add new inspection conditions or change existing inspection conditions.
[0022] There is no automated way to introduce test processes, which is not convenient for the deployment of large-scale, long-term tests and statistical analysis of test results;
[0023] Testing and evaluating the behavior of solid-state drive products under abnormal power outages involves many test scenarios. The existing test methods and process tests are relatively simple and not convenient for subsequent adaptation and expansion. Summary of the invention
[0024] The purpose of the present invention is to overcome the deficiencies of the above-mentioned background technology and to provide a method and device for automatically testing abnormal power failure of a solid state hard disk.
[0025] The present invention provides an automatic testing method for abnormal power failure of a solid state hard disk, comprising the following steps:
[0026] A fixed hard disk abnormal power failure automatic test device is established which uses IP Power to control the abnormal power failure of the solid state hard disk. The fixed hard disk abnormal power failure automatic test device includes a Test PC, an IP Power and a Control PC. The Test PC is installed with a solid state hard disk product for abnormal power failure performance test, and the solid state hard disk product is selectively installed with an operating system to be tested; the Test PC is electrically connected to the power port of the IP Power, and the Control PC is electrically connected to the IP Power and the Test PC, and stores a preset abnormal power failure test program for performing abnormal power failure test on the solid state hard disk, and is used to control the power failure and power-on of the power port of the IP Power, and obtain test information and test results after the solid state hard disk product is abnormally powered off. The Test PC, the IP Power and the Control PC are all connected to a test local area network;
[0027] Get the usage of the solid state drive as the installation system file;
[0028] According to the use condition of the solid state drive as the installation system file, the Control PC runs the preset abnormal power-off test program to control the execution of the read and write operations on the solid state drive, and then controls the control interface of the IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program to obtain the test information and test results after the abnormal power-off of the solid state drive;
[0029] Evaluate the stability of the solid-state drive product based on the acquired test information and test results of abnormal power failure of the solid-state drive.
[0030] According to the first aspect, in a first possible implementation of the first aspect, the step of "according to the use condition of the solid state drive as an installation system file, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the solid state drive, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain test information and test results after the solid state drive is abnormally powered off" specifically includes the following steps:
[0031] When the solid state drive is used as a system disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the solid state drive, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program to obtain the test information and test results after the solid state drive is abnormally powered off.
[0032] According to a first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect,
[0033] The step of "when the solid-state hard disk is used as a system disk for installing system files, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the solid-state hard disk, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain test information and test results after the solid-state hard disk is abnormally powered off" specifically includes the following steps:
[0034] When the SSD is used as a system disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the SSD, and then controls the control port of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program;
[0035] Get the first detection condition of the SSD entering the OS after abnormal power failure. If yes, enter the next detection acquisition link.
[0036] Obtain the second detection condition of the solid state drive file being lost. If the file is not lost, proceed to the next detection acquisition link;
[0037] The third detection condition of obtaining health information during the abnormal power-off test of the solid-state hard disk, if it is healthy, proceed to the next detection acquisition link;
[0038] The number of abnormal power-off tests and the test time of the solid-state hard disk are obtained. If the preset number of tests and the preset test time are met, the first detection condition, the second detection condition and the third detection condition obtained above are obtained.
[0039] According to the first aspect, in a third possible implementation manner of the first aspect, the step of "according to the use condition of the solid state drive as an installation system file, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the solid state drive, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain test information and test results after the solid state drive is abnormally powered off" specifically includes the following steps:
[0040] When the solid state drive is used as a data disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the physical disk of the solid state drive, and then controls the control interface of the IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program to obtain the test information and test results after the physical disk of the solid state drive is abnormally powered off;
[0041] The control executes the read and write operations on the solid-state hard disk logic disk, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain the test information and test results after the abnormal power-off of the solid-state hard disk logic disk.
[0042] According to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect,
[0043] The step of "when the solid-state hard disk is used as a data disk for installing system files, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the solid-state hard disk physical disk, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain the test information and test results after the solid-state hard disk physical disk is abnormally powered off" specifically includes the following steps:
[0044] When the solid state drive is used as a data disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the physical disk of the solid state drive, and then controls the control port of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program;
[0045] Get the first detection condition of the SSD entering the OS after abnormal power failure. If yes, enter the next detection acquisition link.
[0046] Obtain the second detection condition of the solid state drive file being lost. If the file is not lost, proceed to the next detection acquisition link;
[0047] The third detection condition of obtaining health information during the abnormal power-off test of the solid-state hard disk, if it is healthy, proceed to the next detection acquisition link;
[0048] The number of abnormal power-off tests and the test time of the solid-state hard disk are obtained. If the preset number of tests and the preset test time are met, the first detection condition, the second detection condition and the third detection condition obtained above are obtained.
[0049] According to the fourth possible implementation manner of the first aspect, in the fifth possible implementation manner of the first aspect, the “controlling execution of read and write operations on the solid-state hard disk logic disk, and then controlling the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtaining test information and test results after the solid-state hard disk logic disk is abnormally powered off”
[0050] When the SSD is used as a data disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the SSD logical disk, and then controls the control port of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program;
[0051] Obtain the fourth detection condition of the solid state drive entering the OS after abnormal power failure. If yes, enter the next detection acquisition link;
[0052] The fifth detection condition of obtaining the lost files on the solid state drive is obtained. If the files are not lost, the next detection and acquisition step is entered;
[0053] The sixth detection condition of obtaining health information during the abnormal power-off test of the solid-state hard disk, if it is healthy, proceed to the next detection acquisition link;
[0054] The number of abnormal power-off tests and the test time of the solid-state hard disk are obtained. If the preset number of tests and the preset test time are met, the first detection condition, the second detection condition and the third detection condition obtained above are obtained.
[0055] According to the fourth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the step of “controlling execution of read and write operations on the solid state drive logical disk” specifically includes the following steps:
[0056] The control executes formatting and partitioning of the solid state drive logical disk, and creates a separate test folder on the solid state drive for storing the solid state drive abnormal power failure test data and test files, and runs a preset abnormal power failure test program to start reading and writing files in the test folder.
[0057] According to the fourth possible implementation manner of the first aspect, in a seventh possible implementation manner of the first aspect,
[0058] The step of “controlling the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program” specifically includes the following steps:
[0059] Control the control interface of IP Power to power off the power supply port specified in the preset abnormal power-off test program, and wait for a first preset waiting time;
[0060] The control interface of IP Power is controlled to power on the power supply port specified in the preset abnormal power-off test program, and wait for the second waiting time.
[0061] According to the fourth possible implementation manner of the first aspect, in an eighth possible implementation manner of the first aspect, the step of “obtaining the sixth detection condition of health information during the abnormal power-off test of the solid-state hard disk, and if it is healthy, entering the next detection acquisition link” specifically includes the following steps:
[0062] Acquire a first healthy operating condition when the number of abnormal power failures of the solid state drive changes to a preset expected number value, and when the number changes to the preset expected number value, determine that the first healthy operating condition is healthy;
[0063] Acquire a first healthy operating condition in which the amount of data read and written by the solid state drive increases linearly, and when the amount of data read and written by the solid state drive increases linearly, determine that the second healthy operating condition is healthy;
[0064] Obtaining a third healthy operating condition when an uncorrectable error occurs during a read / write process of the solid state drive, and determining that the third healthy operating condition is healthy when no uncorrectable error occurs;
[0065] When the first healthy condition, the second healthy condition and the third healthy condition are healthy, it is determined that the health information during the abnormal power-off test of the solid state hard disk is healthy, and the next detection acquisition link is entered.
[0066] In a second aspect, the present invention provides an automated testing device for abnormal power failure of a fixed hard disk, comprising a Test PC, an IP Power, and a Control PC. A solid-state hard disk product for abnormal power failure performance testing is installed on the Test PC, and an operating system to be tested is selectively installed on the solid-state hard disk product; the Test PC is electrically connected to the power port of the IP Power, and the Control PC is electrically connected to the IP Power and the Test PC, and is used to control the power off and on of the power port of the IP Power, and to obtain test information and test results after the solid-state hard disk product has abnormal power failure, and the Test PC, IPPower, and Control PC are all connected to a test local area network.
[0067] Compared with the prior art, the advantages of the present invention are as follows:
[0068] The present invention provides an automated testing method for abnormal power failure of a solid-state hard disk. By forming an automated testing device for abnormal power failure of a fixed hard disk that uses IP Power to control abnormal power failure of the solid-state hard disk, different read and write operations and abnormal power failure test verification operations are performed on the solid-state hard disk according to the use condition of the solid-state hard disk as an installation system file, so as to obtain test information and test results after abnormal power failure of the solid-state hard disk, realize automated performance testing of abnormal power failure of the solid-state hard disk, avoid manual removal of power supply, reduce mechanical operations of testers, and reduce testers' misjudgment and other erroneous operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 is a method flow chart of an automated testing method for abnormal power failure of a solid state drive provided by an embodiment of the present invention;
[0070] Figure 2 is another method flow chart of the method for automatic testing abnormal power failure of a solid state drive provided by an embodiment of the present invention;
[0071] Figure 3 is another method flow chart of the method for automatic testing abnormal power failure of a solid state drive provided by an embodiment of the present invention;
[0072] Figure 4 It is a structural schematic diagram of an automatic testing device for abnormal power failure of a solid state hard disk provided by an embodiment of the present invention;
[0073] Figure 5 It is another structural schematic diagram of the automatic testing device for abnormal power failure of a solid state hard disk provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0074] Reference will now be made in detail to specific embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Although the present invention will be described in conjunction with specific embodiments, it will be understood that it is not intended to limit the present invention to the embodiments described. On the contrary, it is intended to cover changes, modifications and equivalents included in the spirit and scope of the present invention as defined by the appended claims. It should be noted that the method steps described herein can all be implemented by any functional block or functional arrangement, and any functional block or functional arrangement can be implemented as a physical entity or a logical entity, or a combination of the two.
[0075] In order to enable those skilled in the art to better understand the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0076] Note: The example to be introduced below is only a specific example, and is not intended to limit the embodiments of the present invention to the following specific steps, values, conditions, data, sequences, etc. Those skilled in the art can apply the concept of the present invention to construct more embodiments not mentioned in this specification by reading this specification.
[0077] See also Figure 1 As shown, an embodiment of the present invention provides an automatic testing method for abnormal power failure of a solid state drive, comprising the following steps:
[0078] S100, build an automatic test device for abnormal power failure of fixed hard disk using IP Power to control abnormal power failure of solid state hard disk, such as Figure 1As shown, the fixed hard disk abnormal power failure automatic test device includes a Test PC, an IP Power, and a Control PC. The Test PC is installed with a solid state hard disk product for abnormal power failure performance test, and the solid state hard disk product is selectively installed with an operating system to be tested; the Test PC is electrically connected to the power port of the IP Power, and the Control PC is electrically connected to the IP Power and the Test PC, and is used to control the power off and on of the power port of the IP Power, and obtain test information and test results after the solid state hard disk product is abnormally powered off. The Test PC, IP Power, and Control PC are all connected to a test local area network;
[0079] The operating system Operation System, referred to as OS in this application, refers to the Linux or Windows operating system.
[0080] Among them, IP Power is a network-controlled power supply, which is a hardware device with a power supply port and a control port. By connecting the computer's power supply to its power supply port, the user can remotely control the power switch of the connected device through the Internet or any computer in the local area network to achieve the function of powering off and powering on the connected device Test PC.
[0081] The Test PC may also be implemented as a Test Sever, where Sever is a server.
[0082] Among them, the selective installation of the operating system to be tested requires the installation of the operating system to be tested on the solid-state hard disk when the solid-state hard disk is used as a system disk for installing system files, and the installation of the operating system to be tested on the solid-state hard disk is not required when the solid-state hard disk is used as a data disk for installing system files.
[0083] The installation system file is a system to be tested or a file to be tested.
[0084] Among them, the full English name of the solid-state drive is Solid State Drive, and its Chinese name is Solid State Drive. It is a data storage device composed of several NAND Flash arrays, which is NVMe SSD or SATA SSD.
[0085] S200, obtaining a usage condition of the solid state drive as an installation system file;
[0086] S300, according to the use condition of the solid state drive as the installation system file, the Control PC runs the preset abnormal power-off test program to control the execution of the read and write operations on the solid state drive, and then controls the control interface of the IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain the test information and test results after the solid state drive is abnormally powered off;
[0087] S400. Evaluate the stability of the solid state drive product according to the acquired test information and test results of abnormal power failure of the solid state drive.
[0088] The automatic test method for abnormal power failure of a solid-state hard disk provided by the present invention starts with an existing hardware platform, uses IP Power to control the whole machine system, and establishes an automatic test device for abnormal power failure of a fixed hard disk that uses IP Power to control abnormal power failure of the solid-state hard disk. According to the use condition of the solid-state hard disk as an installation system file, different read and write operations and abnormal power failure test verification operations are performed on the solid-state hard disk, thereby obtaining test information and test results after abnormal power failure of the solid-state hard disk, and realizing automatic performance testing of abnormal power failure of the solid-state hard disk;
[0089] Avoid the manual removal of power supply power supply abnormal power failure test method, which consumes manpower, reduces the mechanical operation of testers, and reduces the testers' misjudgment and other misoperations;
[0090] The connection method for abnormal power failure of the whole system test and the structure for realizing system-level power failure test automation are proposed to lay the hardware foundation for building automated testing;
[0091] Through automated testing equipment, multiple test cases can be carried out simultaneously according to test requirements, so as to improve test coverage, increase test sampling rate, reduce the random rate of problems, establish standardized testing processes, and expose product problems early.
[0092] In one embodiment, in SS100, in order to improve the test coverage, test sampling rate, and reduce the random rate of abnormal power-off test verification problems of solid-state drives, a standardized test process is established to expose product problems early, and a plurality of Test PCs for solid-state drive products provided for abnormal power-off performance testing are installed to achieve simultaneous detection of abnormal power-off performance of multiple solid-state drive products.
[0093] Steps S200-S400 can be performed by writing a control program and running it on a Control PC to send commands, control the process, detect the status, and report the results through the network.
[0094] In one embodiment, please refer to Figure 2In step S300, the step of "according to the use condition of the solid state drive as the installation system file, the Control PC runs the preset abnormal power-off test program to control the execution of the read and write operations on the solid state drive, and then controls the control interface of the IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain the test information and test results after the solid state drive is abnormally powered off" specifically includes the following steps:
[0095] S310. When the solid state drive is used as a system disk for installing system files, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the solid state drive, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program to obtain test information and test results after the solid state drive is abnormally powered off.
[0096] In one embodiment, in step S310, the step of "when the solid state drive is used as a system disk for installing system files, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the solid state drive, and then controls the control interface of IPPower to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain test information and test results after the solid state drive is abnormally powered off" specifically includes the following steps:
[0097] S311, when the solid state drive is used as a system disk for installing system files, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the solid state drive, and then controls the control port of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program;
[0098] S312, obtaining the first detection condition of the solid state drive entering the OS after abnormal power failure, if yes, entering the next detection acquisition link;
[0099] S313, obtaining a second detection condition of a lost solid state hard disk file, and if the file is not lost, proceeding to the next detection acquisition link;
[0100] S314, a third detection condition of obtaining health information during the abnormal power-off test of the solid-state hard disk, if the health information is healthy, proceeding to the next detection acquisition link;
[0101] S315, obtaining the number of abnormal power-off tests and the test time of the solid-state hard disk, and if the preset number of tests and the preset test time are met, obtaining the first detection condition, the second detection condition and the third detection condition obtained above.
[0102] In one embodiment, please refer to Figure 3In step S300, the step of "according to the use condition of the solid state drive as the installation system file, the Control PC runs the preset abnormal power-off test program to control the execution of the read and write operations on the solid state drive, and then controls the control interface of the IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain the test information and test results after the solid state drive is abnormally powered off" also includes the following steps:
[0103] S321. When the solid state drive is used as a data disk for installing system files, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the physical disk of the solid state drive, and then controls the control interface of the IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtains the test information and test results after the physical disk of the solid state drive is abnormally powered off;
[0104] S322, control execution to perform read and write operations on the solid state hard disk logic disk, and then control the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain the test information and test results after the solid state hard disk logic disk is abnormally powered off.
[0105] In one embodiment, in step S321, the step of "when the solid state drive is used as a data disk for installing system files, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the solid state drive physical disk, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain test information and test results after the solid state drive physical disk is abnormally powered off" specifically includes the following steps:
[0106] S3211. When the solid state drive is used as a data disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the physical disk of the solid state drive, and then controls the control port of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program;
[0107] S3212, obtaining the first detection condition of the solid state drive entering the OS after abnormal power failure, if yes, entering the next detection acquisition link;
[0108] S3213, obtaining a second detection condition of a lost solid state hard disk file, and if the file is not lost, proceeding to the next detection acquisition link;
[0109] S3214, a third detection condition of obtaining health information during the abnormal power-off test of the solid-state hard disk, if the health information is healthy, proceeding to the next detection acquisition link;
[0110] S3215. Obtain the number of abnormal power-off tests and the test time of the solid-state hard disk. If the preset number of tests and the preset test time are met, obtain the first detection condition, the second detection condition and the third detection condition obtained above.
[0111] In one embodiment, in step S322, the "controlling execution of read and write operations on the solid state drive logic disk, and then controlling the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtaining test information and test results after the solid state drive logic disk is abnormally powered off" specifically includes the following steps:
[0112] S3221. When the solid state drive is used as a data disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the solid state drive logic disk, and then controls the control port of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program;
[0113] S3222, obtaining the fourth detection condition of entering the OS after the SSD abnormally loses power, if yes, entering the next detection acquisition link;
[0114] S3223, obtaining the fifth detection condition of the solid state drive file being lost, and if the file is not lost, proceeding to the next detection acquisition link;
[0115] S3224, obtaining the sixth detection condition of health information during the abnormal power-off test of the solid-state hard disk, if it is healthy, proceeding to the next detection acquisition link;
[0116] S3225. Obtain the number of abnormal power-off tests and the test time of the solid-state hard disk. If the preset number of tests and the preset test time are met, obtain the first detection condition, the second detection condition and the third detection condition obtained above.
[0117] In one embodiment, the step of “controlling execution of read and write operations on the solid state hard disk logical disk” specifically includes the following steps:
[0118] The control executes formatting and partitioning of the solid state drive logical disk, and creates a separate test folder on the solid state drive for storing the solid state drive abnormal power failure test data and test files, and runs a preset abnormal power failure test program to start reading and writing files in the test folder.
[0119] In one embodiment, in step S322, the step of "controlling the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test procedure" specifically includes the following steps:
[0120] Control the control interface of IP Power to power off the power supply port specified in the preset abnormal power-off test program, and wait for a first preset waiting time;
[0121] The control interface of IP Power is controlled to power on the power supply port specified in the preset abnormal power-off test program, and wait for the second waiting time.
[0122] In one embodiment, in step S3224, the step of "obtaining the sixth detection condition of health information during the abnormal power-off test of the solid-state drive, and if the health information is healthy, entering the next detection acquisition link" specifically includes the following steps:
[0123] S32241, obtaining a first healthy operating condition when the number of abnormal power failures of the solid state drive changes to a preset expected number value, and when the number changes to the preset expected number value, determining that the first healthy operating condition is healthy;
[0124] S32242, obtaining a first healthy operating condition in which the amount of data read and written by the solid state drive increases linearly, and determining that the second healthy operating condition is healthy when the amount of data read and written by the solid state drive increases linearly;
[0125] S32243, obtaining a third healthy operating condition in which an uncorrectable error occurs during a read / write process of the solid state drive, and determining that the third healthy operating condition is healthy when no uncorrectable error occurs;
[0126] When the first healthy condition, the second healthy condition and the third healthy condition are healthy, it is determined that the health information during the abnormal power-off test of the solid state hard disk is healthy, and the next detection acquisition link is entered.
[0127] In one embodiment, before step S400, the following steps are also included:
[0128] The acquired test information and test results of abnormal power failure of the solid-state drive are uploaded to the database to facilitate subsequent result search and comparison. Through database data processing, the test coverage and test result report are automatically generated, allowing testers and product engineers to accurately and quickly understand the power failure stability, firmware quality and other indicators of the solid-state drive product.
[0129] In a specific embodiment, an abnormal power failure automatic testing method when a solid state drive is used as a system disk for installing system files includes the following steps:
[0130] S1. Prepare the test environment:
[0131] Prepare the initial test conditions for the SSD, prepare the SSD to be tested, and install the operating system to be tested on the SSD, such as Windows or Linux operating system;
[0132] S2, control the read and write operations on the solid state drive:
[0133] A separate test folder is created on the solid state drive to store abnormal power failure test data and files, and the preset abnormal power failure test program on the Control PC is controlled to start reading and writing files in the test folder on the solid state drive. This operation lasts for more than 5 minutes.
[0134] S3. Power off the power supply port specified in the preset abnormal power-off test procedure by controlling the control interface of IP Power, and wait for more than 8 seconds. Power on the power supply port specified in the preset abnormal power-off test procedure by controlling the control interface of IP Power, and wait for a maximum of 90 seconds.
[0135] S4. Check whether the OS is successfully entered:
[0136] Access the Test PC or Test Server to perform the test. If you successfully enter the OS, continue with the S5 test. If you cannot enter the OS, an error message will be displayed.
[0137] S5. Check if there is any file missing:
[0138] Check whether the data in the test folder in step 2 is lost. If not, continue the detection in step S6. If a file is lost, determine whether the lost file is the last updated file. If not, report an error because the physical characteristics of NAND allow the last updated file data to be lost.
[0139] S7. Check the health status of the solid state drive and perform tests, including but not limited to the following:
[0140] Whether the number of abnormal power-off tests of the solid-state drive changes to the expected value;
[0141] Whether the amount of data read and written by the SSD increases linearly;
[0142] Whether uncorrectable errors occur during the reading and writing process of the SSD;
[0143] Other tests;
[0144] S8, detecting whether the preset number of tests or the preset test time is met. In this embodiment, the preset number of tests is 1000 times, and the preset test time is 48 hours;
[0145] S9, upload the test information and results in steps S1-S8 to the database to facilitate subsequent result search and comparison. If no errors occur during the test and detection process, the abnormal power-off performance test item of the solid-state drive passes; otherwise, it fails.
[0146] In a specific embodiment, an automatic test method for abnormal power failure when a solid state drive is used as a data disk for system files includes the following steps:
[0147] S1. Prepare the test environment:
[0148] Prepare the initial test conditions of the solid-state drive. No operating system needs to be installed. You can decide whether to partition the disk as needed. In this automated test method, the physical disk (not partitioned) is tested first, and then the logical disk (partitioned) is tested.
[0149] S2. Read and write operations on the physical disk of the solid-state drive: the operation lasts for more than 5 minutes;
[0150] S3. Use the control interface of IP Power to cut off the power supply port specified in the preset abnormal power failure test procedure and wait for more than 8 seconds;
[0151] S4. Power on the power supply port specified in the preset abnormal power failure test procedure through the control interface of IP Power, and wait for up to 90 seconds;
[0152] S5. Check whether the OS is successfully entered: perform the test by accessing the Test PC or Test Server; if the OS is successfully entered, continue with the subsequent tests; if the OS cannot be entered, an error is reported;
[0153] S6. Check whether the solid-state drive is lost: Check whether the solid-state drive is lost in the system; if it is not lost, continue with the subsequent detection; if it is lost, an error is reported;
[0154] S7. Check the health status of the solid state drive and perform tests, including but not limited to the following:
[0155] Whether the number of abnormal power failures of the solid state drive changes to the desired value;
[0156] Whether the amount of data read and written by the SSD increases linearly;
[0157] Whether uncorrectable errors occur during the reading and writing process of the SSD;
[0158] Other tests;
[0159] S8. Check whether the number or time of testing is met: the number of tests specified in this process is 1000 times or 24 hours;
[0160] S9. Partition the solid state drive and perform read and write operations:
[0161] Control the formatting and partitioning of the solid-state hard disk, and create a separate test folder on the solid-state hard disk to store test data and test files, and control the execution of the test program to start reading and writing files in the test folder, and the operation lasts for more than 5 minutes;
[0162] S10, the Control PC executes the established test program, controls the control interface of IP Power, cuts off the power supply port designated by IP Power, and waits for more than 8 seconds;
[0163] Then control the control interface of IP Power to power on the power supply port specified in the preset abnormal power failure test program and wait for up to 90 seconds;
[0164] S11. Check whether the OS is successfully entered:
[0165] Access the Test PC or Test Server to perform the test. If you successfully enter the OS, continue with the S12 test. If you cannot enter the OS, an error message will be displayed.
[0166] S12. Check whether the solid state drive is lost and whether there is data loss:
[0167] Check whether the SSD is lost in the test system; if not, continue with the subsequent test; if lost, report an error;
[0168] The detection step tests whether the data in the folder is lost; if not, continue with the subsequent detection;
[0169] If a file is lost, determine whether the lost file is the last updated file. If not, report an error because the physical characteristics of NAND allow the last updated file data to be lost.
[0170] S13. Check the health status of the solid state drive and perform tests, including but not limited to the following:
[0171] a. Check whether the number of abnormal power failures of the solid state drive changes to the expected value. If not, an error is reported;
[0172] b. Whether the amount of data read and written by the SSD increases linearly. If not, an error is reported;
[0173] c. Whether any uncorrectable errors occur during the reading and writing process of the SSD. If so, an error is reported;
[0174] d. Other tests;
[0175] S14. Check whether the number or time of the test is met:
[0176] In this embodiment, the preset number of tests is 1000 times, and the preset test time is 24 hours;
[0177] If the preset test times and test time are met, then go to step 15; if the preset test times or test time are not met, then return to step S2 and perform another round of abnormal power-off performance test on the solid-state drive until the test times or test time meet the preset test times or test time, then go to step 15;
[0178] S15. Upload the test information and results to the database: to facilitate subsequent result search and comparison. If no errors occur during the test and detection process, the project test passes; otherwise, it fails. At this point, the test process of the abnormal power-off test method when the solid-state hard disk is used as a data disk for installing system files is completed.
[0179] If any of steps S1-S13 reports an error, the abnormal power-off performance test of the solid-state hard disk fails, and the test information and test results of the step and the steps before the step are uploaded to the database, ending the test process.
[0180] Based on the same invention concept, please refer to Figure 4 The present invention provides an automatic test device for abnormal power failure of a fixed hard disk, comprising a Test PC, an IP Power, and a Control PC. A solid-state hard disk product for abnormal power failure performance test is installed on the Test PC, and an operating system to be tested is selectively installed on the solid-state hard disk product; the Test PC is electrically connected to the power port of the IPPower, and the Control PC is electrically connected to the IP Power and the Test PC, and is used to control the power failure and power-on of the power port of the IPPower, and obtain test information and test results after the solid-state hard disk product is abnormally powered off.
[0181] The hardware connection description is as follows:
[0182] Test PC (or Server), Control PC, and IP Power are all connected to the test LAN;
[0183] According to the instruction document of IP Power, the power supply of the Test PC (or Server) is connected to a designated port in the IP Power, such as port 1, through a power cord. The IP Power used in the invention has four power ports. With several power ports, several Test PCs (or Servers) can be supported to perform abnormal power-off tests at the same time.
[0184] Install the NVMe or SATA SSD product to be tested on the Test PC (or Server).
[0185] The main functions of each component are described as follows:
[0186] The Test PC (or Server) is used to actually test the SSD product, to perform operations such as read and write, and to avoid sudden power outages;
[0187] The Control PC is used to execute the preset abnormal power-off test program, including issuing commands and monitoring the execution of the Test PC (or Server); and to issue commands to IP Power to specify the corresponding port to power off; to control the abnormal power-off test process; and to have the function of reporting and recording test logs;
[0188] IP Power has a command line control method to cut off or restore the power of the Test PC (or Server) connected to the specified port;
[0189] The IP Power and Test PC (or Server) settings are as follows:
[0190] According to the IP Power user manual, set the IP address. For details, refer to the instructions of each IP Power model used. After the setting is completed, when the test software is controlled later, the IP address information will be used to remotely control the power off and on of the specified power port;
[0191] According to the user manual of the Test PC (or Server), set the option in its BIOS (Basic Input Output System) to automatically start the machine when powered on; this ensures that the test machine can automatically start up after IP Power restores the power supply to the port;
[0192] After setting up according to the above instructions, the basic conditions for automatic testing of abnormal power outages are met.
[0193] At the same time, according to the maximum number of power ports allowed by IP Power, it can be expanded to a structure where multiple IP Powers control abnormal power failure of solid-state drives, so as to achieve the purpose of testing multiple units at the same time and improve test efficiency. The expanded structure is as follows Figure 5 shown.
[0194] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, all or part of the method steps of the above method are implemented.
[0195] The present invention implements all or part of the process in the above method, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of each method embodiment can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signal and telecommunication signal.
[0196] Based on the same inventive concept, an embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program running on the processor, and when the processor executes the computer program, all or part of the method steps in the above method are implemented.
[0197] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of a computer device, and uses various interfaces and lines to connect various parts of the entire computer device.
[0198] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, video data, etc.). In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Fl ash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0199] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, servers or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program codes.
[0200] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), servers, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0201] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0202] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0203] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for automatically testing abnormal power failure of a solid state drive, characterized in that: The following steps are involved: A fixed hard disk abnormal power failure automatic test device is established which uses IP Power to control the abnormal power failure of the solid state hard disk. The fixed hard disk abnormal power failure automatic test device includes a Test PC, an IP Power and a Control PC. The Test PC is installed with a solid state hard disk product for abnormal power failure performance test, and the solid state hard disk product is selectively installed with an operating system to be tested; the Test PC is electrically connected to the power port of the IP Power, and the Control PC is electrically connected to the IP Power and the Test PC, and stores a preset abnormal power failure test program for performing abnormal power failure test on the solid state hard disk, and is used to control the power failure and power-on of the power port of the IP Power, and obtain test information and test results after the solid state hard disk product is abnormally powered off. The Test PC, the IP Power and the Control PC are all connected to a test local area network; Get the usage of the solid state drive as the installation system file; According to the use condition of the solid state drive as the installation system file, the Control PC runs the preset abnormal power-off test program to control the execution of the read and write operations on the solid state drive, and then controls the control interface of the IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program to obtain the test information and test results after the abnormal power-off of the solid state drive; Evaluate the stability of the SSD product based on the acquired SSD abnormal power failure test information and test results; The step of "according to the use condition of the solid state drive as the installation system file, the Control PC runs the preset abnormal power-off test program to control the execution of the read and write operations on the solid state drive, and then controls the control interface of the IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain the test information and test results after the solid state drive is abnormally powered off" specifically includes the following steps: When the SSD is used as a system disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the SSD, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program to obtain the test information and test results after the SSD is abnormally powered off; The step of "when the solid state drive is used as a system disk for installing system files, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the solid state drive, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain test information and test results after the solid state drive is abnormally powered off" specifically includes the following steps: When the SSD is used as a system disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the SSD, and then controls the control port of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program; Get the first detection condition of the SSD entering the OS after abnormal power failure. If yes, enter the next detection acquisition link. Obtain the second detection condition of the solid state drive file being lost. If the file is not lost, proceed to the next detection acquisition stage; The third detection condition of obtaining health information during the abnormal power-off test of the solid-state hard disk, if it is healthy, proceed to the next detection acquisition link; The number of abnormal power-off tests and the test time of the solid-state hard disk are obtained. If the preset number of tests and the preset test time are met, the first detection condition, the second detection condition and the third detection condition obtained above are obtained.
2. The method for automatically testing abnormal power failure of a solid state drive according to claim 1, wherein: The step of "according to the use condition of the solid state drive as the installation system file, the Control PC runs the preset abnormal power-off test program to control the execution of the read and write operations on the solid state drive, and then controls the control interface of the IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain the test information and test results after the solid state drive is abnormally powered off" also includes the following steps: When the solid state drive is used as a data disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the physical disk of the solid state drive, and then controls the control interface of the IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program to obtain the test information and test results after the physical disk of the solid state drive is abnormally powered off; The control executes the read and write operations on the solid-state hard disk logic disk, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program to obtain the test information and test results after the abnormal power-off of the solid-state hard disk logic disk.
3. The method for automatically testing abnormal power failure of a solid state drive according to claim 2, wherein: The step of "when the solid-state hard disk is used as a data disk for installing system files, the Control PC runs a preset abnormal power-off test program to control the execution of read and write operations on the solid-state hard disk physical disk, and then controls the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtain test information and test results after the solid-state hard disk physical disk is abnormally powered off" specifically includes the following steps: When the solid state drive is used as a data disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the physical disk of the solid state drive, and then controls the control port of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program; Get the first detection condition of the SSD entering the OS after abnormal power failure. If yes, enter the next detection acquisition link. Obtain the second detection condition of the solid state drive file being lost. If the file is not lost, proceed to the next detection acquisition link; The third detection condition of obtaining health information during the abnormal power-off test of the solid-state hard disk, if it is healthy, proceed to the next detection acquisition link; The number of abnormal power-off tests and the test time of the solid-state hard disk are obtained. If the preset number of tests and the preset test time are met, the first detection condition, the second detection condition and the third detection condition obtained above are obtained.
4. The method for automatically testing abnormal power failure of a solid state drive according to claim 2, wherein: The step of "controlling the execution of read and write operations on the solid state hard disk logic disk, and then controlling the control interface of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program, and obtaining the test information and test results after the solid state hard disk logic disk is abnormally powered off" specifically includes the following steps: When the SSD is used as a data disk for installing system files, the Control PC runs the preset abnormal power-off test program to control the execution of read and write operations on the SSD logical disk, and then controls the control port of IP Power to power off and then power on the power supply port specified in the preset abnormal power-off test program; Obtain the fourth detection condition of the solid state drive entering the OS after abnormal power failure. If yes, enter the next detection acquisition link; The fifth detection condition of obtaining the lost files on the solid state drive is obtained. If the files are not lost, the next detection and acquisition step is entered; The sixth detection condition of obtaining health information during the abnormal power-off test of the solid-state hard disk, if it is healthy, proceed to the next detection acquisition link; The number of abnormal power-off tests and the test time of the solid-state hard disk are obtained. If the preset number of tests and the preset test time are met, the first detection condition, the second detection condition and the third detection condition obtained above are obtained.
5. The method for automatically testing abnormal power failure of a solid state drive according to claim 2, wherein: The step of "controlling the execution of reading and writing operations on the solid state hard disk logical disk" specifically includes the following steps: The control executes formatting and partitioning of the solid state drive logical disk, and creates a separate test folder on the solid state drive for storing the solid state drive abnormal power failure test data and test files, and runs a preset abnormal power failure test program to start reading and writing files in the test folder.
6. The method for automatically testing abnormal power failure of a solid state drive according to claim 3, wherein: The step of "controlling the control interface of IPPower to power off and then power on the power supply port specified in the preset abnormal power-off test program" specifically includes the following steps: Control the control interface of IPPower to power off the power supply port specified in the preset abnormal power-off test program, and wait for a first preset waiting time; Control the control interface of IPPower to power on the power supply port specified in the preset abnormal power-off test program, and wait for the second waiting time.
7. The method for automatically testing abnormal power failure of a solid state drive according to claim 4, characterized in that: The step of "obtaining the sixth detection condition of health information during the abnormal power-off test of the solid-state hard disk, and if the health information is healthy, proceeding to the next detection acquisition link" specifically includes the following steps: Acquire a first healthy operating condition when the number of abnormal power failures of the solid state drive changes to a preset expected number value, and when the number changes to the preset expected number value, determine that the first healthy operating condition is healthy; Acquire a first healthy operating condition in which the amount of data read and written by the solid state drive increases linearly, and when the amount of data read and written by the solid state drive increases linearly, determine that the second healthy operating condition is healthy; Obtaining a third healthy operating condition when an uncorrectable error occurs during a read / write process of the solid state drive, and determining that the third healthy operating condition is healthy when no uncorrectable error occurs; When the first healthy condition, the second healthy condition and the third healthy condition are healthy, it is determined that the health information during the abnormal power-off test of the solid state hard disk is healthy, and the next detection acquisition link is entered.
8. An automatic test device for abnormal power failure of a fixed hard disk using the automatic test method for abnormal power failure of a solid state hard disk as claimed in claim 1, characterized in that: The invention comprises a Test PC, an IP Power and a Control PC. The Test PC is installed with a solid-state hard disk product for abnormal power-off performance test, and the solid-state hard disk product selectively has an operating system to be tested installed. The Test PC is electrically connected to the power port of the IP Power. The Control PC is electrically connected to the IP Power and the Test PC, and stores a preset abnormal power-off test program for performing abnormal power-off test on the solid-state hard disk, and is used for controlling the power-off and power-on of the power port of the IP Power, and obtaining test information and test results after abnormal power-off of the solid-state hard disk product. The Test PC, the IP Power and the Control PC are all connected to a test local area network.
