A server testing method, device, electronic device and readable storage medium

By integrating LCD screens and alarm lights into USB disk hardware devices, performance testing between servers is achieved, and the problems of high resource requirements and untimely abnormal discovery in the existing technology are solved, which improves the testing efficiency and timeliness of fault discovery.

CN115576757BActive Publication Date: 2025-08-12INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211293626.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-21
Publication Date
2025-08-12
Estimated Expiration
2042-10-21

AI Technical Summary

Technical Problem

The performance test of existing server network card requires inserting the monitor and mouse and keyboard on two machines respectively. After the test is completed, the logs are analyzed manually, resulting in a lot of resource requirements and the performance test data cannot be discovered in time.

Method used

It uses USB drive hardware equipment, built-in LCD display and alarm lights, and uses built-in performance testing tools to realize test environment preparation and role determination, generate test instructions for network testing, and light up the alarm light when performance test data is abnormal.

Benefits of technology

Reduce dependence on resources such as monitors, can promptly detect abnormal performance test data and notify test and R&D personnel, improving the testing efficiency and timeliness of fault detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115576757B_ABST
    Figure CN115576757B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a server testing method, device, electronic device and readable storage medium, the method comprising: when the U disk hardware device is inserted into the server, activating the LCD screen to display a built-in application interface; in response to a test environment preparation instruction for the LCD screen, using the installation program to install the preset performance test tool in the server to complete the test environment preparation; in response to a test role selection instruction for the LCD screen, determining the test role played by the server during the performance test. By adopting the above method, an LCD screen and an alarm light are integrated into the U disk hardware device, and based on the characteristic that the U disk hardware device itself has storage space, a preset performance test tool installation program is built into the U disk hardware device, and a built-in simple program responds to input instructions for the LCD screen, and timely gives an alarm when an abnormality is found in the performance test data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] A network interface controller (NIC), also known as a network interface controller, network adapter, network interface card, or LAN adapter, is a piece of computer hardware designed to allow computers to communicate on a computer network.

[0003] More and more network cards are used in servers, and performance testing of network cards is an indispensable part. Currently, performance testing of network cards in servers generally uses two machines for testing, one of which is the server to be tested and the other is the auxiliary test server. The server to be tested acts as the client (client) and the paired server acts as the server (server). Test instructions need to be executed on both machines separately, and data packets need to be transferred from one server to another server for testing.

[0004] Currently, performance testing requires inserting two VGA (Video Graphics Array) monitors and a mouse and keyboard into two machines to execute test instructions. After the test instructions are fully executed, manual log analysis is performed to check whether all performance test data in the log meets the requirements. Summary of the Invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a server testing method and a corresponding server testing device, an electronic device, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0006] An embodiment of the present invention discloses a server testing method, which is applied to a USB flash drive hardware device, wherein the USB flash drive hardware device includes a liquid crystal display and a warning light, and the USB flash drive hardware device has a built-in installation program for installing a preset performance testing tool. The method includes:

[0007] When the USB hardware device is inserted into the server, the LCD screen is activated to display the built-in application interface;

[0008] In response to a test environment preparation instruction for the liquid crystal display, using the installation program to install the preset performance testing tool in the server to complete the test environment preparation;

[0009] In response to a test role selection instruction for the liquid crystal display, determining a test role played by the server during a performance test;

[0010] If the test role played by the server is a server to be tested, a corresponding test instruction is generated by the preset performance test tool, and the test instruction is used to perform a network test with the auxiliary test server to obtain corresponding performance test data;

[0011] If the test role played by the server is an auxiliary test server, the listening program in the preset performance test tool is called to periodically obtain the performance test data generated by the server to be tested, and when it is determined that the performance test data is abnormal, the alarm light is turned on.

[0012] Optionally, generating corresponding test instructions by the preset performance test tool includes:

[0013] In response to the test information input instruction for the LCD screen, test parameter information for performance testing is determined, and the corresponding test instruction is generated using the test parameter information; wherein the test parameter information includes the IP address of the auxiliary test server and the test duration.

[0014] Optionally, the performance test data includes the performance test data at a previous moment and the performance test data at a current moment, and lighting the warning light when determining that the performance test data is abnormal includes:

[0015] Comparing the performance test data at the current moment with the performance test data at the previous moment to determine incremental performance test data;

[0016] When it is determined that the incremental performance test data is abnormal, the warning light is turned on.

[0017] Optionally, lighting the warning light when determining that the incremental performance test data is abnormal includes:

[0018] Obtaining a test value of at least one performance indicator from the incremental performance test data;

[0019] If the test value of the performance indicator is less than the standard value of the performance indicator, it is determined that an abnormality occurs in the incremental performance test data, and the warning light is turned on in real time to issue an alarm.

