Server testing method and device, storage medium and electronic equipment

By monitoring server voltage changes, the problem of lost test results during server testing was solved, enabling efficient fault location and test result determination.

CN119025349APending Publication Date: 2024-11-26INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411045600.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

During server testing, test results may be lost due to design, manufacturing process, or human error, making it impossible to accurately locate faults and affecting testing efficiency and quality.

Method used

The system collects voltage change information from the server using monitoring equipment to check if the test conditions are met. If not, it determines the reason for failure and sends test information to confirm the test result.

Benefits of technology

Even when test logs are lost, the cause of the failure can be accurately located, improving the efficiency and accuracy of server testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025349A_ABST
    Figure CN119025349A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a server testing method and device, a storage medium and electronic device.The method comprises the steps that in the process that connected target testing equipment conducts target testing on a target server, voltage change information of the target server is collected; according to the voltage change information, detecting whether the target server meets a target test condition that the target server passes the target test stored in the storage area; when it is detected that the target server does not meet the target test condition, determining that the target server does not pass the target test, and detecting a target failure reason that the target server does not pass the target test according to the voltage change information and the target test condition; and sending the target test information to the target test equipment. By means of the server testing method and device, the problem that the server testing efficiency is low is solved, and then the effect of improving the server testing efficiency is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a server testing method and device, a storage medium, and an electronic device. Background Art

[0002] During the server testing process, for example, during the board testing process, the server could not be powered on due to design, process and human operation reasons, the server crashed abnormally during the normal startup test, and the final test result could not be uploaded to the server because the diagnostic system could not access the server after the test was completed. As a result, the test records could not be recorded normally. It is understandable that the test logs based on which the maintenance personnel located the fault were lost.

[0003] After the board is set as an abnormal board by the user, it is sent to the maintenance site for analysis. Because the maintenance personnel cannot see the diagnosis results, they need to re-copy the diagnosis environment to reproduce the problem. In the process of reproducing the problem, due to the difference in the diagnostic environment, it is very easy for the maintenance personnel to be unable to reproduce the problem or the reproduced problem is inconsistent with the manually recorded problem, and the problem cannot be accurately located. At the same time, because there is no test result for the diagnosis anomaly, the diagnostic server cannot collect the diagnostic information of the board. When doing production problem analysis and statistics, abnormal problems will not be discovered in time, causing serious quality problems. Summary of the invention

[0004] The embodiments of the present application provide a server testing method and device, a storage medium and an electronic device to at least solve the problem of low server testing efficiency in the related art.

[0005] According to one embodiment of the present application, a server testing method is provided, wherein a monitoring device comprises a controller and a storage area, wherein the controller and the storage area are connected, wherein the controller is used to connect to a testing device, wherein the testing device is used to connect to a server to be tested, and wherein the storage area is used to record test conditions that allow the server to be tested to pass the test to be performed, wherein the method is applied to the controller, and wherein the method comprises: during a process in which a connected target testing device performs a target test on a target server, collecting voltage change information of the target server, wherein the voltage change information is used to indicate a first distribution of an operating voltage of the target server during a process in which the target testing device performs the target test on the target server, wherein the target server Connecting to the target test device; detecting whether the target server satisfies the target test condition for the target server to pass the target test stored in the storage area based on the voltage change information; determining that the target server has failed the target test when it is detected that the target server does not meet the target test condition, and detecting the target failure reason for the target server to fail the target test based on the voltage change information and the target test condition; sending target test information to the target test device, wherein the target test information is used to indicate that the target server has failed the target test and the target failure reason, and the target test device is used to determine the test result of the target test using the target test information.

[0006] In an exemplary embodiment, the collecting of voltage change information of the target server includes: during a process in which the connected target test device tests a target component deployed in the target server, detecting a voltage extraction device corresponding to the target component in the target server, the target test including a test performed on the target component, the voltage extraction device being used to indicate an operating status of the target component; extracting device voltage change information of the voltage extraction device, wherein the voltage change information includes the device voltage change information, and the device voltage change information is used to indicate a second distribution of the operating voltage of the voltage extraction device during a process in which the target test device tests the target component.

[0007] In an exemplary embodiment, detecting whether the target server meets the target test conditions stored in the storage area for the target server to pass the target test based on the voltage change information includes: converting the voltage change information into test process information, wherein the test process information is used to indicate the operating status of the target server during the process of the target test device performing the target test on the target server; and detecting whether the target server meets the target test conditions based on the test process information.

[0008] In an exemplary embodiment, the converting of the voltage change information into the test process information includes: in the process of the connected target test device testing the target component deployed in the target server, converting the device voltage change information of the voltage extraction device into the device test process information by executing the following steps, wherein the target test includes the test performed on the target component, and the voltage change information includes the device voltage change information: extracting the target conversion method corresponding to the target component type from the component types and conversion methods with corresponding relationships, wherein the target component belongs to the target component type; converting the device voltage change information into the device test process information according to the target conversion method.

