Server test method and device, electronic equipment and medium

By finding reference servers that meet matching conditions and using their test results, the high cost and long-term problems caused by the diversification of server test prototypes are solved, and a fast and low-cost testing process is achieved.

CN119311497APending Publication Date: 2025-01-14INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411463279.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

During the server testing process, with the diversification of hardware and software configurations, multiple test prototypes need to be built, resulting in high testing costs and long-term consumption, which cannot meet the needs of rapid development and testing.

Method used

By obtaining the platform type and model of the server to be tested, finding a reference server that meets the matching conditions, and using its component performance and functional test results as the test results of the server to be tested, thereby reducing the number of test prototypes and testing costs.

Benefits of technology

It realizes server testing without building a test prototype, reduces testing costs and time, and adapts to the needs of rapid development and testing cycles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311497A_ABST
    Figure CN119311497A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of servers, and particularly discloses a server testing method and device, electronic equipment and a medium, and the method comprises the steps: obtaining a platform type and a server model of a to-be-tested server, and searching one or more reference servers meeting a first matching condition with the to-be-tested server according to the platform type and the server model; if the server with the maximum component configuration in the to-be-tested server and the reference servers is a target reference server in the reference servers, a component performance test result and a component function test result of the target reference server are obtained, and components comprise at least one of storage and a network card; and taking the component performance test result and the component function test result of the target reference server as the component performance test result and the component function test result of the to-be-tested server. And the test cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of servers, and in particular to a server testing method, device, electronic equipment and medium. Background Art

[0002] After the server is developed, the server's hardware configuration, software configuration, and performance will be tested. At present, as the hardware and software configurations of servers gradually diversify, multiple test prototypes are usually required during the server testing process. Different test prototypes are used to test servers with different configurations. For example, test prototype A is used to test servers with configuration A, and test prototype B is used to test servers with configuration B. In this testing method, too many test prototypes are required, and the testing cost is high. Summary of the invention

[0003] In view of this, the implementation method of the present disclosure provides a server testing method, a server testing device, an electronic device, a computer-readable storage medium and a computer program product, which can reduce the number of test samples and reduce the testing cost.

[0004] On the one hand, the present disclosure provides a server testing method, the method comprising:

[0005] Obtaining a platform type and a server model of the server to be tested, and searching, according to the platform type and the server model, for one or more reference servers that meet a first matching condition with the server to be tested;

[0006] If, among the server to be tested and the reference server, the server with the largest component configuration is a target reference server among the reference servers, obtaining component performance test results and component function test results of the target reference server, the components including at least one of storage and a network card;

[0007] The component performance test results and the component function test results of the target reference server are used as the component performance test results and the component function test results of the server to be tested.

[0008] In one aspect, the present disclosure provides a server testing device, the device comprising:

[0009] An information acquisition module, used to acquire a platform type and a server model of the server to be tested, and to search for one or more reference servers that meet a first matching condition with the server to be tested according to the platform type and the server model;

[0010] a configuration comparison module, configured to obtain component performance test results and component function test results of the target reference server if the server with the largest component configuration among the server to be tested and the reference server is a target reference server among the reference servers, wherein the component includes at least one of a storage device and a network card;

[0011] The test result determination module is used to use the component performance test result and the component function test result of the target reference server as the component performance test result and the component function test result of the server to be tested.

[0012] Another aspect of the present disclosure provides an electronic device, which includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method described above is implemented.

[0013] Another aspect of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0014] In the technical solutions of some embodiments of the present disclosure, after finding one or more reference servers that meet the first matching condition with the server to be tested according to the platform type and server model of the server to be tested, if the server with the largest component configuration among the server to be tested and the reference server is the target reference server among the reference servers, the component performance test results and component function test results of the target reference server can be used as the component performance test results and component function test results of the server to be tested. In this way, there is no need to build a test prototype for the server to be tested to test the server to be tested, thereby reducing the number of test prototypes and reducing the testing cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The features and advantages of the present disclosure will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present disclosure in any way. In the accompanying drawings:

[0016] Figure 1 A schematic diagram showing a flow chart of a server testing method provided by an embodiment of the present disclosure is shown;

[0017] Figure 2 A schematic diagram of a server testing device provided by an embodiment of the present disclosure is shown;

[0018] Figure 3 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical scheme and advantages of the implementation method of the present disclosure clearer, the technical scheme in the implementation method of the present disclosure will be clearly and completely described below in conjunction with the drawings in the implementation method of the present disclosure. Obviously, the implementation method described is a part of the implementation method of the present disclosure, not all of the implementation methods. Based on the implementation method in the present disclosure, all other implementation methods obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0020] For a developed server, the server configuration may include hardware configuration and software configuration. Hardware configuration refers to the hardware configured for the server, such as the number of network cards, the number of hard disks, the CPU model, the slot location and number, the number of peripheral component interconnect Express (PCIe) interfaces, etc. Software configuration refers to the software configured for the server, such as the program code burned into the baseboard management controller (BMC), the program code burned into the complex programmable logic device (CPLD), the pre-set binding relationship between the slot and the expansion card, the address allocated to the expansion card, etc.

[0021] Testing a server is, on the one hand, to check whether the hardware and software configurations of the server are correct. For example, checking whether the number of network cards and disks in the server is correct, or checking whether the program code burned into the baseboard management controller or complex programmable logic device is correct by running the program code. On the other hand, it is to test the function of the server. For example, testing whether the network card function or storage read and write function of the server is correct. On the other hand, it is to test the performance of the server. The so-called performance test is to test the stability of the server during operation based on the hard disk and network card configured for the server.

[0022] At present, in some technologies, a test prototype is built for each configuration of the server to test the corresponding server. For example, suppose the server of configuration A includes 4 hard disks and 3 network cards, and the server of configuration B includes 10 hard disks and 5 network cards. Then, a test prototype A including 4 hard disks and 3 network cards can be built to test the server of configuration A, and a test prototype B including 10 hard disks and 5 network cards can be built to test the server of configuration B.

[0023] However, as the configuration of servers becomes increasingly customized and diversified, each model of server can usually include dozens or hundreds of servers with different configurations. For example, in the M-model server, there can be servers that support 10 hard disks, 5 network cards, and 4 PCIe interfaces, servers that support 20 hard disks, 6 network cards, and 4 PCIe interfaces, and servers that support 10 hard disks, 5 network cards, and 8 PCIe interfaces. In this case, if we want to build corresponding test prototypes for each configuration of server, on the one hand, we need to build more test prototypes, and we need more testing manpower, so the testing cost is relatively high; on the other hand, based on each test prototype, we need to conduct hardware configuration and software configuration tests, function tests, and performance tests on the corresponding servers respectively, and the required testing time will be relatively long, which cannot meet the actual needs when the server development and testing cycle is getting shorter and shorter.

[0024] In order to solve the above problem, after analyzing servers with different configurations under the same model, we can find that there are usually only a few configuration differences between servers with different configurations, and most of the configurations are the same. For example, for servers with configuration A and B:

[0025] In terms of hardware configuration, the A configuration server and the B configuration server may only have different CPUs (for example, different CPU models or different CPU manufacturers), and the rest, such as backplane, riser expansion card, cable, memory, hard disk, network card, host bus adapter (HBA) card, host channel adapter (HCA) card, graphics processing unit (GPU), etc., are the same;

[0026] In terms of software configuration, the software in the baseboard management controller of the A configuration server is the same as the software in the baseboard management controller of the B configuration server, and the Basic Input Output System (BIOS) of the A configuration server is different from the Basic Input Output System (BIOS) of the B configuration server.

[0027] That is, the A configuration server and the B configuration server only differ in the central processing unit and the basic input and output system, and the rest are the same. Therefore, at least part of the test results in the A configuration server and the B configuration server can be shared. For example, after testing the software in the baseboard management controller of the A configuration server, the obtained software test results can be used as the software test results of the baseboard management controller of the B configuration server (because the software in the baseboard management controller of the A configuration server and the B configuration server is the same). For another example, after testing the host channel adapter in the A configuration server, the obtained test results can be used as the test results of the host channel adapter of the B configuration server.

[0028] In addition, when performing performance tests and functional tests on servers, if one server A has a relatively large number of hard disks and network cards, and another server B has a relatively small number of hard disks and network cards, then if the functional test and performance test on server A pass, the functional test and performance test on server B will also pass. In other words, if server A runs relatively stably under various performance tests (such as full load and no load) when the number of hard disks and network cards on server A is relatively large, and the hard disk function and network card function are normal, then when performing various performance tests on server B with a relatively small number of hard disks and network cards, it can also pass, and the hard disk function and network card function of server B can also be normal.

[0029] Based on the above description, it can be understood that the performance test results and function test results of some servers with different configurations can also be shared. For example, assuming that the server with configuration A includes 10 hard disks and 4 network cards, and the server with configuration B includes 6 hard disks and 2 network cards, then the performance test results and function test results of the server with configuration A can be used as the performance test results and function test results of the server with configuration B.

[0030] It can be deduced from this that, when a server with configuration A shares test results with servers with other configurations, the server with configuration A can directly use the test results of servers with other configurations, that is, there is no need to test the server with configuration A, and further, there is no need to build a test prototype for the server with configuration A. In this way, the number of test prototypes is greatly reduced.

[0031] Because some server testing steps are deleted, the testing time can be greatly reduced, thereby adapting to the actual situation where server development and testing cycles are gradually shortening.

[0032] Based on the above description, the present disclosure provides a server testing method, which can solve the problem of too many server test samples and long testing time, while reducing the testing cost and improving the testing efficiency. Specifically, the server testing method can be applied to electronic devices. Electronic devices include but are not limited to tablet computers, laptops, desktop computers, servers, etc. Figure 1 , which is a flow chart of a server testing method provided by an embodiment of the present disclosure. Figure 1 In the server testing method, the server testing method includes the following steps:

[0033] Step S101: obtaining the platform type and server model of the server to be tested, and searching for one or more reference servers that meet a first matching condition with the server to be tested according to the platform type and server model.

[0034] Specifically, a server platform refers to a computing device or software combination used to provide services and resources, which integrates hardware and software resources to meet user needs, such as AMD (Advanced Micro Devices) platform, Intel platform, etc.

[0035] Server models are used to distinguish different types of servers. As mentioned above, under each server model, there can also be servers with multiple configurations.

[0036] The first matching condition is used to specify the common points between servers with different configurations that can share performance test results and function test results. For example, servers with different configurations need to have the same motherboard or chassis to share performance test results and function test results.

[0037] In summary, the reference server found according to the first matching condition can share the performance test results and the function test results with the server to be tested.

[0038] In this embodiment, the performance test results and the functional test results may be for a single component of the server. The component may include one of the storage and the network card. In short, the performance test and the functional test related to the storage and the network card may be performed separately for the server. For example, data is read and written to the storage of the server at a read and write speed of 1000 times per second to test the maximum number of reads and writes that the server can support, that is, a performance test is performed on the storage in the server. For another example, an access is initiated to the server at an access frequency of 50 times per second to test the maximum access frequency that the network card of the server can support, that is, a performance test and a functional test are performed on the network card in the server. Therefore, the performance test results and the functional test results of the server can be divided according to the components. For example, the performance test results and the functional test results related to the storage, and the performance test results and the functional test results related to the network card. Therefore, in the present disclosure, the performance test results and the functional test results of the server can also be referred to as the component performance test results and the component functional test results. For example, the network card performance test results and the network card functional test results, the storage performance test results and the storage functional test results.

[0039] Step S102: If, among the server to be tested and the reference server, the server with the largest component configuration is the target reference server among the reference servers, the component performance test result and the component function test result of the target reference server are obtained.

[0040] In this embodiment, the server with the largest component configuration may be a server with the largest storage configuration and the largest network card configuration.

[0041] The so-called maximum storage configuration can be the maximum number of hard disks that can be connected to the server based on the PCIe interface supported by the server, or it can be the number of hard disks currently connected to the server with the most hard disks among the server to be tested and the reference server. For example, assuming that the server to be tested is connected to 4 hard disks, reference server A is connected to 5 hard disks, and reference server B is connected to 7 hard disks, then reference server B can be the target reference server with the maximum storage configuration.

[0042] The so-called maximum NIC configuration can be the maximum number of NICs that can be set in the server based on the riser cards supported by the server, or it can be the number of NICs currently possessed by the server with the most NICs among the server under test and the reference server. For example, assuming that the server under test has 4 NICs, reference server A has 5 NICs, and reference server B has 7 NICs, then reference server B can be the target reference server with the maximum NIC configuration.

[0043] In this embodiment, the target reference server may be one of the reference servers or two of the reference servers. In the case where the target reference servers are two reference servers, the reference servers having the maximum storage configuration and the reference servers having the maximum network card configuration are different reference servers. For example, reference server A is the target reference server having the maximum storage configuration, and reference server B is the target reference server having the maximum network card configuration. In the case where the target reference server is one reference server, the reference servers having the maximum storage configuration and the reference servers having the maximum network card configuration are the same reference server. For example, reference server C has both the maximum storage configuration and the maximum network card configuration.

