CN115686969A - Hard disk backboard testing method, device, equipment and medium - Google Patents

Hard disk backboard testing method, device, equipment and medium Download PDF

Info

Publication number
CN115686969A
CN115686969A CN202211406699.2A CN202211406699A CN115686969A CN 115686969 A CN115686969 A CN 115686969A CN 202211406699 A CN202211406699 A CN 202211406699A CN 115686969 A CN115686969 A CN 115686969A
Authority
CN
China
Prior art keywords
tested
hardware
hard disk
test data
disk backboard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211406699.2A
Other languages
Chinese (zh)
Inventor
孟召潮
秦晓宁
陈颖
张珅
刘鹏浩
李林烁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nettrix Information Industry Beijing Co Ltd
Original Assignee
Nettrix Information Industry Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nettrix Information Industry Beijing Co Ltd filed Critical Nettrix Information Industry Beijing Co Ltd
Priority to CN202211406699.2A priority Critical patent/CN115686969A/en
Publication of CN115686969A publication Critical patent/CN115686969A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method, a device, equipment and a medium for testing a hard disk backboard. The method comprises the following steps: calling a test script corresponding to the hard disk backboard to be tested, and testing at least one item of software function to be tested, at least one item of hardware information to be tested and at least one item of hardware function to be tested which are associated with the hard disk backboard to be tested; calling a single chip microcomputer to test a hardware port to be tested of the hard disk backboard to be tested; storing the software function test data and the hardware information test data into a preset data file, and providing the hardware function test data and the hardware port test data to a target user through a display screen; and generating a software test result and a hardware test result. The embodiment of the invention can automatically test the software function, the hardware information and the hardware function related to the hard disk backboard and the hardware port of the hard disk backboard through the test script and the single chip microcomputer, thereby realizing the rapid and comprehensive test of the software and the hardware of the hard disk backboard.

Description

