Server testing method, device, electronic equipment and storage medium

By obtaining test requests and determining the service to be called, generating service call requests to test the server to be tested, and sending test data in the message queue, the problem of low server testing efficiency in the existing technology is solved, and efficient for multiple servers is achieved Testing and stability.

CN116755944BActive Publication Date: 2024-12-24NETTRIX INFORMATION IND CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202310463219.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-12-24
Estimated Expiration
2043-04-26

AI Technical Summary

Technical Problem

Existing server testing methods are inefficient when handling a large number of server tests, making it difficult to process multiple servers at the same time, which easily leads to test crashes.

Method used

通过获取测试请求,确定测试参数信息和待测试服务器,根据这些信息确定待调用服务并生成服务调用请求,对待测试服务器进行测试,并在消息队列中发送测试数据以避免计算机宕机和服务雪崩。

Benefits of technology

It realizes efficient testing of multiple servers to be tested, improves the efficiency of large-scale server testing, and ensures the effectiveness and stability of the test environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116755944B_ABST
    Figure CN116755944B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a server testing method, device, electronic device and storage medium. The server testing method may specifically include: obtaining a test request, and determining test parameter information and a server to be tested according to the test request; determining a service to be called corresponding to the server to be tested according to the test parameter information; determining a service call request corresponding to the service to be called according to the test parameter information; and testing the server to be tested according to the service call request. The technical solution of the embodiment of the present invention can test multiple servers to be tested at the same time, thereby improving the testing efficiency of a large number of servers to be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a server testing method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of the Internet, cloud computing, and artificial intelligence industries, the performance requirements for servers are getting higher and higher. Therefore, server equipment needs to be tested before leaving the factory to ensure the product quality of server equipment. For example, the power consumption of server equipment has gradually increased with the development of technology, and the requirements for the heat dissipation performance of server equipment have also become higher and higher. Therefore, heat dissipation testing of servers is a key link that needs to be carried out before server equipment leaves the factory.

[0003] However, the existing server testing methods can quickly and accurately test the tested servers when the number of tested servers is small or the batch is small, which can greatly reduce the work of testers. However, when the number of tested servers is large or the batch is large (for example, testing thousands of servers at the same time), the above methods are difficult to handle a large number of server tests at the same time, and are prone to test crashes, resulting in low test efficiency. Summary of the invention

[0004] The embodiments of the present invention provide a server testing method, device, electronic device and storage medium, which can test multiple servers to be tested at the same time, thereby improving the testing efficiency of a large number of servers to be tested.

[0005] According to one aspect of the present invention, there is provided a server testing method, comprising:

[0006] Obtaining a test request, and determining test parameter information and a server to be tested according to the test request;

[0007] Determine the service to be called corresponding to the server to be tested according to the test parameter information;

[0008] Determine, according to the test parameter information, a service call request corresponding to the service to be called;

[0009] The server to be tested is tested according to the service call request.

[0010] In addition, the server testing method according to the above embodiment of the present invention may also have the following additional technical features:

[0011] Optionally, after determining the service to be called corresponding to the server to be tested according to the test parameter information, the method may further include:

[0012] Determine, according to the test parameter information, the service detection parameter information corresponding to the service to be called;

[0013] Generate a service detection request corresponding to the service to be called according to the service detection parameter information;

[0014] Performing service detection on the service to be called according to the service detection request;

[0015] Determine whether to execute the service call request corresponding to the service to be called according to the service detection result and the test parameter information.

[0016] An embodiment of the above invention has the following advantages or beneficial effects: it proposes a specific implementation method for performing service detection on the service to be called after determining the service to be called, so as to determine whether to generate a service call request based on the service detection result, thereby ensuring the test environment of the server to be tested and further improving the effectiveness of the test of the server to be tested.

[0017] Optionally, the services to be called may include SSH (Secure Shell) services to be called, serial port services to be called, and HTTP (Hyper Text Transfer Protocol) services to be called;

[0018] Determining the service to be called corresponding to the server to be tested according to the test parameter information may include:

[0019] In a case where the test parameter information includes the stress data information of the server to be tested, determining the SSH service to be called corresponding to the server to be tested;

[0020] In a case where the test parameter information includes temperature data information of the server to be tested, determining a serial port service to be called corresponding to the server to be tested;

[0021] In a case where the test parameter information includes the status data information of the server to be tested, the HTTP service to be called corresponding to the server to be tested is determined.

[0022] An embodiment of the above invention has the following advantages or beneficial effects: multiple implementation forms of the service to be called and specific implementations corresponding to different implementation forms are proposed. By splitting different services and deploying them on different computer devices, the test efficiency of the server to be tested can be further improved.

[0023] Optionally, testing the server to be tested according to the service call request may include:

[0024] Determine the test environment parameter information of the server to be tested according to the service call request;

[0025] Determine the test environment of the server to be tested according to the test environment parameter information;

[0026] When the preset time interval is reached, test data of the server to be tested in the test environment is obtained.

[0027] An embodiment of the above invention has the following advantages or beneficial effects: a specific implementation method for testing the server to be tested according to the service call request is proposed, which can further ensure the effectiveness of the test of the server to be tested.

[0028] Optionally, obtaining test data of the server to be tested in the test environment may include:

[0029] In a case where the service to be called is the SSH service to be called, obtaining server log data of the server to be tested in the test environment;

[0030] In a case where the service to be called is the serial port service to be called, obtaining server temperature data of the server to be tested in the test environment;