[0009] In an exemplary embodiment, converting the device voltage change information into the device test process information according to the target conversion method includes: extracting a first reference distribution from a second distribution carried in the device voltage change information when the target component type includes a hardware type, wherein the first reference distribution is used to indicate a first reference operating voltage of the voltage extraction device in a first time period during the process of the target test device testing the target component, the first reference operating voltage includes a target number of high voltages and a target number of low voltages in a unit acquisition cycle in the first time period, and the target component operates normally when the first reference operating voltage includes a target number of high voltages and a target number of low voltages in the unit acquisition cycle; The first reference operating voltage is converted into a reference operating frequency of the voltage extraction device, wherein the test process information includes the reference operating frequency; when the target component type includes a software type, a second reference distribution is extracted from a second distribution carried in the device voltage change information, wherein the second reference distribution indicates a second reference operating voltage of the voltage extraction device within a second time period during the process of the target test device testing the target component, wherein the second reference operating voltage is a voltage used to determine a device operating state of the voltage extraction device, and the second reference operating voltage is converted into a reference operating value, wherein the reference operating value is used to indicate the device operating state of the voltage extraction device, wherein the test process information includes the reference operating value.

[0010] In an exemplary embodiment, detecting whether the target server meets the target test condition based on the test process information includes: in a case where the target component type includes a hardware type, detecting whether the reference operating frequency of the voltage extraction device is equal to the operating frequency threshold carried in the target test condition; in a case where it is detected that the reference operating frequency of the voltage extraction device is not equal to the operating frequency threshold for the target component to pass the test carried in the target test condition, determining that the target component in the target server does not meet the target test condition; in a case where the target component type includes a software type, detecting whether the reference operating value of the voltage extraction device is equal to the operating value threshold for the target component to pass the test carried in the target test condition; in a case where it is detected that the reference operating value of the voltage extraction device is not equal to the operating value threshold, determining that the target component in the target server does not meet the target test condition.

[0011] In an exemplary embodiment, detecting the target failure reason of the target server failing the target test based on the voltage change information and the target test condition includes: detecting the target failure reason of the target component in the target server failing the target test based on the device voltage change information included in the voltage change information and the target test condition by performing the following steps, wherein the target test includes a test performed on the target component: extracting the abnormal distribution of the operating voltage of the target component during the process of the target test device testing the target component as indicated by the device voltage change information, wherein the abnormal distribution is a distribution that is inconsistent with a candidate distribution, and the candidate distribution is used to indicate the distribution of the operating voltage of the voltage extraction device when the target component passes the test; obtaining the abnormal distribution and the target failure reason corresponding to the target test condition from the distribution, test condition and failure reason having a corresponding relationship.

[0012] According to another embodiment of the present application, a server testing device is provided, comprising: a monitoring device comprising a controller and a storage area, the controller and the storage area are connected, the controller is used to connect to the testing device, the testing device is used to connect to the server to be tested, the storage area is used to record the test conditions that allow the server to be tested to pass the test to be performed, the device is applied to the controller, the device comprises: an acquisition module, used to acquire voltage change information of the target server during the process of the connected target testing device performing the target test on the target server, wherein the voltage change information is used to indicate a first distribution of the operating voltage of the target server during the process of the target testing device performing the target test on the target server, the target server and the target A test device is connected; a detection module is used to detect whether the target server meets the target test condition stored in the storage area for the target server to pass the target test based on the voltage change information; a processing module is used to determine that the target server has not passed the target test when it is detected that the target server does not meet the target test condition, and detect the target failure reason for the target server to fail the target test based on the voltage change information and the target test condition; a sending module is used to send target test information to the target test device, wherein the target test information is used to indicate that the target server has not passed the target test and the target failure reason, and the target test device is used to use the target test information to determine the test result of the target test.

[0013] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0014] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0015] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0016] Through the present application, during the process of testing the server, the monitoring device can detect whether the server has passed the test conditions of the test based on the collected voltage change information of the server. If the server has not passed the test, the monitoring device can locate the reason why the server has not passed the test. In this way, even if the test log is lost during the process of testing the server, the test result of the server can be determined based on the test information returned by the monitoring device. Therefore, the problem of low testing efficiency of the server can be solved, thereby achieving the effect of improving the testing efficiency of the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a hardware structure block diagram of a server device of a server testing method according to an embodiment of the present application;

[0018] Figure 2 is a flow chart of a method for testing a server according to an embodiment of the present application;

[0019] Figure 3 is a schematic diagram of an optional method for detecting whether a target test condition is met according to an embodiment of the present application;

[0020] Figure 4 is a schematic diagram of optional configuration information according to an embodiment of the present application;

[0021] Figure 5 is a schematic diagram of an optional voltage extraction device according to an embodiment of the present application Figure 1 ;

[0022] Figure 6 is a schematic diagram of an optional voltage extraction device according to an embodiment of the present application Figure 2 ;

[0023] Figure 7 This is a schematic diagram of an optional server testing method according to an embodiment of the present application. Figure 1 ;

[0024] Figure 8 This is a schematic diagram of an optional server testing method according to an embodiment of the present application. Figure 2 ;

[0025] Fig. 9 It is a structural block diagram of a server testing device according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0028] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a server testing method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0029] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the test method of the server in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0030] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0031] In this embodiment, a server testing method is provided, wherein a monitoring device includes a controller and a storage area, wherein the controller and the storage area are connected, wherein the controller is used to connect to a testing device, wherein the testing device is used to connect to a server to be tested, and wherein the storage area is used to record a test condition that allows the server to be tested to pass a test to be performed, wherein the method is applied to the controller, Figure 2 is a flow chart of a method for testing a server according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0032] Step S202, collecting voltage change information of the target server during the process in which the connected target test device performs the target test on the target server, wherein the voltage change information is used to indicate a first distribution of the operating voltage of the target server during the process in which the target test device performs the target test on the target server, and the target server is connected to the target test device;

