VNC function stability test method and device of server, storage medium and equipment

CN116541297BActive Publication Date: 2026-11-03INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310598263.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2026-11-03
Estimated Expiration
2043-05-25

AI Technical Summary

Technical Problem

In existing technologies, the stability testing efficiency of server VNC functions is low, and it is difficult to automatically verify the stability of mouse and keyboard input and screen display during long-term connection.

Method used

The test tool client performs simulated operations in the VNC client window to obtain operation information and image information, and compares it with the information after the server's VNC function accepts the simulated operations. The consistency is verified by using an image similarity algorithm, and stability test results are generated.

Benefits of technology

It enables rapid and comprehensive VNC function stability testing, improves testing efficiency, accurately assesses the stability of the server's VNC function, and meets the testing requirements for long-term connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116541297B_ABST
    Figure CN116541297B_ABST
Patent Text Reader

Abstract

The application provides a VNC function stability test method and device of a server, a storage medium and equipment, the method comprises the following steps: in response to that a VNC client and the server have been connected, performing a simulation operation in the window of the VNC client through a test tool client, obtaining first operation information and first image information displayed by the window, and saving them to the local; accepting the simulation operation by using the VNC function of the server, obtaining second operation information and second image information displayed by the server, and collecting the second operation information and the second image information through a test tool server and sending them to the test tool client; comparing the received second operation information and second image information with the saved first operation information and first image information through the test tool client; in response to that a preset test duration is reached, obtaining a stability test result of the VNC function based on the comparison result. The application can conveniently and quickly test the stability of the VNC function of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server technology, and in particular to a method, apparatus, storage medium, and device for testing the stability of a server's VNC function. Background Technology

[0002] VNC (Virtual Network Console) is an excellent remote control software tool, mainly composed of two parts: a client application installed on the controlling end and a server application installed on the controlled end. The controlling end remotely controls the controlled end via the network.

[0003] For servers, the BMC (Baseboard Management Controller) firmware implements a VNC server. This server compresses the screen image of the server's OS (Operating System) and transmits it to the VNC client. It also transmits control signals from the VNC client (such as mouse and keyboard input) back to the server OS via the VNC server. This allows users to control the server remotely, without needing to be in a server room, which is extremely convenient. Because the VNC function is so crucial, its stability is paramount.

[0004] Currently, the VNC function test cases on the server include stability testing requirements, such as ensuring normal mouse and keyboard input, normal screen display, and uninterrupted connection during a 48-hour (or even longer) connection period. It is impractical to rely solely on manual testing by testers to meet these requirements. Therefore, finding a convenient way to perform stability testing for VNC functionality is a pressing issue that needs to be addressed. Summary of the Invention

[0005] In view of this, the purpose of this invention is to provide a method, apparatus, storage medium and device for testing the stability of the VNC function of a server, so as to conveniently test the stability of the VNC function of the server.

[0006] To achieve the above objectives, the present invention provides a method for testing the stability of a server's VNC function, comprising the following steps:

[0007] In response to the connection between the VNC client and the server, a simulated operation is performed in the window of the VNC client through the test tool client to obtain the first operation information and the first image information displayed in the window, and the first operation information and the first image information are saved locally;

[0008] The server's VNC function is used to accept simulated operations, obtain the second operation information and the second image information displayed by the server, and the second operation information and the second image information are collected by the test tool server and sent to the test tool client;

[0009] The test tool client compares the received second operation information and second image information with the first operation information and first image information saved locally, respectively.

[0010] Upon reaching the preset test duration, the stability test results of the VNC function are obtained based on the comparison results.

[0011] In some embodiments, comparing the received second operation information and second image information with the first operation information and first image information saved locally via the testing tool client includes:

[0012] The test tool client verifies whether the second operation information is consistent with the first operation information, and uses an image similarity algorithm to verify whether the second image information is consistent with the first image information.

[0013] In some embodiments, in response to reaching a preset test duration, obtaining the stability test results of the VNC function based on the comparison results includes:

[0014] In response to the arrival of the test duration, determine whether the ratio of the number of all inconsistent conclusions to the number of all consistent conclusions during the test duration meets the preset ratio range;