[0031] In a case where the service to be called is the HTTP service to be called, server status data of the server to be tested in the test environment is obtained.

[0032] An embodiment of the above invention has the following advantages or beneficial effects: it proposes to obtain test data of different servers to be tested under different implementation forms of the services to be called, which can effectively improve the test efficiency of the servers to be tested.

[0033] Optionally, after acquiring the test data of the server to be tested in the test environment when the preset time interval is reached, the method may further include:

[0034] Determine a message queue identifier corresponding to the test data, and determine a target message queue according to the message queue identifier, so as to send the test data to the target message queue;

[0035] Data analysis is performed on the test data in the target message queue to determine a test report according to the data analysis result.

[0036] An embodiment of the above invention has the following advantages or beneficial effects: it proposes a specific implementation method of sending test data to a message queue to obtain data in the message queue, which can avoid computer crashes and service avalanches caused by receiving a large amount of data at the same time, and improve the stability of server testing and the orderliness of data analysis.

[0037] Optionally, after acquiring the test data of the server to be tested in the test environment when the preset time interval is reached, the method may further include:

[0038] When it is determined that the current test time reaches the preset test time, or the test end identifier in the test data is successfully obtained, or a test end request is received, the test on the server to be tested is ended.

[0039] An embodiment of the above invention has the following advantages or beneficial effects: multiple application scenarios for ending the test of the server to be tested are proposed, the test of the server to be tested can be ended accurately, and the validity of the test data is further improved.

[0040] According to another aspect of the present invention, there is provided a server testing device, comprising:

[0041] A test request acquisition module is used to acquire a test request and determine test parameter information and a server to be tested according to the test request;

[0042] A to-be-called service determination module, used to determine the to-be-called service corresponding to the to-be-tested server according to the test parameter information;

[0043] A service call request determination module, used to determine the service call request corresponding to the service to be called according to the test parameter information;

[0044] The server testing module is used to test the server to be tested according to the service calling request.

[0045] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0046] at least one processor; and

[0047] a memory communicatively connected to the at least one processor; wherein,

[0048] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the server testing method described in any embodiment of the present invention.

[0049] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the server testing method described in any embodiment of the present invention when executed.

[0050] The technical solution of the embodiment of the present invention obtains a test request and determines test parameter information and a server to be tested according to the test request, so as to determine a service to be called and a service call request corresponding to the server to be tested according to the test parameter information, thereby testing the server to be tested according to the service call request. This solves the problem of low testing efficiency of existing server testing methods when processing a large number of server tests, and can test multiple servers to be tested at the same time, thereby improving the testing efficiency of a large number of servers to be tested.

[0051] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0053] Figure 1 It is a schematic diagram of a server testing method provided by the prior art;

[0054] Figure 2 It is a schematic diagram of another server testing method provided by the prior art;

[0055] Figure 3 is a flow chart of a server testing method provided by Embodiment 1 of the present invention;

[0056] Figure 4 is a flow chart of a server testing method provided by Embodiment 2 of the present invention;

[0057] Figure 5 It is a schematic diagram of the architecture of a server testing system provided by Embodiment 2 of the present invention;

[0058] Figure 6 is an example flow chart of a server testing method provided in Embodiment 3 of the present invention;

[0059] Figure 7 is a schematic diagram of a server testing device provided by a fourth embodiment of the present invention;

[0060] Figure 8 It is a structural schematic diagram of an electronic device for implementing the server testing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0062] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.

[0063] Figure 1 It is a schematic diagram of a server testing method provided by the prior art, such as Figure 1 As shown, the traditional server testing method is usually completed by the tester through manual operation of the tested server, constant temperature and humidity equipment and data acquisition device. For example, it is necessary to simulate the actual use status of the server during the test, and manually load the server product using test software and test scripts through local terminals or remote terminal tools. For the test environment, the tester needs to manually set the temperature box status of each heat dissipation test stage and the collection program of the data collector. During the test process, the tester needs to continuously access the server OS (Operating System) and BMC (Baseboard Management Controller) to obtain the status information of the server. After the test is completed, the data from various data sources (such as system logs, BMC logs, and data collector databases) need to be manually integrated and sorted to output a test report.

[0064] The above server testing method requires the test engineer to set up the test environment before the test, including system installation, test software installation, test script writing, etc., and the test process is mainly carried out by the tester executing the stress test and data collection script on the server and BMC through the local or remote terminal, and manually setting the constant temperature and humidity chamber and the working status of the data collector, which leads to a low degree of automation in the server test. After the test is completed, the tester needs to export the data from various data sources, use data processing software for secondary processing and data visualization. The test process is relatively cumbersome and prone to data loss, data processing errors and other problems, which affect the output of the test results.

[0065] Figure 2 is a schematic diagram of another server testing method provided by the prior art. By integrating various test control methods and data collection methods in the above server testing method, a series of Figure 2 The automated server testing method shown interacts with the server under test through an integrated testing device, thereby automating the testing process. Invention patent CN201710736833.8 discloses a server heat dissipation testing method and system, which can automatically execute test scripts and collect server temperature data and generate test reports by setting the temperature of the temperature box. Invention patent CN201710930049.0 discloses a design method for automated server heat dissipation testing. The test system realizes automated testing and recording of the entire heat dissipation test by integrating a data collector. Invention patent CN201910711289.0 discloses a server automatic heat dissipation testing method and system, which executes the automated test script on the server side by establishing a communication connection between the PC (Personal Computer) side and the server side. Invention patent CN202110639851.0 discloses a heat dissipation test method, device, user terminal and storage medium, which can connect to the BMC in the server, generate a corresponding configuration request, and send the configuration request to the BMC in the server, so that the BMC controls the fan heat dissipation based on the target heat dissipation parameters in the configuration request, and monitors the fan speed and the temperature of the heating components in real time. The above-mentioned server testing method can improve the test efficiency well when the number of servers under test is small or the batch is small. However, it is difficult to handle a large number of server tests at the same time. When the number of servers under test is large or the batch is large, the test efficiency is still very low.

[0066] Embodiment 1

[0067] Figure 3This is a flow chart of a server testing method provided by the first embodiment of the present invention. This embodiment is applicable to the case of testing multiple servers to be tested at the same time. The method can be executed by a server testing device, which can be implemented by software and / or hardware, and can generally be directly integrated in an electronic device that executes the method. The electronic device can be a terminal device or a server device. The embodiment of the present invention does not limit the type of electronic device that executes the server testing method. Specifically, Figure 3 As shown, the server testing method may specifically include the following steps:

[0068] S310: Obtain a test request, and determine test parameter information and a server to be tested according to the test request.

[0069] The test request may be a request for testing a server. The test parameter information may be information about test-related parameters in the test request. It is understood that the test request may include multiple test-related parameters, such as pressure parameters, temperature parameters, or server status parameters, etc., which are not limited in this embodiment of the present invention. The server to be tested may be a server waiting to be tested. It is understood that the server to be tested may be one of multiple servers corresponding to the test request.

[0070] In an embodiment of the present invention, a test request is obtained to determine test parameter information and a server to be tested according to the test request. Optionally, obtaining the test request may be directly obtaining a test request sent by a user, or may be obtaining a test request sent by a load balancing server according to a load condition, etc., and the embodiment of the present invention does not limit this. It should be noted that the embodiment of the present invention does not limit the specific implementation method of the load balancing server sending a test request according to the load condition. Optionally, determining the test parameter information and the server to be tested according to the test request may include performing data analysis on the test request to determine the test parameter information and the server to be tested according to the data analysis result.

[0071] S320: Determine the service to be called corresponding to the server to be tested according to the test parameter information.

[0072] The service to be called may be a service waiting to be called, and information can be exchanged with the server to be tested through the service to be called. It can be understood that the service to be called may be one of multiple services, there may be multiple services that can be called and correspond to the server to be tested, there may also be services of different service types and correspond to the server to be tested, etc., and the embodiment of the present invention does not limit this.

[0073] In the embodiment of the present invention, after the test parameter information and the server to be tested are determined according to the test request, the service to be called corresponding to the server to be tested may be further determined according to the test parameter information.

[0074] Optionally, when there are multiple services that can be called and correspond to the server to be tested, the load balancing server can determine the service to be called corresponding to the server to be tested according to the test parameter information. When there are services of different service types corresponding to the server to be tested, the service type corresponding to the server to be tested can be determined according to the test parameter information, so as to determine the service to be called according to the service type.

[0075] S330: Determine a service call request corresponding to the service to be called according to the test parameter information.

[0076] The service call request may be a request for calling the service to be called. It is understandable that the service to be called may exchange information with the server to be tested according to the service request to be called.

[0077] In the embodiment of the present invention, after the service to be called corresponding to the server to be tested is determined according to the test parameter information, an access call request corresponding to the service to be called may be further determined according to the test parameter information.

[0078] S340: Test the server to be tested according to the service call request.

[0079] In the embodiment of the present invention, after determining the access call request corresponding to the service to be called according to the test parameter information, the server to be tested can be further tested according to the service call request. Optionally, the server to be tested can be tested according to the service call request by the service to be called.

[0080] The technical solution of this embodiment obtains a test request and determines the test parameter information and the server to be tested according to the test request, so as to determine the service to be called and the service call request corresponding to the server to be tested according to the test parameter information, thereby testing the server to be tested according to the service call request, which solves the problem of low testing efficiency of existing server testing methods when processing a large number of server tests, and can test multiple servers to be tested at the same time, thereby improving the testing efficiency of a large number of servers to be tested.

[0081] Embodiment 2

[0082] Figure 4This is a flow chart of a server testing method provided in the second embodiment of the present invention. This embodiment is a further refinement of the above-mentioned technical solutions, and provides multiple specific optional implementation methods for determining the service to be called corresponding to the server to be tested according to the test parameter information, and testing the server to be tested according to the service call request. The technical solution in this embodiment can be combined with various optional solutions in one or more of the above-mentioned embodiments. Figure 4 As shown, the method may include the following steps:

[0083] S410: Obtain a test request, and determine test parameter information and a server to be tested according to the test request.

[0084] S420: Determine the service to be called corresponding to the server to be tested according to the test parameter information.

[0085] Optionally, the services to be called may include an SSH service to be called, a serial port service to be called, and an HTTP service to be called.

[0086] Among them, the SSH service to be called may be an SSH service waiting to be called. It is understandable that the SSH server of the OS of the server to be tested can be accessed through the SSH service to be called. The serial port service to be called may be a serial port service waiting to be called. It is understandable that the incubator equipment and data collector corresponding to the server to be tested can be accessed through the serial port service to be called. The HTTP service to be called may be an HTTP service waiting to be called. It is understandable that the BMC of the server to be tested can be accessed through the HTTP service to be called.

[0087] Optionally, determining the service to be called corresponding to the server to be tested based on the test parameter information may include: when the test parameter information includes pressure data information of the server to be tested, determining the SSH service to be called corresponding to the server to be tested; when the test parameter information includes temperature data information of the server to be tested, determining the serial port service to be called corresponding to the server to be tested; when the test parameter information includes status data information of the server to be tested, determining the HTTP service to be called corresponding to the server to be tested.

[0088] Among them, the pressure data information may be the information of the pressure data of the server to be tested during operation. It is understood that by setting the pressure data of the server to be tested, the server to be tested can be operated under the set pressure data, so that the operating state of the server to be tested under the pressure data can be tested. The temperature data information may be the information of the temperature data of the incubator device where the server to be tested is located. It is understood that the server to be tested can be placed in the incubator device, and by setting the temperature data of the incubator device, the server to be tested can be operated at the set temperature, so that the operating state of the server to be tested under the temperature data can be tested. The status data information may be the data of the operating state of the server to be tested, for example, it may be the power on / off state of the server to be tested, the heat dissipation strategy or the fan speed, etc., and the embodiment of the present invention does not limit this. It is understood that by setting the status data of the server to be tested, the server to be tested can be operated under the status data, so that the operating state of the server to be tested under the status data can be tested.

[0089] Specifically, after determining the test parameter information and the server to be tested according to the test request, the SSH service to be called, the serial port service to be called, and the HTTP service to be called corresponding to the server to be tested can be further determined according to the test parameter information. Specifically, when the test parameter information includes the pressure data information of the server to be tested, the SSH service to be called corresponding to the server to be tested can be determined. When the test parameter information includes the temperature data information of the server to be tested, the serial port service to be called corresponding to the server to be tested can be determined. When the test parameter information includes the status data information of the server to be tested, the HTTP service to be called corresponding to the server to be tested can be determined.

[0090] Optionally, when multiple SSH services are included, the SSH service to be called can be determined by a load balancing server. When multiple serial port services are included, the serial port service to be called can be determined by a load balancing server. When multiple HTTP services are included, the HTTP service to be called can be determined by a load balancing server.

[0091] The above technical solution proposes multiple implementation forms of the services to be called, as well as specific implementations corresponding to different implementation forms. By splitting and deploying different services on different computer devices, the test efficiency of the server to be tested can be further improved.

[0092] S430: Determine service detection parameter information corresponding to the service to be called according to the test parameter information.

[0093] Among them, the service detection parameter information may be the parameter information required for detecting the service to be called. Exemplarily, when detecting the SSH service to be called, the service detection parameter information may include parameter information such as the IP address or interface status of the Shell of the server OS. When detecting the serial port service to be called, the service detection parameter information may include parameter information of the incubator device, such as the IP address, port number or set temperature of the incubator device, and may also include parameter information of the data collector, such as the IP address, port number or monitoring channel of the data collector. When detecting the HTTP service to be called, the service detection parameter information may include parameter information such as the IP address of the BMC or the interface call status.

[0094] In the embodiment of the present invention, after determining the to-be-called service corresponding to the to-be-tested server according to the test parameter information, service detection parameter information corresponding to the to-be-called service may be further determined according to the test parameter information.

[0095] S440: Generate a service detection request corresponding to the service to be called according to the service detection parameter information.

[0096] S450: Perform service detection on the service to be called according to the service detection request.

[0097] The service detection request may be a request for detecting a service to be called.

[0098] In the embodiment of the present invention, after determining the service detection parameter information corresponding to the service to be called according to the test parameter information, a service detection request corresponding to the service to be called can be further generated according to the service detection parameter information, so as to perform service detection on the service to be called according to the service detection request. It can be understood that by performing service detection on the service to be called, it can be ensured that the service to be called and the server to be tested can normally exchange information.

[0099] Optionally, the check interface of the service to be called may be called to send a service detection request to the service to be called, so as to set a detection environment corresponding to the service detection of the service to be called according to the service detection request, thereby performing service detection on the service to be called in the detection environment.

[0100] S460: When the service detection result is that the service detection has passed, determine the service call request corresponding to the service to be called according to the test parameter information.

[0101] The service detection result may be a result of performing a service detection on the service to be called. It is understandable that the service detection result may be a result of passing the service detection or a result of failing the service detection.

[0102] In an embodiment of the present invention, after performing a service test on the service to be called according to the service test request, it can be further determined whether to execute the service call request corresponding to the service to be called according to the test parameter information according to the service test result, and when the service test result is that the service test is passed, the service call request corresponding to the service to be called is determined according to the test parameter information. It can be understood that when the service test result is that the service test is not passed, the test of the server to be called can be suspended, and the service test result can be fed back to the tester, so that the tester can view or adjust the service to be called or the server to be tested according to the service test result, so that the service to be called can pass the service test.

[0103] The above technical solution proposes a specific implementation method for performing service detection on the service to be called after determining the service to be called, so as to determine whether to generate a service call request based on the service detection result, thereby ensuring the test environment of the server to be tested and further improving the effectiveness of the test of the server to be tested.

[0104] S470: Determine the test environment parameter information of the server to be tested according to the service call request.

[0105] S480: Determine the test environment of the server to be tested according to the test environment parameter information.

[0106] S490: When a preset time interval is reached, obtain test data of the server to be tested in the test environment.

[0107] Among them, the test environment can be the environment in which the server to be tested is located during the test, for example, it can be a pressure environment, a temperature environment or a state environment, etc., and the embodiment of the present invention does not limit this. The test environment parameter information can be the parameter information of the test environment when the server to be tested is tested, for example, it can include temperature information, pressure information or server state information, etc., and the embodiment of the present invention does not limit this. The preset time interval can be a pre-set time interval, for example, it can be 5 seconds or 10 seconds, etc., and the embodiment of the present invention does not limit this. The test data can be the data obtained by testing the server to be tested in the test environment, for example, it can include server operation data or temperature data of various components of the server, etc., and the embodiment of the present invention does not limit this.

[0108] In an embodiment of the present invention, after determining the service call request corresponding to the service to be called based on the test parameter information, the test environment parameter information of the server to be tested can be further determined based on the service call request, so as to determine the test environment of the server to be tested based on the test environment parameter information, thereby obtaining the test data of the server to be tested in the test environment when the preset time interval is reached.

[0109] The above technical solution proposes a specific implementation method for testing the server to be tested according to the service call request, which can further ensure the effectiveness of the test of the server to be tested.

[0110] Optionally, obtaining test data of the server to be tested in the test environment may include: when the service to be called is an SSH service to be called, obtaining server log data of the server to be tested in the test environment; when the service to be called is a serial port service to be called, obtaining server temperature data of the server to be tested in the test environment; when the service to be called is an HTTP service to be called, obtaining server status data of the server to be tested in the test environment.

[0111] The server log data may be log data generated during the operation of the server to be tested. The server temperature data may be temperature data of each component of the server to be tested during the operation. The server status data may be status data of the server to be tested during the operation, such as server sensor data or in-place information of each component of the server to be tested, etc., which is not limited in the embodiment of the present invention.

[0112] Specifically, when the service to be called is the SSH service to be called, the service call request of the SSH service to be called can be determined according to the test parameter information, so as to obtain the server log data of the server to be tested in the test environment when the preset time interval arrives. It can be understood that after the service call request of the SSH service to be called is determined according to the test parameter information, the SSH service to be called can obtain the server pressure program or server pressure script file corresponding to the test parameter information in the SSH service end of the OS of the server to be tested according to the service call request, so as to execute the server pressure program or server pressure script file through the SSH to be called, so as to obtain the server log data of the server to be tested in the test environment when the preset time interval arrives.

[0113] Specifically, when the service to be called is a serial port service to be called, the service call request of the serial port service to be called can be determined according to the test parameter information, so as to obtain the server temperature data of the server to be tested in the test environment when the preset time interval arrives. It can be understood that after the service call request of the serial port service to be called is determined according to the test parameter information, the serial port service to be called can set the incubator device parameters and the data collector parameters according to the service call request, and start the incubator device and the data collector, so that the server temperature data of the server to be tested in the test environment can be obtained when the preset time interval arrives. Optionally, the data collector may include temperature sensors corresponding to the various components of the server to be tested, so the server temperature data can be obtained through the temperature sensors corresponding to the various components of the server to be tested. Optionally, the communication method between the serial port service to be called and the incubator device and the data collector can be Modbus-RTU, Modbus-TCP, VXI11 and other communication methods.

[0114] Specifically, when the service to be called is an HTTP service to be called, the service call request of the HTTP service to be called can be determined according to the test parameter information, so as to obtain the server status data of the server to be tested in the test environment when the preset time interval arrives. It can be understood that after the service call request of the HTTP service to be called is determined according to the test parameter information, the HTTP service to be called can be made to call the BMC interface according to the service call request, so as to change the state of the server to be tested through the HTTP service to be called, so that the server status data of the server to be tested in the test environment can be obtained when the preset time interval arrives.

[0115] The above technical solution proposes obtaining test data of different servers to be tested under different implementation forms of the services to be called, which can effectively improve the test efficiency of the servers to be tested.

[0116] Optionally, the run interface of the service to be called may be called to send the service call request to the service to be called, so that the server to be tested may be tested according to the service call request through the service to be called.

[0117] Optionally, when a preset time interval is reached, after obtaining the test data of the server to be tested in the test environment, it may also include: determining the message queue identifier corresponding to the test data, and determining the target message queue based on the message queue identifier to send the test data to the target message queue; performing data analysis on the test data in the target message queue to determine a test report based on the data analysis results.

[0118] Among them, the message queue identifier can be an identifier that can uniquely identify the message queue. It can be understood that the test data of different servers to be tested can correspond to different message queue identifiers. Exemplarily, the test data of server A to be tested can correspond to message queue identifier a, and the test data of server B to be tested can correspond to message queue identifier b. The target message queue can be a message queue whose message queue identifier corresponds to the test data. Exemplarily, assuming that the message queue identifier corresponding to the test data is identifier R, if the message queue identifier of the message queue is identifier R, then the message queue can be determined as the target message queue. Data analysis can be any data analysis of the test data, such as data maximum value analysis or data range analysis, etc., which is not limited by the embodiment of the present invention. The data analysis result can be the result obtained by performing data analysis on the test data. The test report can be a report on the test of the server to be tested.

[0119] Specifically, after obtaining the test data of the server to be tested in the test environment, the message queue identifier corresponding to the test data can be further determined to determine the target message queue according to the message queue identifier, and the test data is sent to the target message queue, thereby performing data analysis on the test data in the target message queue, and then determining a test report according to the data analysis results. Optionally, the message queue can be a point-to-point mode or a message subscription mode, etc., which is not limited in the embodiment of the present invention.

[0120] The above technical solution proposes a specific implementation method of sending test data to a message queue to obtain data in the message queue, which can avoid computer crashes and service avalanches caused by receiving a large amount of data at the same time, and improve the stability of server testing and the orderliness of data analysis.

[0121] Optionally, after the test report is determined according to the data analysis result, the test report may be stored in a file system or a database, so that the test report can be presented to the tester when a test report presentation request is received.

[0122] Optionally, when a preset time interval is reached, after obtaining the test data of the server to be tested in the test environment, it may also include: ending the test of the server to be tested when it is determined that the current test time reaches the preset test time, or the test end identifier in the test data is successfully obtained, or a test end request is received.

[0123] Among them, the current test time can be the time when the server test is currently being performed. The preset test time can be a pre-set test time. It is understandable that the preset test time can be set in the test request, or can be automatically set according to the test requirements, etc., and the embodiment of the present invention does not limit this. The test end identifier can be an identifier that can identify the end of the test. It is understandable that when the server pressure program or the server pressure script file is executed, the test end identifier can be generated in the server log data. The test end request can be a request to end the test.

[0124] Specifically, after obtaining the test data of the server to be tested in the test environment, it can be further determined whether the current test time reaches the preset test time, or whether the test end identifier in the test data can be obtained successfully, or whether a test end request is received, to determine whether to end the test of the server to be tested. Specifically, when the current test time reaches the preset test time, the test of the server to be tested can be ended. When the test end identifier in the test data can be obtained successfully, the test of the server to be tested can be ended. When the test end request is received, the test of the server to be tested can be ended. Optionally, the stop interface of the service to be called can be called to send the test end request to the service to be called.

[0125] The above technical solution proposes a variety of application scenarios for ending the test of the server to be tested, which can accurately end the test of the server to be tested and further improve the validity of the test data.

[0126] In a specific example of an embodiment of the present invention, Figure 5 FIG. 1 is a schematic diagram of the architecture of a server testing system provided by Embodiment 2 of the present invention. Figure 5 As shown, the server testing system may include a web (World Wide Web) client, a load balancing server, a web server cluster, a message middleware, a data analysis platform, an SSH server cluster, a serial port server cluster, an HTTP server cluster, a temperature chamber device, and a data collector.

[0127] Specifically, the load balancing server can be used to reasonably distribute the tester's test requests to different web servers to reduce the load of a single web server. The web server cluster can be used to provide users with a UI interface for remote access to the server to be tested to enable the tester to interact with the test transaction. The tester can access the server to be tested through the web client and send commands and test-related parameters to the web server to control the entire test process, so that the tester can efficiently and conveniently test the server to be tested.

[0128] Specifically, the underlying service layer may include an SSH service cluster, a serial port server cluster, and an HTTP server cluster. The SSH service cluster can access the pressurization program or script of the SSH server end of the server OS to be tested, and execute the pressurization program or script to obtain the log data during the test. The serial port server cluster can access the incubator device and the data collector, and set the temperature of the incubator device to obtain the temperature data during the test. The HTTP service cluster can access the BMC network API (Application Programming Interface) interface of the server under test, and change the state of the server under test, so as to obtain the sensor data (that is, the server status data) during the test.

[0129] Specifically, each underlying service can implement three interfaces, namely, the check interface, the run interface, and the stop interface. The check interface can be called in the check phase. The run interface can be called in the test phase. The stop interface can be called in the test completion phase.

[0130] Specifically, the Web server can access the service clusters in different underlying services through remote interface calls. Then, after executing the request sent by the web server, the service cluster in the underlying service sends the log data, sensor data or temperature data generated during the test to the message queue (also known as the message middleware) through the specified routing key, and then sends the test data to the data analysis center through the message queue. The data analysis center receives the data through the specified routing key and processes the data, and saves the processed data in the file system or database. When the data analysis center receives the data acquisition request from the web server, it returns the data corresponding to the data acquisition request to the web server, thereby displaying the data processing results and returning them to the tester.

[0131] The technical solution of this embodiment obtains a test request, determines test parameter information and a server to be tested according to the test request, determines the service to be called corresponding to the server to be tested and the service detection parameter information corresponding to the service to be called according to the test parameter information, so as to generate a service detection request corresponding to the service to be called according to the service detection parameter information, and when the service detection result is that the service detection is passed, determines the service call request corresponding to the service to be called according to the test parameter information, and tests the server to be tested according to the service call request; when the service detection result is that the service detection is failed, the test of the server to be called can be suspended, and the service detection result can be fed back, which solves the problem of low testing efficiency of the existing server testing method when processing a large number of server tests, and can test multiple servers to be tested at the same time, thereby improving the testing efficiency of a large number of servers to be tested.

[0132] Embodiment 3

[0133] In order to enable those skilled in the art to better understand the server testing method of this embodiment, a specific example is used below for illustration. Figure 6 is an example flow chart of a server testing method provided by Embodiment 3 of the present invention. Figure 6 As shown, the server testing method may specifically include:

[0134] (1) Web service test plan configuration. Specifically, the tester sends a test request through the client, which is sent to the web server through the load balancing server. The web server analyzes the test request and determines the server to be tested.

[0135] (2) Test and inspection. Specifically, calling a serial port service to check a thermostat device may include: determining a first target serial port service in a serial port service cluster, setting thermostat parameters (such as the IP address, port number, set temperature, etc. of the thermostat) through the first target serial port service, calling the check interface of the first target serial port service to perform a check operation, checking whether the connection between the first target serial port service and the thermostat device and the setting of the read temperature are valid, and saving the first target serial port service when both the connection and the setting operation are valid.

[0136] Specifically, calling the serial port service to check the data collector may include: determining a second target serial port service in the serial port service cluster, setting data collector parameters (such as the IP address, port number, listening channel, etc. of the data collector) through the second target serial port service, calling the check interface of the second target serial port service to perform a check operation, checking whether the connection between the second target serial port service and the data collector and the set channel are valid, and saving the second target serial port service when both the connection and setting operations are valid.

[0137] Specifically, calling the HTTP service to check the BMC connection may include: determining a target HTTP service in the HTTP service cluster, setting BMC parameters (such as the IP address of the BMC, interface call status, etc.) through the target HTTP service, calling the check interface of the target HTTP service to perform a check operation, checking whether the connection between the target HTTP service and the BMC and the calling interface are valid, and saving the target HTTP service when both the connection and setting operations are valid.

[0138] Specifically, calling the SSH service to check the SSH connection may include: determining a target SSH service in the SSH service cluster, setting OS parameters (such as the IP address of the OS's Shell, interface status, etc.) through the target SSH service, calling the check interface of the target SSH service to perform a check operation, checking whether the connection between the target SSH service and the OS and the sent command are valid, and saving the target SSH service when both the connection and setting operations are valid.

[0139] (3) After the test check is completed, call the run interface of each target service, send the test start instruction, and execute the test. Specifically, set the incubator parameters through the first target serial port service and start the incubator device. Set the data collector parameters through the second target serial port service and start the data collector. Call the BMC interface through the target HTTP service and set the status of the server to be tested. Connect to the OS of the server to be tested through the target SSH service and execute the server pressurization program or server pressurization script file.

[0140] (4) Loop to obtain test data. Specifically, first, during the test process, every 5 seconds, read the sensor data of the BMC through the target HTTP service, read the log information in the OS through the target SSH service, and read the temperature chamber and data collector information through the target serial port service. Secondly, after obtaining the test data, each target service can add a timestamp to the test data and send it to the data analysis center through the message queue. Thirdly, perform data processing and data persistence through the data analysis center. Then, the data analysis center can store the processed data in the file system or database, and the Web service can also obtain and display the test data by accessing the data center. Finally, determine whether the test is completed. If the test is not completed, continue to wait for the test process to complete.

[0141] (5) When the test is determined to be completed, the tester is notified and a test report is generated based on the test data processing results of the server to be tested and returned to the tester. Specifically, the test completion can be determined based on the server pressure program execution completion information in the log information, the test completion can also be determined based on the test time, or the test completion can be determined based on the stop test instruction received by the stop interface of each target service.

[0142] The above technical solution can split different functional modules in a test computer and deploy them to multiple test computers. Combined with load balancing, task scheduling and data traffic peak shaving and valley filling mechanisms, it can realize the testing of large quantities of servers at the same time, thereby facilitating large-scale server testing.

[0143] Embodiment 4

[0144] Figure 7is a schematic diagram of a server testing device provided by Embodiment 4 of the present invention, such as Figure 7 As shown, the device includes: a test request acquisition module 710, a to-be-called service determination module 720, a service call request determination module 730 and a server test module 740, wherein:

[0145] A test request acquisition module 710 is used to acquire a test request and determine test parameter information and a server to be tested according to the test request;

[0146] A to-be-called service determination module 720 is used to determine the to-be-called service corresponding to the to-be-tested server according to the test parameter information;

[0147] A service call request determination module 730 is used to determine the service call request corresponding to the to-be-called service according to the test parameter information;

[0148] The server testing module 740 is used to test the server to be tested according to the service call request.

[0149] The technical solution of this embodiment obtains a test request and determines the test parameter information and the server to be tested according to the test request, so as to determine the service to be called and the service call request corresponding to the server to be tested according to the test parameter information, thereby testing the server to be tested according to the service call request, which solves the problem of low testing efficiency of existing server testing methods when processing a large number of server tests, and can test multiple servers to be tested at the same time, thereby improving the testing efficiency of a large number of servers to be tested.

[0150] Optionally, the service call request determination module 730 can be specifically used to: determine the service detection parameter information corresponding to the service to be called based on the test parameter information; generate a service detection request corresponding to the service to be called based on the service detection parameter information; perform service detection on the service to be called based on the service detection request; and determine whether to execute the service call request corresponding to the service to be called based on the test parameter information based on the service detection result.

[0151] Optionally, the services to be called may include an SSH service to be called, a serial port service to be called, and an HTTP service to be called; accordingly, the service to be called determination module 720 may be specifically used to: when the test parameter information includes pressure data information of the server to be tested, determine the SSH service to be called corresponding to the server to be tested; when the test parameter information includes temperature data information of the server to be tested, determine the serial port service to be called corresponding to the server to be tested; when the test parameter information includes status data information of the server to be tested, determine the HTTP service to be called corresponding to the server to be tested.

[0152] Optionally, the server test module 740 can be specifically used to: determine the test environment parameter information of the server to be tested according to the service call request; determine the test environment of the server to be tested according to the test environment parameter information; and obtain test data of the server to be tested in the test environment when a preset time interval is reached.

[0153] Optionally, the server testing module 740 can be further used to: when the service to be called is an SSH service to be called, obtain server log data of the server to be tested in the test environment; when the service to be called is a serial port service to be called, obtain server temperature data of the server to be tested in the test environment; when the service to be called is an HTTP service to be called, obtain server status data of the server to be tested in the test environment.

[0154] Optionally, the server test module 740 can also be specifically used to: determine the message queue identifier corresponding to the test data, and determine the target message queue based on the message queue identifier to send the test data to the target message queue; perform data analysis on the test data in the target message queue to determine a test report based on the data analysis results.

[0155] Optionally, the server test module 740 may also be specifically used to end the test of the server to be tested when it is determined that the current test time reaches the preset test time, or the test end identifier in the test data is successfully obtained, or a test end request is received.

[0156] The server testing device provided in the embodiment of the present invention can execute the server testing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0157] Embodiment 5