Hard disk backboard testing method, device, equipment and medium
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, equipment and a medium for testing a hard disk backboard.
Background
The main part of the server comprises a mainboard, a hard disk backboard and a hard disk. The hard disk backplane is a key component for connecting the motherboard and the hard disk. Before the server is put into use, the hard disk backboard of the server needs to be tested.
In the related art, the commonly used hard disk backplane test schemes are divided into two types: the method is characterized in that a technician manually tests the hard disk backboard, and the other method is based on raspberry group to test the hard disk backboard. The hard disk backboard is tested manually, so that the requirement on technical personnel is extremely high, the testing time is long, and the quality cannot be guaranteed. The hard disk backboard is tested based on the raspberry derivative, and is only suitable for testing software of the hard disk backboard, and whether hardware of the hard disk backboard is normal cannot be determined. The hard disk backboard testing scheme in the related art cannot quickly and comprehensively test the software and hardware of the hard disk backboard of the server.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for testing a hard disk backboard, which aim to solve the problem that a hard disk backboard testing scheme in the related technology cannot quickly and comprehensively test software and hardware of the hard disk backboard of a server.
According to an aspect of the present invention, a method for testing a hard disk backplane is provided, including:
calling a test script corresponding to a hard disk backboard to be tested, and testing at least one item of software function to be tested, at least one item of hardware information to be tested and at least one item of hardware function to be tested which are associated with the hard disk backboard to be tested to obtain software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested;
calling a single chip microcomputer connected with the hard disk backboard to be tested, testing a hardware port to be tested of the hard disk backboard to be tested, and obtaining hardware port test data of the hard disk backboard to be tested;
storing the software function test data and the hardware information test data into a preset data file, and providing the hardware function test data and the hardware port test data for a target user through a display screen;
and generating a software test result and a hardware test result of the hard disk backboard to be tested according to the software function test data, the hardware information test data and the hardware function test data.
According to the technical scheme of the embodiment of the invention, the software function, the hardware information and the hardware function related to the hard disk backboard and the hardware port of the hard disk backboard can be automatically tested through the test script and the single chip microcomputer to generate the software test result and the hardware test result of the hard disk backboard, so that the software and the hardware of the hard disk backboard of the server can be rapidly and comprehensively tested, the test time is shortened, and the test efficiency is improved.
Optionally, the test script includes: function blocks corresponding to the functions of the software to be tested, function blocks corresponding to the information of the hardware to be tested and function blocks corresponding to the functions of the hardware to be tested; each function block is used for testing corresponding software functions to be tested, hardware information to be tested and/or hardware functions to be tested;
the method for testing the hard disk backboard comprises the following steps of calling a test script corresponding to the hard disk backboard to be tested, testing at least one software function to be tested, at least one hardware information to be tested and at least one hardware function to be tested which are associated with the hard disk backboard to be tested, and obtaining software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested, and comprises the following steps:
executing a function block corresponding to each software function to be tested, and testing each software function to be tested to obtain software function test data of the hard disk backboard to be tested;
executing function blocks corresponding to the hardware information to be tested, and testing the hardware information to be tested to obtain hardware information test data of the hard disk backboard to be tested;
and executing the function blocks corresponding to the hardware functions to be tested, and testing the hardware functions to be tested to obtain hardware function test data of the hard disk backboard to be tested.
According to the technical scheme of the embodiment of the invention, the software function, the hardware information and the hardware function related to the hard disk backboard can be automatically tested through the test script, and the software function test data, the hardware information test data and the hardware function test data of the hard disk backboard can be obtained.
Optionally, the calling a single chip microcomputer connected to the hard disk backplane to be tested tests a hardware port to be tested of the hard disk backplane to be tested, and the obtaining of the hardware port test data of the hard disk backplane to be tested includes:
calling a test script corresponding to the hard disk backboard to be tested, and controlling the hard disk backboard to be tested to send a test signal to a single chip microcomputer connected with the hard disk backboard to be tested through a hardware port to be tested;
receiving a test signal sent by the port of the hardware to be tested through the single chip microcomputer, determining the port state of the port of the hardware to be tested according to the test signal, and feeding back the port state of the port of the hardware to be tested;
and determining the port state of the hardware port to be tested as the hardware port test data of the hard disk backboard to be tested.
According to the technical scheme of the embodiment of the invention, the hardware port of the hard disk backboard can be automatically tested through the test script and the single chip microcomputer, and the hardware port test data of the hard disk backboard can be obtained.
Optionally, the generating a software test result and a hardware test result of the hard disk backplane to be tested according to the software function test data, the hardware information test data, and the hardware function test data includes:
detecting whether the software function test data is the same as standard software function test data corresponding to the hard disk backboard to be tested, and determining a software test result of the hard disk backboard to be tested according to a detection result;
and detecting whether the hardware information test data, the hardware function test data and the hardware port test data are the same as the standard hardware information test data, the standard hardware function test data and the standard hardware port test data corresponding to the hard disk backboard to be detected, and determining the hardware test result of the hard disk backboard to be detected according to the detection result.
According to the technical scheme of the embodiment of the invention, the test data obtained by real-time test can be automatically compared with the test data in a normal working state, and the software test result and the hardware test result of the hard disk backboard to be tested are determined.
Optionally, the detecting whether the software function test data is the same as the standard software function test data corresponding to the hard disk backplane to be detected, and determining the software test result of the hard disk backplane to be detected according to the detection result includes:
detecting whether the software function test data is the same as standard software function test data corresponding to the hard disk backboard to be tested;
if so, determining that the software test result of the hard disk backboard to be tested is qualified;
and if not, determining that the software test result of the hard disk backboard to be tested is unqualified.
According to the technical scheme of the embodiment of the invention, the software function test data obtained by real-time test can be automatically compared with the software function test data in a normal working state, so that the software test result of the hard disk backboard to be tested can be determined.
Optionally, before calling the test script corresponding to the hard disk backplane to be tested and testing at least one software function to be tested, at least one hardware information to be tested and at least one hardware function to be tested associated with the hard disk backplane to be tested, the method further includes:
and acquiring a test script, standard software function test data, standard hardware information test data, standard hardware function test data and standard hardware port test data which are uploaded by a target user and correspond to the hard disk backboard to be tested.
According to the technical scheme of the embodiment of the invention, the test script, the standard software function test data, the standard hardware information test data, the standard hardware function test data and the standard hardware port test data corresponding to the hard disk backboard can be obtained, so that the software function, the hardware information and the hardware function related to the hard disk backboard and the hardware port of the hard disk backboard can be conveniently tested based on the test script, and the software test result and the hardware test result of the hard disk backboard can be conveniently determined according to the standard software function test data, the standard hardware information test data, the standard hardware function test data and the standard hardware port test data.
Optionally, after generating a software test result and a hardware test result of the hard disk backplane to be tested according to the software function test data, the hardware information test data, and the hardware function test data, the method further includes:
generating a visual chart corresponding to the software test result and the hardware test result;
providing the visual chart to the target user.
According to the technical scheme of the embodiment of the invention, the software test result and the hardware test result of the hard disk backboard can be intuitively provided to a user through the visual chart.
According to another aspect of the present invention, there is provided a hard disk backplane testing apparatus, including:
the first test module is used for calling a test script corresponding to the hard disk backboard to be tested, testing at least one item of software function to be tested, at least one item of hardware information to be tested and at least one item of hardware function to be tested which are associated with the hard disk backboard to be tested, and obtaining software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested;
the second testing module is used for calling the single chip microcomputer connected with the hard disk backboard to be tested, testing the hardware port to be tested of the hard disk backboard to be tested and obtaining hardware port testing data of the hard disk backboard to be tested;
the data processing module is used for storing the software function test data and the hardware information test data into a preset data file and providing the hardware function test data and the hardware port test data for a target user through a display screen;
and the result generating module is used for generating a software test result and a hardware test result of the hard disk backboard to be tested according to the software function test data, the hardware information test data and the hardware function test data.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor;
and a memory communicatively coupled to the at least one processor;
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the hard disk backplane testing method according to any embodiment of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the hard disk backplane testing method according to any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, at least one item of to-be-tested software function, at least one item of to-be-tested hardware information and at least one item of to-be-tested hardware function related to the to-be-tested hard disk backboard are tested by calling the test script corresponding to the to-be-tested hard disk backboard, and software function test data, hardware information test data and hardware function test data of the to-be-tested hard disk backboard are obtained; calling a single chip microcomputer connected with the hard disk backboard to be tested, and testing a hardware port to be tested of the hard disk backboard to be tested to obtain hardware port test data of the hard disk backboard to be tested; then storing the software function test data and the hardware information test data into a preset data file, and providing the hardware function test data and the hardware port test data to a target user through a display screen; finally, according to the software function test data, the hardware information test data and the hardware function test data, a software test result and a hardware test result of the hard disk backboard to be tested are generated, the problem that a hard disk backboard test scheme in the related technology cannot test software and hardware of the hard disk backboard of the server rapidly and comprehensively is solved, the software function, the hardware information and the hardware function related to the hard disk backboard and a hardware port of the hard disk backboard are automatically tested through a test script and a single chip microcomputer, and the software test result and the hardware test result of the hard disk backboard are generated, so that the software and the hardware of the hard disk backboard of the server are rapidly and comprehensively tested, the test time is shortened, and the test efficiency is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a hard disk backplane testing method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a hard disk backplane testing method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a hard disk backplane testing method according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a hard disk backplane testing apparatus according to a fourth embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of an electronic device implementing the hard disk backplane testing method according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
It should be noted that the terms "object," "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a hard disk backplane testing method according to an embodiment of the present disclosure. The method can be executed by a hard disk backboard testing device, the hard disk backboard testing device can be realized in a hardware and/or software mode, and the hard disk backboard testing device can be configured in electronic equipment. The electronic equipment is used for testing the hard disk backboard of the server. As shown in fig. 1, the method includes:
step 101, calling a test script corresponding to a hard disk backboard to be tested, and testing at least one item of software function to be tested, at least one item of hardware information to be tested and at least one item of hardware function to be tested associated with the hard disk backboard to be tested to obtain software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested.
Optionally, step 101 and step 102 may be executed in parallel, or may be executed in series.
Optionally, the hard disk backplane to be tested is a hard disk backplane of the server to be tested. The test script corresponding to the hard disk backboard to be tested is a script used for testing at least one item of software function to be tested, at least one item of hardware information to be tested, at least one item of hardware function to be tested and a hardware port to be tested of the hard disk backboard to be tested, which are associated with the hard disk backboard to be tested. The test script is composed of a plurality of function blocks. The function block can be a code segment for testing the appointed software function to be tested, the appointed hardware information to be tested or the appointed hardware function to be tested, can also be a code segment for testing the appointed software function to be tested and the appointed hardware function to be tested, and can also be a code segment for assisting a single chip microcomputer connected with the hard disk backboard to be tested to test the hardware port to be tested of the hard disk backboard to be tested.
Optionally, the test script includes: function blocks corresponding to the functions of the software to be tested, function blocks corresponding to the information of the hardware to be tested and function blocks corresponding to the functions of the hardware to be tested; each function block is used for testing corresponding software functions to be tested, hardware information to be tested and/or hardware functions to be tested; the method for testing the hard disk backboard comprises the following steps of calling a test script corresponding to the hard disk backboard to be tested, testing at least one software function to be tested, at least one hardware information to be tested and at least one hardware function to be tested which are associated with the hard disk backboard to be tested, and obtaining software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested, and comprises the following steps: executing a function block corresponding to each software function to be tested, and testing each software function to be tested to obtain software function test data of the hard disk backboard to be tested; executing a function block corresponding to each piece of hardware information to be tested, and testing each piece of hardware information to be tested to obtain hardware information test data of the hard disk backboard to be tested; and executing the function blocks corresponding to the functions of the hardware to be tested, and testing the functions of the hardware to be tested to obtain hardware function test data of the hard disk backboard to be tested.
Therefore, the software function, the hardware information and the hardware function related to the hard disk backboard are automatically tested through the test script, and the software function test data, the hardware information test data and the hardware function test data of the hard disk backboard are obtained.
Optionally, the software function to be tested is one or more software functions associated with the hard disk backplane to be tested. The software function to be tested is usually executed by a Baseboard Management Controller (BMC) of the server and/or a hard disk backplane to be tested. The electronic equipment is respectively in communication connection with the hard disk backboard to be tested and the BMC of the server, and information interaction can be carried out based on the communication connection. The function block corresponding to each of the functions of the software to be tested is a code segment for testing each of the functions of the software to be tested. And aiming at each software function to be tested, calling the BMC of the server and/or the hard disk backboard to be tested to execute the software function to be tested by executing the function block corresponding to the software function to be tested to obtain the execution result of the software function to be tested, thereby testing the software function to be tested. The execution result of the software function to be tested is execution success or execution failure. And determining the execution result of each software function to be tested as the software function test data of the hard disk backboard to be tested.
In a specific example, the functions of the software to be tested associated with the hard disk backplane to be tested include: the method comprises the steps that a BMC controls a hard disk backboard to be tested to search a hard disk, the BMC controls the hard disk backboard to be tested to start a fault state indicator lamp and a reconstruction state indicator lamp corresponding to the hard disk, the BMC controls the hard disk backboard to be tested to start a predictive fault state indicator lamp corresponding to the hard disk, the BMC controls the hard disk backboard to be tested to start an alarm state indicator lamp corresponding to the hard disk, the hard disk backboard to be tested is upgraded on line, and the BMC controls the power supply of a designated hard disk slot position on the hard disk backboard to be tested to be powered on or powered off.
Optionally, the to-be-tested hardware information associated with the to-be-tested hard disk backplane is one or more pieces of hardware information associated with the to-be-tested hard disk backplane. The function block corresponding to each piece of the hardware information to be tested is a code segment for testing each piece of the hardware information to be tested. And aiming at each piece of hardware information to be tested, acquiring the hardware information to be tested from the hard disk backboard to be tested by executing the function block corresponding to the hardware information to be tested, thereby testing the hardware information to be tested. And determining the information of each piece of hardware to be tested acquired from the hard disk backboard to be tested as the hardware information test data of the hard disk backboard to be tested.
In a specific example, the to-be-tested hardware information associated with the to-be-tested hard disk backplane includes: manufacturer identification information of a Complex Programmable Logic Device (CPLD) or a Micro Control Unit (MCU) in a hard disk backboard to be tested; the number of hard disks in the hard disk backboard to be tested; the working state and the hard disk type of a hard disk in the hard disk backboard to be tested; version information of a board card, a CPLD and an MCU in the hard disk backboard to be tested; the model of the hard disk backboard to be tested; the power state of a designated hard disk slot position on a hard disk backboard to be tested; identifying information of manufacturers of hard disks in the hard disk backboard to be tested; a hard disk based on Serial Attached small computer system interface (SAS) and a hard disk based on Serial Advanced Technology Attachment (SATA) in a hard disk backplane to be tested; naming information of the hard disk backboard to be tested; port information of a cable assembly connector in the hard disk backboard to be tested; performance information of the hard disk backboard to be tested; performance information of the hard disk backboard to be tested; and disk array (RAID) information of the hard disk backplane to be tested.
Optionally, the vendor identification information of the CPLD is information for identifying a vendor to which the CPLD belongs. The vendor identification information of the MCU is information for identifying a vendor to which the MCU belongs. The operating status of the hard disk includes but is not limited to: standby state, rebuild state, fault state, predictive fault state, alarm state. The vendor identification information of the hard disk is information for identifying a vendor to which the hard disk belongs.
Optionally, the hardware function to be tested is one or more hardware functions associated with the hard disk backplane to be tested. And the hardware function to be tested is executed by the hardware equipment in the hard disk backboard to be tested. The hardware equipment includes but is not limited to various indicator lights corresponding to the hard disk in the hard disk backboard to be tested and the power supply of the hard disk slot position. The function block corresponding to each of the hardware functions to be tested is a code segment for testing each of the hardware functions to be tested. And for each hardware function to be tested, calling corresponding hardware equipment to execute the hardware function to be tested by executing the function block corresponding to the hardware function to be tested to obtain an execution result of the hardware function to be tested, thereby testing the hardware function to be tested. The execution result of the hardware function to be tested is execution success or execution failure. And determining the execution result of each hardware function to be tested as the hardware function test data of the hard disk backboard to be tested.
In a specific example, the functions of the hardware to be tested associated with the hard disk backplane to be tested include: the method comprises the steps of starting a hard disk indicating lamp corresponding to a hard disk, starting a fault state indicating lamp corresponding to the hard disk, starting a reconstruction state indicating lamp corresponding to the hard disk, starting a predictive fault state indicating lamp corresponding to the hard disk, starting an alarm state indicating lamp corresponding to the hard disk, and powering on or powering off a power supply of a specified hard disk slot position.
Optionally, the hard disk indicator light is used for indicating the position of the hard disk. The fault state indicator light is used for indicating whether the working state of the hard disk is a fault state or not. The rebuilding state indicator light is used for indicating whether the working state of the hard disk is the rebuilding state or not. The predictive fault status indicator is used to indicate whether the operating status of the hard disk is a predictive fault status. The alarm state indicator light is used for indicating whether the working state of the hard disk is an alarm state or not.
And 102, calling a single chip microcomputer connected with the hard disk backboard to be tested, testing a hardware port to be tested of the hard disk backboard to be tested, and obtaining hardware port test data of the hard disk backboard to be tested.
Optionally, the hardware ports to be tested of the hard disk backplane to be tested are one or more hardware ports to be tested in the hard disk backplane to be tested. The single chip microcomputer is connected with a to-be-tested hardware port of the to-be-tested hard disk backboard and can receive a signal sent by the to-be-tested hard disk backboard through the to-be-tested hardware port. The electronic equipment is in communication connection with the single chip microcomputer, and information interaction can be carried out based on the communication connection.
Optionally, the calling a single chip microcomputer connected to the hard disk backplane to be tested tests a hardware port to be tested of the hard disk backplane to be tested, and the obtaining of the hardware port test data of the hard disk backplane to be tested includes: calling a test script corresponding to the hard disk backboard to be tested, and controlling the hard disk backboard to be tested to send a test signal to a single chip microcomputer connected with the hard disk backboard to be tested through a hardware port to be tested; receiving a test signal sent by the port of the hardware to be tested through the single chip microcomputer, determining the port state of the port of the hardware to be tested according to the test signal, and feeding back the port state of the port of the hardware to be tested; and determining the port state of the hardware port to be tested as the hardware port test data of the hard disk backboard to be tested.
Therefore, the hardware port of the hard disk backboard is automatically tested through the test script and the single chip microcomputer, and the hardware port test data of the hard disk backboard is obtained.
Optionally, the test script further includes: and the function block corresponds to the hardware port to be tested of the hard disk backboard to be tested. The function block is used for controlling the hard disk backboard to be tested to send a test signal to the singlechip connected with the hard disk backboard to be tested through the hardware port to be tested. The test signal is a preset signal which needs to be sent to the single chip microcomputer through the hardware port to be tested.
Optionally, the method includes the steps of calling a test script corresponding to the hard disk backplane to be tested, and controlling the hard disk backplane to be tested to send a test signal to a single chip microcomputer connected with the hard disk backplane to be tested through a hardware port to be tested, including: and executing a function block corresponding to a hardware port to be tested of the hard disk backboard to be tested, and controlling the hard disk backboard to be tested to send a test signal to the single chip microcomputer through the hardware port to be tested. After receiving the test signal sent by the hardware port to be tested, the single chip microcomputer determines the port state of the hardware port to be tested according to the test signal and sends the port state of the hardware port to be tested to the electronic equipment. And the electronic equipment determines the port state of the hardware port to be tested as the hardware port test data of the hard disk backboard to be tested.
Optionally, the determining, by the single chip microcomputer, the port state of the hardware port to be tested according to the test signal includes: the single chip microcomputer detects whether a test signal sent by the hard disk backboard to be tested through the hardware port to be tested is the same as a standard test signal; if so, the singlechip determines that the port state of the port of the hardware to be tested is a normal state; if not, the single chip microcomputer determines that the port state of the hardware port to be tested is an abnormal state. The port state of the hardware port to be tested is used for indicating whether the hardware port to be tested is in a normal working state or not. The port state of the hardware port to be tested is a normal state, which indicates that the hardware port to be tested is in a normal working state. The port state of the hardware port to be tested is an abnormal state, which indicates that the hardware port to be tested is not in a normal working state.
Optionally, the standard test signal is a test signal sent by the hardware port to be tested through the hard disk backplane to be tested, which is received by the single chip microcomputer when the hardware port to be tested is in a normal working state. The single chip microcomputer stores the standard test signal in a preset storage position.
Step 103, storing the software function test data and the hardware information test data into a preset data file, and providing the hardware function test data and the hardware port test data to a target user through a display screen.
Optionally, the preset data file is a file for storing software function test data and hardware information test data of the hard disk backplane to be tested. The electronic equipment stores the software function test data and the hardware information test data into a preset data file, and then sends the preset data file to the terminal equipment of the target user, so that the software function test data and the hardware information test data of the hard disk backboard to be tested are provided for the target user. The target user may be a tester who manages the test process of the hard disk backplane to be tested.
Optionally, the providing the hardware function test data and the hardware port test data to a target user through a display screen includes: and sending the hardware function test data and the hardware port test data to a display screen so that the display screen displays the hardware function test data and the hardware port test data. The electronic equipment establishes communication connection with the display screen, and information interaction can be carried out based on the communication connection. The display screen may be a liquid crystal display screen.
And 104, generating a software test result and a hardware test result of the hard disk backboard to be tested according to the software function test data, the hardware information test data and the hardware function test data.
Optionally, the generating a software test result and a hardware test result of the hard disk backplane to be tested according to the software function test data, the hardware information test data, and the hardware function test data includes: detecting whether the software function test data is the same as standard software function test data corresponding to the hard disk backboard to be tested, and determining a software test result of the hard disk backboard to be tested according to a detection result; and detecting whether the hardware information test data, the hardware function test data and the hardware port test data are the same as the standard hardware information test data, the standard hardware function test data and the standard hardware port test data corresponding to the hard disk backboard to be detected, and determining the hardware test result of the hard disk backboard to be detected according to the detection result.
Optionally, the standard software function test data corresponding to the hard disk backplane to be tested is software function test data of at least one item of software function to be tested associated with the preset hard disk backplane to be tested in a normal working state. And the standard hardware information test data corresponding to the hard disk backboard to be tested is preset hardware information test data of the hard disk backboard in a normal working state. And the standard hardware function test data corresponding to the hard disk backboard to be tested is preset hardware function test data of the hard disk backboard in a normal working state. And the standard hardware port test data corresponding to the hard disk backboard to be tested is preset hardware port test data of the hard disk backboard in a normal working state.
Therefore, the test data obtained by real-time test can be automatically compared with the test data in the normal working state, and the software test result and the hardware test result of the hard disk backboard to be tested are determined.
Optionally, the detecting whether the software function test data is the same as the standard software function test data corresponding to the hard disk backplane to be detected, and determining the software test result of the hard disk backplane to be detected according to the detection result includes: detecting whether the software function test data is the same as standard software function test data corresponding to the hard disk backboard to be tested; if so, determining that the software test result of the hard disk backboard to be tested is qualified; and if not, determining that the software test result of the hard disk backboard to be tested is unqualified.
Therefore, the software function test data obtained by real-time test can be automatically compared with the software function test data in a normal working state, and the software test result of the hard disk backboard to be tested is determined.
Optionally, the software test result of the hard disk backplane to be tested is used to indicate whether each function of the software to be tested associated with the hard disk backplane to be tested is normal. And the software test result of the hard disk backboard to be tested is qualified, which indicates that each item of software to be tested associated with the hard disk backboard to be tested has a normal function. And the software test result of the hard disk backboard to be tested is unqualified, which indicates that one or more functions of the software to be tested are abnormal in each function of the software to be tested associated with the hard disk backboard to be tested.
Optionally, if the software function test data is the same as the standard software function test data corresponding to the hard disk backplane to be tested, which indicates that the software function test data obtained by the real-time test is the same as the software function test data in a normal working state, that is, each item of software to be tested associated with the hard disk backplane to be tested is normal in function, it is determined that the software test result of the hard disk backplane to be tested is qualified. And if the software function test data is different from the standard software function test data corresponding to the hard disk backboard to be tested, the software function test data obtained by the real-time test is different from the software function test data in the normal working state, namely one or more software functions to be tested in each software function to be tested related to the hard disk backboard to be tested are abnormal, and the software test result of the hard disk backboard to be tested is determined to be unqualified.
Optionally, the detecting whether the hardware information test data, the hardware function test data, and the hardware port test data are the same as the standard hardware information test data, the standard hardware function test data, and the standard hardware port test data corresponding to the hard disk backplane to be tested, and determining the hardware test result of the hard disk backplane to be tested according to the detection result includes: detecting whether the hardware information test data is the same as standard hardware information test data corresponding to the hard disk backboard to be tested; if the hardware information test data is the same as the standard hardware information test data corresponding to the hard disk backboard to be tested, detecting whether the hardware function test data is the same as the standard hardware function test data corresponding to the hard disk backboard to be tested; if the hardware function test data is the same as the standard hardware function test data corresponding to the hard disk backboard to be tested, detecting whether the hardware port test data is the same as the standard hardware port test data corresponding to the hard disk backboard to be tested; and if the hardware port test data are the same as the standard hardware port test data corresponding to the hard disk backboard to be tested, determining that the hardware test result of the hard disk backboard to be tested is qualified.
Optionally, if the hardware information test data is different from the standard hardware information test data corresponding to the hard disk backplane to be tested, determining that the hardware test result of the hard disk backplane to be tested is unqualified; if the hardware function test data is different from the standard hardware function test data corresponding to the hard disk backboard to be tested, determining that the hardware test result of the hard disk backboard to be tested is unqualified; and if the hardware port test data is different from the standard hardware port test data corresponding to the hard disk backboard to be tested, determining that the hardware test result of the hard disk backboard to be tested is unqualified.
Therefore, the hardware information test data, the hardware function test data and the hardware port test data which are obtained by real-time test can be automatically compared with the hardware information test data, the hardware function test data and the hardware port test data under the normal working state, and the hardware test result of the hard disk backboard to be tested is determined.
Optionally, the hardware test result of the hard disk backplane to be tested is used to indicate whether the hardware information and the hardware function associated with the hard disk backplane to be tested and the hardware port associated with the hard disk backplane to be tested are normal. And the hardware test result of the hard disk backboard to be tested is qualified, which indicates that the hardware information and the hardware function related to the hard disk backboard to be tested and the hardware port of the hard disk backboard to be tested are normal. And the hardware test result of the hard disk backboard to be tested is unqualified, which indicates that the hardware information and the hardware function related to the hard disk backboard to be tested or the hardware port of the hard disk backboard to be tested is abnormal.
Optionally, before calling the test script corresponding to the hard disk backplane to be tested and testing the at least one to-be-tested software function, the at least one to-be-tested hardware information and the at least one to-be-tested hardware function associated with the hard disk backplane to be tested, the method further includes: and acquiring a test script, standard software function test data, standard hardware information test data, standard hardware function test data and standard hardware port test data which are uploaded by a target user and correspond to the hard disk backboard to be tested. And uploading the test script, the standard software function test data, the standard hardware information test data, the standard hardware function test data and the standard hardware port test data corresponding to the hard disk backboard to be tested to the electronic equipment by the target user through the terminal equipment.
Therefore, the test script, the standard software function test data, the standard hardware information test data, the standard hardware function test data and the standard hardware port test data corresponding to the hard disk backboard are obtained, so that the software function, the hardware information and the hardware function related to the hard disk backboard and the hardware port of the hard disk backboard can be conveniently tested based on the test script, and the software test result and the hardware test result of the hard disk backboard can be conveniently determined according to the standard software function test data, the standard hardware information test data, the standard hardware function test data and the standard hardware port test data.
Optionally, after generating a software test result and a hardware test result of the hard disk backplane to be tested according to the software function test data, the hardware information test data, and the hardware function test data, the method further includes: generating a visual chart corresponding to the software test result and the hardware test result; providing the visual chart to the target user. The visual chart corresponding to the software test result and the hardware test result is a visual chart for displaying the software test result and the hardware test result. Visual charts include, but are not limited to, tables. And sending the visual chart to the terminal equipment of the target user.
Therefore, the software test result and the hardware test result of the hard disk backboard are intuitively provided for a user through the visual chart.
According to the technical scheme of the embodiment of the invention, at least one item of to-be-tested software function, at least one item of to-be-tested hardware information and at least one item of to-be-tested hardware function related to the to-be-tested hard disk backboard are tested by calling the test script corresponding to the to-be-tested hard disk backboard, and software function test data, hardware information test data and hardware function test data of the to-be-tested hard disk backboard are obtained; calling a single chip microcomputer connected with the hard disk backboard to be tested, and testing a hardware port to be tested of the hard disk backboard to be tested to obtain hardware port test data of the hard disk backboard to be tested; then storing the software function test data and the hardware information test data into a preset data file, and providing the hardware function test data and the hardware port test data to a target user through a display screen; and finally, generating a software test result and a hardware test result of the hard disk backboard to be tested according to the software function test data, the hardware information test data and the hardware function test data, solving the problem that the hard disk backboard test scheme in the related technology cannot test the software and the hardware of the hard disk backboard of the server quickly and comprehensively, automatically testing the software function, the hardware information and the hardware function related to the hard disk backboard and the hardware port of the hard disk backboard through a test script and a single chip microcomputer, and generating the software test result and the hardware test result of the hard disk backboard.
Example two
Fig. 2 is a flowchart of a hard disk backplane testing method according to a second embodiment of the present invention. Embodiments of the invention may be combined with various alternatives in one or more of the embodiments described above. As shown in fig. 2, the method includes:
step 201, calling a test script corresponding to a hard disk backboard to be tested, and testing at least one to-be-tested software function, at least one to-be-tested hardware information and at least one to-be-tested hardware function associated with the hard disk backboard to be tested to obtain software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested.
Optionally, the test script includes: function blocks corresponding to the functions of the software to be tested, function blocks corresponding to the information of the hardware to be tested and function blocks corresponding to the functions of the hardware to be tested; and each function block is used for testing the corresponding software function to be tested, the hardware information to be tested and/or the hardware function to be tested.
Optionally, the step of calling the test script corresponding to the hard disk backplane to be tested, and testing at least one item of software function to be tested, at least one item of hardware information to be tested, and at least one item of hardware function to be tested associated with the hard disk backplane to be tested to obtain software function test data, hardware information test data, and hardware function test data of the hard disk backplane to be tested includes: executing a function block corresponding to each software function to be tested, and testing each software function to be tested to obtain software function test data of the hard disk backboard to be tested; executing function blocks corresponding to the hardware information to be tested, and testing the hardware information to be tested to obtain hardware information test data of the hard disk backboard to be tested; and executing the function blocks corresponding to the functions of the hardware to be tested, and testing the functions of the hardware to be tested to obtain hardware function test data of the hard disk backboard to be tested.
Step 202, calling a test script corresponding to the hard disk backboard to be tested, and controlling the hard disk backboard to be tested to send a test signal to a single chip microcomputer connected with the hard disk backboard to be tested through a hardware port to be tested.
Optionally, the test script further includes: and the function block corresponds to the hardware port to be tested of the hard disk backboard to be tested. The function block is used for controlling the hard disk backboard to be tested to send a test signal to the singlechip connected with the hard disk backboard to be tested through the hardware port to be tested. The test signal is a preset signal which needs to be sent to the single chip microcomputer through the hardware port to be tested.
Optionally, the method includes the steps of calling a test script corresponding to the hard disk backplane to be tested, and controlling the hard disk backplane to be tested to send a test signal to a single chip microcomputer connected with the hard disk backplane to be tested through a hardware port to be tested, including: and executing a function block corresponding to a hardware port to be tested of the hard disk backboard to be tested, and controlling the hard disk backboard to be tested to send a test signal to the singlechip through the hardware port to be tested.
And 203, receiving a test signal sent by the hardware port to be tested through the single chip microcomputer, determining the port state of the hardware port to be tested according to the test signal, and feeding back the port state of the hardware port to be tested.
Optionally, after receiving the test signal sent by the hardware port to be tested, the single chip microcomputer determines the port state of the hardware port to be tested according to the test signal, and sends the port state of the hardware port to be tested to the electronic device.
Optionally, the determining, by the single chip microcomputer, the port state of the hardware port to be tested according to the test signal includes: the single chip microcomputer detects whether a test signal sent by the hard disk backboard to be tested through the hardware port to be tested is the same as a standard test signal; if so, the singlechip determines that the port state of the port of the hardware to be tested is a normal state; if not, the single chip microcomputer determines that the port state of the hardware port to be tested is an abnormal state.
And 204, determining the port state of the hardware port to be tested as the hardware port test data of the hard disk backboard to be tested.
Step 205, storing the software function test data and the hardware information test data into a preset data file, and providing the hardware function test data and the hardware port test data to a target user through a display screen.
And step 206, generating a software test result and a hardware test result of the hard disk backboard to be tested according to the software function test data, the hardware information test data and the hardware function test data.
According to the technical scheme of the embodiment of the invention, the software function, the hardware information and the hardware function related to the hard disk backboard and the hardware port of the hard disk backboard can be automatically tested through the test script and the single chip microcomputer to generate the software test result and the hardware test result of the hard disk backboard, so that the software and the hardware of the hard disk backboard of the server can be rapidly and comprehensively tested, the test time is shortened, and the test efficiency is improved.
EXAMPLE III
Fig. 3 is a flowchart of a hard disk backplane testing method according to a third embodiment of the present invention, including the following steps:
step 301, obtaining a test script, standard software function test data, standard hardware information test data, standard hardware function test data and standard hardware port test data which are uploaded by a target user and correspond to a hard disk backboard to be tested.
Step 302, calling a test script corresponding to the hard disk backboard to be tested, and testing at least one item of software function to be tested, at least one item of hardware information to be tested and at least one item of hardware function to be tested associated with the hard disk backboard to be tested to obtain software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested.
And 303, calling a test script corresponding to the hard disk backboard to be tested, and controlling the hard disk backboard to be tested to send a test signal to a single chip microcomputer connected with the hard disk backboard to be tested through a hardware port to be tested.
And 304, receiving a test signal sent by the port of the hardware to be tested through the single chip microcomputer, determining the port state of the port of the hardware to be tested according to the test signal, and feeding back the port state of the port of the hardware to be tested.
Step 305, determining the port state of the hardware port to be tested as the hardware port test data of the hard disk backboard to be tested.
Step 306, storing the software function test data and the hardware information test data into a preset data file, and providing the hardware function test data and the hardware port test data to a target user through a display screen.
And 307, detecting whether the software function test data are the same as the standard software function test data corresponding to the hard disk backboard to be detected, and determining a software test result of the hard disk backboard to be detected according to the detection result.
Step 308, detecting whether the hardware information test data, the hardware function test data and the hardware port test data are the same as the standard hardware information test data, the standard hardware function test data and the standard hardware port test data corresponding to the hard disk backboard to be tested, and determining the hardware test result of the hard disk backboard to be tested according to the detection result.
According to the technical scheme of the embodiment of the invention, the software function, the hardware information and the hardware function related to the hard disk backboard and the hardware port of the hard disk backboard are automatically tested through the test script and the single chip microcomputer to generate the software test result and the hardware test result of the hard disk backboard, so that the software and the hardware of the hard disk backboard of the server can be rapidly and comprehensively tested, the test time is shortened, and the test efficiency is improved.
Example four
Fig. 4 is a schematic structural diagram of a hard disk backplane testing apparatus according to a fourth embodiment of the present disclosure. The apparatus may be configured in an electronic device. As shown in fig. 4, the apparatus includes: a first test module 401, a second test module 402, a data processing module 403 and a result generation module 404.
The first testing module 401 is configured to call a testing script corresponding to a hard disk backplane to be tested, and test at least one to-be-tested software function, at least one to-be-tested hardware information, and at least one to-be-tested hardware function associated with the hard disk backplane to be tested, so as to obtain software function testing data, hardware information testing data, and hardware function testing data of the hard disk backplane to be tested; the second testing module 402 is configured to call a single chip microcomputer connected to the hard disk backplane to be tested, and test a hardware port to be tested of the hard disk backplane to be tested, so as to obtain hardware port test data of the hard disk backplane to be tested; a data processing module 403, configured to store the software function test data and the hardware information test data in a preset data file, and provide the hardware function test data and the hardware port test data to a target user through a display screen; a result generating module 404, configured to generate a software test result and a hardware test result of the hard disk backplane to be tested according to the software function test data, the hardware information test data, and the hardware function test data.
According to the technical scheme of the embodiment of the invention, at least one item of software function to be tested, at least one item of hardware information to be tested and at least one item of hardware function to be tested which are associated with the hard disk backboard to be tested are tested by calling the test script corresponding to the hard disk backboard to be tested, so that software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested are obtained; calling a single chip microcomputer connected with the hard disk backboard to be tested, and testing a hardware port to be tested of the hard disk backboard to be tested to obtain hardware port test data of the hard disk backboard to be tested; then storing the software function test data and the hardware information test data into a preset data file, and providing the hardware function test data and the hardware port test data to a target user through a display screen; finally, according to the software function test data, the hardware information test data and the hardware function test data, a software test result and a hardware test result of the hard disk backboard to be tested are generated, the problem that a hard disk backboard test scheme in the related technology cannot test software and hardware of the hard disk backboard of the server rapidly and comprehensively is solved, the software function, the hardware information and the hardware function related to the hard disk backboard and a hardware port of the hard disk backboard are automatically tested through a test script and a single chip microcomputer, and the software test result and the hardware test result of the hard disk backboard are generated, so that the software and the hardware of the hard disk backboard of the server are rapidly and comprehensively tested, the test time is shortened, and the test efficiency is improved.
In an optional implementation manner of the embodiment of the present invention, optionally, the test script includes: function blocks corresponding to the functions of the software to be tested, function blocks corresponding to the information of the hardware to be tested and function blocks corresponding to the functions of the hardware to be tested; each function block is used for testing corresponding software functions to be tested, hardware information to be tested and/or hardware functions to be tested; the first test module 401 is specifically configured to: executing a function block corresponding to each software function to be tested, and testing each software function to be tested to obtain software function test data of the hard disk backboard to be tested; executing a function block corresponding to each piece of hardware information to be tested, and testing each piece of hardware information to be tested to obtain hardware information test data of the hard disk backboard to be tested; and executing the function blocks corresponding to the functions of the hardware to be tested, and testing the functions of the hardware to be tested to obtain hardware function test data of the hard disk backboard to be tested.
In an optional implementation manner of the embodiment of the present invention, optionally, the second testing module 402 is specifically configured to: calling a test script corresponding to the hard disk backboard to be tested, and controlling the hard disk backboard to be tested to send a test signal to a single chip microcomputer connected with the hard disk backboard to be tested through a hardware port to be tested; receiving a test signal sent by the hardware port to be tested through the single chip microcomputer, determining the port state of the hardware port to be tested according to the test signal, and feeding back the port state of the hardware port to be tested; and determining the port state of the hardware port to be tested as the hardware port test data of the hard disk backboard to be tested.
In an optional implementation manner of the embodiment of the present invention, optionally, the result generating module 404 is specifically configured to: detecting whether the software function test data is the same as standard software function test data corresponding to the hard disk backboard to be tested, and determining a software test result of the hard disk backboard to be tested according to a detection result; detecting whether the hardware information test data, the hardware function test data and the hardware port test data are the same as the standard hardware information test data, the standard hardware function test data and the standard hardware port test data corresponding to the hard disk backboard to be detected, and determining a hardware test result of the hard disk backboard to be detected according to the detection result.
In an optional implementation manner of the embodiment of the present invention, optionally, when the operation of detecting whether the software function test data is the same as the standard software function test data corresponding to the hard disk backplane to be tested and determining the software test result of the hard disk backplane to be tested according to the detection result is executed by the result generating module 404, the operation is specifically configured to: detecting whether the software function test data is the same as standard software function test data corresponding to the hard disk backboard to be tested; if so, determining that the software test result of the hard disk backboard to be tested is qualified; and if not, determining that the software test result of the hard disk backboard to be tested is unqualified.
In an optional implementation manner of the embodiment of the present invention, optionally, the hard disk backplane testing apparatus further includes: the information acquisition module is used for acquiring test scripts, standard software function test data, standard hardware information test data, standard hardware function test data and standard hardware port test data which are uploaded by a target user and correspond to the hard disk backboard to be tested.
In an optional implementation manner of the embodiment of the present invention, optionally, the hard disk backplane testing apparatus further includes: the chart generation module is used for generating a visual chart corresponding to the software test result and the hardware test result; a chart providing module for providing the visual chart to the target user.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The hard disk backboard testing device can execute the hard disk backboard testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the hard disk backboard testing method.
EXAMPLE five
Fig. 5 shows a schematic structural diagram of an electronic device 10 that can be used to implement the hard disk backplane testing method according to the embodiment of the present invention. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program built into the Random Access Memory (RAM) 13 from a storage unit 18. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the hard disk backplane test method.
In some embodiments, the hard disk backplane testing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is built into the RAM 13 and executed by the processor 11, one or more steps of the hard disk backplane testing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the hard disk backplane testing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the hard disk backplane testing method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A hard disk backboard testing method is characterized by comprising the following steps:
calling a test script corresponding to a hard disk backboard to be tested, and testing at least one item of software function to be tested, at least one item of hardware information to be tested and at least one item of hardware function to be tested which are associated with the hard disk backboard to be tested to obtain software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested;
calling a single chip microcomputer connected with the hard disk backboard to be tested, testing a hardware port to be tested of the hard disk backboard to be tested, and obtaining hardware port test data of the hard disk backboard to be tested;
storing the software function test data and the hardware information test data into a preset data file, and providing the hardware function test data and the hardware port test data for a target user through a display screen;
and generating a software test result and a hardware test result of the hard disk backboard to be tested according to the software function test data, the hardware information test data and the hardware function test data.
2. The method of claim 1, wherein the test script comprises: function blocks corresponding to the functions of the software to be tested, function blocks corresponding to the information of the hardware to be tested and function blocks corresponding to the functions of the hardware to be tested; each function block is used for testing corresponding software functions to be tested, hardware information to be tested and/or hardware functions to be tested;
the method for testing the hard disk backboard comprises the following steps of calling a test script corresponding to the hard disk backboard to be tested, testing at least one software function to be tested, at least one hardware information to be tested and at least one hardware function to be tested which are associated with the hard disk backboard to be tested, and obtaining software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested, and comprises the following steps:
executing a function block corresponding to each software function to be tested, and testing each software function to be tested to obtain software function test data of the hard disk backboard to be tested;
executing a function block corresponding to each piece of hardware information to be tested, and testing each piece of hardware information to be tested to obtain hardware information test data of the hard disk backboard to be tested;
and executing the function blocks corresponding to the functions of the hardware to be tested, and testing the functions of the hardware to be tested to obtain hardware function test data of the hard disk backboard to be tested.
3. The method of claim 1, wherein the calling a single chip connected to the hard disk backplane to be tested to test a hardware port of the hard disk backplane to be tested, to obtain hardware port test data of the hard disk backplane to be tested, comprises:
calling a test script corresponding to the hard disk backboard to be tested, and controlling the hard disk backboard to be tested to send a test signal to a single chip microcomputer connected with the hard disk backboard to be tested through a hardware port to be tested;
receiving a test signal sent by the port of the hardware to be tested through the single chip microcomputer, determining the port state of the port of the hardware to be tested according to the test signal, and feeding back the port state of the port of the hardware to be tested;
and determining the port state of the hardware port to be tested as the hardware port test data of the hard disk backboard to be tested.
4. The method of claim 1, wherein the generating a software test result and a hardware test result of the hard disk backplane to be tested according to the software function test data, the hardware information test data and the hardware function test data comprises:
detecting whether the software function test data is the same as standard software function test data corresponding to the hard disk backboard to be tested, and determining a software test result of the hard disk backboard to be tested according to a detection result;
and detecting whether the hardware information test data, the hardware function test data and the hardware port test data are the same as the standard hardware information test data, the standard hardware function test data and the standard hardware port test data corresponding to the hard disk backboard to be detected, and determining the hardware test result of the hard disk backboard to be detected according to the detection result.
5. The method according to claim 4, wherein the detecting whether the software function test data is the same as standard software function test data corresponding to the hard disk backplane to be tested, and determining the software test result of the hard disk backplane to be tested according to the detection result comprises:
detecting whether the software function test data is the same as standard software function test data corresponding to the hard disk backboard to be tested;
if so, determining that the software test result of the hard disk backboard to be tested is qualified;
if not, determining that the software test result of the hard disk backboard to be tested is unqualified.
6. The method of claim 4, wherein before invoking the test script corresponding to the hard disk backplane to be tested to test the at least one software function to be tested, the at least one hardware information to be tested, and the at least one hardware function to be tested associated with the hard disk backplane to be tested, the method further comprises:
and acquiring a test script, standard software function test data, standard hardware information test data, standard hardware function test data and standard hardware port test data which are uploaded by a target user and correspond to the hard disk backboard to be tested.
7. The method of claim 1, after generating a software test result and a hardware test result of the hard disk backplane to be tested according to the software function test data, the hardware information test data, and the hardware function test data, further comprising:
generating a visual chart corresponding to the software test result and the hardware test result;
providing the visual chart to the target user.
8. The utility model provides a hard disk backplate testing arrangement which characterized in that includes:
the first test module is used for calling a test script corresponding to the hard disk backboard to be tested, testing at least one item of software function to be tested, at least one item of hardware information to be tested and at least one item of hardware function to be tested which are associated with the hard disk backboard to be tested, and obtaining software function test data, hardware information test data and hardware function test data of the hard disk backboard to be tested;
the second testing module is used for calling the single chip microcomputer connected with the hard disk backboard to be tested, testing the hardware port to be tested of the hard disk backboard to be tested and obtaining hardware port testing data of the hard disk backboard to be tested;
the data processing module is used for storing the software function test data and the hardware information test data into a preset data file and providing the hardware function test data and the hardware port test data for a target user through a display screen;
and the result generating module is used for generating a software test result and a hardware test result of the hard disk backboard to be tested according to the software function test data, the hardware information test data and the hardware function test data.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the hard disk backplane testing method of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to implement the hard disk backplane testing method of any one of claims 1 to 7 when executed.
CN202211406699.2A 2022-11-10 2022-11-10 Hard disk backboard testing method, device, equipment and medium Pending CN115686969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211406699.2A CN115686969A (en) 2022-11-10 2022-11-10 Hard disk backboard testing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211406699.2A CN115686969A (en) 2022-11-10 2022-11-10 Hard disk backboard testing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115686969A true CN115686969A (en) 2023-02-03