[0015] Among them, all inconsistent conclusions include all inconsistent conclusions between the second operation information and the first operation information during the test duration, as well as all inconsistent conclusions between the second image information and the first image information; all consistent conclusions include all consistent conclusions between the second operation information and the first operation information during the test duration, as well as all consistent conclusions between the second image information and the first image information.

[0016] The response ratio meets the preset range, confirming that the VNC function in the server is stable.

[0017] The response indicates that the ratio of quantities does not fall within the preset range, confirming that the VNC function in the server is not stable.

[0018] In some embodiments, the simulated operation is the simulation of mouse and / or keyboard operations.

[0019] In some embodiments, the method further includes:

[0020] The test tool client receives input parameter settings, including mouse movement range, keyboard input content, and test duration.

[0021] In some embodiments, performing simulated operations through the test tool client in the VNC client window includes:

[0022] The test tool client utilizes the Linux kernel's Input subsystem framework to perform simulated operations within the VNC client window.

[0023] In some embodiments, the method further includes:

[0024] The VNC client establishes a connection with the BMC by receiving the server's BMC IP address.

[0025] In another aspect, the present invention provides a server VNC function stability testing device, comprising:

[0026] The test tool client is configured to respond to a connection between the VNC client and the server by performing simulated operations in the VNC client window, obtaining first operation information and first image information displayed in the window, and saving the first operation information and first image information locally; and

[0027] The test tool server is configured to respond to the server receiving the second operation information and the second image information displayed by the server after accepting the simulation operation through the VNC function, collect the second operation information and the second image information and send them to the test tool client.

[0028] The testing tool client is also configured to compare the received second operation information and second image information with the first operation information and first image information saved locally, and obtain the stability test result of the VNC function based on the comparison result when the preset test duration is reached.

[0029] In another aspect, the present invention provides a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the above-described method.

[0030] In another aspect, the present invention provides a computer device including a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, performs the above-described method.

[0031] The present invention has at least the following beneficial technical effects:

[0032] The method for testing the stability of the VNC function of a server according to the present invention involves, after the VNC client is connected to the server, performing a simulated operation in the window of the VNC client through a test tool client to obtain first operation information and first image information displayed in the window. The first operation information and first image information are saved locally. The server's VNC function is then used to receive a simulated operation to obtain second operation information and second image information displayed on the server. The second operation information and second image information are collected by the test tool server and sent to the test tool client. The test tool client compares the received second operation information and second image information with the first operation information and first image information saved locally. After a preset test duration, the stability test result of the VNC function is obtained based on the comparison result. This method enables convenient and quick stability testing of the server's VNC function, improves testing efficiency, and provides comprehensive stability test conclusions, which helps testers fully understand the stability of the server's VNC function. Attached Figure Description

[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these drawings without creative effort.

[0034] Figure 1 This is a schematic diagram of a server VNC function stability testing method provided according to an embodiment of the present invention;

[0035] Figure 2 This is a schematic diagram of the structure of the method for testing the stability of VNC functionality of a server according to an embodiment of the present invention;

[0036] Figure 3 This is a flowchart illustrating a method for testing the stability of a server's VNC function according to an embodiment of the present invention.

[0037] Figure 4 This is a schematic diagram of a server VNC function stability testing device provided according to an embodiment of the present invention;

[0038] Figure 5 A schematic diagram of a computer-readable storage medium for implementing a stability testing method for the VNC function of a server according to an embodiment of the present invention;

[0039] Figure 6 This is a schematic diagram of the hardware structure of a computer device for a method of testing the stability of the VNC function of an execution server according to an embodiment of the present invention. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to specific examples and the accompanying drawings.

[0041] It should be noted that all uses of "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two different entities or different parameters with the same name. Therefore, "first" and "second" are merely for convenience of expression and should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, such as other steps or units inherent in a process, method, system, product, or device that includes a series of steps or units.

[0042] Based on the above objectives, the first aspect of the present invention provides an embodiment of a method for testing the stability of a server's VNC function. Figure 1 This diagram illustrates an embodiment of the server VNC function stability testing method provided by the present invention. Figure 1 As shown, the embodiments of the present invention include the following steps:

[0043] Step S10: In response to the connection between the VNC client and the server, perform a simulated operation in the window of the VNC client through the test tool client to obtain the first operation information and the first image information displayed in the window, and save the first operation information and the first image information to the local machine.

[0044] Step S20: Use the server's VNC function to accept the simulation operation, obtain the second operation information and the second image information displayed by the server, and collect the second operation information and the second image information through the test tool server and send them to the test tool client;

[0045] Step S30: The received second operation information and second image information are compared with the first operation information and first image information saved locally through the test tool client;

[0046] Step S40: In response to reaching the preset test duration, obtain the stability test results of the VNC function based on the comparison results.

[0047] The server VNC function stability testing method of the present invention can conveniently and quickly test the stability of the server's VNC function, improve testing efficiency, and obtain comprehensive stability test conclusions, which helps testers to fully understand the stability of the server's VNC function.

[0048] In some embodiments, comparing the received second operation information and second image information with the first operation information and first image information saved locally via the testing tool client includes: verifying whether the second operation information is consistent with the first operation information via the testing tool client, and verifying whether the second image information is consistent with the first image information using an image similarity algorithm.

[0049] In this embodiment, verifying the consistency between the second operation information and the first operation information through a testing tool client, and verifying the consistency between the second image information and the first image information using an image similarity algorithm, can improve the efficiency of consistency verification.

[0050] In some embodiments, in response to reaching a preset test duration, obtaining the stability test result of the VNC function based on the comparison results includes: in response to reaching the test duration, determining whether the ratio of the number of all inconsistent conclusions to the number of all consistent conclusions during the test duration meets a preset ratio range; wherein, all inconsistent conclusions include all inconsistent conclusions between the second operation information and the first operation information and all inconsistent conclusions between the second image information and the first image information during the test duration, and all consistent conclusions include all consistent conclusions between the second operation information and the first operation information and all consistent conclusions between the second image information and the first image information during the test duration; in response to the ratio meeting the preset ratio range, confirming that the VNC function in the server is stable; in response to the ratio not meeting the preset ratio range, confirming that the VNC function in the server is unstable.

[0051] In this embodiment, multiple simulated operations are performed within a preset test duration, generating multiple first operation information and multiple first image information, and correspondingly generating multiple second operation information and multiple second image information. By judging the consistency between each second operation information and its corresponding first operation information, and the consistency between each second image information and its corresponding first image information, several consistent conclusions and / or several inconsistent conclusions can be obtained. Therefore, by judging whether the ratio of all inconsistent conclusions to all consistent conclusions within the test duration meets a preset ratio range, the stability of the server's VNC (Virtual Network Console) function can be comprehensively and precisely obtained. Furthermore, the preset ratio range is adjustable and can adapt to scenarios with various stability requirements.

[0052] In some embodiments, the simulated operation is the simulation of mouse and / or keyboard operations.

[0053] In some embodiments, the method further includes receiving input parameter setting information via a test tool client, the parameter setting information including mouse movement range, keyboard input content, and test duration.

[0054] In this embodiment, testers can input parameter settings into the test tool client to flexibly conduct stability tests on the server's VNC function.

[0055] In some embodiments, performing a simulated operation in the window of the VNC client via the test tool client includes: performing a simulated operation in the window of the VNC client via the test tool client using the Linux kernel's Input subsystem framework.

[0056] In this embodiment, the test tool client can directly utilize the Input subsystem framework of the Linux kernel (an operating system) to perform simulated operations in the VNC client window, improving the convenience and efficiency of VNC functional stability testing.

[0057] Input means input, so the Input subsystem is the subsystem that manages input. In order to handle various types of input devices, such as touch screens, mice, keyboards, joysticks, etc., the Linux kernel designed and implemented the Linux Input subsystem. It provides a unified interface function for drivers and applications, making it easy to implement drivers for various input devices.

[0058] In some embodiments, the method further includes: the VNC client establishing a connection with the BMC by receiving the input IP address of the server's BMC.

[0059] Figure 2 This is a schematic diagram of the structure of a method for testing the stability of VNC functionality in a server according to an embodiment of the present invention. Figure 2 As shown, implementing the VNC function stability test method for the server requires the development of a test tool client and server. The test tool client is installed on the tester's computer (PC), and the test tool server is installed on the server OS (Operating System).

[0060] The tester first opens the VNC client, enters the IP (Internet Protocol) address of the BMC (Baseboard Management Controller) on the server, establishes a connection with the BMC, and ensures that the VNC client can display the server's OS screen correctly and that the mouse and keyboard can be operated normally. The test tool's client and server establish a network connection and can transmit data normally.

[0061] Testers open the testing tool client and set relevant parameters, such as mouse movement range, keyboard input, test duration, and test data save path. After setting, they click the start button to begin the test. The client periodically simulates mouse and keyboard operations on the PC, captures the images displayed via VNC, and saves this key information locally. The testing tool server obtains mouse and keyboard information received from the server's OS and captures the current OS display. It periodically sends this key information to the testing tool client. The client compares the received information with the locally saved information and uses a special algorithm to derive a verification result. If the verification fails, the inconsistent information is recorded. After the test duration is reached, a test report is output.

[0062] Figure 3 This is a flowchart illustrating a method for testing the stability of a server's VNC function according to an embodiment of the present invention. Figure 3 As shown, an exemplary embodiment of the server's VNC function stability testing method of the present invention is as follows:

[0063] 1) Develop a client for a testing tool and install it on the tester's PC, assuming the PC is running Linux. This client should be able to simulate mouse movement and keyboard input within the window of a VNC client. This is because the VNC client only captures mouse and keyboard operations within its display window. Both the mouse and keyboard are USB (Universal Serial Bus) devices, and the testing tool's client uses the Linux kernel's Input subsystem framework to simulate mouse and keyboard operations.

[0064] 2) The client of the testing tool supports setting the mouse movement range, keyboard input content, test duration, test data save path, etc.

[0065] 3) The VNC client on the tester's PC interacts with the VNC server on the BMC via the RFB (Remote Frame Buffer) protocol. After receiving mouse and keyboard information sent by the VNC client, the VNC server sends it to the server OS via the USB channel to simulate the OS's mouse and keyboard operations. The VNC server then sends the OS's image information to the VNC client for display.

[0066] 4) Develop a server-side testing tool and install it on the server's OS, assuming it's Linux. The server-side testing tool on the server OS collects mouse and keyboard information through the Linux kernel's Input subsystem framework and captures image information from the current OS through a V4L2 driver (V4L2 provides a set of data structures and low-level V4L2 driver interface specifications for use by video device programs under Linux). This information is encapsulated in a specific format and sent to the testing tool client via HTTP (Hypertext Transfer Protocol). For example, mouse information is in coordinate form, keyboard information is in character form, and image information is in image form.

[0067] 5) The client compares the received information with the locally stored information, verifying whether the mouse coordinates and keyboard character information are consistent over a certain period of time. It also uses an image similarity algorithm to verify the consistency of image information, ultimately obtaining the verification result. If the verification fails, the inconsistent information is recorded. After the test duration is reached, a test report is output.

[0068] A second aspect of the present invention also provides a device for testing the stability of a server's VNC function. Figure 4 This diagram illustrates an embodiment of the server VNC function stability testing device provided by the present invention. Figure 4 As shown, a server VNC function stability testing device includes: a test tool client 10, configured to, in response to a connection between the VNC client and the server, perform a simulated operation in the window of the VNC client, obtain first operation information and first image information displayed in the window, and save the first operation information and first image information locally; and a test tool server 20, configured to, in response to the server receiving a simulated operation through the VNC function and obtaining second operation information and second image information displayed by the server, collect the second operation information and second image information and send them to the test tool client; the test tool client 10 is further configured to compare the received second operation information and second image information with the first operation information and first image information saved locally, and, in response to reaching a preset test duration, obtain a stability test result of the VNC function based on the comparison result.

[0069] In some embodiments, the test tool client 10 is further configured to verify whether the second operation information is consistent with the first operation information, and to use an image similarity algorithm to verify whether the second image information is consistent with the first image information.

[0070] In some embodiments, the test tool client 10 is further configured to, in response to reaching the test duration, determine whether the ratio of the number of all inconsistent conclusions to the number of all consistent conclusions within the test duration meets a preset ratio range; wherein, all inconsistent conclusions include all inconsistent conclusions between the second operation information and the first operation information and all inconsistent conclusions between the second image information and the first image information within the test duration, and all consistent conclusions include all consistent conclusions between the second operation information and the first operation information and all consistent conclusions between the second image information and the first image information within the test duration; in response to the ratio meeting the preset ratio range, it is confirmed that the VNC function in the server is stable; in response to the ratio not meeting the preset ratio range, it is confirmed that the VNC function in the server is unstable.

[0071] In some embodiments, the simulated operation is the simulation of mouse and / or keyboard operations.

[0072] In some embodiments, the test tool client 10 is also configured to receive input parameter setting information, including mouse movement range, keyboard input content, and test duration.

[0073] In some embodiments, the test tool client 10 is further configured to perform simulated operations in the window of the VNC client using the Input subsystem framework of the Linux kernel.

[0074] In some embodiments, the VNC client configures the IP address of the server's BMC to receive input and establish a connection with the BMC.

[0075] A third aspect of the present invention also provides a computer-readable storage medium. Figure 5 A schematic diagram of a computer-readable storage medium illustrating a method for testing the stability of VNC functionality in a server according to an embodiment of the present invention is shown. Figure 5 As shown, the computer-readable storage medium 3 stores computer program instructions 31. When executed by a processor, the computer program instructions 31 implement the method of any of the above embodiments.

[0076] It should be understood that, where there is no conflict, all the embodiments, features and advantages described above for the VNC function stability testing method of the server according to the present invention are equally applicable to the VNC function stability testing system and storage medium of the server according to the present invention.

[0077] A fourth aspect of the present invention also provides a computer device, including as follows: Figure 6 The memory 402 and processor 401 shown are provided. The memory 402 stores a computer program that, when executed by the processor 401, implements the method of any of the above embodiments.

[0078] like Figure 6 The diagram shown is a hardware structure schematic of a computer device for an embodiment of the VNC function stability testing method for an execution server provided by the present invention. Figure 6 Taking the computer device shown as an example, this computer device includes a processor 401 and a memory 402, and may also include an input device 403 and an output device 404. The processor 401, memory 402, input device 403, and output device 404 can be connected via a bus or other means. Figure 6 Taking a bus connection as an example, input device 403 can receive input digital or character information, and generate key signal inputs related to user settings and function control of the server's VNC functional stability testing system. Output device 404 may include display devices such as a display screen.

[0079] Memory 402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the server's VNC functional stability testing method in this embodiment. Memory 402 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by using the server's VNC functional stability testing method, etc. In addition, memory 402 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 402 may optionally include memory remotely located relative to processor 401, and these remote memories can be connected to the local module via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0080] The processor 401 executes various functional applications and data processing of the server by running non-volatile software programs, instructions and modules stored in the memory 402, thereby implementing the server's VNC function stability test method in the above method embodiment.

[0081] Finally, it should be noted that the computer-readable storage medium (e.g., memory) in this article may be volatile memory or non-volatile memory, or may include both volatile memory and non-volatile memory.

[0082] Those skilled in the art will also understand that the various exemplary logic blocks, modules, circuits, and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software, or a combination of both. To clearly illustrate this interchangeability between hardware and software, the functionality of various illustrative components, blocks, modules, circuits, and steps has been generally described. Whether this functionality is implemented as software or as hardware depends on the specific application and the design constraints imposed on the system as a whole. Those skilled in the art can implement the functionality in various ways for each specific application, but such implementation decisions should not be construed as departing from the scope of the embodiments disclosed herein.

[0083] The various exemplary logic blocks, modules, and circuits described herein can be implemented or performed using the following components designed to perform the functions herein: general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general-purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP, and / or any other such configuration.

[0084] The above are exemplary embodiments disclosed in this invention. However, it should be noted that various changes and modifications can be made without departing from the scope of the embodiments of this invention as defined by the claims. The functions, steps, and / or actions of the methods according to the disclosed embodiments described herein do not need to be performed in any particular order. Furthermore, although the elements disclosed in the embodiments of this invention may be described or claimed individually, they may be understood as multiple unless explicitly limited to a singular number.

[0085] It should be understood that, as used herein, the singular form "a" is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the associatedly listed items. The embodiment numbers disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0086] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention (including the claims) is limited to these examples. Within the framework of the invention, technical features of the above embodiments or different embodiments can be combined, and many other variations of different aspects of the invention exist, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the protection scope of the invention.

Claims

1. A method for testing the stability of a server's VNC function, characterized in that, Includes the following steps: In response to the connection between the VNC client and the server, a simulated operation is performed in the window of the VNC client through the test tool client to obtain the first operation information and the first image information displayed in the window, and the first operation information and the first image information are saved locally; The server's VNC function is used to accept the simulated operation, obtain the second operation information and the second image information displayed by the server, and the test tool server collects the second operation information and the second image information and sends them to the test tool client; The test tool client compares the received second operation information and second image information with the first operation information and first image information saved locally. Upon reaching the preset test duration, the stability test result of the VNC function is obtained based on the comparison results; It includes: in response to reaching a test duration, determining whether the ratio of the number of all inconsistent conclusions to the number of all consistent conclusions within the test duration meets a preset ratio range; wherein, the all inconsistent conclusions include all inconsistent conclusions between the second operation information and the first operation information and all inconsistent conclusions between the second image information and the first image information within the test duration, and the all consistent conclusions include all consistent conclusions between the second operation information and the first operation information and all consistent conclusions between the second image information and the first image information within the test duration; in response to the ratio meeting the preset ratio range, confirming that the VNC function in the server is stable; in response to the ratio not meeting the preset ratio range, confirming that the VNC function in the server is unstable.

2. The method according to claim 1, characterized in that, The testing tool client compares the received second operation information and second image information with the first operation information and first image information saved locally, including: The test tool client verifies whether the second operation information is consistent with the first operation information, and uses an image similarity algorithm to verify whether the second image information is consistent with the first image information.

3. The method according to claim 1, characterized in that, The simulated operation is a simulation of mouse and / or keyboard operations.

4. The method according to claim 3, characterized in that, Also includes: The test tool client receives input parameter setting information, including mouse movement range, keyboard input content, and test duration.

5. The method according to claim 1, characterized in that, Performing simulated operations through the test tool client window of the VNC client includes: The test tool client utilizes the Linux kernel's Input subsystem framework to perform simulated operations within the VNC client window.

6. The method according to claim 1, characterized in that, Also includes: The VNC client establishes a connection with the BMC by receiving the input IP address of the server's BMC.

7. A server VNC function stability testing device, characterized in that, include: The test tool client is configured to, in response to a connection between the VNC client and the server, perform a simulated operation in the window of the VNC client, obtain first operation information and first image information displayed in the window, and save the first operation information and the first image information locally; and The test tool server is configured to respond to the server receiving the simulation operation via VNC function, obtain second operation information and second image information displayed by the server, collect the second operation information and the second image information and send them to the test tool client; The test tool client is also configured to compare the received second operation information and second image information with the first operation information and first image information saved locally, and, in response to reaching a preset test duration, obtain the stability test result of the VNC function based on the comparison result. The testing tool client is also configured to, in response to reaching the test duration, determine whether the ratio of the number of all inconsistent conclusions to the number of all consistent conclusions within the test duration meets a preset ratio range; wherein, all inconsistent conclusions include all inconsistent conclusions between the second operation information and the first operation information and all inconsistent conclusions between the second image information and the first image information within the test duration, and all consistent conclusions include all consistent conclusions between the second operation information and the first operation information and all consistent conclusions between the second image information and the first image information within the test duration; in response to the ratio meeting the preset ratio range, it is confirmed that the VNC function in the server is stable; in response to the ratio not meeting the preset ratio range, it is confirmed that the VNC function in the server is unstable.

8. A computer-readable storage medium, characterized in that, The system stores computer program instructions that, when executed by a processor, implement the method as described in any one of claims 1-6.

9. A computer device, comprising a memory and a processor, characterized in that, The memory stores a computer program, which, when executed by the processor, performs the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Method and device for testing electronic terminal

    CN103685657A

  • Test method and system of operation system identity authentication mechanism

    CN104657639A