[0044] In summary, the above-mentioned obtaining of component performance test results and component function test results of the target reference server may include:

[0045] A storage performance test result and a storage function test result of a first target reference server having a maximum storage configuration are obtained, and a network card performance test result and a network card function test result of a second target reference server having a maximum network card configuration are obtained.

[0046] Among them, when the reference server with the maximum storage configuration and the reference server with the maximum network card configuration are the same reference server, the first target reference server and the second target reference server are the same server; when the reference servers with the maximum storage configuration and the reference servers with the maximum network card configuration are different reference servers, the first target reference server and the second target reference server are different reference servers.

[0047] Step S103: Using the component performance test results and component function test results of the target reference server as the component performance test results and component function test results of the server to be tested.

[0048] Based on the above description, it can be seen that if the performance test and function test of the server with more network cards and storage pass, then the performance test and function test of the server with less network cards and storage should also pass. Therefore, the component performance test results and component function test results of the target reference server can be used as the component performance test results and component function test results of the server to be tested. In this way, there is no need to perform performance tests and function tests on the server to be tested.

[0049] Further, after using the component performance test results and component function test results of the target reference server as the component performance test results and component function test results of the server to be tested, the method of the present disclosure may further include:

[0050] At least a portion of the configuration of the server to be tested is checked, wherein the configuration includes at least a portion of the hardware and software configured for the server to be tested.

[0051] Specifically, the so-called check can be based on server operation commands to check whether the hardware configuration of the server to be tested is correct. These operations can be performed directly on the server to be tested without the need to build a separate test prototype. In other words, without the need to perform performance tests and functional tests on the server to be tested, the server to be tested can be tested directly based on server operation commands, so there is no need to build a test prototype for the server to be tested.

[0052] In summary, in the technical solutions of some embodiments of the present disclosure, after finding one or more reference servers that meet the first matching condition with the server to be tested according to the platform type and server model of the server to be tested, if the server with the largest component configuration among the server to be tested and the reference server is the target reference server among the reference servers, the component performance test results and component function test results of the target reference server can be used as the component performance test results and component function test results of the server to be tested. In this way, there is no need to build a test prototype for the server to be tested to test the server to be tested, thereby reducing the number of test prototypes and reducing the testing cost.

[0053] In some embodiments, if, among the server to be tested and the reference server, the server with the largest component configuration is the server to be tested, the method of the present disclosure may further include:

[0054] Perform component performance testing and component function testing on the server under test;

[0055] The test results of the component performance test and the component function test are used as the component performance test results and the component function test results of the server to be tested.

[0056] It is understandable that when the server to be tested is a server with the maximum component configuration, the component performance test results and component function test results of the reference server cannot be used as the component performance test results and component function test results of the server to be tested. In this case, a test prototype can be built for the server to be tested to test the server to be tested. However, the component performance test results and component function test results of the server to be tested can be used as the component performance test results and component function test results of other reference servers. In this way, when testing other reference servers, there is no need to build test prototypes for other reference servers.

[0057] Based on the above description, in some embodiments, after performing component performance testing and component function testing on the server to be tested, the method of the present disclosure may further include:

[0058] The test results of the component performance test and the component function test are saved to use the test results as the component performance test results and the component function test results of the reference server.

[0059] In this way, the purpose of reducing the number of test samples and lowering the test cost is also achieved.

[0060] In some embodiments, searching for one or more reference servers that meet a first matching condition with the server to be tested according to the platform type and the server model in step S101 includes:

[0061] Determine the hardware and software configuration information of the server to be tested based on the platform type and server model;

[0062] Based on the hardware configuration information and the software configuration information, searching for a first server having the same first preset hardware and / or first preset software as the server to be tested, wherein the first preset hardware includes at least one of a mainboard, a backplane, a cable, a central processing unit, and a memory, and the first preset software includes software burned into a programmable logic device;

[0063] Searching the first server for a second server having the same chassis as the server to be tested, and using the second server as a reference server;

[0064] Based on the hardware configuration information and the software configuration information, searching for a third server having the same second preset hardware and / or second preset software as the server to be tested, wherein the second preset hardware includes at least one of a mainboard, a backplane, a cable, a baseboard management controller, a central processing unit, and a memory, and the second preset software includes at least one of software burned into a programmable logic device and a basic input and output system;

[0065] A fourth server having the same chassis as the server to be tested is searched among the third servers, and the fourth server is used as a reference server.

[0066] Specifically, the first matching condition may be obtained based on the analysis of configuration differences of different servers. By summarizing and refining the first matching condition, the search process of the reference server may be simplified.

[0067] In some embodiments, the method of the present disclosure may further include:

[0068] According to the platform type and the server model, searching for a first candidate server that meets the second matching condition with the server to be tested;

[0069] When the software in the baseboard management controller of the first candidate server has been tested, obtaining a software test result of the baseboard management controller of the first candidate server;

[0070] The obtained software test result is used as the software test result of the baseboard management controller of the server to be tested.

[0071] In this way, there is no need to perform software testing on the server to be tested, which reduces the testing time.

[0072] Specifically, in some embodiments, searching for a first candidate server that satisfies a second matching condition with the server to be tested according to the platform type and the server model may include:

[0073] Determine the hardware and software configuration information of the server to be tested based on the platform type and server model;

[0074] Based on the hardware configuration information and the software configuration information, a server having the same third preset hardware as the server to be tested is searched as a first candidate server, wherein the third preset hardware includes at least one of a backplane and a cable.

[0075] That is, the first candidate server may be a different server from the reference server.The first candidate server may include the reference server.

[0076] In some embodiments, when the software in the baseboard management controller of the first candidate server is not tested, the method further includes:

[0077] The software in the baseboard management controller of the server to be tested is tested, and corresponding software test results are obtained.

[0078] After obtaining the software test result of the server to be tested, the software test result of the software test result can be saved. When testing the first candidate server, the software test result of the server to be tested can be directly used, so as to reduce the test time.

[0079] In some embodiments, the method of the present disclosure may further include:

[0080] According to the platform type and the server model, searching for a second candidate server that meets a third matching condition with the server to be tested;

[0081] When the hybrid insertion test has been performed on the second candidate server, obtaining a hybrid insertion test result of the second candidate server;

[0082] The mixed insertion test result of the second candidate server is used as the mixed insertion test result of the server to be tested.

[0083] Specifically, the mixed insertion test refers to the setting of network cards from different manufacturers in the same server. In this case, after the performance test and function test are performed on the server's network card, the network card performance test and network card function test obtained are the mixed insertion test results.

[0084] By using the mixed insertion test result of the second candidate server as the mixed insertion test result of the server to be tested, the test time can also be reduced.

[0085] In some embodiments, searching for a second candidate server that meets a third matching condition with the server to be tested according to the platform type and the server model may include:

[0086] Determine the hardware and software configuration information of the server to be tested based on the platform type and server model;

[0087] Based on the hardware configuration information and the software configuration information, a server having the same fourth preset hardware and / or third preset software as the server to be tested is searched as a second candidate server, wherein the fourth preset hardware includes at least one of a mainboard, a backplane, a cable, a central processing unit and a memory, and the third preset software includes software burned into a programmable logic device.

[0088] In some embodiments, when the hybrid insertion test is not performed on the second candidate server, the method of the present disclosure may further include:

[0089] Perform a mixed insertion test on the server to be tested and obtain the corresponding mixed insertion test results.

[0090] The relevant principles are similar to those of the first candidate server and will not be repeated here.

[0091] In some embodiments, in order to reduce the number of server screenings, the above-mentioned searching for a first candidate server that meets the second matching condition with the server to be tested according to the platform type and the server model, or searching for a second candidate server that meets the third matching condition with the server to be tested according to the platform type and the server model, may further include: searching for the second candidate server and the third candidate server in the reference server. In this way, the amount of data processing can be reduced.

[0092] This completes the description of the server testing method disclosed herein.

[0093] Corresponding to the server testing method, the present disclosure also provides a server testing device. Figure 2 , which is a schematic diagram of a server testing device provided in one embodiment of the present disclosure. Figure 2 The server test device includes:

[0094] An information acquisition module, used to acquire the platform type and server model of the server to be tested, and search for one or more reference servers that meet a first matching condition with the server to be tested according to the platform type and server model;

[0095] A configuration comparison module, configured to obtain component performance test results and component function test results of the target reference server if the server with the largest component configuration among the server to be tested and the reference server is a target reference server among the reference servers, wherein the component includes at least one of a storage device and a network card;

[0096] The test result determination module is used to use the component performance test results and component function test results of the target reference server as the component performance test results and component function test results of the server to be tested.

[0097] In some embodiments, if, among the server to be tested and the reference server, the server with the largest component configuration is the server to be tested, the configuration comparison module is further used to:

[0098] Perform component performance testing and component function testing on the server under test;

[0099] The test results of the component performance test and the component function test are used as the component performance test results and the component function test results of the server to be tested.

[0100] In some embodiments, after performing component performance testing and component function testing on the server to be tested, the configuration comparison module is further used to:

[0101] The test results of the component performance test and the component function test are saved to use the test results as the component performance test results and the component function test results of the reference server.

[0102] In some embodiments, the information acquisition module is specifically used to:

[0103] Determine the hardware and software configuration information of the server to be tested based on the platform type and server model;

[0104] Based on the hardware configuration information and the software configuration information, searching for a first server having the same first preset hardware and / or first preset software as the server to be tested, wherein the first preset hardware includes at least one of a mainboard, a backplane, a cable, a central processing unit, and a memory, and the first preset software includes software burned into a programmable logic device;

[0105] Searching the first server for a second server having the same chassis as the server to be tested, and using the second server as a reference server;

[0106] Based on the hardware configuration information and the software configuration information, searching for a third server having the second preset hardware and / or the second preset software that the server to be tested has, wherein the second preset hardware includes at least one of a mainboard, a backplane, a cable, a baseboard management controller, a central processing unit, and a memory, and the second preset software includes at least one of software burned into a programmable logic device and a basic input and output system;

[0107] A fourth server having the same chassis as the server to be tested is searched among the third servers, and the fourth server is used as a reference server.

[0108] In some embodiments, the information acquisition module is further used to find a first candidate server that meets a second matching condition with the server to be tested according to the platform type and the server model;

[0109] The configuration comparison module is further used to obtain a software test result of the baseboard management controller of the first candidate server when the software in the baseboard management controller of the first candidate server has been tested;

[0110] The test result determination module is further configured to use the acquired software test result as the software test result of the baseboard management controller of the server to be tested.

[0111] In some embodiments, when the software in the baseboard management controller of the first candidate server is not tested, the configuration comparison module is further used to:

[0112] The software in the baseboard management controller of the server to be tested is tested, and corresponding software test results are obtained.

[0113] In some embodiments, the information acquisition module is further used to:

[0114] Determine the hardware and software configuration information of the server to be tested based on the platform type and server model;

[0115] Based on the hardware configuration information and the software configuration information, a server having the same third preset hardware as the server to be tested is searched as a first candidate server, wherein the third preset hardware includes at least one of a backplane and a cable.

[0116] In some embodiments, the information acquisition module is further used to find a second candidate server that meets a third matching condition with the server to be tested according to the platform type and the server model;

[0117] The configuration comparison module is further used to obtain a mixed insertion test result of the second candidate server when the mixed insertion test has been performed on the second candidate server;

[0118] The test result determination module is further configured to use the mixed insertion test result of the second candidate server as the mixed insertion test result of the server to be tested.

[0119] In some embodiments, when the hybrid insertion test is not performed on the second candidate server, the configuration comparison module is further used to:

[0120] Perform a mixed insertion test on the server to be tested and obtain the corresponding mixed insertion test results.

[0121] In some embodiments, the information acquisition module is further used to:

[0122] Determine the hardware and software configuration information of the server to be tested based on the platform type and server model;

[0123] Based on the hardware configuration information and the software configuration information, a server having the same fourth preset hardware and / or third preset software as the server to be tested is searched as a second candidate server, wherein the fourth preset hardware includes at least one of a mainboard, a backplane, a cable, a central processing unit and a memory, and the third preset software includes software burned into a programmable logic device.

[0124] Combined with reference Figure 3 , is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. The electronic device includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the above method is implemented.

[0125] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0126] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiment.

[0127] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor 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.

[0128] An embodiment of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the above method is implemented.

[0129] Although the implementation method of the present disclosure has been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A server testing method, characterized in that: The method comprises: Obtaining a platform type and a server model of the server to be tested, and searching, according to the platform type and the server model, for one or more reference servers that meet a first matching condition with the server to be tested; If, among the server to be tested and the reference server, the server with the largest component configuration is a target reference server among the reference servers, obtaining component performance test results and component function test results of the target reference server, the components including at least one of storage and a network card; The component performance test results and the component function test results of the target reference server are used as the component performance test results and the component function test results of the server to be tested.