Family

ID=85051560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211406699.2A Pending CN115686969A (en) 2022-11-10 2022-11-10 Hard disk backboard testing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115686969A (en)

Similar Documents

Publication Publication Date Title
CN107423174B (en) Server configuration information testing method and device and storage medium
CN109933182A (en) A kind of server power failure diagnostic method, device and system
CN106407059A (en) Server node testing system and method
CN112559288A (en) Distributed inertial platform test system based on Ethernet
US20200110683A1 (en) Device and method for testing computer system
CN113608970A (en) Core board, server, failure recovery method, device and storage medium
CN102541705B (en) Testing method for computer and tooling plate
CN117077594A (en) Method, system, computer equipment and medium for monitoring simulation accelerator
CN115686969A (en) Hard disk backboard testing method, device, equipment and medium
CN116087752A (en) Chip testing method, system, device and medium
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN111896824B (en) Unattended reliability testing device and system
CN211554926U (en) Server test terminal
CN109947621A (en) A kind of method and device of server test
CN117687853A (en) Firmware detection method, device, equipment and medium
CN110781041B (en) Server mainboard test method, system and equipment
US20220020248A1 (en) Programmable dynamic information handling system rack lighting system
CN117539699A (en) BMC test method, device, equipment and medium
CN114153388B (en) Hard disk system, hard disk configuration information refreshing method, device and medium
CN116089307A (en) BIOS testing method, device, equipment and medium
CN117471217A (en) Card testing method, device, equipment and storage medium
CN115794525A (en) BMC (baseboard management controller) pressure testing method, device, equipment and storage medium
CN105607977A (en) Power state testing system
CN116232493A (en) Method and device for testing transponder board card, electronic equipment and storage medium
CN116521536A (en) Code coverage rate determining method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination