Hard disk testing method, system, device, electronic equipment, storage medium and product

By automating the hard drive testing process on the host computer, the problem of cumbersome hard drive testing procedures is solved, achieving automation and resource saving in hard drive testing.

CN116662095BActive Publication Date: 2026-07-14INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2023-06-28
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

Existing technologies involve cumbersome hard drive testing processes, requiring frequent modifications to BIOS options and multiple restarts, which consumes a lot of manpower and resources.

Method used

The host automatically traverses the BIOS options configuration of the hard drive under test, and uses the communication between the first and second hosts to automatically execute the hard drive test process, including generating configuration instructions, configuration completion information, test instructions, and test results.

Benefits of technology

It automates hard drive testing, reduces staff workload, lowers testing difficulty, and saves human and material resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116662095B_ABST
    Figure CN116662095B_ABST
Patent Text Reader

Abstract

The application provides a hard disk test method, system and device, electronic equipment, storage medium and product, and belongs to the technical field of testing. The method comprises the following steps: sending target configuration instructions to a second host; in the case that configuration completion information corresponding to the target configuration instructions returned by the second host is received, sending a test instruction of a target test case to the second host; the test instruction is used for instructing the second host to perform hard disk testing according to the target test case; and in the case that it is determined that multiple test cases are all tested, a test result is generated. The hard disk test method, system and device, electronic equipment, storage medium and product provided by the application can automatically realize the traversal test of the hard disk by automatically traversing the option configuration about the hard disk function in the basic input / output system of the host, thereby reducing the operation of the staff, reducing the test difficulty, and saving manpower and material resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of testing technology, and in particular to a hard disk testing method, system, device, electronic device, storage medium, and product. Background Technology

[0002] When the system is powered on, the Basic Input Output System (BIOS) detects all devices connected to the PCIe bus and their configuration requirements via the Peripheral Component Interconnect Express (PCIe) bus, and performs system configuration and management, including Non-Volatile Memory Express (NVMe) disk operation.

[0003] During the testing of NVMe-related functions in the BIOS, the typical process involves configuring the BIOS options, restarting to apply the changes, and then entering the operating system to begin verifying the basic NVMe functionality. Since the BIOS contains numerous PCIe settings, the first step in testing is to identify all NVMe-related functions, perform register support checks on the test machine, exit the test machine, configure the BIOS settings, and restart to apply the changes.

[0004] However, verifying the NVMe function requires operations such as power-on / off, data verification, power consumption testing, and performance testing. This requires frequent modification of BIOS options and multiple restarts. With multiple options to be traversed, the testing process becomes even more cumbersome. The entire process requires testers to continuously track and execute the tests, which consumes a great deal of manpower and resources. Summary of the Invention

[0005] The hard drive testing method, system, device, electronic equipment, storage medium, and product provided by this invention solve the problems of cumbersome operation in the testing process of the prior art, which requires testers to follow up and execute the entire process, resulting in a great consumption of human and material resources. By utilizing the host to automatically traverse the BIOS options configuration related to the functions of the hard drive under test, the hard drive can be automatically traversed and tested, reducing the operation of staff, reducing the difficulty of testing, and saving human and material resources.

[0006] This invention provides a hard disk testing method, applied to a first host computer, the method comprising:

[0007] Send target configuration instructions to the second host; wherein, the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated based on any one of a plurality of test cases; the target configuration instruction is used to instruct the second host to configure the basic input / output system options of the second host according to the target test case corresponding to the target configuration instruction;

[0008] Upon receiving configuration completion information corresponding to the target configuration instruction from the second host, a test instruction for the target test case is sent to the second host; the test instruction is used to instruct the second host to perform hard disk testing according to the target test case;

[0009] Once it is confirmed that all of the test cases have been successfully tested, test results are generated.

[0010] According to a hard disk testing method provided by the present invention, before sending each target configuration instruction to the second host, the method further includes:

[0011] Send the generation command to the second host;

[0012] Receive the return value returned by the second host;

[0013] The generation instruction is used to instruct the second host to generate test case documents for each test case, and to generate a return value when it is determined that the test case documents for each test case have been generated; the test case documents are used by the second host to import the test case documents into the SCE tool of the second host to configure the basic input / output system options when the second host receives the target configuration instruction;

[0014] The test case document is determined by the second host based on the option configuration requirements of the basic input / output system for each test case.

[0015] According to a hard disk testing method provided by the present invention, after receiving the return value returned by the second host, the method further includes:

[0016] Determine the target test cases;

[0017] Based on the target test case, the hard drive under test of the second host is functionally tested, and the test results of the target test case are generated.

[0018] If, based on the detection results of the target test case, it is determined that the hard disk under test of the second host supports the function of the target test case, the target configuration instruction of the target test case is generated.

[0019] According to a hard disk testing method provided by the present invention, the target configuration instruction is specifically used to instruct the second host to import the test case document of the target test case into the SCE tool to generate configuration completion information of the target test case.

[0020] According to a hard disk testing method provided by the present invention, the test instructions of the target test case are specifically used to instruct the second host to execute at least one test action of the target test case to generate a test record of the target test case.

[0021] According to a hard disk testing method provided by the present invention, after sending the test instruction of the target test case to the second host, the method further includes:

[0022] Upon receiving the key parameters returned by the second host, it is determined that the target test case has been completed; the key parameters are obtained by the testing tool on the second host after analyzing the test records.

[0023] According to a hard disk testing method provided by the present invention, after determining that the target test case has been completed, the method further includes:

[0024] Generate a reset command;

[0025] A reset command is sent to the second host, which instructs the second host to import default options for the SCE tool, instructs the second host to format the hard drive under test, and instructs the second host to restart.

[0026] This invention also provides a hard disk testing method, applied to a second host, the method comprising:

[0027] The system receives target configuration instructions sent by a first host; each target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases;

[0028] In response to the target configuration instruction, the basic input / output system options are configured according to the target test case corresponding to the target configuration instruction;

[0029] If the configuration is confirmed to be complete, a configuration completion message corresponding to the target configuration instruction is sent to the first host.

[0030] Receive the test instructions for the target test case sent by the first host;

[0031] In response to the test command, perform hard disk testing for the target test case.

[0032] According to a hard disk testing method provided by the present invention, before receiving the target configuration instructions sent by the first host, the method further includes:

[0033] Receive the generation instruction sent by the first host;

[0034] In response to the generation instruction, the test case documents for each test case are generated using the option configuration requirements of each test case for the basic input / output system.

[0035] According to a hard disk testing method provided by the present invention, in response to the target configuration instruction, the basic input / output system options are configured according to the target test case corresponding to the target configuration instruction, including:

[0036] Based on the target configuration instructions, determine the test case document for the target test case;

[0037] Import the test case document of the target test case into the SCE tool to configure the basic input / output system options and generate configuration completion information corresponding to the target configuration command;

[0038] The configuration completion information corresponding to the target configuration instruction is returned to the first host.

[0039] According to a hard disk testing method provided by the present invention, after performing hard disk testing of the target test case in response to the test instruction, the method further includes:

[0040] Generate test records for the target test cases;

[0041] The test records of the target test cases are analyzed using testing tools to determine the key parameters of the target test cases;

[0042] The key parameters of the target test case are sent to the first host.

[0043] According to a hard disk testing method provided by the present invention, the method further includes:

[0044] Upon receiving a reset command,

[0045] In response to the reset command, the SCE tool is loaded with default options and the hard drive under test is formatted;

[0046] Switch the operating status to the shutdown state and restart it.

[0047] The present invention also provides a hard disk testing system, including a first host and a second host;

[0048] The first host is equipped with a first testing tool, and the second host is equipped with a second testing tool; the first host and the second host communicate with each other through the first testing tool and the second testing tool.

[0049] The first host is provided with a first processor; it also includes a first memory and a program or instruction stored on the first memory and executable on the first memory, wherein the program or instruction is executed by the first memory to perform any of the hard disk testing methods described above;

[0050] The second host is provided with a second processor; it also includes a second memory and a program or instructions stored on the second memory and executable on the second memory, wherein the program or instructions are executed by the second memory to perform any of the hard disk testing methods described above.

[0051] The present invention also provides a hard disk testing device, comprising:

[0052] The first sending module is used to send target configuration instructions to the second host; wherein, the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated based on any one of a plurality of test cases; the target configuration instruction is used to instruct the second host to configure the basic input / output system options of the second host according to the target test case corresponding to the target configuration instruction;

[0053] The second sending module is used to send a test instruction for the target test case to the second host when it receives configuration completion information corresponding to the target configuration instruction returned by the second host; the test instruction is used to instruct the second host to perform hard disk testing according to the target test case;

[0054] The generation module is used to generate test results after determining that all of the multiple test cases have been tested successfully.

[0055] The present invention also provides a hard disk testing device, comprising:

[0056] The first receiving module is used to receive target configuration instructions sent by the first host; the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases;

[0057] The first response module is used to respond to the target configuration instruction and configure the basic input / output system options according to the target test case corresponding to the target configuration instruction;

[0058] The third sending module is used to send configuration completion information corresponding to the target configuration instruction to the first host when it is determined that the configuration is complete.

[0059] The second receiving module is used to receive the test instructions for the target test case sent by the first host;

[0060] The second response module is used to perform hard disk testing of the target test case in response to the test command.

[0061] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the hard disk testing methods described above.

[0062] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the hard disk testing method as described above.

[0063] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements any of the hard disk testing methods described above.

[0064] The present invention also provides a hard disk testing method, comprising:

[0065] The first host sends target configuration instructions to the second host; wherein, the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases;

[0066] The second host receives each target configuration instruction sent by the first host;

[0067] The second host responds to the target configuration instruction and configures the basic input / output system options according to the target test case corresponding to the target configuration instruction;

[0068] Once the second host determines that the configuration is complete, it sends configuration completion information corresponding to the target configuration instruction to the first host.

[0069] Upon receiving configuration completion information corresponding to the target configuration instruction from the second host, the first host sends the test instruction for the target test case to the second host.

[0070] The second host receives the test instructions for the target test case sent by the first host;

[0071] The second host responds to the test command and performs hard disk testing for the target test case;

[0072] Once the first host determines that all of the multiple test cases have been completed, it generates test results.

[0073] The hard disk testing method, system, device, electronic equipment, storage medium, and product provided by this invention can automatically perform traversal testing of the hard disk by utilizing the host to automatically traverse the BIOS options configuration related to the functions of the hard disk under test, reducing the operation of staff, lowering the testing difficulty, and saving human and material resources. Attached Figure Description

[0074] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0075] Figure 1 This is one of the flowcharts of the hard disk testing method provided by the present invention;

[0076] Figure 2 This is a flowchart illustrating the process of performing hard disk testing on a second host using each test case, as provided by the present invention.

[0077] Figure 3 This is the second flowchart of the hard disk testing method provided by the present invention;

[0078] Figure 4 This is the third flowchart of the hard disk testing method provided by the present invention;

[0079] Figure 5 This is a schematic diagram of the hard disk testing system provided by the present invention;

[0080] Figure 6 This is one of the structural schematic diagrams of the hard disk testing device provided by the present invention;

[0081] Figure 7 This is the second schematic diagram of the hard disk testing device provided by the present invention;

[0082] Figure 8 This is the fourth flowchart of the hard disk testing method provided by the present invention;

[0083] Figure 9 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0084] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0085] In the description of this invention, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, the use of terms such as "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.

[0086] The following is combined Figures 1-9 This invention describes the hard disk testing methods, systems, apparatuses, electronic devices, storage media, and products provided by embodiments of the present invention.

[0087] The hard disk testing method provided in this embodiment of the invention can be executed by an electronic device or software, functional module, or functional entity within an electronic device capable of implementing the hard disk testing method. In this embodiment, the electronic device includes, but is not limited to, a first host. It should be noted that the aforementioned execution entity does not constitute a limitation on this invention.

[0088] Figure 1 This is one of the flowcharts illustrating the hard disk testing method provided by the present invention, such as... Figure 1 As shown, including but not limited to the following steps:

[0089] First, in step S11, target configuration instructions are sent to the second host; wherein, the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated based on any one of a plurality of test cases; the target configuration instruction is used to instruct the second host to configure the basic input / output system options of the second host according to the target test case corresponding to the target configuration instruction.

[0090] The first host is the controller, and the second host is the controlled host; the first host is used to control the hard drive testing of the second host.

[0091] Based on the functions that need to be tested on the hard drive of the second host, the first host obtains multiple test cases.

[0092] Based on the test case index, create an action folder on the first host. The action folder is used to store test cases.

[0093] The first and second test tools can be functional software or hardware that matches the functionality, used to enable communication between the first and second hosts, such as instruction and information transmission.

[0094] Optionally, before sending the target configuration instructions to the second host, the method further includes:

[0095] Send the generation command to the second host;

[0096] Receive the return value returned by the second host;

[0097] The generation instruction is used to instruct the second host to generate test case documents for each test case, and to generate a return value when it is determined that the test case documents for each test case have been generated; the test case documents are used by the second host to import the test case documents into the SCE tool of the second host to configure the basic input / output system options when the second host receives the target configuration instruction;

[0098] The test case document is determined by the second host based on the option configuration requirements of the basic input / output system for each test case.

[0099] The use case document can be a BIOS option file in txt document format.

[0100] After the second host boots up and enters the operating system, the first host controls the second host to install the SCE tool. Upon receiving the export command sent by the first host, the second host responds to the export command and uses the SCE tool to generate multiple BIOS option files, with each test case corresponding to one BIOS option file. By introducing the SCE tool, a tool for modifying BIOS options under the operating system, the automation of the testing process becomes possible.

[0101] The second host modifies the corresponding BIOS option file based on the BIOS option configuration requirements of each test case, thereby generating a test case document for each test case. All test case documents are stored in the second host's test case option file (testcase_option) folder. The testcase_option settings in the second testing tool are applied to the BIOS options using the SCE tool, referencing the test cases. Then, register support checks, test case runtime status checks, and log collection and analysis are performed.

[0102] According to the hard disk testing method provided by the present invention, the first host instructs the second host to export the BIOS option file and forms a corresponding test case document based on the BIOS configuration requirements of each test case, thereby providing a basis for the automated configuration of the second host during the testing process.

[0103] Specifically, after the first host starts up, the first testing tool creates an action file and associates it with a list of test actions, indexed by the test case. This list contains the test actions for each test case. The test cases set up in the first testing tool enable the test cases to run on the second host and allow control over the second host's power-on and power-off functions.

[0104] The test tool is installed on the first host and the second host respectively; the first test tool is installed on the first host and the second test tool is installed on the second host.

[0105] The first host starts the first testing tool to read the test cases in the action file and the test actions of each test case in the list of test actions associated with the test cases, so as to perform hard disk tests on the second host in sequence using each test action; the list of associated actions for each test case includes at least one test action.

[0106] The hard drive to be tested in the second host can be an NVMe drive.

[0107] For example, the first host uses the PCIe Link Speed->Gen4 test case as the target test case to test the second host. The associated action list of the PCIe Link Speed->Gen4 test case includes two test actions: powercycle and performance.

[0108] First, the first host reads the PCIe Link Speed->Gen4 use case in the action file and sends a start command to the second host to instruct the second host to start. The second host then generates a return value in response to the start command.

[0109] The second host sends the return value to the first host. If the first host determines that the second host has failed to start based on the return value, it generates a startup failure alarm.

[0110] Figure 2 This is a flowchart illustrating the process of performing hard disk testing on a second host using each test case, as provided by the present invention. Figure 2 As shown, the hard drive of the second host is tested using each test case, including:

[0111] Determine the target test cases;

[0112] Based on the target test case, the hard drive under test of the second host is functionally tested, and the test results of the target test case are generated.

[0113] If, based on the detection results of the target test case, it is determined that the hard disk under test of the second host supports the function of the target test case, the target configuration instruction of the target test case is generated.

[0114] If the first host determines that the second host has started successfully based on the return value, it sends an identification command to the second host; the identification command is used to instruct the second host to perform identification and detection of the hard drive under test and generate detection results.

[0115] The second host sends the detection results to the first host;

[0116] If the first host determines that the hard drive under test can be recognized based on the test results, the first host sends a check generation command to the second host to instruct the second host to check the register information of the second host, check whether the hard drive under test supports the PCIe Link Speed->Gen4 test case function, and generate a check result.

[0117] The second host returns the inspection results to the first host, so that the first host can analyze whether the hard drive under test supports the PCIe Link Speed->Gen4 test case based on the inspection results.

[0118] Optionally, the target configuration instruction is specifically used to instruct the second host to import the test case document of the target test case into the SCE tool to generate configuration completion information for the target test case.

[0119] If the first host determines, based on the inspection results, that the hard drive under test supports the PCIe Link Speed->Gen4 test case function, then the first host sends a target configuration instruction to the second host. The target configuration instruction is used to instruct the second host's second test tool to read the test case PCIe LinkSpeed->Gen4 option from the second host's test case options (testcase_option), and import the test case document of this option into the second host's SCE tool to configure the BIOS option of the second host.

[0120] Different test cases require different BIOS options.

[0121] Furthermore, if the first host determines, based on the inspection results, that the hard drive to be tested does not support the functionality of the PCIe Link Speed->Gen4 test case, then the PCIe Link Speed->Gen4 test case is skipped, and the first host reads the next test case.

[0122] After the second host successfully imports the test case document of the target test case into the SCE tool, the first host can receive the complete configuration information generated by the second host, and the first host controls the second host to restart.

[0123] After the second host restarts, the BIOS takes effect, and the first host uses each test case to test the hard drive under test on the second host.

[0124] Further, in step S12, upon receiving configuration completion information corresponding to the target configuration instruction returned by the second host, a test instruction for the target test case is sent to the second host; the test instruction is used to instruct the second host to perform hard disk testing according to the target test case.

[0125] If the first host receives configuration completion information corresponding to the target configuration command returned by the second host, it can be determined that the second host has completed the configuration of the BIOS options for the target test case. At this time, the second host meets the test conditions of the target test case to ensure the smooth progress of the test.

[0126] The first host generates the test instructions for the target test case and sends them to the second host.

[0127] Optionally, the test instructions for the target test case are specifically used to instruct the second host to execute at least one test action of the target test case to generate a test record for the target test case.

[0128] Test logs can include test logs and exception logs.

[0129] For example, the first host reads the first action powercycle associated with the Testcase PCIe Link Speed->Gen4 use case on the first host, triggers the powercycle test on the second host, and triggers the second test tool on the second host to perform real-time checks on the NVMe disk status;

[0130] If the second testing tool determines that the NVMe disk status is abnormal, it will store the abnormal information in the log file of the second host and exit the test on the second host.

[0131] If the second testing tool determines that the NVMe disk is in normal condition, after the powercycle test is completed, the second host will store the powercycle test record in the log file of the second host, and the second host will also send the powercycle test record to the first host. The first testing tool of the first host will store the powercycle test record in the log file of the first host.

[0132] After the powercycle test is completed, the first host reads the second action performance associated with the Testcase PCIe LinkSpeed->Gen4 test case on the first host, and triggers the performance test on the second host.

[0133] After the performance test is completed, the second host stores the performance test records in the second host's log file. The first host then uses each test case in turn to test the second host according to the test case index, until the last test case is completed.

[0134] According to the hard disk testing method provided by the present invention, the second host is automatically traversed and tested through each test case, which can realize rapid traversal testing, reduce the operation of staff, reduce the testing difficulty, and save manpower and material resources.

[0135] Optionally, after determining that the target test case has been completed, the method further includes:

[0136] Generate a reset command;

[0137] A reset command is sent to the second host, which instructs the second host to import default options for the SCE tool, instructs the second host to format the hard drive under test, and instructs the second host to restart.

[0138] After each test case is completed, ensure the primary host is restored to its initial state to prevent impact on subsequent test cases. After completing a test case, the test device on the primary host is restarted and restored to default settings. Log in to the secondary host, import the default options using the SCE tool, and restart to apply the changes. Perform an initial formatting operation on the NVMe disk and begin testing the next test case, continuing until all test cases are completed.

[0139] According to the hard disk testing method provided by the present invention, the second host is reset after each test, thereby avoiding the impact of the current test on the test of the next test case.

[0140] Optionally, after sending the test instruction for the target test case to the second host, the method further includes:

[0141] Upon receiving the key parameters returned by the second host, it is determined that the target test case has been completed; the key parameters are obtained by the testing tool on the second host after analyzing the test records.

[0142] The testing tools are also used to analyze the tests and extract key data.

[0143] The second testing tool not only has a one-click performance analysis function, but can also upload test logs and exception logs to the first host for easy inspection by testers.

[0144] For example, the second test tool on the second host analyzes the performance test records, extracts the performance metrics from the performance test records, and then sends the performance metrics to the first host. The first test tool on the first host then stores the performance metrics in the log file of the first host.

[0145] The performance indicators include several key parameters that characterize hard drive performance. The second testing tool can be pre-set with the judgment conditions for all key parameters, and can accurately filter out several key parameters from the test records.

[0146] According to the hard disk testing method provided by the present invention, key data characterizing hard disk performance can be extracted using testing tools, thereby reducing the difficulty of analyzing test results and improving the automation level of the testing process.

[0147] Furthermore, in step S13, if it is determined that all of the multiple test cases have been completed, test results are generated.

[0148] Perform the above operations for each test case. After confirming that each test case has been completed, analyze the key data of all test cases to obtain the performance evaluation of the second host, which serves as the test result for the hard drive under test on the second host.

[0149] The hard drive testing method provided by this invention can automatically perform a traversal test of the hard drive by utilizing the host to automatically traverse the BIOS options configuration related to the functions of the hard drive under test, reducing the operation of staff, lowering the testing difficulty, and saving human and material resources.

[0150] Figure 3 This is the second flowchart of the hard disk testing method provided by the present invention, applied to a second host, such as... Figure 3 As shown, it includes:

[0151] First, in step S21, target configuration instructions sent by the first host are received; the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases.

[0152] The first host is the controller, and the second host is the controlled host; the first host is used to control the hard drive testing of the second host.

[0153] Based on the functions that need to be tested on the hard drive of the second host, the first host obtains multiple test cases.

[0154] Based on the test case index, create an action folder on the first host. The action folder is used to store test cases.

[0155] The first and second test tools can be functional software or hardware that matches the functionality, used to enable communication between the first and second hosts, such as instruction and information transmission.

[0156] Optionally, before receiving the target configuration instructions sent by the first host, the method further includes:

[0157] Receive the generation instruction sent by the first host;

[0158] In response to the generation instruction, the test case documents for each test case are generated using the option configuration requirements of each test case for the basic input / output system.

[0159] The use case document can be a BIOS option file in txt document format.

[0160] After the second host boots up and enters the operating system, the first host controls the second host to install the SCE tool. Upon receiving the export command sent by the first host, the second host responds to the export command and uses the SCE tool to generate multiple BIOS option files, with each test case corresponding to one BIOS option file. By introducing the SCE tool, a tool for modifying BIOS options under the operating system, the automation of the testing process becomes possible.

[0161] The second host modifies the corresponding BIOS option file based on the BIOS option configuration requirements of each test case, thereby generating a test case document for each test case. All test case documents are stored in the second host's test case option file (testcase_option) folder. The testcase_option settings in the second testing tool are applied to the BIOS options using the SCE tool, referencing the test cases. Then, register support checks, test case runtime status checks, and log collection and analysis are performed.

[0162] According to the hard disk testing method provided by the present invention, the first host instructs the second host to export the BIOS option file and forms a corresponding test case document based on the BIOS configuration requirements of each test case, thereby providing a basis for the automated configuration of the second host during the testing process.

[0163] Specifically, after the first host starts up, the first testing tool creates an action file and associates it with a list of test actions, indexed by the test case. This list contains the test actions for each test case. The test cases set up in the first testing tool enable the test cases to run on the second host and allow control over the second host's power-on and power-off functions.

[0164] The test tool is installed on the first host and the second host respectively; the first test tool is installed on the first host and the second test tool is installed on the second host.

[0165] The first host starts the first testing tool to read the test cases in the action file and the test actions of each test case in the list of test actions associated with the test cases, so as to perform hard disk tests on the second host in sequence using each test action; the list of associated actions for each test case includes at least one test action.

[0166] The hard drive to be tested in the second host can be an NVMe drive.

[0167] For example, the first host uses the PCIe Link Speed->Gen4 test case as the target test case to test the second host. The associated action list of the PCIe Link Speed->Gen4 test case includes two test actions: powercycle and performance.

[0168] First, the first host reads the PCIe Link Speed->Gen4 use case in the action file and sends a start command to the second host to instruct the second host to start. The second host then generates a return value in response to the start command.

[0169] The second host sends the return value to the first host. If the first host determines that the second host has failed to start based on the return value, it generates a startup failure alarm.

[0170] If the first host determines that the second host has started successfully based on the return value, it sends an identification command to the second host; the identification command is used to instruct the second host to perform identification and detection of the hard drive under test and generate detection results.

[0171] The second host sends the detection results to the first host;

[0172] If the first host determines that the hard drive under test can be recognized based on the test results, the first host sends a check generation command to the second host to instruct the second host to check the register information of the second host, check whether the hard drive under test supports the PCIe Link Speed->Gen4 test case function, and generate a check result.

[0173] The second host returns the inspection results to the first host, so that the first host can analyze whether the hard drive under test supports the PCIe Link Speed->Gen4 test case based on the inspection results.

[0174] Further, in step S22, in response to the target configuration instruction, the basic input / output system options are configured according to the target test case corresponding to the target configuration instruction.

[0175] If the first host determines, based on the inspection results, that the hard drive under test supports the PCIe Link Speed->Gen4 test case function, then the first host sends a target configuration instruction to the second host. The target configuration instruction is used to instruct the second host's second test tool to read the test case PCIe LinkSpeed->Gen4 option from the second host's test case options (testcase_option), and import the test case document of this option into the second host's SCE tool to configure the BIOS option of the second host.

[0176] Optionally, in response to the target configuration instruction, the basic input / output system options are configured according to the target test case corresponding to the target configuration instruction, including:

[0177] Based on the target configuration instructions, determine the test case document for the target test case;

[0178] Import the test case document of the target test case into the SCE tool to configure the basic input / output system options and generate configuration completion information corresponding to the target configuration command;

[0179] The configuration completion information corresponding to the target configuration instruction is returned to the first host.

[0180] Different test cases require different BIOS options.

[0181] Furthermore, if the first host determines, based on the inspection results, that the hard drive to be tested does not support the functionality of the PCIe Link Speed->Gen4 test case, then the PCIe Link Speed->Gen4 test case is skipped, and the first host reads the next test case.

[0182] Furthermore, in step S23, if the configuration is determined to be complete, configuration completion information corresponding to the target configuration instruction is sent to the first host.