[0033] Step S204, detecting, according to the voltage change information, whether the target server satisfies the target test condition stored in the storage area for the target server to pass the target test;

[0034] Step S206, when it is detected that the target server does not meet the target test condition, determining that the target server has failed the target test, and detecting a target failure reason why the target server has failed the target test according to the voltage change information and the target test condition;

[0035] Step S208, sending target test information to the target test device, wherein the target test information is used to indicate that the target server has failed the target test and the reason for the target failure, and the target test device is used to use the target test information to determine the test result of the target test.

[0036] Through the above steps, during the process of testing the server, the monitoring device can detect whether the server passes the test conditions of the test based on the collected voltage change information of the server. When the server fails the test, the monitoring device can locate the reason why the server failed the test. In this way, even if the test log is lost during the test of the server, the test result of the server can be determined based on the test information returned by the monitoring device. Therefore, the problem of low testing efficiency of the server can be solved, thereby achieving the effect of improving the testing efficiency of the server.

[0037] In the technical solution provided in the above step S202, the target test may include but is not limited to tests on components deployed in the server, for example, tests on hardware, software and firmware deployed in the server. The target test may be but is not limited to testing whether the performance of components deployed in the server is greater than or equal to a performance threshold.

[0038] Optionally, in this embodiment, the first distribution situation may be, but is not limited to, used to include a change trend of the operating voltage of the target server during the process in which the target test device performs the target test on the target server.

[0039] Optionally, in this embodiment, different tests to be performed on the server to be tested may, but are not limited to, correspond to different test conditions. It can be understood that the test conditions of the server to be tested through different tests to be performed may, but are not limited to, be different.

[0040] In an exemplary embodiment, it is possible but not limited to collecting voltage change information of the target server: during the process of the connected target test device testing the target component deployed in the target server, detecting a voltage extraction device corresponding to the target component in the target server, the target test including a test performed on the target component, the voltage extraction device being used to indicate the operating status of the target component; extracting device voltage change information of the voltage extraction device, wherein the voltage change information includes the device voltage change information, and the device voltage change information is used to indicate a second distribution of the operating voltage of the voltage extraction device during the process of the target test device testing the target component.

[0041] Optionally, in this embodiment, the components deployed in the target server may have, but are not limited to, corresponding voltage extraction devices. It can be understood that different components deployed in the target server correspond to different voltage extraction devices.

[0042] Optionally, in this embodiment, it is possible but not limited to use a voltage extraction device to indicate whether the target component is operating normally. For example, when the target component includes a BMC (Baseboard Management Controller), the voltage extraction device may be but not limited to including an LED indicator light of the BMC deployed in the server.

[0043] In this way, the required voltage change information is extracted through the voltage extraction devices corresponding to the components deployed in the server, the interference between the voltage change information extracted from different components is reduced, and the accuracy of the extracted voltage change information is improved.

[0044] In the technical solution provided in the above step S204, it is possible but not limited to the following method to detect whether the target server meets the target test conditions for the target server to pass the target test stored in the storage area based on the voltage change information: extract the target test and the target test conditions corresponding to the target server from the storage area, and detect whether the target server meets the target test conditions based on the voltage change information.

[0045] In an exemplary embodiment, it is possible but not limited to the following method to detect whether the target server meets the target test condition for the target server to pass the target test stored in the storage area based on the voltage change information: converting the voltage change information into test process information, wherein the test process information is used to indicate the operating status of the target server during the process of the target test device performing the target test on the target server; and detecting whether the target server meets the target test condition based on the test process information.

[0046] Optionally, in this embodiment, the test process information may be, but is not limited to, used to indicate the operating status of the target server during the process of the target test device performing a target test on the target server. It can be understood that during the process of the target test device performing a target test on the target server, the operating status of the target server may be, but is not limited to, normal operation, abnormal operation, or normal operation followed by abnormal operation, etc.

[0047] In an exemplary embodiment, the voltage change information can be converted into test process information in the following manner, but is not limited to: during the process of the connected target test device testing the target component deployed in the target server, the device voltage change information of the voltage extraction device is converted into device test process information by executing the following steps, wherein the target test includes the test performed on the target component, and the voltage change information includes the device voltage change information: extracting a target conversion method corresponding to a target component type from component types and conversion methods having a corresponding relationship, wherein the target component belongs to the target component type; and converting the device voltage change information into the device test process information according to the target conversion method.

[0048] Optionally, in this embodiment, the components deployed in the server may be but are not limited to having a corresponding component type, different components deployed in the server may be but are not limited to corresponding to the same component type or different component types, and components belonging to different component types may be but are not limited to corresponding to different conversion methods.

[0049] Optionally, in this embodiment, when the target test device is performing target testing on the target server, when the target test includes the need to test multiple components in the target server, it is possible but not limited to completing the conversion of voltage change information corresponding to each component in parallel according to the conversion method corresponding to each component.

[0050] In this way, the conversion of the collected voltage change information is completed in parallel, which avoids converting the voltage change information of each component one by one, and improves the conversion efficiency of the voltage change information.

[0051] In an exemplary embodiment, the device voltage change information may be converted into the device test process information according to the target conversion method in the following manner, but is not limited to: when the target component type includes a hardware type, extracting a first reference distribution from a second distribution carried in the device voltage change information, wherein the first reference distribution is used to indicate a first reference operating voltage of the voltage extraction device in a first time period during the process of the target test device testing the target component, the first reference operating voltage includes a target number of high voltages and a target number of low voltages in a unit acquisition cycle in the first time period, and when the first reference operating voltage includes a target number of high voltages and a target number of low voltages in the unit acquisition cycle, the target component is Normal operation; converting the first reference operating voltage into a reference operating frequency of the voltage extraction device, wherein the test process information includes the reference operating frequency; in a case where the target component type includes a software type, extracting a second reference distribution from a second distribution carried in the device voltage change information, wherein the second reference distribution indicates a second reference operating voltage of the voltage extraction device within a second time period during a process in which the target test device tests the target component, wherein the second reference operating voltage is a voltage used to determine a device operating state of the voltage extraction device, converting the second reference operating voltage into a reference operating value, wherein the reference operating value is used to indicate a device operating state of the voltage extraction device, wherein the test process information includes the reference operating value.

[0052] Optionally, in this embodiment, the hardware-type components may include but are not limited to hardware deployed in the server, such as CPLD, BMC, etc., and the software-type components may include but are not limited to software deployed on the server, such as BIOS (Basic Input Output System), OS (Operating System), etc.

[0053] Optionally, in this embodiment, the first reference operating voltage may be converted into the reference operating frequency of the voltage extraction device in the following manner, but not limited to: detecting a first duration of a high voltage in a unit acquisition cycle, and detecting a second duration of a low voltage in a unit acquisition cycle, and when the first duration is equal to the second duration, dividing a preset value by the first duration to obtain a value as the reference operating frequency. For example, the preset value may include, but is not limited to, 1.

[0054] For example, the voltage is collected every 0.1s, the first time period includes 20s, and the unit collection period is 2s. In this case, if 10 high levels are collected within 1s continuously and 10 low levels are collected within the next continuous 1s, in this case, the reference operating frequency is 1 Hz.

[0055] In this way, the data used to detect the operating frequency of the voltage extraction device is continuous and stable, which improves the credibility of the data used and further improves the accuracy of the detected operating frequency of the voltage extraction device.

[0056] In an exemplary embodiment, it is possible but not limited to detecting whether the target server meets the target test condition based on the test process information in the following manner: when the target component type includes a hardware type, detecting whether the reference operating frequency of the voltage extraction device is equal to the operating frequency threshold carried in the target test condition; when it is detected that the reference operating frequency of the voltage extraction device is not equal to the operating frequency threshold for the target component to pass the test carried in the target test condition, determining that the target component in the target server does not meet the target test condition.

[0057] As an optional example, it is also possible but not limited to detecting whether the target server meets the target test condition in the following manner: detecting the frequency difference between the reference operating frequency of the voltage extraction device and the operating frequency threshold carried in the target test condition, and determining that the target test condition is met when the frequency difference is less than or equal to the frequency difference threshold.

[0058] Figure 3 is a schematic diagram of an optional method for detecting whether a target test condition is met according to an embodiment of the present application, such as Figure 3 As shown, the target components include BMC and CPLD in the server as an example, and the voltage extraction device includes LED indicators corresponding to BMC and CPLD for explanation and description. The following contents may be included but are not limited to:

[0059] After the BMC and CPLD are successfully powered on, the LED indicator will flash at a certain frequency, which is convenient for diagnostic personnel to judge the operating status of the chip.

[0060] The heartbeat detection obtains the voltage at the LED end within a certain period of time. If the voltage is between -0.07V and 0.07V, the LED cannot light up and conduct, then the LED is considered to be off, and if it is greater than 1V, the LED is considered to be on.

[0061] The detection device (equivalent to the monitoring equipment) obtains the voltage information (equivalent to the voltage change information) of the monitoring point position every 0.1 seconds, and analyzes it by obtaining the value of the voltage within a time slice. For example, 5 low voltages are obtained first, and then 10 (equivalent to the target number equal to 10, or 20, this application does not impose any restrictions on this) high voltages and 10 low voltages are obtained continuously. By calculating a continuous period of data, it can be analyzed that the current LED flashing frequency is 1HZ (equivalent to the reference operating frequency). If the current monitoring point is BMC, BMC in the configuration information is BLINK|1, 1 (equivalent to the operating frequency threshold) is equal to 1, then it is considered successful. If the current monitoring point is CPLD, the CPLD bit in the configuration information is BLINK|0.5, 1 (equivalent to the operating frequency threshold) is not equal to 0.5, then it is considered abnormal, and abnormal detection information is generated and uploaded to the server.

[0062] As an optional example, the user may, but is not limited to, configure the required tests and corresponding test conditions according to the test requirements to obtain configuration information, and the configuration information may, but is not limited to, be stored on the monitoring device.

[0063] Figure 4 is a schematic diagram of optional configuration information according to an embodiment of the present application, such as Figure 4 As shown, the configuration information can be, but is not limited to, in text format (or other formats, which are not limited in this application) and is implemented in a simple segmented format. Users can flexibly configure it according to their own needs, and usually select points where problems are prone to occur during board diagnosis as information points for detection.

[0064] The first column is the serial number, which is convenient for document editing; the second column is the detection point information, which corresponds to the position of the detection point in the motherboard and is used for the fixture to arrange the probe according to the detection point; the third column is the trigger condition (equivalent to the test condition), which is divided into three states: STATE, BLINK and VALUE, which can include all states of abnormal detection. STATE is the state value, and the corresponding value behind it can be satisfied. BLINK is used for the detection of frequencies such as heartbeats, and the unit is seconds. The voltage change within a period of time must meet the following frequency value. VALUE is used for the analysis of voltage status, and the corresponding set of voltage detection values ​​is analyzed into the self-test code status; the fourth column is the state value, which is used in combination with the third column; the fifth column is the description information to help developers understand.

[0065] In this way, it is possible to flexibly and dynamically configure the required tests and corresponding test conditions according to the test requirements, reduce the complexity of configuring the required tests and test conditions, and improve the efficiency of configuring the required tests and test conditions.

[0066] In an exemplary embodiment, when the target component type includes a software type, it is detected whether the reference operating value of the voltage extraction device is equal to the operating value threshold for the target component to pass the test carried in the target test condition; when it is detected that the reference operating value of the voltage extraction device is not equal to the operating value threshold, it is determined that the target component in the target server does not meet the target test condition.

[0067] As an optional example, it is also possible but not limited to detecting whether the target server meets the target test condition in the following manner: detecting the operating value difference between the reference operating value of the voltage extraction device and the operating threshold carried in the target test condition, and determining that the target test condition is met when the operating value difference is less than or equal to the operating value difference threshold.

[0068] Figure 5 is a schematic diagram of an optional voltage extraction device according to an embodiment of the present application Figure 1 , Figure 6 is a schematic diagram of an optional voltage extraction device according to an embodiment of the present application Figure 2 , combined with Figure 5 and Figure 6 As shown, the BIOS configuration information can be displayed in the board through the LED display screen but is not limited to it. Different values ​​represent that the current BIOS detects different devices. If the current state is fixed at a value for a long time, it is considered that the current device detection is abnormal.

[0069] The detection device (equivalent to the monitoring device) analyzes the current state by obtaining the voltage of all pins of the display screen (for example, pins abcdefgh), such as Figure 5 The value of the first display screen is 9, and the corresponding voltages of the 8 pins abcdefgh are 11110110, 1 means the current LED is on, and 0 means the current LED is off. By detecting the voltage of the pins of the second display screen, it is 11011010, and the corresponding display screen LEDs are ABDEG on, CFH off, and the display is 2.

[0070] The value of VALUE can be 0X92 based on the configuration information, but is not limited to it. The detection information is described as "PCI Bus initialization is started". If the display screen of the current board remains at 0x92 without change for a period of time, it is considered that the PCIE device self-test is abnormal, and the abnormal detection information is generated and uploaded to the server.

[0071] In the technical solution provided in the above step S206, when it is detected that the target server meets the target test condition, it is determined that the target server passes the target test.

[0072] Optionally, in this embodiment, the reason for target failure may include but is not limited to a fault in a component that causes the target server to fail the target test, a fault type of a fault in a component that causes the target server to fail the target test, etc.

[0073] In an exemplary embodiment, the target failure reason why the target server fails the target test can be detected based on the voltage change information and the target test condition in the following manner, but is not limited to: by performing the following steps, the target failure reason why the target component in the target server fails the target test is detected based on the device voltage change information included in the voltage change information and the target test condition, wherein the target test includes a test performed on the target component: extracting the abnormal distribution of the operating voltage of the target component during the process of the target test device testing the target component as indicated by the device voltage change information, wherein the abnormal distribution is a distribution that is inconsistent with a candidate distribution, and the candidate distribution is used to indicate the distribution of the operating voltage of the voltage extraction device when the target component passes the test; obtaining the abnormal distribution and the target failure reason corresponding to the target test condition from the distribution, test condition and failure reason having a corresponding relationship.

[0074] Optionally, in this embodiment, the changing trend of the operating voltage included in the abnormal distribution situation may be different from but not limited to the changing trend of the operating voltage included in the candidate distribution situation, or at least part of the operating voltage included in the abnormal distribution situation is greater than the operating voltage included in the candidate distribution situation, or at least part of the operating voltage included in the abnormal distribution situation is less than the operating voltage included in the candidate distribution situation.

[0075] In the technical solution provided in the above step S208, the test information may include, but is not limited to, the identification of the component causing the target server to fail the target test, the fault occurring in the component, and the type of the fault occurring in the component, etc.

[0076] For example, when testing the server's operating system, after the OS is booted, the information of the current diagnostic board is uploaded to the server with the keyword SN. The detection system searches the server according to the SN (Serial Number) obtained from the FRU. If it cannot be detected within a period of time, it is considered abnormal.

[0077] After the diagnostic system (equivalent to the test equipment) starts diagnosis, it will upload the diagnostic information to the SN file corresponding to the server after completing each project. The detection system will reset the timer after obtaining the new diagnostic information. If the next diagnostic item (equivalent to the test performed on the server) cannot be detected within a period of time, the status is considered abnormal.

[0078] After the diagnostic system completes the last diagnostic item, it will upload the PASS information to the SN file corresponding to the server. After the detection system obtains the PASS information, it completes the "Diag success" detection in the configuration information. After the shutdown button status of the last detection item is obtained, the current test information is cleared and the abnormal detection signal of the next board is waited for.

[0079] When the target server fails the target test, the test log may be lost. In this case, compared with the method in the related art that requires maintenance personnel to reproduce the fault and troubleshoot one by one, through the embodiment of the present application, the tester can accurately locate the components and reasons that caused the server to fail the test based on the test information sent by the monitoring equipment, thereby improving the accuracy of locating the reasons why the server failed the test.

[0080] In order to better understand the testing method of the server in the embodiment of the present application, the testing method of the server in the embodiment of the present application is explained and illustrated in combination with optional embodiments below, which can be applicable to but not limited to the embodiment of the present application.

[0081] Figure 7 This is a schematic diagram of an optional server testing method according to an embodiment of the present application. Figure 1 , Figure 8 This is a schematic diagram of an optional server testing method according to an embodiment of the present application. Figure 2 , combined with Figure 7 and Figure 8 As shown, the present invention develops a server diagnostic abnormality detection system and device. The detection system obtains the voltage of the detection point through the device and analyzes the voltage data to realize the detection of the server's power-on, power-off and self-test status, and interacts with the diagnostic system in real time to record the status of the diagnostic system and test items. It ensures that after the diagnostic system is abnormal or down, the server power-on self-test information and diagnostic abnormality records can be uploaded to the server for subsequent staff to analyze and locate the problem, and provide a basis for subsequent quality tracing and quality improvement, which can include but is not limited to the following contents:

[0082] ① The diagnostic device (equivalent to the monitoring device) is powered on at the same time as the fixture (equivalent to the test device), and is initialized according to the node information and Watchdog time configured by the user. After the initialization is completed, it starts to monitor according to the configured first node position (power-on signal).

[0083] ② When the factory tests the first board, as the power button is pressed, the test point voltage is pulled down, and the detection system begins to obtain the FRU information of the board and extract the board's unique identifier SN from the FRU (Field Replace Unit) information.

[0084] ③ Read the information of the next heartbeat detection point from the detection point configured by the user. The detection system analyzes the voltage change frequency over a period of time. After detecting that the LED flashing frequency of the CPLD and BMC chips is consistent with the configured information, it is considered that the two chips are powered on normally and the next information detection is carried out.

[0085] ④ The Post self-test process of BIOS will include the detection and initialization of key information such as CPU, memory, PCIE (peripheral component interconnect express, high-speed serial computer expansion bus standard) devices and hard disk. The progress of initialization is displayed in the status of the self-test code, and the displayed content is displayed on the mainboard through the LED display. The detection system monitors the voltage information of each pin of the LED device (equivalent to the voltage extraction device), parses it into the corresponding LED display code and compares it with the self-test status code of the hardware configured by the user. If they are consistent, it is considered that the current device self-test is normal, and the next hardware device self-test code information is compared.

[0086] ⑤ After the BIOS post self-test is completed, the BIOS starts to call the hard disk system to enter the OS. The OS will upload the current board information to the detection system as soon as it enters the OS. If the detection system does not obtain the OS information within the configured time, it is considered abnormal.

[0087] ⑥ After the detection system obtains the OS startup information within the configured time, it starts to interact with the OS in real time and collect the current key status information of the server. After each project is detected, the OS will synchronize the test results to the detection system. If the OS crashes, exits, or other abnormal information occurs during the test, the detection system will time out and consider the diagnosis abnormal because it cannot obtain the diagnostic information. The diagnostic system will upload the collected information and abnormal results to the log server.

[0088] ⑦ After detecting an abnormality, the detection system will upload the current record to the server system in a file named SN and provide it to the maintenance personnel for analysis. If all information detection is normal, the abnormal detection of the current board will end after receiving the shutdown button information from the server, and the system will enter the sleep monitoring state until the power-on button information of the next board wakes it up and enters the abnormal detection of the next board.

[0089] In this way, the abnormal state cannot be monitored in the related technology, and the abnormal operation state of the server is monitored. It can be used for server operation monitoring and server equipment maintenance. Through flexible configuration, it can adapt to various server products, and the system abnormal state is automatically monitored. After the deployment is completed, no manual intervention is required. After the abnormal state occurs, information is automatically collected and uploaded to the information collection system. In addition, the monitoring method of the monitoring device in the embodiment of the present application is not limited to being applied to servers, but can also be applied to boards such as single-chip microcomputers, and the monitoring device can be used for detection through flexible configuration.

[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0091] In this embodiment, a testing device for a server is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0092] Fig. 9 is a structural block diagram of a server testing device according to an embodiment of the present application, such as Fig. 9 As shown, the monitoring device includes a controller and a storage area, the controller and the storage area are connected, the controller is used to connect to the test device, the test device is used to connect to the server to be tested, the storage area is used to record the test conditions that allow the server to be tested to pass the test to be performed, and the device is applied to the controller, and the device includes:

[0093] A collection module 902 is used to collect voltage change information of a target server during a process in which a connected target test device performs a target test on the target server, wherein the voltage change information is used to indicate a first distribution of an operating voltage of the target server during a process in which the target test device performs the target test on the target server, and the target server is connected to the target test device;

[0094] A detection module 904, configured to detect, according to the voltage change information, whether the target server satisfies the target test condition stored in the storage area for the target server to pass the target test;

[0095] The processing module 906 is used to determine that the target server fails the target test when it is detected that the target server does not meet the target test condition, and detect a target failure reason why the target server fails the target test according to the voltage change information and the target test condition;

[0096] The sending module 908 is used to send target test information to the target test device, wherein the target test information is used to indicate that the target server has failed the target test and the reason for the target failure, and the target test device is used to use the target test information to determine the test result of the target test.