[0020] Optionally, the method further includes:

[0021] If the test value of the performance indicator is not less than the standard value of the performance indicator, it is determined that no abnormality occurs in the incremental performance test data, and the performance test data at the next moment is continuously acquired.

[0022] Optionally, the liquid crystal display screen displays a first control for preparing a test environment, and in response to a test environment preparation instruction on the liquid crystal display screen, using the installation program to install the preset performance testing tool in the server to complete the test environment preparation includes:

[0023] In response to a touch operation on the first control, the preset performance testing tool is installed in the server using the installation program.

[0024] Optionally, the liquid crystal display screen displays a second control for indicating that the test role played is a server to be tested, and a third control for indicating that the test role played is an auxiliary test server. Determining the test role played by the server during the performance test in response to a test role selection instruction on the liquid crystal display screen includes:

[0025] In response to a touch operation on the second control, determining that the test role played by the server is the server to be tested; or,

[0026] In response to a touch operation on the third control, it is determined that the test role played by the server is the auxiliary test server.

[0027] An embodiment of the present invention further discloses a server testing device, which is applied to a USB flash drive hardware device. The USB flash drive hardware device includes a liquid crystal display and a warning light. The USB flash drive hardware device has a built-in installation program for installing a preset performance testing tool. The device includes:

[0028] An activation module, configured to activate the LCD screen to display a built-in application interface when the USB hardware device is inserted into the server;

[0029] An installation module, configured to, in response to a test environment preparation instruction for the liquid crystal display, install the preset performance test tool in the server using the installation program to complete test environment preparation;

[0030] a determination module, configured to determine the test role played by the server during the performance test in response to a test role selection instruction for the liquid crystal display;

[0031] A generation and network testing module, configured to generate corresponding test instructions through the preset performance testing tool if the test role played by the server is a server to be tested, and to perform network testing with the auxiliary test server using the test instructions to obtain corresponding performance test data;

[0032] The acquisition and lighting module is used to call the listening program in the preset performance testing tool to periodically obtain the performance test data generated by the server to be tested if the test role played by the server is an auxiliary test server, and to light the alarm light when it is determined that the performance test data is abnormal.

[0033] Optionally, the generation and network testing module includes:

[0034] The determination and generation submodule is used to determine the test parameter information for performance testing in response to the test information input instruction for the LCD display, and use the test parameter information to generate the corresponding test instruction; wherein the test parameter information includes the IP address of the auxiliary test server and the test duration.

[0035] Optionally, the performance test data includes the performance test data at a previous moment and the performance test data at a current moment, and the acquisition and lighting module includes:

[0036] A comparison submodule, configured to compare the performance test data at a current moment with the performance test data at a previous moment to determine incremental performance test data;

[0037] The lighting submodule is used to light the warning light when it is determined that the incremental performance test data is abnormal.

[0038] Optionally, the lighting submodule includes:

[0039] an acquiring unit, configured to acquire a test value of at least one performance indicator from the incremental performance test data;

[0040] The determination and lighting unit is used to determine that an abnormality has occurred in the incremental performance test data if the test value of the performance indicator is less than the standard value of the performance indicator, and to light up the warning light in real time to issue an alarm.

[0041] Optionally, the acquisition and lighting module further includes:

[0042] The determination and acquisition submodule is used to determine that no abnormality has occurred in the incremental performance test data if the test value of the performance indicator is not less than the standard value of the performance indicator, and continue to acquire the performance test data at the next moment.

[0043] Optionally, the liquid crystal display screen displays a first control for preparing a test environment, and the installation module includes:

[0044] An installation submodule is configured to install the preset performance testing tool in the server using the installation program in response to a touch operation on the first control.

[0045] Optionally, the liquid crystal display screen displays a second control for indicating that the test role played is a server to be tested, and a third control for indicating that the test role played is an auxiliary test server, and the determining module includes:

[0046] A first determining submodule is configured to determine, in response to a touch operation on the second control, that the test role played by the server is the server to be tested; or

[0047] The second determining submodule is configured to determine, in response to a touch operation on the third control, that the test role played by the server is the auxiliary test server.

[0048] An embodiment of the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the server testing method described above.

[0049] An embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the server testing method described above are implemented.

[0050] The embodiments of the present invention include the following advantages:

[0051] In an embodiment of the present invention, the U disk hardware device includes a liquid crystal display and an alarm light. The U disk hardware device has a built-in installation program for installing a preset performance testing tool. When the U disk hardware device is inserted into the server, the LCD screen can be activated to display the built-in application interface. In response to the test environment preparation instruction for the LCD screen, the installation program can be used to install the preset performance testing tool in the server to complete the test environment preparation. In response to the test role selection instruction for the LCD screen, the test role played by the server in the performance testing process can be determined. If the test role played by the server is the server to be tested, the corresponding test instruction can be generated by the preset performance testing tool, and the test instruction can be used to perform network testing with the auxiliary test server to obtain corresponding performance test data; if the test role played by the server is an auxiliary test server, the listening program in the preset performance testing tool can be called to periodically obtain the performance test data generated by the server to be tested, and when it is determined that the performance test data is abnormal, the alarm light in the server is turned on. By adopting the above method, an LCD display and an alarm light are integrated into the U disk hardware device. Based on the characteristic that the U disk hardware device itself has storage space, an installation program of a preset performance test tool is built into the U disk hardware device, and a built-in simple program responds to input instructions for the LCD display. In the embodiment of the present invention, the U disk hardware device is used to implement performance testing between servers without the need to insert a VGA display and a mouse and keyboard into two machines respectively for executing test instructions. This can effectively reduce dependence on the display, etc., and can give a timely alarm when abnormalities are found in the performance test data during the performance test, so that faults can be discovered in time and the test and R&D personnel can be notified. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 This is a flow chart of the steps of a server testing method provided by an embodiment of the present invention;

[0053] Figure 2 This is a flowchart of another server testing method provided by an embodiment of the present invention;

[0054] Figure 3 This is a schematic diagram of a processing process of a server testing method according to an embodiment of the present invention;

[0055] Figure 4 This is a structural block diagram of a server testing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the embodiments described are only some embodiments of the present invention, rather than all embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention are within the scope of protection of the present invention.

[0057] Currently, performance testing typically involves two machines working in pairs (one as the server and one as the client, with the server under test acting as the client and the other as the server). Two VGA (Video Graphics Array) monitors, a mouse and keyboard, must be plugged into each machine to execute the test instructions. After the test instructions are fully executed, the logs must be manually analyzed to verify that all performance test data meets the requirements.

[0058] When there are many models that need to be performance tested, there will be a greater demand for monitors, mice and keyboards, which means there will be a greater demand for space and power plugs. In addition, when the performance test data is obviously lower than the index during the performance test, it is impossible to notify the testing and R&D personnel in time.

[0059] In order to solve the above problems, the present invention intends to provide a server testing method and a corresponding server testing device, an electronic device, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0060] One of the core concepts of an embodiment of the present invention is that the U disk hardware device includes an LCD display and an alarm light. The U disk hardware device has a built-in installation program for installing a preset performance testing tool. When the U disk hardware device is inserted into the server, the LCD display can be activated to display the built-in application interface. In response to the test environment preparation instruction for the LCD display, the installation program can be used to install the preset performance testing tool in the server to complete the test environment preparation. In response to the test role selection instruction for the LCD display, the test role played by the server in the performance testing process can be determined. If the test role played by the server is the server to be tested, the corresponding test instruction can be generated by the preset performance testing tool, and the test instruction can be used to perform network testing with the auxiliary test server to obtain corresponding performance test data; if the test role played by the server is an auxiliary test server, the listening program in the preset performance testing tool can be called to periodically obtain the performance test data generated by the server to be tested, and when it is determined that the performance test data is abnormal, the alarm light in the server is turned on. By adopting the above method, an LCD display and an alarm light are integrated into the U disk hardware device. Based on the characteristic that the U disk hardware device itself has storage space, an installation program of a preset performance test tool is built into the U disk hardware device, and a built-in simple program responds to input instructions for the LCD display. In the embodiment of the present invention, the U disk hardware device is used to implement performance testing between servers without the need to insert a VGA display and a mouse and keyboard into two machines respectively for executing test instructions. This can effectively reduce dependence on the display, etc., and can give a timely alarm when abnormalities are found in the performance test data during the performance test, so that faults can be discovered in time and the test and R&D personnel can be notified.

[0061] Reference Figure 1 , shows a flowchart of the steps of a server testing method provided by an embodiment of the present invention, which is applied to a USB flash drive hardware device. The USB flash drive hardware device includes an LCD display and an alarm light. The USB flash drive hardware device has a built-in installation program for installing a preset performance testing tool. Specifically, the method may include the following steps:

[0062] Step 101: When the USB flash drive hardware device is inserted into the server, the liquid crystal display is activated to display the built-in application interface.

[0063] The server testing method provided in this embodiment can be applied to USB flash disk hardware devices. USB flash disks are a type of flash memory and are sometimes also called flash drives. Unlike hard drives, USB flash drives require no physical drive and are plug-and-play. Their storage capacity far exceeds that of floppy disks, making them extremely portable.