[0158] Figure 8 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0159] like Figure 8As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0160] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0161] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the server testing method.

[0162] In some embodiments, the server test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the server test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the server test method in any other appropriate manner (e.g., by means of firmware).

[0163] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0164] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0165] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0166] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0167] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0168] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0169] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0170] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A server testing method, characterized in that: include: Obtaining a test request, and determining test parameter information and a server to be tested according to the test request; Determine the service to be called corresponding to the server to be tested according to the test parameter information; Determine, according to the test parameter information, the service detection parameter information corresponding to the service to be called; Generate a service detection request corresponding to the service to be called according to the service detection parameter information, wherein the service detection parameter information is parameter information required for detecting the service to be called; According to the service detection request, a service detection is performed on the service to be called, wherein the service detection is used to ensure that the service to be called and the server to be tested can normally exchange information; When the service detection result is that the service detection is passed and the test parameter information includes the stress data information of the server to be tested, determining a service call request of the SSH service to be called corresponding to the server to be tested; When the service detection result is that the service detection is passed and the test parameter information includes the temperature data information of the server to be tested, determining a service call request of the serial port service to be called corresponding to the server to be tested; When the service detection result is that the service detection is passed and the test parameter information includes the status data information of the server to be tested, determining a service call request of the HTTP service to be called corresponding to the server to be tested; According to the service call request, the server to be tested is tested to obtain test data obtained by testing the server to be tested in a test environment; Determine a message queue identifier corresponding to the test data, and determine a target message queue according to the message queue identifier, so as to send the test data to the target message queue; Data analysis is performed on the test data in the target message queue to determine a test report according to the data analysis result.

2. The method according to claim 1, characterized in that The services to be called include SSH services to be called, serial port services to be called, and HTTP services to be called; The step of determining the service to be called corresponding to the server to be tested according to the test parameter information includes: In a case where the test parameter information includes the stress data information of the server to be tested, determining the SSH service to be called corresponding to the server to be tested; In a case where the test parameter information includes temperature data information of the server to be tested, determining a serial port service to be called corresponding to the server to be tested; In a case where the test parameter information includes the status data information of the server to be tested, the HTTP service to be called corresponding to the server to be tested is determined.

3. The method according to claim 2, characterized in that The step of testing the server to be tested according to the service call request includes: Determine the test environment parameter information of the server to be tested according to the service call request; Determine the test environment of the server to be tested according to the test environment parameter information; When the preset time interval is reached, test data of the server to be tested in the test environment is obtained.

4. The method according to claim 3, characterized in that The obtaining of test data of the server to be tested in the test environment includes: In a case where the service to be called is the SSH service to be called, obtaining server log data of the server to be tested in the test environment; In a case where the service to be called is the serial port service to be called, obtaining server temperature data of the server to be tested in the test environment; In a case where the service to be called is the HTTP service to be called, server status data of the server to be tested in the test environment is obtained.

5. The method according to claim 3, characterized in that: After acquiring the test data of the server to be tested in the test environment when the preset time interval is reached, the method further includes: When it is determined that the current test time reaches the preset test time, or the test end identifier in the test data is successfully obtained, or a test end request is received, the test on the server to be tested is ended.

6. A server testing device, characterized in that: include: A test request acquisition module is used to acquire a test request and determine test parameter information and a server to be tested according to the test request; A to-be-called service determination module, used to determine the to-be-called service corresponding to the to-be-tested server according to the test parameter information; The service call request determination module is specifically used to: Determine, according to the test parameter information, the service detection parameter information corresponding to the service to be called; Generate a service detection request corresponding to the service to be called according to the service detection parameter information, wherein the service detection parameter information is parameter information required for detecting the service to be called; According to the service detection request, a service detection is performed on the service to be called, wherein the service detection is used to ensure that the service to be called and the server to be tested can normally exchange information; When the service detection result is that the service detection is passed and the test parameter information includes the stress data information of the server to be tested, determining a service call request of the SSH service to be called corresponding to the server to be tested; When the service detection result is that the service detection is passed and the test parameter information includes the temperature data information of the server to be tested, determining a service call request of the serial port service to be called corresponding to the server to be tested; When the service detection result is that the service detection is passed and the test parameter information includes the status data information of the server to be tested, determining a service call request of the HTTP service to be called corresponding to the server to be tested; A server testing module, specifically used to test the server to be tested according to the service call request, and obtain test data obtained by testing the server to be tested in a test environment; Determine a message queue identifier corresponding to the test data, and determine a target message queue according to the message queue identifier, so as to send the test data to the target message queue; Data analysis is performed on the test data in the target message queue to determine a test report according to the data analysis result.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the server testing method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the server testing method according to any one of claims 1 to 5 when executed.

Citation Information

Patent Citations

  • Server cooling test method and system

    CN107526662A

  • Design method of server heat dissipation automated testing

    CN107608839A

  • Automatic heat dissipation testing method and system for server

    CN110633184A

  • Heat dissipation test method and device, user terminal and storage medium

    CN113204473A

  • Server high low temperature reliability automatic testing system and method

    CN108121626A