2. The method according to claim 1, characterized in that If, among the server to be tested and the reference server, the server having the largest component configuration is the server to be tested, the method further includes: Performing component performance testing and component function testing on the server to be tested; The test results of the component performance test and the component function test are used as the component performance test results and component function test results of the server to be tested.

3. The method according to claim 2, characterized in that After performing the component performance test and the component function test on the server to be tested, the method further includes: The test results of the component performance test and the component function test are saved to use the test results as the component performance test results and the component function test results of the reference server.

4. The method according to claim 1, characterized in that The searching, according to the platform type and the server model, for one or more reference servers that meet a first matching condition with the server to be tested includes: Determine the hardware configuration information and software configuration information of the server to be tested according to the platform type and the server model; Based on the hardware configuration information and the software configuration information, searching for a first server having the same first preset hardware and / or first preset software as the server to be tested, wherein the first preset hardware includes at least one of a mainboard, a backplane, a cable, a central processing unit, and a memory, and the first preset software includes software burned into a programmable logic device; Searching the first server for a second server having the same chassis as the server to be tested, and using the second server as the reference server; Based on the hardware configuration information and the software configuration information, searching for a third server having the same second preset hardware and / or second preset software as the server to be tested, wherein the second preset hardware includes at least one of a mainboard, a backplane, a cable, a baseboard management controller, a central processing unit, and a memory, and the second preset software includes at least one of software burned into the programmable logic device and a basic input and output system; A fourth server having the same chassis as the server to be tested is searched among the third servers, and the fourth server is used as the reference server.

5. The method according to claim 1, characterized in that The method further comprises: According to the platform type and the server model, searching for a first candidate server that meets a second matching condition with the server to be tested; In the case where the software in the baseboard management controller of the first candidate server has been tested, obtaining a software test result of the baseboard management controller of the first candidate server, and using the obtained software test result as a software test result of the baseboard management controller of the server to be tested; Without testing the software in the baseboard management controller of the first candidate server, the software in the baseboard management controller of the server to be tested is tested, and corresponding software test results are obtained.

6. The method according to claim 5, characterized in that The searching, according to the platform type and the server model, for a first candidate server that satisfies a second matching condition with the server to be tested comprises: Determine the hardware configuration information and software configuration information of the server to be tested according to the platform type and the server model; Based on the hardware configuration information and the software configuration information, a server having the same third preset hardware as the server to be tested is searched as the first candidate server, wherein the third preset hardware includes at least one of a backplane and a cable.

7. The method according to claim 1, characterized in that The method further comprises: According to the platform type and the server model, searching for a second candidate server that meets a third matching condition with the server to be tested; In a case where the hybrid insertion test has been performed on the second candidate server, obtaining a hybrid insertion test result of the second candidate server, and using the hybrid insertion test result of the second candidate server as the hybrid insertion test result of the server to be tested; Without performing the hybrid insertion test on the second candidate server, performing the hybrid insertion test on the server to be tested, and obtaining a corresponding hybrid insertion test result.

8. The method according to claim 7, characterized in that The searching, according to the platform type and the server model, for a second candidate server that satisfies a third matching condition with the server to be tested comprises: Determine the hardware configuration information and software configuration information of the server to be tested according to the platform type and the server model; Based on the hardware configuration information and the software configuration information, search for a server having the same fourth preset hardware and / or third preset software as the server to be tested as the second candidate server, wherein the fourth preset hardware includes at least one of a mainboard, a backplane, a cable, a central processing unit and a memory, and the third preset software includes software burned into a programmable logic device.

9. A server testing device, characterized in that: The device comprises: An information acquisition module, used to acquire a platform type and a server model of the server to be tested, and to search for one or more reference servers that meet a first matching condition with the server to be tested according to the platform type and the server model; a configuration comparison module, configured to obtain component performance test results and component function test results of the target reference server if the server with the largest component configuration among the server to be tested and the reference server is a target reference server among the reference servers, wherein the component includes at least one of a storage device and a network card; The test result determination module is used to use the component performance test result and the component function test result of the target reference server as the component performance test result and the component function test result of the server to be tested.

10. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 8 is implemented.