[0064] The U disk hardware device provided in the embodiment of the present invention is integrated with an LCD display and an alarm light, and the user can input instructions to the U disk hardware device through the LCD display; when the performance test data is found to be abnormal during the performance test, the abnormal situation can be promptly fed back to the tester by lighting the alarm light.

[0065] The U disk hardware device has a built-in installation program for installing preset performance testing tools. In addition, the U disk hardware device also has a built-in simple program, which is used to respond to input instructions of the LCD screen. The input instructions for the LCD screen may include test start instructions, test end instructions, test environment preparation instructions, test role selection instructions, and test information input instructions, etc.

[0066] The default performance testing tool can be Netperf. Netperf is a network performance measurement tool that primarily targets transmissions based on TCP (Transmission Control Protocol) or UDP (User Datagram Protocol). Depending on the application, Netperf can perform network performance testing in different modes, namely bulk data transfer mode and request / response mode.

[0067] In an embodiment of the present invention, when a USB flash drive hardware device is inserted into a server, an LCD display and a built-in application interface can be activated, and the built-in application interface can be displayed on the LCD display. As an example, when the USB flash drive hardware device is inserted into a USB port on a server, the USB flash drive hardware device automatically activates the LCD display and the built-in application interface after powering on. The server can be a server under test acting as a client or an auxiliary test server acting as a server.

[0068] Step 102 : In response to the test environment preparation instruction for the liquid crystal display, the preset performance test tool is installed in the server using the installation program to complete the test environment preparation.

[0069] The user can enter test environment preparation instructions on the LCD screen, respond to the test environment preparation instructions, and use the built-in installation program of the USB flash drive hardware device to install the preset performance testing tool on the server, thereby completing the server test environment preparation. It should be noted that the preset performance testing tool needs to be installed on both the server under test and the auxiliary test server. In other words, the USB flash drive hardware device needs to be inserted into both the server under test and the auxiliary test server.

[0070] Step 103 : In response to the test role selection instruction for the liquid crystal display, determine the test role played by the server during the performance test.

[0071] The user can input a test role selection instruction on the LCD screen and respond to the test role selection instruction to determine the test role played by the server during the performance test, where the test roles include the server to be tested and the auxiliary test server.

[0072] Step 104: If the test role played by the server is a server to be tested, a corresponding test instruction is generated by the preset performance test tool, and the test instruction is used to perform a network test with the auxiliary test server to obtain corresponding performance test data.

[0073] If the server plays the test role of a server to be tested, corresponding test instructions can be generated through a preset performance test tool, and the test instructions can be used to perform network testing with an auxiliary test server to obtain corresponding performance test data.

[0074] Step 105: If the test role played by the server is an auxiliary test server, the monitoring program in the preset performance test tool is called to periodically obtain the performance test data generated by the server to be tested, and when it is determined that the performance test data is abnormal, the alarm light is turned on.

[0075] If the server is acting as an auxiliary test server, it can invoke a monitoring program in a pre-set performance test tool to periodically obtain performance test data generated by the server under test and, if it determines that the performance test data is abnormal, illuminate an alarm light. It will be understood that in this embodiment of the present invention, the USB flash drive hardware device inserted into the auxiliary test server is responsible for performing the alarm operation.

[0076] A server testing method provided by an embodiment of the present invention requires inserting a USB flash drive hardware device into both the server to be tested and the auxiliary testing server.

[0077] In summary, in an embodiment of the present invention, an LCD display and an alarm light are integrated into a U disk hardware device, and based on the characteristic that the U disk hardware device itself has storage space, an installation program for a preset performance testing tool is built into the U disk hardware device, and a built-in simple program responds to input instructions to the LCD display. The embodiment of the present invention utilizes the U disk hardware device to implement performance testing between servers without the need to insert a VGA display and a mouse and keyboard into two machines respectively for executing test instructions, which can effectively reduce dependence on displays, etc., and can give timely alarms when abnormalities are found in performance test data during performance testing, so that faults can be discovered in time and notified to testing and R&D personnel.

[0078] Reference Figure 2 , shows a flowchart of the steps of another server testing method provided by an embodiment of the present invention, which is applied to a USB flash drive hardware device. The USB flash drive hardware device includes an LCD display and an alarm light. The USB flash drive hardware device has a built-in installation program for installing a preset performance testing tool. Specifically, the method may include the following steps:

[0079] Step 201: When the USB flash drive hardware device is inserted into the server, the liquid crystal display is activated to display the built-in application interface.

[0080] In an embodiment of the present invention, when a USB flash drive hardware device is inserted into a server, an LCD display and a built-in application interface can be activated, and the built-in application interface can be displayed on the LCD display. As an example, when the USB flash drive hardware device is inserted into a USB port on a server, the USB flash drive hardware device automatically activates the LCD display and the built-in application interface after powering on. The server can be a server under test acting as a client or an auxiliary test server acting as a server.