[0183] After the second host successfully imports the test case document of the target test case into the SCE tool, the first host can receive the complete configuration information generated by the second host, and the first host controls the second host to restart.

[0184] After the second host restarts, the BIOS takes effect, and the first host uses each test case to test the hard drive under test on the second host.

[0185] Further, in step S24, the test instructions for the target test case sent by the first host are received.

[0186] If the first host receives configuration completion information corresponding to the target configuration command returned by the second host, it can be determined that the second host has completed the configuration of the BIOS options for the target test case. At this time, the second host meets the test conditions of the target test case to ensure the smooth progress of the test.

[0187] The first host generates the test instructions for the target test case and sends them to the second host.

[0188] Further, in step S25, in response to the test instruction, the hard disk test of the target test case is performed.

[0189] The hard drive testing method provided by this invention can automatically perform a traversal test of the hard drive by utilizing the host to automatically traverse the BIOS options configuration related to the functions of the hard drive under test, reducing the operation of staff, lowering the testing difficulty, and saving human and material resources.

[0190] Optionally, after performing the hard disk test for the target test case in response to the test instruction, the method further includes:

[0191] Generate test records for the target test cases;

[0192] The test records of the target test cases are analyzed using testing tools to determine the key parameters of the target test cases;

[0193] The key parameters of the target test case are sent to the first host.

[0194] Test logs can include test logs and exception logs.

[0195] For example, the first host reads the first action powercycle associated with the Testcase PCIe Link Speed->Gen4 use case on the first host, triggers the powercycle test on the second host, and triggers the second test tool on the second host to perform real-time checks on the NVMe disk status;

[0196] If the second testing tool determines that the NVMe disk status is abnormal, it will store the abnormal information in the log file of the second host and exit the test on the second host.

[0197] If the second testing tool determines that the NVMe disk is in normal condition, after the powercycle test is completed, the second host will store the powercycle test record in the log file of the second host, and the second host will also send the powercycle test record to the first host. The first testing tool of the first host will store the powercycle test record in the log file of the first host.

[0198] After the powercycle test is completed, the first host reads the second action performance associated with the Testcase PCIe LinkSpeed->Gen4 test case on the first host, and triggers the performance test on the second host.

[0199] After the performance test is completed, the second host stores the performance test records in the second host's log file. The first host then uses each test case in turn to test the second host according to the test case index, until the last test case is completed.

[0200] The testing tools are also used to analyze the tests and extract key data.

[0201] The second testing tool not only has a one-click performance analysis function, but can also upload test logs and exception logs to the first host for easy inspection by testers.

[0202] For example, the second test tool on the second host analyzes the performance test records, extracts the performance metrics from the performance test records, and then sends the performance metrics to the first host. The first test tool on the first host then stores the performance metrics in the log file of the first host.

[0203] The performance indicators include several key parameters that characterize hard drive performance. The second testing tool can be pre-set with the judgment conditions for all key parameters, and can accurately filter out several key parameters from the test records.

[0204] According to the hard disk testing method provided by the present invention, the second host is automatically traversed and tested through each test case, which can realize rapid traversal testing, reduce the operation of staff, reduce the testing difficulty, and save manpower and material resources. Furthermore, the key data characterizing hard disk performance is extracted through testing tools, thereby reducing the difficulty of analyzing test results and improving the automation level of the testing process.

[0205] Optionally, the method further includes:

[0206] Upon receiving a reset command,

[0207] In response to the reset command, the SCE tool is loaded with default options and the hard drive under test is formatted;

[0208] Switch the operating status to the shutdown state and restart it.

[0209] After each test case is completed, ensure the primary host is restored to its initial state to prevent impact on subsequent test cases. After completing a test case, the test device on the primary host is restarted and restored to default settings. Log in to the secondary host, import the default options using the SCE tool, and restart to apply the changes. Perform an initial formatting operation on the NVMe disk and begin testing the next test case, continuing until all test cases are completed.

[0210] According to the hard disk testing method provided by the present invention, the second host is reset after each test, thereby avoiding the impact of the current test on the test of the next test case.

[0211] Figure 4 This is the third flowchart of the hard disk testing method provided by the present invention, as shown below. Figure 4 As shown, it includes:

[0212] First, start the test device of the control machine;

[0213] Secondly, read the testcase from the action file;

[0214] Next, start the controlled machine and determine whether the NVMe disk is recognized. If it is not recognized, the test ends; if it is recognized, the corresponding test case option is imported into the SCE tool.

[0215] Then, restart the controlled machine to enable the BIOS options, and check whether the registers support the settings in the test case. If not, the test ends; if they support, the actions in the action list are tested in a loop.

[0216] Furthermore, determine whether each test is normal. If it is not normal, the test ends; if it is normal, the test environment is restored.

[0217] Finally, if all test cases have been traversed, the test ends; if not, it returns to reading the test cases in the action file and repeats the above steps until all test cases have been traversed.

[0218] The hard drive testing method provided by this invention can automatically traverse the NVMe function options in the BIOS, and after automatic configuration, a restart is performed to take effect. After the system restart is detected, register verification is performed, and then automated verification of the NVMe function is enabled. The test content includes power-on / off tests, performance tests, power consumption tests, etc. For test cases that generate log records, logs are saved. In the event of an anomaly, the system exits in real time and saves the anomaly log. After the test is completed, the test log or anomaly log is uploaded to the control computer. The hard drive testing method provided by this invention can be used in computer systems such as servers and is suitable for mainstream hard drives such as NVMe SSDs.

[0219] The hard disk testing system provided by the present invention is described below. The hard disk testing system described below can be referred to in correspondence with the hard disk testing method described above.

[0220] Figure 5 This is a schematic diagram of the hard disk testing system provided by the present invention, as shown below. Figure 5 As shown, it includes a first host 510 and a second host 520;

[0221] The first host 510 is equipped with a first test tool, and the second host 520 is equipped with a second test tool; the first host 510 and the second host 520 communicate with each other through the first test tool and the second test tool.

[0222] The first host 510 includes a first processor; it also includes a first memory and a program or instructions stored in the first memory and executable on the first memory. When the program or instructions are executed by the first memory, they perform the hard disk testing method as described in any of the above embodiments. The method includes: sending target configuration instructions to a second host; wherein the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated based on any one of a plurality of test cases; the target configuration instruction is used to instruct the second host to configure the basic input / output system options of the second host according to the target test case corresponding to the target configuration instruction; upon receiving configuration completion information returned by the second host corresponding to the target configuration instruction, sending a test instruction for the target test case to the second host; the test instruction is used to instruct the second host to perform hard disk testing according to the target test case; and generating test results when it is determined that all of the plurality of test cases have been tested successfully.

[0223] The second host 520 includes a second processor; it also includes a second memory and a program or instructions stored in and executable on the second memory. When the program or instructions are executed by the second memory, they perform the hard disk testing method as described in any of the above embodiments. The method includes: receiving target configuration instructions sent by a first host; the target configuration instructions are any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases; in response to the target configuration instructions, configuring basic input / output system options according to the target test cases corresponding to the target configuration instructions; when configuration is determined to be complete, sending configuration completion information corresponding to the target configuration instructions to the first host; receiving test instructions for the target test cases sent by the first host; and in response to the test instructions, performing hard disk testing for the target test cases.

[0224] The hard drive testing system provided by this invention can automatically perform traversal testing of the hard drive by utilizing the host to automatically traverse the BIOS options for the functions of the hard drive under test, reducing the operation of staff, lowering the testing difficulty, and saving human and material resources.

[0225] The hard disk testing apparatus provided by the present invention is described below. The hard disk testing apparatus described below can be referred to in correspondence with the hard disk testing method described above.

[0226] Figure 6 This is one of the structural schematic diagrams of the hard disk testing device provided by the present invention, such as... Figure 6 As shown, it includes:

[0227] The first sending module 601 is used to send target configuration instructions to the second host; wherein, the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated based on any one of a plurality of test cases; the target configuration instruction is used to instruct the second host to configure the basic input / output system options of the second host according to the target test case corresponding to the target configuration instruction;

[0228] The second sending module 602 is used to send a test instruction for the target test case to the second host when it receives configuration completion information corresponding to the target configuration instruction returned by the second host; the test instruction is used to instruct the second host to perform hard disk testing according to the target test case;

[0229] The generation module 603 is used to generate test results when it is determined that all of the multiple test cases have been tested successfully.

[0230] During device operation, the first sending module 601 sends target configuration instructions to the second host; wherein, the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated based on any one of a plurality of test cases; the target configuration instruction is used to instruct the second host to configure the basic input / output system options of the second host according to the target test case corresponding to the target configuration instruction; upon receiving configuration completion information returned by the second host corresponding to the target configuration instruction, the second sending module 602 sends the test instruction of the target test case to the second host; the test instruction is used to instruct the second host to perform hard disk testing according to the target test case; and the generation module 603 generates test results upon determining that all of the plurality of test cases have been tested successfully.

[0231] The hard disk testing device provided by this invention can automatically perform a traversal test of the hard disk by utilizing the host to automatically traverse the BIOS options configuration related to the functions of the hard disk under test, reducing the operation of staff, lowering the testing difficulty, and saving human and material resources.

[0232] Figure 7 This is a second structural schematic diagram of the hard disk testing device provided by the present invention, as shown below. Figure 7 As shown, it includes:

[0233] The first receiving module 701 is used to receive target configuration instructions sent by the first host; the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases;

[0234] The first response module 702 is used to respond to the target configuration instruction and configure the basic input / output system options according to the target test case corresponding to the target configuration instruction;

[0235] The third sending module 703 is used to send configuration completion information corresponding to the target configuration instruction to the first host when it is determined that the configuration is complete.

[0236] The second receiving module 704 is used to receive the test instructions for the target test case sent by the first host;

[0237] The second response module 705 is used to perform hard disk testing of the target test case in response to the test command.

[0238] During device operation, the first receiving module 701 receives target configuration instructions sent by the first host; the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases; the first response module 702 responds to the target configuration instruction and configures the basic input / output system options according to the target test case corresponding to the target configuration instruction; the third sending module 703, upon determining that the configuration is complete, sends configuration completion information corresponding to the target configuration instruction to the first host; the second receiving module 704 receives the test instruction for the target test case sent by the first host; the second response module 705 responds to the test instruction and performs hard disk testing for the target test case.

[0239] The hard disk testing device provided by this invention can automatically perform a traversal test of the hard disk by utilizing the host to automatically traverse the BIOS options configuration related to the functions of the hard disk under test, reducing the operation of staff, lowering the testing difficulty, and saving human and material resources.

[0240] Figure 8 This is the fourth flowchart of the hard disk testing method provided by the present invention, as shown below. Figure 8 As shown, it includes:

[0241] The first host sends target configuration instructions to the second host; wherein, the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases;

[0242] The second host receives each target configuration instruction sent by the first host;

[0243] The second host responds to the target configuration instruction and configures the basic input / output system options according to the target test case corresponding to the target configuration instruction;

[0244] Once the second host determines that the configuration is complete, it sends configuration completion information corresponding to the target configuration instruction to the first host.

[0245] Upon receiving configuration completion information corresponding to the target configuration instruction from the second host, the first host sends the test instruction for the target test case to the second host.

[0246] The second host receives the test instructions for the target test case sent by the first host;

[0247] The second host responds to the test command and performs hard disk testing for the target test case;

[0248] Once the first host determines that all of the multiple test cases have been completed, it generates test results.

[0249] In this system, the first host is the controller, and the second host is the controlled host; the first host is used to control the hard drive testing of the second host. Both the first and second hosts are equipped with testing tools; specifically, the first host is equipped with a first testing tool, and the second host is equipped with a second testing tool.

[0250] The first and second test tools can be functional software or hardware that matches the functionality, used to enable communication between the first and second hosts, such as instruction and information transmission.

[0251] Based on the functions that need to be tested on the hard drive of the second host, the first host obtains multiple test cases.

[0252] Based on the test case index, create an action folder on the first host. The action folder is used to store test cases.

[0253] After the second host boots up and enters the operating system, the first host controls the second host to install the SCE tool. Upon receiving the export command sent by the first host, the second host responds to the export command and uses the SCE tool to generate multiple BIOS option files, with each test case corresponding to one BIOS option file. By introducing the SCE tool, a tool for modifying BIOS options under the operating system, the automation of the testing process becomes possible.

[0254] The second host modifies the corresponding BIOS option file based on the BIOS option configuration requirements of each test case, thereby generating a test case document for each test case. All test case documents are stored in the second host's test case option file (testcase_option) folder. The testcase_option settings in the second testing tool are applied to the BIOS options using the SCE tool, referencing the test cases. Then, register support checks, test case runtime status checks, and log collection and analysis are performed.

[0255] After the primary host starts up, the primary testing tool creates an action file and associates it with a list of test actions, indexed by test cases. This list contains the test actions for each test case. The test cases set up in the primary testing tool enable the test cases to run on the secondary host and allow control over the secondary host's power-on and power-off processes.

[0256] The first host starts the first testing tool to read the test cases in the action file and the test actions of each test case in the list of test actions associated with the test cases, so as to perform hard disk tests on the second host in sequence using each test action; the list of associated actions for each test case includes at least one test action.

[0257] For example, the first host uses the PCIe Link Speed->Gen4 test case as the target test case to test the second host. The associated action list of the PCIe Link Speed->Gen4 test case includes two test actions: powercycle and performance.

[0258] First, the first host reads the PCIe Link Speed->Gen4 use case in the action file and sends a start command to the second host to instruct the second host to start. The second host then generates a return value in response to the start command.

[0259] The second host sends the return value to the first host. If the first host determines that the second host has failed to start based on the return value, it generates a startup failure alarm.

[0260] If the first host determines that the second host has started successfully based on the return value, it sends an identification command to the second host; the identification command is used to instruct the second host to perform identification and detection of the hard drive under test and generate detection results.

[0261] The second host sends the detection results to the first host;

[0262] If the first host determines that the hard drive under test can be recognized based on the test results, the first host sends a check generation command to the second host to instruct the second host to check the register information of the second host, check whether the hard drive under test supports the PCIe Link Speed->Gen4 test case function, and generate a check result.

[0263] The second host returns the inspection results to the first host, so that the first host can analyze whether the hard drive under test supports the PCIe Link Speed->Gen4 test case based on the inspection results.

[0264] If the first host determines, based on the inspection results, that the hard drive under test supports the PCIe Link Speed->Gen4 test case function, then the first host sends a target configuration instruction to the second host. The target configuration instruction is used to instruct the second host's second test tool to read the test case PCIe LinkSpeed->Gen4 option from the second host's test case options (testcase_option), and import the test case document of this option into the second host's SCE tool to configure the BIOS option of the second host.

[0265] Different test cases require different BIOS options.

[0266] Furthermore, if the first host determines, based on the inspection results, that the hard drive to be tested does not support the functionality of the PCIe Link Speed->Gen4 test case, then the PCIe Link Speed->Gen4 test case is skipped, and the first host reads the next test case.

[0267] After the second host successfully imports the test case document of the target test case into the SCE tool, the first host can receive the complete configuration information generated by the second host, and the first host controls the second host to restart.

[0268] After the second host restarts, the BIOS takes effect, and the first host uses each test case to test the hard drive under test on the second host.

[0269] If the first host receives the configuration completion information corresponding to the target configuration command returned by the second host, it can be determined that the second host has completed the configuration of the BIOS options for the target test case. At this time, the second host meets the test conditions of the target test case to ensure the smooth progress of the test.

[0270] The first host generates the test instructions for the target test case and sends them to the second host.

[0271] For example, the first host reads the first action powercycle associated with the Testcase PCIe Link Speed->Gen4 use case on the first host, triggers the powercycle test on the second host, and triggers the second test tool on the second host to perform real-time checks on the NVMe disk status;

[0272] If the second testing tool determines that the NVMe disk status is abnormal, it will store the abnormal information in the log file of the second host and exit the test on the second host.

[0273] If the second testing tool determines that the NVMe disk is in normal condition, after the powercycle test is completed, the second host will store the powercycle test record in the log file of the second host, and the second host will also send the powercycle test record to the first host. The first testing tool of the first host will store the powercycle test record in the log file of the first host.

[0274] After the powercycle test is completed, the first host reads the second action performance associated with the Testcase PCIe LinkSpeed->Gen4 test case on the first host, and triggers the performance test on the second host.

[0275] After the performance test is completed, the second host stores the performance test records in the second host's log file. The first host then uses each test case in turn to test the second host according to the test case index, until the last test case is completed.

[0276] After each test case is completed, the first host is restored to its initial state to prevent impact on the next test case. After completing a test case, the test device on the first host is restarted and restored to default settings. The second host is then logged in, the default options are imported using the SCE tool, and a restart is performed to take effect. The NVMe disk is then initially formatted before starting the next test case, continuing until all test cases are completed.

[0277] The second testing tool not only has a one-click performance analysis function, but can also upload test logs and exception logs to the first host for easy inspection by testers.

[0278] For example, the second test tool on the second host analyzes the performance test records, extracts the performance metrics from the performance test records, and then sends the performance metrics to the first host. The first test tool on the first host then stores the performance metrics in the log file of the first host.

[0279] The performance indicators include several key parameters that characterize hard drive performance. The second testing tool can be pre-set with the judgment conditions for all key parameters, and can accurately filter out several key parameters from the test records.

[0280] Perform the above operations for each test case. After confirming that each test case has been completed, analyze the key data of all test cases to obtain the performance evaluation of the second host, which serves as the test result for the hard drive under test on the second host.

[0281] The hard drive testing method provided by this invention can automatically perform a traversal test of the hard drive by utilizing the host to automatically traverse the BIOS options configuration related to the functions of the hard drive under test, reducing the operation of staff, lowering the testing difficulty, and saving human and material resources.

[0282] Figure 9 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 9 As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930, and a communication bus 940. The processor 910, the communication interface 920, and the memory 930 communicate with each other through the communication bus 940. The processor 910 is used to execute executable modules, such as computer programs, stored in the memory 930.

[0283] The memory 930 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 920 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.

[0284] The communication bus 940 can be an ISA bus, PCI bus, or EISA bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 9 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0285] The memory 930 is used to store programs. After receiving an execution instruction, the processor 910 executes the program. The method executed by the device for defining the flow process disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 910, or implemented by the processor 910.

[0286] The processor 910 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 910 or by instructions in software form. The processor 910 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 930. Processor 910 reads information from memory 930 and, in conjunction with its hardware, executes a hard disk testing method. This method includes: sending target configuration instructions to a second host; wherein the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated based on any one of a plurality of test cases; the target configuration instruction instructs the second host to configure its basic input / output system options according to the target test case corresponding to the target configuration instruction; upon receiving configuration completion information returned by the second host corresponding to the target configuration instruction, sending a test instruction for the target test case to the second host; the test instruction instructs the second host to perform hard disk testing according to the target test case; and, upon determining that all the plurality of test cases have been tested successfully, generating a test result; or...

[0287] The system receives target configuration instructions sent by a first host; each target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases; in response to the target configuration instruction, the system configures the basic input / output system options according to the target test case corresponding to the target configuration instruction; when the configuration is determined to be complete, the system sends configuration completion information corresponding to the target configuration instruction to the first host; the system receives test instructions for the target test case sent by the first host; and in response to the test instructions, the system performs hard disk testing for the target test case.

[0288] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and electronic equipment can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0289] The hard disk testing device and electronic device provided in this embodiment of the invention have the same technical features as the hard disk testing method provided in the above embodiments, so they can also solve the same technical problems and achieve the same technical effects.

[0290] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0291] The computer program product for performing hard disk testing provided in this embodiment of the invention includes a computer-readable storage medium storing non-volatile program code executable by a processor. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation details, please refer to the method embodiments, which will not be repeated here.

