Method, device and equipment for testing stability of multi-computer switcher and medium
Through the method of simulated pressurized testing and feature image extraction, the problem of difficult testing of visual stability of multi-computer switches is solved, and effective evaluation and improvement of visual stability of multi-computer switches is achieved.
Patent Information
- Application Number
- CN202411710280.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-14
AI Technical Summary
The prior art is difficult to effectively test the visual stability of multi-computer switches, which makes it difficult to solve the problem of interface jitter.
By acquiring the display configuration of the remote device, using a multi-computer switch to remotely control the remote device, obtaining the switching interface, and conducting simulated and pressurized tests, including image dimensionality reduction processing, image decomposition processing and image fusion processing, and extracting feature images. Then compare the resolution and pixel bit count of the interface after the test with the original configuration to judge the stability of the multi-computer switch.
It realizes effective testing of the visual stability of multiple computer switches, improves the ability to perform stability testing, and can promptly discover and solve interface jitter problems.
Smart Images

Figure CN119621449A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a multi-computer switch stability testing method, device, equipment and medium. Background Art
[0002] With the development of Internet applications, the application scope of servers as big data application products is constantly expanding. The structure of the server mainly includes the central processing unit, storage device, main memory, host bus, etc. In order to monitor multiple servers and manage multiple control servers, remote control management is achieved through the BMC (Baseboard Management Controller) module and the multi-computer switch (KVM, Keyboard Video Mouse). Among them, KVM management can realize remote desktop and remote installation system operations. Therefore, when users use remote desktop, the stability of the multi-computer switch is particularly important.
[0003] In the related art, the stability of the KVM switch is tested by repeatedly moving files in the controlled device to verify whether the peripheral devices in the controlled device can be mounted normally, and by using simulation tools to verify the network stability of the KVM switch. However, in actual use, the interface jitter problem will also occur. Therefore, how to test the visual stability of the KVM switch is currently in urgent need of solution. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for testing the stability of a multi-computer switch, which can realize the test of the visual stability of a multi-computer switch and improve the ability of the computer switch stability test. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a multi-computer switch stability testing method, which is applied to a test terminal and includes:
[0006] Obtaining a display configuration of a remote device; the display configuration includes a resolution and a number of bits occupied by a single pixel;
[0007] Remotely controlling the remote device through a multi-computer switch and acquiring a switching interface transmitted by the remote device;
[0008] Performing a simulated pressure test on the switching interface according to the target pressure test times, and obtaining a post-test interface corresponding to the switching interface after each test; the simulated pressure test is used to scan the image and extract the feature map;
[0009] The display configuration of the remote device is compared with the resolution and the number of bits occupied by a single pixel of the tested interface to determine the stability of the multi-computer switch.
[0010] Optionally, obtaining the display configuration of the remote device includes:
[0011] Get multiple display configurations of remote devices;
[0012] The determining the stability of the multi-computer switch includes:
[0013] According to the stability of the KVM switch under each display group configuration, the final stability of the KVM switch is determined.
[0014] Optionally, the simulated pressure test includes image dimension reduction processing, image decomposition processing and image fusion processing in sequence.
[0015] Optionally, the simulated pressure test is performed on the switching interface to obtain a post-test interface corresponding to the switching interface after each test, including:
[0016] Inputting the switching interface into a two-dimensional selective scanning model, performing dimensionality reduction processing on the switching interface, and obtaining a one-dimensional vector of the switching interface in each direction;
[0017] Interactively processing the one-dimensional vector to obtain a one-dimensional linear vector corresponding to the switching interface;
[0018] The one-dimensional linear vectors are fused to obtain a two-dimensional feature image corresponding to the switching interface, so as to obtain a post-test interface corresponding to the switching interface.
[0019] Optionally, the multi-computer switch stability testing method further includes:
[0020] During the stress test, simulated keystrokes are executed at a preset frequency to maintain control of the test terminal and the remote device, and normal operation of the multi-computer switch.
[0021] Optionally, before performing a simulated pressure test on the switching interface according to the target pressure test number, the method further includes:
[0022] Get the preset stability test duration and single stress test duration;
[0023] The target number of stress tests is determined according to the ratio of the stability test duration to the single stress test duration, so that the total stress test duration can reach the stability test duration after all stress tests are completed according to the target number of stress tests.
[0024] Optionally, comparing the display configuration of the remote device with the resolution of the post-test interface and the number of bits occupied by a single pixel to determine the stability of the multi-computer switch includes:
[0025] Obtaining a resolution difference value according to a difference between a resolution of the post-test interface and a resolution in a display configuration of the remote device;
[0026] Obtaining a pixel bit number difference value according to the difference between the number of bits occupied by a single pixel of the interface after the test and the number of bits occupied by a single pixel in the display configuration of the remote device;
[0027] If the resolution difference is within the preset resolution difference, and the pixel bit number difference is within the preset pixel bit number difference, the test result of the current simulated pressure test is determined to be passed; otherwise, the test result of the current simulated pressure test is determined to be failed;
[0028] Obtain the cumulative number of tests, and determine whether the cumulative number of tests reaches the target number of stress tests;
[0029] If the cumulative number of tests does not reach the target number of stress tests, the next stress test is performed;
[0030] If the cumulative number of tests reaches the target number of stress tests, the test results of all stress tests are counted, and the test result is determined as the ratio of the number of passed tests to the total number of stress tests;
[0031] If the ratio reaches a preset ratio, it is determined that the stability of the KVM switch is qualified; otherwise, it is determined that the stability of the KVM switch is unqualified.
[0032] In a second aspect, the present application discloses a multi-computer switch stability testing device, which is applied to a test terminal and includes:
[0033] A display configuration acquisition module, used to acquire the display configuration of the remote device; the display configuration includes resolution and the number of bits occupied by a single pixel;
[0034] A remote control module, used to remotely control the remote device through a multi-computer switch and obtain a switching interface transmitted by the remote device;
[0035] A pressure test module is used to perform a simulated pressure test on the switching interface according to the target pressure test number, and obtain a post-test interface corresponding to the switching interface after each test; the simulated pressure test includes image dimension reduction processing, image decomposition processing and image fusion processing in sequence;
[0036] The stability judgment module is used to compare the display configuration of the remote device with the resolution and the number of bits occupied by a single pixel of the post-test interface to judge the stability of the multi-computer switch.
[0037] In a third aspect, the present application discloses an electronic device, comprising:
[0038] Memory, used to store computer programs;
[0039] The processor is used to execute the computer program to implement the aforementioned multi-computer switch stability testing method.
[0040] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program implements the aforementioned multi-computer switch stability testing method when executed by a processor.
[0041] In the present application, the display configuration of the remote device is obtained; the display configuration includes resolution and the number of bits occupied by a single pixel; the remote device is remotely controlled through a multi-computer switch, and the switching interface transmitted by the remote device is obtained; the switching interface is simulated and pressure-tested according to the target number of pressure tests, and the post-test interface corresponding to the switching interface after each test is obtained; the simulated pressure test is used to scan the image and extract the feature map; the display configuration of the remote device is compared with the resolution of the post-test interface and the number of bits occupied by a single pixel to determine the stability of the multi-computer switch. It can be seen that by performing a pressure test on the switching interface transmitted by the remote device for the target number of pressure tests, and performing a simulated pressure test through image scanning and feature map extraction operations, the comprehensiveness of the visual interface pressure test is improved, and then the resolution of the post-test interface after the pressure test and the number of bits occupied by a single pixel are compared with the original display configuration of the remote device, and the stability of the multi-computer switch can be determined by combining the test results of multiple tests, and the visual stability test of the multi-computer switch is realized, which further improves the ability of the computer switch stability test. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0043] Figure 1 A flow chart of a multi-computer switch stability testing method provided in this application;
[0044] Figure 2A flow chart of a specific multi-computer switch stability testing method provided in this application;
[0045] Figure 3 A schematic diagram of the structure of a multi-computer switch stability test device provided in this application;
[0046] Figure 4 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] In the related art, the stability of a multi-computer switch is tested by repeatedly moving files in the controlled device to verify whether the peripheral devices in the controlled device can be mounted normally, and by using simulation tools to verify the network stability of the multi-computer switch. However, in actual use, interface jitter problems may occur. Therefore, how to test the visual stability of a multi-computer switch is currently an urgent problem to be solved. In order to overcome the above technical problems, the present application proposes a multi-computer switch stability testing method, which can realize the test of the visual stability of a multi-computer switch and improve the ability of computer switch stability testing.
[0049] The present application embodiment discloses a method for testing the stability of a multi-computer switch. Figure 1 As shown, the method may include the following steps:
[0050] Step S11: Obtain the display configuration of the remote device; the display configuration includes the resolution and the number of bits occupied by a single pixel.
[0051] First, obtain the display configuration of the remote device to be connected to the detection terminal. The display configuration includes at least the resolution and the number of bits occupied by a single pixel, that is, the resolution of the remote device interface and how many bits are needed to identify each pixel. For example, the resolution is 1280x1024 and a single pixel occupies 16 bits. It is understandable that the display configuration of the remote device is obtained in advance, and the interface of the test terminal should also be the resolution used by the remote device and the number of bits occupied by a single pixel when the multi-computer switch is stable, so that the obtained display configuration of the remote device is used as a judgment basis to analyze the stability of the multi-computer switch.
[0052] Step S12: remotely controlling the remote device through a multi-computer switch and acquiring a switching interface transmitted by the remote device.
[0053] The user logs in to the baseboard management controller webpage through the test terminal and opens the multi-computer switch, that is, remotely connects through the baseboard management controller line of sight of the remote device, and realizes remote control through the multi-computer switch to obtain the current interface of the remote device. When other remote devices need to be controlled, switch to the interface of other remote devices through the multi-computer switch.
[0054] In some embodiments, the multi-computer switch stability test method may further include: during the stress test, executing simulated keystrokes at a preset frequency to maintain the control of the test terminal and the remote device, as well as the normal operation of the multi-computer switch. It is understandable that since the baseboard management controller management and multi-computer switch management of the server are time-limited, when not in use, the system will automatically exit the baseboard management controller management and multi-computer switch management. In order to ensure that the stress test is carried out normally and avoid the failure of the stress test due to the baseboard management controller or multi-computer switch stopping during the process, this embodiment executes simulated keystrokes at a preset frequency to keep the baseboard management controller remote multi-computer switch online all the time, thereby ensuring the control of the remote device by the test terminal. Of course, in addition to simulated keystrokes, simulated mouse movement or clicks and other operations can also be used to maintain the control of the test terminal and the remote device, as well as the normal operation of the multi-computer switch.
[0055] Step S13: performing a simulated pressure test on the switching interface according to the target pressure test times, and obtaining a post-test interface corresponding to the switching interface after each test; the simulated pressure test is used to scan the image and extract the feature map.
[0056] After obtaining the switching interface, a simulated pressure test is performed on the switching interface. Specifically, the simulated pressure test can be achieved by performing image scanning and feature map extraction operations. After each simulated pressure test, a post-test interface generated by the switching interface after this pressure test will be obtained.
[0057] In some embodiments, before the simulated pressure test of the switching interface is performed according to the target pressure test number, it can also include: obtaining the preset stability test duration and the single pressure test duration; determining the target pressure test number according to the ratio of the stability test duration to the single pressure test duration, so that the total pressure test duration can reach the stability test duration after all pressure tests are completed according to the target pressure test number. That is, test results above a certain duration are more meaningful for analysis, so the required stability test duration can be set first, and then the target pressure test number can be determined according to the single pressure test duration, and then the simulated pressure test can be performed according to the target pressure test number, so that after all pressure tests are completed according to the target pressure test number, the total pressure test duration can reach the set stability test duration.
[0058] In some embodiments, the simulated pressure test includes image dimension reduction processing, image decomposition processing and image fusion processing in sequence. That is, the image scanning is realized by first performing image dimension reduction processing on the switching interface, then performing image decomposition processing on the dimension reduction processing result to realize feature extraction, and then performing image fusion on the image decomposition processing result to restore the original dimension of the image, thereby realizing the simulated pressure processing of the image.
[0059] In some embodiments, the switching interface is subjected to a simulated pressure test according to the target pressure test times to obtain a post-test interface corresponding to the switching interface after each test, including: inputting the switching interface into a neural network-based image feature extraction model; and obtaining a post-test interface corresponding to the switching interface according to a feature map output by the neural network-based image feature extraction model. That is, the feature map of the switching interface can be directly obtained by feature extraction using an existing neural network-based image feature extraction model, and the stability of the multi-computer switch can be analyzed based on the feature map and the switching interface to improve the efficiency of the stability test of the multi-computer switch. Among them, there is no specific limitation on the type of the above-mentioned image feature extraction model, and any model that can realize image scanning and feature map extraction can be used.
[0060] In some embodiments, the simulated pressure test on the switching interface to obtain the post-test interface corresponding to the switching interface after each test may include: inputting the switching interface into a two-dimensional selective scanning model, performing dimensionality reduction processing on the switching interface, and obtaining a one-dimensional vector of the switching interface in each direction; interactively processing the one-dimensional vector to obtain a one-dimensional linear vector corresponding to the switching interface; fusing the one-dimensional linear vector to obtain a two-dimensional feature image corresponding to the switching interface, so as to obtain the post-test interface corresponding to the switching interface. Specifically, the image simulation pressure can be performed through a two-dimensional selective scanning model (SS2D, 2-D-Selective Scan), that is, the two-dimensional selective scanning is pre-encapsulated as a model operation, and then the operation algorithm is applied to realize the image simulation pressure.
[0061] The two-dimensional selective scanning model is based on the CSM module (Cross-Scan module) and the S6 model. The CSM module scans from the four corners of the visual signal at the same time, and the image is scanned from the four corners to other positions in sequence to form a global view; for example, two images are scanned from the upper left, lower right, lower left, and upper right corners, and then the two images are fused to form a complete scan. It is a visual model with a global receptive field and linear complexity. The principle of the two-dimensional selective scanning model is to first reduce the two-dimensional image from the upper left, lower left, upper right, and lower right four different directions into a one-dimensional image, and then use the S6 model to obtain the interactive one-dimensional linear model of the four one-dimensional images. Finally, the one-dimensional linear model is fused into a two-dimensional image, and SS2D can achieve a visual global receptive field. Specifically, the two-dimensional selective scanning model input is a two-dimensional image. The model first maps the two-dimensional image into a one-dimensional graphic in four directions, and uses a one-dimensional convolution layer to interact the one-dimensional image into a one-dimensional linear graphic method, and then uses the one-dimensional convolution to convert it into a two-dimensional convolution for image fusion, and finally outputs a two-dimensional image. Therefore, aiming at the stability and visual global receptive field of the server's baseboard management controller remotely managing the multi-computer switch, the SS2D model was used to perform stress testing on the multi-computer switch, achieving its stability and visual global receptive field.
[0062] Step S14: Compare the display configuration of the remote device with the resolution and the number of bits occupied by a single pixel of the post-test interface to determine the stability of the KVM switch.
[0063] After obtaining the post-test interface, compare the display configuration of the remote device with the display parameters of the post-test interface, and the stability of the multi-computer switch can be determined based on the difference between the two.
[0064] Specifically, the above-mentioned comparison of the display configuration of the remote device with the resolution of the post-test interface and the number of bits occupied by a single pixel to determine the stability of the multi-computer switch may include the following steps:
[0065] S201: Obtain a resolution difference value according to a difference between a resolution of the post-test interface and a resolution in a display configuration of the remote device.
[0066] That is, the resolution difference is obtained according to the difference in resolution between the interface after the test and the remote device. Ideally, the resolution of the interface after the test should be the same as the resolution of the remote device.
[0067] S202: Obtain a pixel bit number difference according to the difference between the number of bits occupied by a single pixel of the interface after the test and the number of bits occupied by a single pixel in the display configuration of the remote device.
[0068] Similarly, the pixel bit difference is obtained based on the difference in the single pixel bit ratio between the interface after the test and the remote device. Ideally, the pixel bit number of the interface after the test should be the same as the pixel bit number of the remote device.
[0069] S203: If the resolution difference is within the preset resolution difference, and the pixel bit number difference is within the preset pixel bit number difference, the test result of the current simulation pressure test is determined to be passed; otherwise, the test result of the current simulation pressure test is determined to be failed.
[0070] If the resolution difference is within the preset resolution difference, and the pixel bit difference is within the preset pixel bit difference, then the difference is within a reasonable range. The reasonable range refers to the range where abnormal problems such as screen flickering will not occur. Within this range, this stress test can be considered to have passed; otherwise, any other situation will be considered to have failed the test.
[0071] S204: Obtain the cumulative number of tests, and determine whether the cumulative number of tests reaches the target number of stress tests.
[0072] That is, each simulated stress test will be accumulated to obtain the current cumulative test number, and determine whether the current cumulative test number reaches the pre-configured target stress test number.
[0073] S205: If the cumulative number of tests does not reach the target number of stress tests, perform the next stress test.
[0074] If the cumulative number of tests does not reach the target number of stress tests, it indicates that further testing is required, so the next stress test is performed.
[0075] S206: If the cumulative number of tests reaches the target number of stress tests, the test results of all stress tests are counted, and the test result is determined as the ratio of the number of passed tests to the total number of stress tests.
[0076] If the cumulative number of tests reaches the target stress test number, it means that there are enough tests to accurately analyze the stability of the KVM switch. Figure 2 As shown, the pressure test process is cyclically repeated until the preset number of tests is reached, and the test is terminated.
[0077] S207: If the ratio reaches a preset ratio, it is determined that the stability of the KVM switch is qualified; otherwise, it is determined that the stability of the KVM switch is unqualified.
[0078] After all stress tests are completed, the stability of the KVM switch is determined to be qualified based on the proportion of stress test results that pass. For example, if the test result shows that the number of passed tests accounts for 95% of the total number of stress tests, the stability of the KVM switch is considered to be good, otherwise it is considered to be poor. That is, the result of a single test is determined based on the resolution and the number of bits occupied by a single pixel, and the stability of the KVM switch is determined based on the proportion of passed test results in multiple test results, thereby improving the accuracy of stability determination and avoiding misjudgment.
[0079] In some embodiments, obtaining the display configuration of the remote device may include: obtaining multiple display configurations of the remote device; and determining the stability of the multi-computer switch may include: determining the final stability of the multi-computer switch according to the stability of the multi-computer switch under each display configuration. It is understandable that the display configuration of the remote device may be different in actual use, so through stress testing under different resolutions and pixel positions, it is ensured that the visual stability of the multi-computer switch can be maintained for remote devices with different display configurations.
[0080] In the related art, two folders are built in the controlled device, the peripherals are mounted in one of the folders, and the peripherals are moved to another folder. The folders are moved repeatedly and the attribute information corresponding to each move is recorded; according to the attribute information, whether the multi-computer switch is stable is determined; but the method only verifies whether the peripherals in the controlled device can be mounted normally, and the stability of the multi-computer switch is achieved by repeated movement. In the related art, the multi-computer switch function is simulated to the baseboard management controller console by using a simulation tool, and the out-of-band network stability of the multi-computer switch under different data blocks and different scenarios is verified. The simulation tool is encapsulated for the operation of the remote server, and an automated script is generated to complete the baseboard management controller redirection module and the network stability of the multi-computer switch, but only the network stability of the multi-computer switch is verified. In the related art, the optical drive is mounted through the multi-computer switch, and then the disc is played in a loop on the mounted optical drive to verify the baseboard management controller network port, and the function of the multi-computer switch virtual display screen is verified; but its main function is still network verification, and it cannot provide the resolution and image quality of the display screen. Visual stability is not mentioned in the related art. The present application realizes the stability test of the management interface of the remote multi-computer switch of the baseboard management controller. At the same time, the method also realizes the visual global receptive field of the management interface of the multi-computer switch, which makes up for the test of the remote multi-computer switch in the visual field; through the test, the image quality and resolution of the multi-computer switch, as well as the long-term stability of the picture can be improved.
[0081] As can be seen from the above, in this embodiment, the display configuration of the remote device is obtained; the display configuration includes resolution and the number of bits occupied by a single pixel; the remote device is remotely controlled through a multi-computer switch, and the switching interface transmitted by the remote device is obtained; the switching interface is simulated and pressure-tested according to the target number of pressure tests, and the post-test interface corresponding to the switching interface after each test is obtained; the simulated pressure test is used to scan the image and extract the feature map; the display configuration of the remote device is compared with the resolution of the post-test interface and the number of bits occupied by a single pixel to determine the stability of the multi-computer switch. It can be seen that by performing a pressure test on the switching interface transmitted by the remote device for the target number of pressure tests, and performing a simulated pressure test through image scanning and feature map extraction operations, the comprehensiveness of the visual interface pressure test is improved, and then the resolution of the post-test interface after the pressure test and the number of bits occupied by a single pixel are compared with the original display configuration of the remote device, and the stability of the multi-computer switch can be determined by combining the test results of multiple tests, and the visual stability test of the multi-computer switch is realized, which further improves the ability of the computer switch stability test.
[0082] Correspondingly, the present application also discloses a multi-computer switch stability test device, which is applied to the test terminal, see Figure 3 As shown, the device comprises:
[0083] A display configuration acquisition module 11 is used to acquire the display configuration of the remote device; the display configuration includes the resolution and the number of bits occupied by a single pixel;
[0084] A remote control module 12, used to remotely control the remote device through a multi-computer switch and obtain a switching interface transmitted by the remote device;
[0085] The pressure test module 13 is used to perform a simulated pressure test on the switching interface according to the target pressure test times, and obtain a post-test interface corresponding to the switching interface after each test; the simulated pressure test is used to scan the image and extract the feature map;
[0086] The stability determination module 14 is used to compare the display configuration of the remote device with the resolution and the number of bits occupied by a single pixel of the post-test interface to determine the stability of the KVM switch.
[0087] As can be seen from the above, in this embodiment, the display configuration of the remote device is obtained; the display configuration includes resolution and the number of bits occupied by a single pixel; the remote device is remotely controlled through a multi-computer switch, and the switching interface transmitted by the remote device is obtained; the switching interface is simulated and pressure-tested according to the target number of pressure tests, and the post-test interface corresponding to the switching interface after each test is obtained; the simulated pressure test is used to scan the image and extract the feature map; the display configuration of the remote device is compared with the resolution of the post-test interface and the number of bits occupied by a single pixel to determine the stability of the multi-computer switch. It can be seen that by performing a pressure test on the switching interface transmitted by the remote device for the target number of pressure tests, and performing a simulated pressure test through image scanning and feature map extraction operations, the comprehensiveness of the visual interface pressure test is improved, and then the resolution of the post-test interface after the pressure test and the number of bits occupied by a single pixel are compared with the original display configuration of the remote device, and the stability of the multi-computer switch can be determined by combining the test results of multiple tests, and the visual stability test of the multi-computer switch is realized, which further improves the ability of the computer switch stability test.
[0088] In some specific embodiments, the display configuration acquisition module 11 may specifically include:
[0089] A display configuration acquisition unit, used to acquire multiple groups of display configurations of a remote device;
[0090] Accordingly, the stability judgment module 14 may specifically include:
[0091] The stability judgment unit is used to determine the final stability of the KVM switch according to the stability of the KVM switch under each display group configuration.
[0092] In some specific embodiments, the simulated pressure test may include image dimension reduction processing, image decomposition processing and image fusion processing in sequence.
[0093] In some specific embodiments, the pressure testing module 13 may specifically include:
[0094] A dimensionality reduction processing unit, used for inputting the switching interface into a two-dimensional selective scanning model, performing dimensionality reduction processing on the switching interface, and obtaining a one-dimensional vector of the switching interface in each direction;
[0095] An interactive processing unit, used for interactively processing the one-dimensional vector to obtain a one-dimensional linear vector corresponding to the switching interface;
[0096] A fusion processing unit is used to fuse the one-dimensional linear vectors to obtain a two-dimensional feature image corresponding to the switching interface, so as to obtain a post-test interface corresponding to the switching interface.
[0097] In some specific embodiments, the multi-computer switch stability testing device may further include:
[0098] The simulation key unit is used to execute simulation key pressing according to a preset frequency during the stress test process to maintain the control of the test terminal and the remote device, and the normal operation of the multi-computer switch.
[0099] In some specific embodiments, the multi-computer switch stability testing device may specifically include:
[0100] A stability test duration acquisition unit, used to obtain a preset stability test duration and a single stress test duration;
[0101] The target stress test number determination unit is used to determine the target stress test number according to the ratio of the stability test duration to the single stress test duration, so that the total stress test duration can reach the stability test duration after all stress tests are completed according to the target stress test number.
[0102] In some specific embodiments, the stability judgment module 14 may specifically include:
[0103] a resolution difference determination unit, configured to obtain a resolution difference according to a difference between a resolution of the post-test interface and a resolution in a display configuration of the remote device;
[0104] A pixel bit number difference determination unit, configured to obtain a pixel bit number difference according to a difference between the number of bits occupied by a single pixel of the interface after the test and the number of bits occupied by a single pixel in the display configuration of the remote device;
[0105] A test result determination unit, configured to determine that the test result of the current simulated pressure test is passed if the resolution difference is within a preset resolution difference and the pixel bit number difference is within a preset pixel bit number difference, and otherwise, determine that the test result of the current simulated pressure test is failed;
[0106] A number reaching standard judging unit is used to obtain the cumulative number of tests and judge whether the cumulative number of tests reaches the target number of pressure tests;
[0107] A test execution unit, configured to execute the next stress test if the cumulative number of tests does not reach the target number of stress tests;
[0108] A result statistics unit, configured to count the test results of all stress tests if the cumulative number of tests reaches the target number of stress tests, and determine the test result as the ratio of the number of passed tests to the total number of stress tests;
[0109] The stability judgment unit is used to judge that the stability of the multi-computer switch is qualified if the ratio reaches a preset ratio, otherwise, judge that the stability of the multi-computer switch is unqualified.
[0110] Furthermore, the present application also discloses an electronic device, see Figure 4 As shown, the contents in the drawings should not be considered as any limitation on the scope of use of the present application.
[0111] Figure 4 The present invention is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the multi-computer switch stability test method disclosed in any of the aforementioned embodiments.
[0112] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0113] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222, and data 223 including display configuration, etc. The storage method can be temporary storage or permanent storage.
[0114] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the multi-computer switch stability test method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0115] Furthermore, an embodiment of the present application also discloses a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the multi-computer switch stability testing method disclosed in any of the aforementioned embodiments are implemented.
[0116] Furthermore, an embodiment of the present application also discloses a computer program product, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the multi-computer switch stability test method disclosed in any of the aforementioned embodiments are implemented.
[0117] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0118] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0119] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0120] The above is a detailed introduction to the multi-computer switch stability testing method, device, equipment and medium provided by the present invention. Specific examples are used in this article 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 general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for testing the stability of a multi-computer switch, characterized in that: Applicable to test terminals, including: Obtaining a display configuration of a remote device; the display configuration includes a resolution and a number of bits occupied by a single pixel; Remotely controlling the remote device through a multi-computer switch and acquiring a switching interface transmitted by the remote device; Performing a simulated pressure test on the switching interface according to the target pressure test times, and obtaining a post-test interface corresponding to the switching interface after each test; the simulated pressure test is used to scan the image and extract the feature map; The display configuration of the remote device is compared with the resolution and the number of bits occupied by a single pixel of the tested interface to determine the stability of the multi-computer switch.
2. The KVM switch stability testing method according to claim 1, characterized in that: The obtaining of the display configuration of the remote device comprises: Get multiple display configurations of remote devices; The determining the stability of the multi-computer switch includes: According to the stability of the KVM switch under each display group configuration, the final stability of the KVM switch is determined.
3. The KVM switch stability testing method according to claim 1, characterized in that: The simulated pressure test includes image dimension reduction processing, image decomposition processing and image fusion processing in sequence.
4. The KVM switch stability testing method according to claim 3, characterized in that: The simulated pressure test is performed on the switching interface to obtain a post-test interface corresponding to the switching interface after each test, including: Inputting the switching interface into a two-dimensional selective scanning model, performing dimensionality reduction processing on the switching interface, and obtaining a one-dimensional vector of the switching interface in each direction; Interactively processing the one-dimensional vector to obtain a one-dimensional linear vector corresponding to the switching interface; The one-dimensional linear vectors are fused to obtain a two-dimensional feature image corresponding to the switching interface, so as to obtain a post-test interface corresponding to the switching interface.
5. The KVM switch stability testing method according to claim 1, characterized in that: Also includes: During the stress test, simulated keystrokes are executed at a preset frequency to maintain control of the test terminal and the remote device, and normal operation of the multi-computer switch.
6. The KVM switch stability testing method according to claim 1, characterized in that: Before performing a simulated pressure test on the switching interface according to the target pressure test times, the method further includes: Get the preset stability test duration and single stress test duration; The target number of stress tests is determined according to the ratio of the stability test duration to the single stress test duration, so that the total stress test duration can reach the stability test duration after all stress tests are completed according to the target number of stress tests.
7. The KVM switch stability testing method according to claims 1 to 6, characterized in that: The comparing the display configuration of the remote device with the resolution of the interface after the test and the number of bits occupied by a single pixel to determine the stability of the multi-computer switch includes: Obtaining a resolution difference value according to a difference between a resolution of the post-test interface and a resolution in a display configuration of the remote device; Obtaining a pixel bit number difference value according to the difference between the number of bits occupied by a single pixel of the interface after the test and the number of bits occupied by a single pixel in the display configuration of the remote device; If the resolution difference is within the preset resolution difference, and the pixel bit number difference is within the preset pixel bit number difference, the test result of the current simulated pressure test is determined to be passed; otherwise, the test result of the current simulated pressure test is determined to be failed; Obtain the cumulative number of tests, and determine whether the cumulative number of tests reaches the target number of stress tests; If the cumulative number of tests does not reach the target number of stress tests, the next stress test is performed; If the cumulative number of tests reaches the target number of stress tests, the test results of all stress tests are counted, and the test result is determined as the ratio of the number of passed tests to the total number of stress tests; If the ratio reaches a preset ratio, it is determined that the stability of the KVM switch is qualified; otherwise, it is determined that the stability of the KVM switch is unqualified.
8. A multi-computer switch stability testing device, characterized in that: include: A display configuration acquisition module, used to acquire the display configuration of the remote device; the display configuration includes resolution and the number of bits occupied by a single pixel; A remote control module, used to remotely control the remote device through a multi-computer switch and obtain a switching interface transmitted by the remote device; A pressure test module, used to perform a simulated pressure test on the switching interface according to a target pressure test number, and obtain a post-test interface corresponding to the switching interface after each test; The simulated pressure test includes image dimension reduction processing, image decomposition processing and image fusion processing in sequence; The stability judgment module is used to compare the display configuration of the remote device with the resolution and the number of bits occupied by a single pixel of the post-test interface to judge the stability of the multi-computer switch.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the multi-computer switch stability testing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein when the computer programs are executed by a processor, the multi-computer switch stability testing method as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Automatic testing method and apparatus for Android system simulating key sending function
CN106294103A
System and method for achieving no-flicker switching of KVM switcher on basis of FPGA
CN107390893A
Interface testing method and device, equipment and storage medium
CN112882947A
Electronic equipment testing method and device, equipment and readable storage medium
CN116126671A
Multi-computer host KVM switcher with mobile APP control and video preview functions
CN117749962A