Pressure testing method and device, electronic equipment and storage medium
Through the connection and load simulation of the Master server and the slave server, stress testing of large-scale virtual desktop clients is implemented, solving the problems of difficult and cost in the existing technology, and ensuring the reliability of system performance.
Patent Information
- Application Number
- CN202411318689.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2025-01-03
AI Technical Summary
The existing technology is difficult to implement stress testing of large-scale virtual desktop clients, and the deployment is difficult and costly, making it difficult to guarantee system performance and prone to quality accidents.
Connect with multiple slave servers through the Master server, determine and record the IP information and cloud desktop connection information of the slave server, send login connection instructions to enable the virtual desktop client R to establish a connection with the remote session desktop S, and issue a load load instruction Simulate user operations, detect and record performance parameters.
It realizes effective stress testing and verification of multiple virtual desktop clients, reduces deployment difficulty and cost, and ensures the reliability of system performance.
Smart Images

Figure CN119248642A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of software stress testing, and in particular to a stress testing method and device, an electronic device, and a storage medium. Background Art
[0002] Cloud desktop products mainly include virtual desktop client R (Vanxum Receiver), remote session desktop S and terminal management platform CA (Cloud Access). Receiver is used to connect to the remote session desktop, and CA is the terminal management platform of Receiver, which performs Iaas management, user management, resource management, terminal management, etc.
[0003] At present, the stress test for cloud desktop products mainly focuses on deploying multiple R-end devices in the test environment, and then recording the response parameters on the server side when multiple R-end devices perform concurrent operations on the server. In this case, it is generally easier to deploy thirty or forty R-end devices for testing. However, if it involves stress testing of large-scale R-end devices, such as hundreds of R-end devices, or even tens of thousands, on the one hand, the deployment is difficult, and on the other hand, the deployment cost is also very high, which is difficult to achieve. However, if stress testing of large-scale R-end devices is not performed, and only functional testing or stress testing of a small number of R-end devices is performed, the system performance is difficult to guarantee. Once the system is put into use, if a quality accident occurs at the customer site, it is easy to cause irreparable economic losses.
[0004] Therefore, there is an urgent need for a testing method that can not only meet cost requirements but also perform good stress testing and verification on a large number of R ends. Summary of the invention
[0005] The purpose of the present disclosure is to overcome the deficiencies of the prior art and to provide a stress testing method and device, an electronic device and a storage medium. The stress testing method can achieve good stress testing verification of a multi-channel virtual desktop client R.
[0006] According to a first aspect of an embodiment of the present disclosure, a stress testing method is provided, which is applied to a Master server, wherein the Master server is connected to a plurality of slave servers, and each of the slave servers is provided with a plurality of remote session desktop terminals S and a plurality of virtual desktop clients R; the method comprises:
[0007] Determine the IP information of the slave servers that need to participate in the test, and the cloud desktop connection information corresponding to each slave server, and record the IP information and cloud desktop connection information in a preset table;
[0008] According to the IP information of the slave server, the cloud desktop connection information corresponding to each slave server is sent to the corresponding slave server;
[0009] When a concurrent test instruction is received, a login connection instruction is sent to each slave server that needs to participate in the test; the login connection instruction is used to instruct the slave server to distribute the connection information of each remote session desktop S to a corresponding number of virtual desktop clients R according to the cloud desktop connection information, and each virtual desktop client R simultaneously initiates a login connection operation based on the remote session desktop S connection information.
[0010] In one embodiment, the method further comprises:
[0011] A load loading instruction is sent to the slave server, and the load loading instruction is used to instruct the slave server to control the virtual desktop client R to simulate the user's operation on the remote session desktop S to achieve the simulation of the user's daily usage scenario.
[0012] In one embodiment, the respective virtual desktop clients R simultaneously initiate a login connection operation based on the connection information of the remote session desktop client S, including:
[0013] Each virtual desktop client R sends a login connection request to the corresponding remote session desktop terminal S according to the remote session desktop terminal S connection information, wherein the login connection request carries login account information and password information;
[0014] The remote session desktop terminal S receives the login connection request, and initiates an authentication request to the terminal management platform CA according to the login connection request, wherein the authentication request carries the login account information and password information;
[0015] After receiving the authentication request, the terminal management platform CA performs authentication according to the login account information and password information, and after the authentication is passed, returns an authentication pass message to the corresponding remote session desktop terminal S;
[0016] After receiving the authentication success message, the remote session desktop S establishes a communication connection with the corresponding virtual desktop client R.
[0017] In one embodiment, the method further comprises:
[0018] Detect and record the performance parameters of the virtual desktop client R, remote session desktop S and terminal management platform CA in different scenarios.
[0019] In one embodiment, the performance parameters of the terminal management platform CA and the virtual desktop client R include at least one of CPU, memory and network parameters; the performance parameters of the remote session desktop S include at least one of CPU, memory, network parameters and IOPS.
[0020] According to a second aspect of an embodiment of the present disclosure, a stress test device is provided, the device comprising: a determination module, a first sending module and a processing module; wherein:
[0021] The determination module determines the IP information of the slave servers that need to participate in the test, and the cloud desktop connection information corresponding to each slave server, and records the IP information and the cloud desktop connection information in a preset table;
[0022] The first sending module sends the cloud desktop connection information corresponding to each slave server to the corresponding slave server according to the IP information of the slave server;
[0023] When receiving a concurrent test instruction, the processing module sends a login connection instruction to each slave server that needs to participate in the test; the login connection instruction is used to instruct the slave server to distribute the connection information of each remote session desktop terminal S to a corresponding number of virtual desktop clients R according to the cloud desktop connection information, and each virtual desktop client R simultaneously initiates a login connection operation based on the connection information of the remote session desktop terminal S.
[0024] In one embodiment, the device further includes: a second sending module; wherein,
[0025] The second sending module sends a load loading instruction to the slave server, and the load loading instruction instructs the slave server to control the virtual desktop client R to simulate the user's operation on the remote session desktop S to realize the simulation of the user's daily usage scenario.
[0026] In one embodiment, the processing module is specifically used to:
[0027] Each virtual desktop client R sends a login connection request to the corresponding remote session desktop terminal S according to the remote session desktop terminal S connection information, wherein the login connection request carries login account information and password information;
[0028] The remote session desktop terminal S receives the login connection request, and initiates an authentication request to the terminal management platform CA according to the login connection request, wherein the authentication request carries the login account information and password information;
[0029] After receiving the authentication request, the terminal management platform CA performs authentication according to the login account information and password information, and after the authentication is passed, returns an authentication pass message to the corresponding remote session desktop terminal S;
[0030] After receiving the authentication success message, the remote session desktop S establishes a communication connection with the corresponding virtual desktop client R.
[0031] According to a third aspect of an embodiment of the present application, an electronic device is provided, including: a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0032] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0033] In a stress testing method provided by an embodiment of the present disclosure, the Master server determines the IP information of the slave servers that need to participate in the test and the cloud desktop connection information corresponding to each slave server, and records the IP information and the cloud desktop connection information in a preset table, and sends the cloud desktop connection information corresponding to each slave server to the corresponding slave server according to the IP information of the slave server, and when receiving a concurrent test instruction, sends a login connection instruction to each slave server that needs to participate in the test, so as to instruct the slave server to distribute the connection information of each remote session desktop end S to a corresponding number of virtual desktop clients R according to the cloud desktop connection information through the login connection instruction, so that each virtual desktop client R can simultaneously initiate a login connection operation based on the remote session desktop end S connection information, so as to achieve a good stress test verification of multiple virtual desktop clients R. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0035] Figure 1 A schematic diagram of a pressure testing system provided in an embodiment of the present disclosure.
[0036] Figure 2 A flowchart of a stress testing method provided in an embodiment of the present disclosure.
[0037] Figure 3 An architectural diagram of a pressure testing device provided in an embodiment of the present disclosure.
[0038] Figure 4An architectural diagram of a pressure testing device provided in an embodiment of the present disclosure.
[0039] Figure 5 An internal structure diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0041] Figure 1 A schematic diagram of a pressure testing system provided by the present disclosure. Figure 1 As shown, the stress testing system includes a terminal management platform CA, a Master server, a Slave server and a monitoring server, etc. The Master server is provided with a Robot master control program and a monitoring program.
[0042] Figure 2 A flow chart of a pressure testing method provided by an embodiment of the present disclosure. Figure 2 As shown, the method is applied to a Master server, which is connected to a plurality of slave servers, each of which is provided with a plurality of remote session desktop terminals S and a plurality of virtual desktop clients R; the method comprises:
[0043] Step 201: determine the IP information of the slave servers that need to participate in the test, and the cloud desktop connection information corresponding to each slave server, and record the IP information and cloud desktop connection information in a preset table;
[0044] In this step, when a large-scale concurrent test is required, the Master server first determines the IP information of the slave servers that need to participate in the test, as well as the cloud desktop connection information corresponding to each slave server, and records the IP information of the slave servers and the cloud desktop connection information corresponding to each slave server in a preset table. Exemplarily, the cloud desktop connection information includes the connection addresses (generally IP addresses) of multiple remote session desktop terminals S and the login account and password corresponding to each connection address; the preset table is an Excel table, which stores the environment information of each virtual desktop client R, the environment information of each of the slave servers, the IP information of the slave server, and the cloud desktop connection information corresponding to each slave server.
[0045] Step 202: According to the IP information of the slave server, the cloud desktop connection information corresponding to each slave server is sent to the corresponding slave server;
[0046] In this step, the Master server sends the corresponding cloud desktop connection information to the corresponding slave server according to the IP information of the slave server that needs to participate in the test.
[0047] Step 203: When receiving the concurrent test instruction, send a login connection instruction to each slave server that needs to participate in the test; the login connection instruction is used to instruct the slave server to distribute the connection information of each remote session desktop S to a corresponding number of virtual desktop clients R according to the cloud desktop connection information, and each virtual desktop client R simultaneously initiates a login connection operation based on the remote session desktop S connection information.
[0048] In this step, when performing concurrent testing, the Master server sends a login connection command to each slave server that needs to participate in the test. When the slave server receives the login connection command, it distributes the connection information of each remote session desktop S to the corresponding number of virtual desktop clients R according to the received cloud desktop environment information. The connection information includes the connection address, login account information and password information. Each virtual desktop client R simultaneously initiates a login connection operation based on the received connection information.
[0049] In one embodiment, the respective virtual desktop clients R simultaneously initiate a login connection operation based on the connection information of the remote session desktop client S, including:
[0050] Each virtual desktop client R sends a login connection request to the corresponding remote session desktop terminal S according to the remote session desktop terminal S connection information, wherein the login connection request carries login account information and password information;
[0051] The remote session desktop terminal S receives the login connection request, and initiates an authentication request to the terminal management platform CA according to the login connection request, wherein the authentication request carries the login account information and password information;
[0052] After receiving the authentication request, the terminal management platform CA performs authentication according to the login account information and password information, and after the authentication is passed, returns an authentication pass message to the corresponding remote session desktop terminal S;
[0053] After receiving the authentication success message, the remote session desktop S establishes a communication connection with the corresponding virtual desktop client R.
[0054] In this embodiment, each virtual desktop client R sends a login connection request to the corresponding remote session desktop terminal S based on the connection information of the remote session desktop terminal S. The login connection request carries the login account information and password information. The remote session desktop terminal S receives the login connection request and initiates an authentication request to the terminal management platform CA based on the login connection request. The authentication request carries the login account information and password information. After receiving the authentication request, the terminal management platform CA performs authentication based on the login account information and password information carried in the authentication request, and after the authentication is passed, returns an authentication pass message to the corresponding remote session desktop terminal S. After receiving the authentication pass message, the remote session desktop terminal S establishes a communication connection with the corresponding virtual desktop client R.
[0055] Optionally, the method further comprises:
[0056] A load loading instruction is sent to the slave server, and the load loading instruction is used to instruct the slave server to control the virtual desktop client R to simulate the user's operation on the remote session desktop S to achieve the simulation of the user's daily usage scenario.
[0057] In this embodiment, after the remote session desktop S establishes a communication connection with the virtual desktop client R, the Master server will send a load loading instruction to the slave server. After receiving the instruction, the slave server controls the virtual desktop client R to simulate the user's operation on the remote session desktop S, thereby realizing the simulation of the user's daily usage scenarios.
[0058] Optionally, the method further comprises:
[0059] Detect and record the performance parameters of the virtual desktop client R, remote session desktop S and terminal management platform CA in different scenarios.
[0060] In this embodiment, the Master server detects and records the performance parameters of the virtual desktop client R, the remote session desktop S and the terminal management platform CA in different scenarios.
[0061] Among them, the performance parameters of the terminal management platform CA and the virtual desktop client R include at least one of CPU, memory and network parameters; the performance parameters of the remote session desktop S include at least one of CPU, memory, network parameters and IOPS.
[0062] It should be noted that the Master server in the disclosed embodiment is provided with a Robot master control program, and each Slave server is provided with an Auto Test program. The Master server transmits the Excel table storing the environment information of each virtual desktop client R and the environment information of each Slave server to each Slave server through the Robot master control program provided thereon, and issues a load instruction to the Auto Test program on each Slave server through the Robot master control program provided thereon, and the Auto Test program batch starts the Loader Agent program of each remote session desktop S. After the Loader Agent is started, the scene automation is run to simulate a person to perform scene operation simulation on the cloud desktop.
[0063] In a stress testing method provided by an embodiment of the present disclosure, the Master server determines the IP information of the slave servers that need to participate in the test and the cloud desktop connection information corresponding to each slave server, and records the IP information and the cloud desktop connection information in a preset table, and sends the cloud desktop connection information corresponding to each slave server to the corresponding slave server according to the IP information of the slave server, and when receiving a concurrent test instruction, sends a login connection instruction to each slave server that needs to participate in the test, so as to instruct the slave server to distribute the connection information of each remote session desktop end S to a corresponding number of virtual desktop clients R according to the cloud desktop connection information through the login connection instruction, so that each virtual desktop client R can simultaneously initiate a login connection operation based on the remote session desktop end S connection information, so as to achieve a good stress test verification of multiple virtual desktop clients R.
[0064] Figure 3 This is a schematic diagram of a pressure testing device provided by an embodiment of the present disclosure. Figure 3As shown, the stress testing device includes a determination module 301, a first sending module 302 and a processing module 303; wherein the determination module 301 is used to determine the IP information of the slave servers that need to participate in the test, and the cloud desktop connection information corresponding to each slave server, and record the IP information and the cloud desktop connection information in a preset table; the first sending module 302 is used to send the cloud desktop connection information corresponding to each slave server to the corresponding slave server according to the IP information of the slave server; the processing module 303 is used to send a login connection instruction to each slave server that needs to participate in the test when receiving a concurrent test instruction; the login connection instruction is used to instruct the slave server to distribute the connection information of each remote session desktop end S to a corresponding number of virtual desktop clients R according to the cloud desktop connection information, and each virtual desktop client R simultaneously initiates a login connection operation based on the connection information of the remote session desktop end S.
[0065] Figure 4 This is a schematic diagram of a pressure testing device provided by an embodiment of the present disclosure. Figure 4 As shown, the stress testing device includes a determination module 401, a first sending module 402, a processing module 403 and a second sending module 404; wherein the second sending module 404 is used to send a load loading instruction to the slave server, and the load loading instruction is used to instruct the slave server to control the virtual desktop client R to simulate the user's operation on the remote session desktop S to realize the simulation of the user's daily usage scenario.
[0066] In one embodiment, the processing module is specifically used to:
[0067] Each virtual desktop client R sends a login connection request to the corresponding remote session desktop terminal S according to the remote session desktop terminal S connection information, wherein the login connection request carries login account information and password information;
[0068] The remote session desktop terminal S receives the login connection request, and initiates an authentication request to the terminal management platform CA according to the login connection request, wherein the authentication request carries the login account information and password information;
[0069] After receiving the authentication request, the terminal management platform CA performs authentication according to the login account information and password information, and after the authentication is passed, returns an authentication pass message to the corresponding remote session desktop terminal S;
[0070] After receiving the authentication success message, the remote session desktop S establishes a communication connection with the corresponding virtual desktop client R.
[0071] The present disclosure also provides an electronic device, the internal structure diagram of the electronic device can be as follows Figure 5 As shown. The electronic device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it is implemented as in the above-mentioned stress testing method. It includes: a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements any step in the above-mentioned stress testing method.
[0072] The present disclosure also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any step in the above-mentioned stress testing method can be implemented.
[0073] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0074] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A stress testing method, characterized in that: Applied to a Master server, the Master server is connected to a plurality of slave servers, each of which is provided with a plurality of remote session desktop terminals S and a plurality of virtual desktop clients R; the method comprises: Determine the IP information of the slave servers that need to participate in the test, and the cloud desktop connection information corresponding to each slave server, and record the IP information and cloud desktop connection information in a preset table; According to the IP information of the slave server, the cloud desktop connection information corresponding to each slave server is sent to the corresponding slave server; When a concurrent test instruction is received, a login connection instruction is sent to each slave server that needs to participate in the test; the login connection instruction is used to instruct the slave server to distribute the connection information of each remote session desktop S to a corresponding number of virtual desktop clients R according to the cloud desktop connection information, and each virtual desktop client R simultaneously initiates a login connection operation based on the remote session desktop S connection information.
2. The pressure testing method according to claim 1, characterized in that: The method further comprises: A load loading instruction is sent to the slave server, and the load loading instruction is used to instruct the slave server to control the virtual desktop client R to simulate the user's operation on the remote session desktop S to achieve the simulation of the user's daily usage scenario.
3. The pressure testing method according to claim 1 or 2, characterized in that: The operations of simultaneously initiating a login connection by each virtual desktop client R according to the connection information of the remote session desktop client S include: Each virtual desktop client R sends a login connection request to the corresponding remote session desktop terminal S according to the remote session desktop terminal S connection information, wherein the login connection request carries login account information and password information; The remote session desktop terminal S receives the login connection request, and initiates an authentication request to the terminal management platform CA according to the login connection request, wherein the authentication request carries the login account information and password information; After receiving the authentication request, the terminal management platform CA performs authentication according to the login account information and password information, and after the authentication is passed, returns an authentication pass message to the corresponding remote session desktop terminal S; After receiving the authentication success message, the remote session desktop S establishes a communication connection with the corresponding virtual desktop client R.
4. The pressure testing method according to claim 3, characterized in that: The method further comprises: Detect and record the performance parameters of the virtual desktop client R, remote session desktop S and terminal management platform CA in different scenarios.
5. The pressure testing method according to claim 4, characterized in that: The performance parameters of the terminal management platform CA and the virtual desktop client R include at least one of CPU, memory and network parameters; the performance parameters of the remote session desktop S include at least one of CPU, memory, network parameters and IOPS.
6. A pressure testing device, characterized in that: The device comprises: a determination module, a first sending module and a processing module; wherein, The determination module determines the IP information of the slave servers that need to participate in the test, and the cloud desktop connection information corresponding to each slave server, and records the IP information and the cloud desktop connection information in a preset table; The first sending module sends the cloud desktop connection information corresponding to each slave server to the corresponding slave server according to the IP information of the slave server; When receiving a concurrent test instruction, the processing module sends a login connection instruction to each slave server that needs to participate in the test; the login connection instruction is used to instruct the slave server to distribute the connection information of each remote session desktop terminal S to a corresponding number of virtual desktop clients R according to the cloud desktop connection information, and each virtual desktop client R simultaneously initiates a login connection operation based on the connection information of the remote session desktop terminal S.
7. The pressure testing device according to claim 6, characterized in that: The device further includes: a second sending module; wherein, The second sending module sends a load loading instruction to the slave server, and the load loading instruction instructs the slave server to control the virtual desktop client R to simulate the user's operation on the remote session desktop S to realize the simulation of the user's daily usage scenario.
8. The pressure testing device according to claim 6 or claim 7, characterized in that: The processing module is specifically used for: Each virtual desktop client R sends a login connection request to the corresponding remote session desktop terminal S according to the remote session desktop terminal S connection information, wherein the login connection request carries login account information and password information; The remote session desktop terminal S receives the login connection request, and initiates an authentication request to the terminal management platform CA according to the login connection request, wherein the authentication request carries the login account information and password information; After receiving the authentication request, the terminal management platform CA performs authentication according to the login account information and password information, and after the authentication is passed, returns an authentication pass message to the corresponding remote session desktop terminal S; After receiving the authentication success message, the remote session desktop S establishes a communication connection with the corresponding virtual desktop client R.
9. An electronic device, comprising: A memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the method according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