[0081] Step 202 : In response to the test environment preparation instruction for the liquid crystal display, the preset performance test tool is installed in the server using the installation program to complete the test environment preparation.

[0082] The user can enter the test environment preparation instruction on the LCD screen, respond to the test environment preparation instruction, and use the built-in installation program of the USB flash drive hardware device to install the preset performance test tool into the server, thereby completing the test environment preparation of the server.

[0083] In an optional embodiment of the present invention, a liquid crystal display screen displays a first control for preparing a test environment. Step 202, in response to a test environment preparation instruction for the liquid crystal display screen, uses the installation program to install the preset performance testing tool in the server to complete the test environment preparation. Specifically, the following sub-steps may be included:

[0084] Sub-step S11 , in response to a touch operation on the first control, installing the preset performance testing tool in the server using the installation program.

[0085] The user can touch a first control displayed on the LCD screen and, in response to the touch, use the built-in installer on the USB flash drive to install a preset performance testing tool on the server. For example, the first control can be an "Environment Preparation" control. Touching and clicking the "Environment Preparation" control triggers the installation of the Netperf tool on the server.

[0086] Step 203 : In response to the test role selection instruction for the liquid crystal display, determine the test role played by the server during the performance test.

[0087] The user can input a test role selection instruction on the LCD screen and respond to the test role selection instruction to determine the test role played by the server during the performance test.

[0088] In an optional embodiment of the present invention, a liquid crystal display screen displays a second control for indicating that the test role played is the server to be tested, and a third control for indicating that the test role played is the auxiliary test server. Step 203 determines the test role played by the server during the performance test in response to the test role selection instruction on the liquid crystal display screen, and specifically may include the following sub-steps:

[0089] Sub-step S21, in response to a touch operation on the second control, determining that the test role played by the server is the server to be tested; or,

[0090] Sub-step S22: In response to the touch operation on the third control, determining that the test role played by the server is the auxiliary test server.

[0091] The user can touch the second control displayed on the LCD screen and respond to the touch operation to determine that the test role played by the server is the server under test. As an example, the second control can be a "client" control. Touching and clicking the "client" control can determine that the corresponding server is the server under test.

[0092] The user can touch a third control displayed on the LCD screen and respond to the touch operation to determine that the test role played by the server is an auxiliary test server. As an example, the third control can be a "server" control. Touching and clicking the "server" control can determine that the corresponding server is an auxiliary test server.

[0093] It should be noted that there may be a variety of designs for the control styles of the first control, the second control, and the third control, and the embodiment of the present invention does not impose any specific limitation on this.

[0094] Step 204: If the test role played by the server is the server to be tested, then in response to the test information input instruction for the LCD display, the test parameter information for the performance test is determined, and the test parameter information is used to generate the corresponding test instruction, and the test instruction is used to perform network testing with the auxiliary test server to obtain corresponding performance test data.

[0095] If the server plays the test role of a server to be tested, it can respond to the test information input instructions for the LCD display, determine the test parameter information for performance testing, and use the test parameter information to generate corresponding test instructions, use the test instructions to perform network testing with the auxiliary test server, and obtain corresponding performance test data.

[0096] The user can enter the test parameter information for the performance test in the built-in application interface of the LCD screen, where the test parameter information includes the IP address of the auxiliary test server and the test duration.

[0097] As an example, enter the built-in application interface from the LCD screen, click the "client" control, and enter the IP address of the auxiliary test server as the server, test duration and other parameters. Click the "Start" control to start the performance test. At this time, you need to use the test parameter information to generate the corresponding test instructions. Specifically, the test instructions can include netperf -H *.*.*.* -l <time>-- -m 64k>netperf_result_port_number.txt, this command is used to initiate a network test to the auxiliary test server on the server side, where *.*.*.* refers to the IP address of the auxiliary test server, the parameter after -l is the test duration (in seconds), and the parameter after -m is the size of the test packet sent by the local system (in bytes). The netperf_result_port_number.txt file generated after the execution contains the performance test data during the test (mainly the Throughput value, Throughput (throughput) indicates the amount of data that can be processed per second).

[0098] Step 205: If the test role played by the server is an auxiliary test server, the monitoring program in the preset performance test tool is called to periodically obtain the performance test data generated by the server to be tested, and when it is determined that the performance test data is abnormal, the alarm light is turned on.

[0099] If the server plays the role of an auxiliary test server, the listening program in the preset performance test tool can be called to periodically obtain the performance test data generated by the server to be tested, and if it is determined that the performance test data is abnormal, the alarm light will be turned on.

[0100] In an optional embodiment of the present invention, the performance test data includes performance test data at a previous moment and performance test data at a current moment. Step 205, when determining that the performance test data is abnormal, turns on the warning light, which may specifically include the following sub-steps:

[0101] Sub-step S31 : comparing the performance test data at the current moment with the performance test data at the previous moment to determine incremental performance test data.

[0102] Sub-step S32: When it is determined that the incremental performance test data is abnormal, the warning light is turned on.

[0103] The performance test data includes the performance test data detected at the previous moment and the performance test data detected at the current moment. By comparing, the incremental performance test data between the two moments can be determined, and anomaly judgment can be made based on the incremental performance test data.

[0104] In an optional embodiment of the present invention, sub-step S32, when determining that the incremental performance test data is abnormal, turns on the warning light, which may specifically include the following sub-steps:

[0105] A test value of at least one performance indicator is obtained from the incremental performance test data; if the test value of the performance indicator is less than the standard value of the performance indicator, it is determined that an abnormality has occurred in the incremental performance test data, and the alarm light is turned on in real time to issue an alarm.

[0106] In an embodiment of the present invention, a test value of at least one performance indicator can be obtained from the incremental performance test data. If the test value of the performance indicator is less than the standard value of the performance indicator, it can be determined that an abnormality has occurred in the incremental performance test data, and the alarm light of the U disk hardware device can be immediately turned on. It can be understood that in an embodiment of the present invention, an alarm is issued in real time for abnormal situations.

[0107] In an optional embodiment of the present invention, the following sub-steps may be further performed:

[0108] If the test value of the performance indicator is not less than the standard value of the performance indicator, it is determined that no abnormality occurs in the incremental performance test data, and the performance test data at the next moment is continuously acquired.

[0109] If the test value of the performance indicator is not less than the standard value of the performance indicator, it can be determined that there is no abnormality in the incremental performance test data, and the performance test data at the next moment can be obtained and it can be determined again whether there is an abnormality in the incremental performance test data at the next moment.

[0110] In order to enable those skilled in the art to better understand the embodiments of the present invention, an example is given below to illustrate:

[0111] Reference Figure 3 FIG. 1 is a schematic diagram of a processing process of a server testing method according to an embodiment of the present invention. The specific process is as follows:

[0112] 1. Insert the USB flash drive into the server to be tested, activate the LCD screen to display the built-in application interface, and install the Netperf tool to the server to be tested to complete the test environment preparation. Click the "client" control and enter the IP address of the auxiliary test server on the interconnected server side, test duration and other parameters.

[0113] 2. Click the "Start" button to start the performance test. At this time, you need to use the test parameter information to generate the corresponding test instructions.

[0114] 3. Execute the test instructions, use the test instructions and the auxiliary test server to perform network testing, and obtain the corresponding performance test data.

[0115] 4. After obtaining the performance test data of the previous moment, wait 2 minutes and continue to obtain the performance test data of the current moment.

[0116] 5. Determine whether the test value corresponding to the throughput indicator of the performance test data is lower than the standard value.

[0117] 6. If the test value corresponding to the throughput indicator of the performance test data is lower than the standard value, the alarm light can be turned on to warn and determine whether the "End" button is pressed. If the "End" button is pressed, the test ends. Otherwise, continue to wait for 2 minutes, obtain the performance test data at the next moment, and return to step 5.

[0118] 7. If the test value corresponding to the throughput indicator of the performance test data is not lower than the standard value, determine whether the test duration has been reached. If the test duration has been reached, the test ends. Otherwise, continue to wait for 2 minutes, obtain the performance test data at the next moment, and return to step 5.

[0119] In summary, in an embodiment of the present invention, an LCD display and an alarm light are integrated into a U disk hardware device, and based on the characteristic that the U disk hardware device itself has storage space, an installation program for a preset performance testing tool is built into the U disk hardware device, and a built-in simple program responds to input instructions to the LCD display. The embodiment of the present invention utilizes the U disk hardware device to implement performance testing between servers without the need to insert a VGA display and a mouse and keyboard into two machines respectively for executing test instructions, which can effectively reduce dependence on displays, etc., and can give timely alarms when abnormalities are found in performance test data during performance testing, so that faults can be discovered in time and notified to testing and R&D personnel.

[0120] The present invention realizes simple touch input and display functions by integrating a liquid crystal display screen in a U disk hardware device, and realizes monitoring and alarm of performance test data during the performance test process by integrating a warning light. It mainly involves the following functions: the liquid crystal display screen is combined with the built-in program in the U disk hardware device to realize simple input, such as entering parameters such as the IP address of the interconnected server; the liquid crystal display screen is combined with the built-in program and storage space in the U disk hardware device to install the Netperf tool to the server; the liquid crystal display screen is combined with the built-in program in the U disk hardware device to generate test start instructions and test end instructions through the "Start" button and the "End" button. The "Start" button realizes the integration of the test instructions. After clicking, the test instructions can be started. The "End" button realizes the stop execution of the test instructions. The warning light is integrated above the liquid crystal display screen to realize monitoring and alarm of the performance test data during the performance test. According to whether the warning light is on, it can be judged whether there is any abnormal performance data during the test process.

[0121] By integrating an LCD display and warning lights into the USB flash drive hardware device, this invention reduces reliance on conventional monitors. The device is compact, requires no separate power supply, and is plug-and-play. It can monitor performance indicators during testing and issue warnings when problems arise, reducing test time, increasing the timeliness of bug discovery and debugging, and improving test efficiency. The invention can also further design warning lights of different levels, allowing testers to select the next action based on the warning level.

[0122] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0123] Reference Figure 4 , shows a structural block diagram of a server testing device provided by an embodiment of the present invention, which is applied to a USB flash drive hardware device. The USB flash drive hardware device includes an LCD display and an alarm light. The USB flash drive hardware device has a built-in installation program for installing a preset performance testing tool, which may specifically include the following modules:

[0124] An activation module 401 is configured to activate the LCD screen to display a built-in application interface when the USB flash drive hardware device is inserted into the server;

[0125] An installation module 402 is configured to, in response to a test environment preparation instruction for the LCD screen, install the preset performance test tool in the server using the installation program to complete test environment preparation;

[0126] A determination module 403 is configured to determine the test role played by the server during the performance test in response to a test role selection instruction for the liquid crystal display screen;

[0127] A generation and network testing module 404 is configured to generate corresponding test instructions using the preset performance testing tool if the server plays the testing role of a server to be tested, and perform network testing with the auxiliary test server using the test instructions to obtain corresponding performance test data;

[0128] The acquisition and lighting module 405 is used to call the listening program in the preset performance testing tool to periodically obtain the performance test data generated by the server to be tested if the test role played by the server is an auxiliary test server, and to light the alarm light when it is determined that the performance test data is abnormal.

[0129] In an embodiment of the present invention, the generation and network testing module includes:

[0130] The determination and generation submodule is used to determine the test parameter information for performance testing in response to the test information input instruction for the LCD display, and use the test parameter information to generate the corresponding test instruction; wherein the test parameter information includes the IP address of the auxiliary test server and the test duration.

[0131] In an embodiment of the present invention, the performance test data includes the performance test data at a previous moment and the performance test data at a current moment, and the acquisition and lighting module includes:

[0132] A comparison submodule, configured to compare the performance test data at a current moment with the performance test data at a previous moment to determine incremental performance test data;

[0133] The lighting submodule is used to light the warning light when it is determined that the incremental performance test data is abnormal.

[0134] In an embodiment of the present invention, the lighting submodule includes:

[0135] an acquiring unit, configured to acquire a test value of at least one performance indicator from the incremental performance test data;

[0136] The determination and lighting unit is used to determine that an abnormality has occurred in the incremental performance test data if the test value of the performance indicator is less than the standard value of the performance indicator, and to light up the warning light in real time to issue an alarm.

[0137] In an embodiment of the present invention, the acquisition and lighting module further includes:

[0138] The determination and acquisition submodule is used to determine that no abnormality has occurred in the incremental performance test data if the test value of the performance indicator is not less than the standard value of the performance indicator, and continue to acquire the performance test data at the next moment.

[0139] In an embodiment of the present invention, the liquid crystal display screen displays a first control for preparing a test environment, and the installation module includes:

[0140] An installation submodule is configured to install the preset performance testing tool in the server using the installation program in response to a touch operation on the first control.

[0141] In an embodiment of the present invention, the liquid crystal display screen displays a second control for indicating that the test role played is a server to be tested, and a third control for indicating that the test role played is an auxiliary test server, and the determining module includes:

[0142] A first determining submodule is configured to determine, in response to a touch operation on the second control, that the test role played by the server is the server to be tested; or

[0143] The second determining submodule is configured to determine, in response to a touch operation on the third control, that the test role played by the server is the auxiliary test server.

[0144] In summary, in an embodiment of the present invention, an LCD display and an alarm light are integrated into a U disk hardware device, and based on the characteristic that the U disk hardware device itself has storage space, an installation program for a preset performance testing tool is built into the U disk hardware device, and a built-in simple program responds to input instructions to the LCD display. The embodiment of the present invention utilizes the U disk hardware device to implement performance testing between servers without the need to insert a VGA display and a mouse and keyboard into two machines respectively for executing test instructions, which can effectively reduce dependence on displays, etc., and can give timely alarms when abnormalities are found in performance test data during performance testing, so that faults can be discovered in time and notified to testing and R&D personnel.