[0097] Through the above-mentioned device, during the process of testing the server, the monitoring equipment can detect whether the server passes the test conditions of the test according to the collected voltage change information of the server. When the server fails the test, the monitoring equipment can locate the reason why the server fails the test. In this way, even if the test log is lost during the test of the server, the test result of the server can be determined according to the test information returned by the monitoring equipment. Therefore, the problem of low testing efficiency of the server can be solved, thereby achieving the effect of improving the testing efficiency of the server.

[0098] In an exemplary embodiment, the acquisition module includes:

[0099] A first detection unit is used to detect a voltage extraction device corresponding to a target component in a target server during a process in which the connected target test device tests a target component deployed in a target server, wherein the target test includes a test performed on the target component, and the voltage extraction device is used to indicate an operating state of the target component;

[0100] An extraction unit is used to extract device voltage variation information of the voltage extraction device, wherein the voltage variation information includes the device voltage variation information, and the device voltage variation information is used to indicate a second distribution of the operating voltage of the voltage extraction device during the process of the target test device testing the target component.

[0101] In an exemplary embodiment, the detection module includes:

[0102] a conversion unit, configured to convert the voltage change information into test process information, wherein the test process information is used to indicate the operating state of the target server during the process in which the target test device performs the target test on the target server;

[0103] The second detection unit is used to detect whether the target server meets the target test condition according to the test process information.

[0104] In an exemplary embodiment, the conversion unit is used to:

[0105] In the process of the connected target test device testing the target component deployed in the target server, the device voltage change information of the voltage extraction device is converted into device test process information by performing the following steps, wherein the target test includes a test performed on the target component, and the voltage change information includes the device voltage change information:

[0106] Extracting a target conversion method corresponding to a target component type from component types and conversion methods having a corresponding relationship, wherein the target component belongs to the target component type;

[0107] The device voltage change information is converted into the device test process information according to the target conversion method.

[0108] In an exemplary embodiment, the conversion unit is further configured to:

[0109] In the case where the target component type includes a hardware type, extracting a first reference distribution from a second distribution carried in the device voltage change information, wherein the first reference distribution is used to indicate a first reference operating voltage of the voltage extraction device in a first time period during the process of the target test device testing the target component, the first reference operating voltage includes a target number of high voltages and a target number of low voltages in a unit acquisition cycle in the first time period, and the target component operates normally when the first reference operating voltage includes a target number of high voltages and a target number of low voltages in the unit acquisition cycle; converting the first reference operating voltage into a reference operating frequency of the voltage extraction device, wherein the test process information includes the reference operating frequency;

[0110] In the case where the target component type includes a software type, a second reference distribution is extracted from a second distribution carried in the device voltage change information, wherein the second reference distribution indicates a second reference operating voltage of the voltage extraction device within a second time period during testing of the target component by the target test device, wherein the second reference operating voltage is a voltage used to determine a device operating state of the voltage extraction device, and the second reference operating voltage is converted into a reference operating value, wherein the reference operating value is used to indicate the device operating state of the voltage extraction device, and wherein the test process information includes the reference operating value.

[0111] In an exemplary embodiment, the second detection unit is used to:

[0112] In the case where the target component type includes a hardware type, detecting whether the reference operating frequency of the voltage extraction device is equal to the operating frequency threshold carried in the target test condition; in the case where it is detected that the reference operating frequency of the voltage extraction device is not equal to the operating frequency threshold for the target component to pass the test carried in the target test condition, determining that the target component in the target server does not meet the target test condition;

[0113] When the target component type includes a software type, it is detected whether the reference operating value of the voltage extraction device is equal to the operating value threshold for the target component to pass the test carried in the target test condition; when it is detected that the reference operating value of the voltage extraction device is not equal to the operating value threshold, it is determined that the target component in the target server does not meet the target test condition.

[0114] In an exemplary embodiment, the processing module is used to:

[0115] By executing the following steps, the target failure reason of the target component in the target server failing to pass the target test is detected according to the device voltage change information included in the voltage change information and the target test condition, wherein the target test includes a test performed on the target component:

[0116] Extracting an abnormal distribution of the operating voltage of the target component during the process of the target test device testing the target component, as indicated by the device voltage change information, wherein the abnormal distribution is a distribution inconsistent with a candidate distribution, and the candidate distribution is used to indicate the distribution of the operating voltage of the voltage extraction device when the target component passes the test;

[0117] The abnormal distribution situation and the target failure reason corresponding to the target test condition are obtained from the distribution situation, test condition and failure reason having a corresponding relationship.

[0118] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0119] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0120] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0121] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0122] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0123] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0124] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0125] An embodiment of the present application also provides a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0126] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0127] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0128] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A server testing method, characterized in that: The monitoring device includes a controller and a storage area, the controller and the storage area are connected, the controller is used to connect to the test device, the test device is used to connect to the server to be tested, the storage area is used to record the test conditions that allow the server to be tested to pass the test to be performed, the method is applied to the controller, and the method includes: During the process of the connected target test device performing the target test on the target server, collecting voltage change information of the target server, wherein the voltage change information is used to indicate a first distribution of the operating voltage of the target server during the process of the target test device performing the target test on the target server, and the target server is connected to the target test device; detecting, according to the voltage change information, whether the target server satisfies the target test condition stored in the storage area for the target server to pass the target test; In the case where it is detected that the target server does not meet the target test condition, determining that the target server has failed the target test, and detecting a target failure reason why the target server has failed the target test according to the voltage change information and the target test condition; Sending target test information to the target test device, wherein the target test information is used to indicate that the target server has failed the target test and the reason why the target has failed, and the target test device is used to determine a test result of the target test using the target test information.

2. The method according to claim 1, characterized in that: The collecting voltage change information of the target server includes: During the process of the connected target test device testing the target component deployed in the target server, detecting a voltage extraction device corresponding to the target component in the target server, wherein the target test includes a test performed on the target component, and the voltage extraction device is used to indicate the operating status of the target component; Extracting device voltage variation information of the voltage extraction device, wherein the voltage variation information includes the device voltage variation information, and the device voltage variation information is used to indicate a second distribution of the operating voltage of the voltage extraction device during the process of the target test device testing the target component.

3. The method according to claim 1, characterized in that The detecting, according to the voltage change information, whether the target server satisfies the target test condition stored in the storage area for the target server to pass the target test includes: Converting the voltage change information into test process information, wherein the test process information is used to indicate the operating state of the target server during the process in which the target test device performs the target test on the target server; According to the test process information, detect whether the target server meets the target test condition.

4. The method according to claim 3, characterized in that The converting the voltage change information into test process information comprises: In the process of the connected target test device testing the target component deployed in the target server, the device voltage change information of the voltage extraction device is converted into device test process information by performing the following steps, wherein the target test includes a test performed on the target component, and the voltage change information includes the device voltage change information: Extracting a target conversion method corresponding to a target component type from component types and conversion methods having a corresponding relationship, wherein the target component belongs to the target component type; The device voltage change information is converted into the device test process information according to the target conversion method.

5. The method according to claim 4, characterized in that The converting the device voltage change information into the device test process information according to the target conversion method includes: In the case where the target component type includes a hardware type, extracting a first reference distribution from a second distribution carried in the device voltage change information, wherein the first reference distribution is used to indicate a first reference operating voltage of the voltage extraction device in a first time period during the process of the target test device testing the target component, the first reference operating voltage includes a target number of high voltages and a target number of low voltages in a unit acquisition cycle in the first time period, and the target component operates normally when the first reference operating voltage includes a target number of high voltages and a target number of low voltages in the unit acquisition cycle; converting the first reference operating voltage into a reference operating frequency of the voltage extraction device, wherein the test process information includes the reference operating frequency; In the case where the target component type includes a software type, a second reference distribution is extracted from a second distribution carried in the device voltage change information, wherein the second reference distribution indicates a second reference operating voltage of the voltage extraction device within a second time period during testing of the target component by the target test device, wherein the second reference operating voltage is a voltage used to determine a device operating state of the voltage extraction device, and the second reference operating voltage is converted into a reference operating value, wherein the reference operating value is used to indicate the device operating state of the voltage extraction device, and wherein the test process information includes the reference operating value.

6. The method according to claim 3, characterized in that The detecting, according to the test process information, whether the target server meets the target test condition comprises: In the case where the target component type includes a hardware type, detecting whether the reference operating frequency of the voltage extraction device is equal to the operating frequency threshold carried in the target test condition; in the case where it is detected that the reference operating frequency of the voltage extraction device is not equal to the operating frequency threshold for the target component to pass the test carried in the target test condition, determining that the target component in the target server does not meet the target test condition; When the target component type includes a software type, it is detected whether the reference operating value of the voltage extraction device is equal to the operating value threshold for the target component to pass the test carried in the target test condition; when it is detected that the reference operating value of the voltage extraction device is not equal to the operating value threshold, it is determined that the target component in the target server does not meet the target test condition.

7. The method according to claim 1, characterized in that The detecting, according to the voltage change information and the target test condition, a target failure reason why the target server fails the target test includes: By executing the following steps, the target failure reason of the target component in the target server failing to pass the target test is detected according to the device voltage change information included in the voltage change information and the target test condition, wherein the target test includes a test performed on the target component: Extracting an abnormal distribution of the operating voltage of the target component during the process of the target test device testing the target component, as indicated by the device voltage change information, wherein the abnormal distribution is a distribution inconsistent with a candidate distribution, and the candidate distribution is used to indicate the distribution of the operating voltage of the voltage extraction device when the target component passes the test; The abnormal distribution situation and the target failure reason corresponding to the target test condition are obtained from the distribution situation, test condition and failure reason having a corresponding relationship.

8. A server testing device, characterized in that: The monitoring device includes a controller and a storage area, the controller and the storage area are connected, the controller is used to connect to the test device, the test device is used to connect to the server to be tested, the storage area is used to record the test conditions that allow the server to be tested to pass the test to be performed, and the device is applied to the controller, and the device includes: A collection module, used for collecting voltage change information of a target server during a process in which a connected target test device performs a target test on the target server, wherein the voltage change information is used to indicate a first distribution of an operating voltage of the target server during a process in which the target test device performs the target test on the target server, and the target server is connected to the target test device; a detection module, configured to detect, according to the voltage change information, whether the target server satisfies the target test condition stored in the storage area for the target server to pass the target test; a processing module, configured to determine that the target server fails the target test when it is detected that the target server does not meet the target test condition, and detect a target failure reason why the target server fails the target test according to the voltage change information and the target test condition; A sending module is used to send target test information to the target test device, wherein the target test information is used to indicate that the target server has failed the target test and the reason for the target failure, and the target test device is used to use the target test information to determine the test result of the target test.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. 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 computer program, the steps of the method described in any one of claims 1 to 7 are implemented.