[0292] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0293] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0294] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0295] Furthermore, the logical instructions in the aforementioned memory 930 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0296] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the hard disk testing method provided by the above methods. The method includes: sending target configuration instructions to a second host; wherein the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated based on any one of a plurality of test cases; the target configuration instruction is used to instruct the second host to configure the basic input / output system options of the second host according to the target test case corresponding to the target configuration instruction; upon receiving configuration completion information returned by the second host corresponding to the target configuration instruction, sending a test instruction for the target test case to the second host; the test instruction is used to instruct the second host to perform hard disk testing according to the target test case; and upon determining that all of the plurality of test cases have been tested successfully, generating a test result; or...

[0297] The system receives target configuration instructions sent by a first host; each target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases; in response to the target configuration instruction, the system configures the basic input / output system options according to the target test case corresponding to the target configuration instruction; when the configuration is determined to be complete, the system sends configuration completion information corresponding to the target configuration instruction to the first host; the system receives test instructions for the target test case sent by the first host; and in response to the test instructions, the system performs hard disk testing for the target test case.

[0298] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, is implemented to perform the hard disk testing method provided by the methods described above. The method includes: sending target configuration instructions to a second host; wherein the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated based on any one of a plurality of test cases; the target configuration instruction is used to instruct the second host to configure the basic input / output system options of the second host according to the target test case corresponding to the target configuration instruction; upon receiving configuration completion information returned by the second host corresponding to the target configuration instruction, sending a test instruction for the target test case to the second host; the test instruction is used to instruct the second host to perform hard disk testing according to the target test case; and upon determining that all of the plurality of test cases have been tested successfully, generating a test result; or...

[0299] The system receives target configuration instructions sent by a first host; each target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases; in response to the target configuration instruction, the system configures the basic input / output system options according to the target test case corresponding to the target configuration instruction; when the configuration is determined to be complete, the system sends configuration completion information corresponding to the target configuration instruction to the first host; the system receives test instructions for the target test case sent by the first host; and in response to the test instructions, the system performs hard disk testing for the target test case.

[0300] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0301] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0302] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features within the scope of the technology disclosed in the present invention. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A hard disk testing method, characterized in that, Applied to the first host, the method includes: Send target configuration instructions to the second host; wherein, the target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated based on any one of a plurality of test cases; the target configuration instruction is used to instruct the second host to configure the basic input / output system options of the second host according to the target test case corresponding to the target configuration instruction; Upon receiving configuration completion information corresponding to the target configuration instruction from the second host, a test instruction for the target test case is sent to the second host; the test instruction is used to instruct the second host to perform hard disk testing according to the target test case; If all the test cases have been completed, test results are generated. Before sending the target configuration instructions to the second host, the process also includes: Send the generation command to the second host; Receive the return value returned by the second host; The generation instruction is used to instruct the second host to generate test case documents for each test case, and to generate a return value when it is determined that the test case documents for each test case have been generated; the test case documents are used by the second host to import the test case documents into the SCE tool of the second host to configure the basic input / output system options when the second host receives the target configuration instruction; The test case document is determined by the second host based on the option configuration requirements of the basic input / output system for each test case; After receiving the return value from the second host, the process also includes: Determine the target test cases; Based on the target test case, the hard drive under test of the second host is functionally tested, and the test results of the target test case are generated. If, based on the detection results of the target test case, it is determined that the hard disk under test of the second host supports the function of the target test case, the target configuration instruction of the target test case is generated; After sending the test instructions for the target test case to the second host, the method further includes: Upon receiving the key parameters returned by the second host, it is determined that the target test case has been completed; the key parameters are obtained by the testing tool on the second host after analyzing the test records. After confirming that the target test case has been completed, the process also includes: Generate a reset command; A reset command is sent to the second host, which instructs the second host to import default options for the SCE tool, instructs the second host to format the hard drive under test, and instructs the second host to restart.

2. The hard disk testing method according to claim 1, characterized in that, The target configuration instruction is specifically used to instruct the second host to import the test case document of the target test case into the SCE tool to generate the configuration completion information of the target test case.

3. The hard disk testing method according to any one of claims 1-2, characterized in that, The test instructions for the target test case are specifically used to instruct the second host to execute at least one test action of the target test case in order to generate a test record for the target test case.

4. A hard disk testing method, characterized in that, Applied to a second host, the method includes: The system receives target configuration instructions sent by a first host; each target configuration instruction is any one of a plurality of configuration instructions; each configuration instruction is generated by the first host based on any one of a plurality of test cases; In response to the target configuration instruction, the basic input / output system options are configured according to the target test case corresponding to the target configuration instruction; If the configuration is confirmed to be complete, a configuration completion message corresponding to the target configuration instruction is sent to the first host. Receive the test instructions for the target test case sent by the first host; In response to the test command, perform hard disk testing for the target test case; Before receiving the target configuration instructions sent by the first host, the method further includes: Receive the generation instruction sent by the first host; In response to the generation instruction, the test case documents for each test case are generated based on the option configuration requirements of the basic input / output system for each test case. In response to the target configuration instruction, the basic input / output system options are configured according to the target test case corresponding to the target configuration instruction, including: Based on the target configuration instructions, determine the test case document for the target test case; Import the test case document of the target test case into the SCE tool to configure the basic input / output system options and generate configuration completion information corresponding to the target configuration command; The configuration completion information corresponding to the target configuration instruction is returned to the first host. After responding to the test instruction and performing the hard disk test for the target test case, the method further includes: Generate test records for the target test cases; The test records of the target test cases are analyzed using testing tools to determine the key parameters of the target test cases; Send the key parameters of the target test case to the first host; The method further includes: Upon receiving a reset command, In response to the reset command, the SCE tool is loaded with default options and the hard drive under test is formatted; Switch the operating status to the shutdown state and restart it.

5. A hard disk testing system, characterized in that, Including the first host and the second host; The first host is equipped with a first testing tool, and the second host is equipped with a second testing tool; the first host and the second host communicate with each other through the first testing tool and the second testing tool. The first host is provided with a first processor; it also includes a first memory and a program or instructions stored on the first memory and executable on the first memory, wherein when the program or instructions are executed by the first memory, they perform the hard disk testing method as described in any one of claims 1-3; The second host is provided with a second processor; it also includes a second memory and a program or instructions stored on the second memory and executable on the second memory, wherein the program or instructions are executed by the second memory to perform the hard disk testing method as described in claim 4.

6. A hard disk testing device, characterized in that, The apparatus is used to implement the hard disk testing method as described in any one of claims 1-3.

7. A hard disk testing device, characterized in that, The apparatus is used to implement the hard disk testing method as described in claim 4.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the hard disk testing method as described in any one of claims 1-3 or 4.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the hard disk testing method as described in any one of claims 1-3 or 4.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the hard disk testing method as described in any one of claims 1-3 or 4.

11. A hard disk testing method, characterized in that, The first host is used to execute the hard disk testing method according to any one of claims 1-3, and the second host is used to execute the hard disk testing method according to claim 4.

Citation Information

Patent Citations

  • CN111625404A

  • CN115617629A