[0145] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0146] An embodiment of the present invention also provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned server testing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0147] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned server testing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0148] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0149] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, apparatuses, or computer program products. Thus, embodiments of the present invention may take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.

[0150] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as the combination of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0151] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0152] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0153] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0154] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.

[0155] The above is a detailed introduction to a server testing method and a server testing device, an electronic device and a computer-readable storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.< / time>

Claims

1. A server testing method, characterized in that: Applied to a USB flash drive hardware device, the USB flash drive hardware device includes a liquid crystal display and a warning light, and the USB flash drive hardware device has a built-in installation program for installing a preset performance test tool. The method includes: When the USB hardware device is inserted into the server, the LCD screen is activated to display the built-in application interface; In response to a test environment preparation instruction for the liquid crystal display, using the installation program to install the preset performance testing tool in the server to complete the test environment preparation; In response to a test role selection instruction for the liquid crystal display, determining a test role played by the server during a performance test; If the test role played by the server is a server to be tested, a corresponding test instruction is generated by the preset performance test tool, and the test instruction is used to perform a network test with the auxiliary test server to obtain corresponding performance test data; If the test role played by the server is an auxiliary test server, the listening program in the preset performance test tool is called to periodically obtain the performance test data generated by the server to be tested, and when it is determined that the performance test data is abnormal, the alarm light is turned on.

2. The method according to claim 1, characterized in that Generating corresponding test instructions by the preset performance test tool includes: In response to the test information input instruction for the LCD screen, test parameter information for performance testing is determined, and the corresponding test instruction is generated using the test parameter information; wherein the test parameter information includes the IP address of the auxiliary test server and the test duration.

3. The method according to claim 1, characterized in that The performance test data includes the performance test data at a previous moment and the performance test data at a current moment, and lighting the warning light when determining that the performance test data is abnormal includes: Comparing the performance test data at the current moment with the performance test data at the previous moment to determine incremental performance test data; When it is determined that the incremental performance test data is abnormal, the warning light is turned on.

4. The method according to claim 3, characterized in that The step of lighting the warning light when determining that the incremental performance test data is abnormal includes: Obtaining a test value of at least one performance indicator from the incremental performance test data; If the test value of the performance indicator is less than the standard value of the performance indicator, it is determined that an abnormality occurs in the incremental performance test data, and the warning light is turned on in real time to issue an alarm.

5. The method according to claim 4, characterized in that The method further comprises: If the test value of the performance indicator is not less than the standard value of the performance indicator, it is determined that no abnormality occurs in the incremental performance test data, and the performance test data at the next moment is continuously acquired.

6. The method according to claim 1, characterized in that The liquid crystal display screen displays a first control for preparing a test environment, and in response to a test environment preparation instruction directed to the liquid crystal display screen, using the installation program to install the preset performance testing tool in the server to complete the test environment preparation includes: In response to a touch operation on the first control, the preset performance testing tool is installed in the server using the installation program.

7. The method according to claim 1, characterized in that The liquid crystal display screen displays a second control for indicating that the test role played is a server to be tested, and a third control for indicating that the test role played is an auxiliary test server. The determining the test role played by the server during the performance test in response to a test role selection instruction on the liquid crystal display screen includes: In response to a touch operation on the second control, determining that the test role played by the server is the server to be tested; or, In response to a touch operation on the third control, it is determined that the test role played by the server is the auxiliary test server.

8. A server testing device, characterized in that: Applied to a USB flash drive hardware device, the USB flash drive hardware device includes a liquid crystal display and a warning light, and the USB flash drive hardware device has a built-in installation program for installing a preset performance test tool, the device includes: An activation module, configured to activate the LCD screen to display a built-in application interface when the USB hardware device is inserted into the server; An installation module, configured to, in response to a test environment preparation instruction for the liquid crystal display, install the preset performance test tool in the server using the installation program to complete test environment preparation; a determination module, configured to determine the test role played by the server during the performance test in response to a test role selection instruction for the liquid crystal display; A generation and network testing module, configured to generate corresponding test instructions through the preset performance testing tool if the test role played by the server is a server to be tested, and to perform network testing with the auxiliary test server using the test instructions to obtain corresponding performance test data; The acquisition and lighting module is used to call the listening program in the preset performance testing tool to periodically obtain the performance test data generated by the server to be tested if the test role played by the server is an auxiliary test server, and to light the alarm light when it is determined that the performance test data is abnormal.

9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the server testing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server testing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Server hardware testing method and device, and storage medium

    CN110659167A

  • Server operating system activation automatic detection method and system and storage medium

    CN113961257A