Automatic test tool, test method and storage medium
By using automated testing tools to perform full-process stability testing on virtualization systems, the problem of the lack of system stability testing tools in existing technologies is solved. This enables comprehensive stability assessment and dynamic load adjustment of virtualization systems, and generates stability test reports.
Patent Information
- Application Number
- CN202511084931.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-04
- Publication Date
- 2025-12-16
AI Technical Summary
Existing technologies lack stability testing tools for virtualized systems from installation to deployment and overall operation, making it impossible to conduct full-process, comprehensive stability testing and evaluate test results.
An automated testing tool is provided, including an installation and deployment module, a connection module, a load module, a monitoring module, and a scoring module, for performing full-process stability testing on virtual desktop clients and remote session desktops. The load module dynamically adjusts the load scenario, and the scoring module performs a comprehensive evaluation.
It enables full-process, all-round stability testing of virtualization systems, generates stability test reports, dynamically adjusts server load to maintain performance at around 80%, and provides an overall system stability assessment.
Smart Images

Figure CN121144152A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of software testing technology, specifically to an automated testing tool, testing method, and storage medium. Background Technology
[0002] Cloud desktop products mainly include the virtual desktop client R (Vanxum Receiver), the remote session desktop S, and the terminal management platform CA (Cloud Access). Receiver is used to connect to the remote session desktop, and CA is the terminal management platform for Receiver, which performs IaaS management, user management, resource management, terminal management, etc.
[0003] Existing technologies involve extensive stability testing of single-path virtualization products, but lack tools for comprehensive stability testing of the entire virtualization system from installation and deployment to overall operation, as well as tools for evaluating and scoring the overall system. Therefore, there is an urgent need for such a tool capable of conducting full-process, comprehensive stability testing and evaluating test results for the entire system. Summary of the Invention
[0004] The purpose of this disclosure is to overcome the shortcomings of the prior art and provide an automated testing tool, testing method and storage medium. The automated testing tool can perform full-process and all-round stability testing on the entire system.
[0005] According to a first aspect of the present disclosure, an automated testing tool is provided, comprising: an installation and deployment module, a connection module, a load balancing module, a monitoring module, and a scoring module; wherein,
[0006] The installation and deployment module is used to install the CA server, virtual desktop client, and remote session desktop according to the configuration file, report the virtual desktop client and remote session desktop to the CA server, register them on the CA server, and generate registration information.
[0007] The connection module is used to establish a connection between the corresponding virtual desktop client and the remote session desktop based on the registration information;
[0008] The load module is used to write the information of the remote session desktop that has established a connection into the load module configuration file and start the corresponding load scenario of the remote session desktop.
[0009] The monitoring module is used to monitor the performance metrics of the CA server, virtual desktop client, and remote session desktop.
[0010] The scoring module is used to monitor test information during the stability test process; wherein, the test information includes the connection status between the virtual desktop client and the remote session desktop, as well as various fault requests and load operation status during the connection process.
[0011] In one embodiment, the scoring module is further configured to:
[0012] After the test is completed, each virtual desktop client and remote session desktop is scored based on the test information to obtain a test score for each channel. The overall performance of the entire test system is then weighted and scored to obtain the total test score.
[0013] In one embodiment, the testing tool further includes a reporting module;
[0014] The reporting module is used to draw charts based on the test scores for each path, the total test score, and the performance metrics of the CA server, virtual desktop client, and remote session desktop, generate a test report, and distribute the test report to relevant users.
[0015] In one embodiment, the scoring module is further configured to:
[0016] Record the operation status of the installation and deployment module, connection module, load module, and monitoring module during the testing process.
[0017] In one embodiment, the load module is further configured to:
[0018] The load scenarios of the remote session desktop are dynamically scheduled based on the performance indicators of the CA server.
[0019] In one embodiment, the scenario of dynamically scheduling the load of the remote session desktop based on the performance metrics of the CA server includes:
[0020] If the overall performance of the CA server is greater than the first preset value, it is determined that the CA server load is too high. The load module will shut down some of the load on the remote session desktops so that the overall performance of the server is maintained at the second preset value.
[0021] If the overall performance of the CA server is less than the third preset value, it is determined that the CA server load is low. The load module will start a new remote session desktop load to keep the overall performance of the server at the second preset value. The first preset value is greater than the second preset value, and the second preset value is greater than the third preset value.
[0022] In one embodiment, the performance metrics of both the CA server and the virtual desktop client include at least one of CPU, memory, and network, and the performance metrics of the remote session desktop include at least one of CPU, memory, network, and IOPS.
[0023] According to a second aspect of the present disclosure, an automated testing method is provided, the testing method comprising the following steps:
[0024] Install the CA server, virtual desktop client, and remote session desktop according to the configuration file, report the virtual desktop client and remote session desktop to the CA server, register them on the CA server, and generate registration information;
[0025] Establish a connection between the corresponding virtual desktop client and the remote session desktop based on the registration information;
[0026] Write the information of the remote session desktop that establishes the connection to the load module configuration file, and start the corresponding load scenario of the remote session desktop.
[0027] Monitor test information during the stability test process; wherein, the test information includes the connection status between the virtual desktop client and the remote session desktop, as well as various fault requests and load operation status during the connection process.
[0028] In one embodiment, the method further includes:
[0029] After the test is completed, each virtual desktop client and remote session desktop is scored based on the test information to obtain a test score for each channel. The overall performance of the entire test system is then weighted and scored to obtain the total test score.
[0030] In one embodiment, the method further includes:
[0031] Based on the test scores for each path, the total test score, and the performance metrics of the CA server, virtual desktop client, and remote session desktop, charts are drawn, a test report is generated, and the test report is distributed to the relevant users.
[0032] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the method as described in any of the preceding claims. An automated testing tool provided by the present disclosure is capable of performing stability tests on servers, virtual desktop clients, and remote session desktops, covering the entire process from installation and deployment to connection establishment and load balancing. During the test, a load module dynamically adjusts the load to maintain server performance utilization at approximately 80%, while a scoring module continuously evaluates and records the test process, ultimately generating a stability test report to perform system-wide stability testing. Attached Figure Description
[0033] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0034] Figure 1 This is a schematic diagram of an automated testing system provided in an embodiment of the present disclosure.
[0035] Figure 2 This is an architecture diagram of an automated testing tool provided in an embodiment of this disclosure.
[0036] Figure 3 This is an architecture diagram of an automated testing tool provided in an embodiment of this disclosure.
[0037] Figure 4 A flowchart of an automated testing method provided in an embodiment of this disclosure. Detailed Implementation
[0038] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0039] Figure 1 This is a schematic diagram of an automated testing system provided in an embodiment of this disclosure. Figure 1 As shown, the testing system includes: a server, and multiple virtual desktop clients, multiple remote session desktops, and automated testing tools connected to the CA server. The automated testing tools... Figure 1The middle part is marked as a one-click main control program; wherein, the multiple virtual desktop clients correspond one-to-one with multiple remote session desktops; the automated testing tool includes a load module, a monitoring program, a scoring module, an installation and deployment module, a connection module, a reporting module, etc.
[0040] Figure 2 This is an architecture diagram of an automated testing tool provided in an embodiment of this disclosure. Figure 2 As shown, the testing tool includes: an installation and deployment module 201, a connection module 202, a load module 203, a monitoring module 204, and a scoring module 205; among which,
[0041] The installation and deployment module 201 is used to install the CA server, virtual desktop client and remote session desktop according to the configuration file, report the virtual desktop client and remote session desktop to the CA server, register on the CA server and generate registration information;
[0042] Specifically, the installation and deployment module first installs the deployment server according to the configuration file, then installs the required virtual desktop client and remote session desktop according to the configuration file, and reports them to the server at the same time. After successful registration on the server, registration information is generated.
[0043] The connection module 202 is used to establish a connection between the corresponding virtual desktop client and the remote session desktop according to the registration information;
[0044] Specifically, the connection module establishes a connection between the corresponding virtual desktop client and the remote session desktop based on the registration information generated by the installation and deployment module.
[0045] The load module 203 is used to write the information of the remote session desktop that has established a connection into the load module configuration file and start the corresponding load scenario of the remote session desktop.
[0046] Specifically, the load module writes the established remote session desktop information into the load module configuration file and starts the corresponding remote session desktop load scenario (i.e., Loader Agent). After the Loader Agent starts, it runs the scenario automatically, simulating human operation simulation on the cloud desktop.
[0047] The monitoring module 204 is used to monitor the performance metrics of the CA server, virtual desktop client, and remote session desktop.
[0048] Specifically, the monitoring module monitors the performance metrics of the server, virtual desktop client, and remote session desktop; among them, the monitoring module monitors and records CPU, memory, network, etc. of the server and virtual desktop client, and monitors and records key metrics such as CPU, memory, network, and IOPS of the remote session desktop.
[0049] The scoring module 205 is used to monitor test information during the stability test process; wherein, the test information includes the connection status between the virtual desktop client and the remote session desktop, as well as various fault requests and load operation status during the connection process.
[0050] Specifically, during the stability test, the scoring module continuously monitors the connection status between the virtual desktop client and the remote session desktop, various faults during the connection process, and the load operation status.
[0051] In one embodiment, the scoring module is further configured to:
[0052] After the test is completed, each virtual desktop client and remote session desktop is scored based on the test information to obtain a test score for each channel. The overall performance of the entire test system is then weighted and scored to obtain the total test score.
[0053] In this embodiment, once the stability test period is reached and the test is completed, the scoring module will score each virtual desktop client and remote session desktop based on the fault situation and overall operating performance during the stability test, and at the same time, it will give a weighted score for the overall operation of the entire system.
[0054] Figure 3 This is an architecture diagram of an automated testing tool provided in an embodiment of this disclosure. Figure 3 As shown, the testing tool includes: an installation and deployment module 301, a connection module 302, a load module 303, a monitoring module 304, a scoring module 305, and a reporting module 306; among which,
[0055] The reporting module 306 is used to draw charts based on the test scores for each path, the total test score, and the performance metrics of the CA server, virtual desktop client, and remote session desktop, generate a test report, and distribute the test report to relevant users.
[0056] Specifically, the reporting module will create charts and graphs of the total score, scores for each path, and performance monitoring data, and then send the test report to the relevant personnel.
[0057] In one embodiment, the scoring module is further configured to:
[0058] Record the operation status of the installation and deployment module, connection module, load module, and monitoring module during the testing process.
[0059] In one embodiment, the load module is further configured to:
[0060] The load scenarios of the remote session desktop are dynamically scheduled based on the performance indicators of the CA server.
[0061] In one embodiment, the scenario of dynamically scheduling the load of the remote session desktop based on the performance metrics of the CA server includes:
[0062] If the overall performance of the CA server is greater than the first preset value, it is determined that the CA server load is too high. The load module will shut down some of the load on the remote session desktops so that the overall performance of the server is maintained at the second preset value.
[0063] If the overall performance of the CA server is less than the third preset value, it is determined that the CA server load is low. The load module will start a new remote session desktop load to keep the overall performance of the server at the second preset value. The first preset value is greater than the second preset value, and the second preset value is greater than the third preset value.
[0064] This disclosure provides an automated testing tool that can perform stability tests on servers, virtual desktop clients, and remote session desktops throughout the entire process, from installation and deployment to connection establishment and load testing. During the test, the load module dynamically adjusts the load to maintain server performance utilization at around 80%, while the scoring module continuously evaluates and records the test process, ultimately generating a stability test report to perform system stability testing.
[0065] Figure 4 A flowchart illustrating an automated testing method provided in an embodiment of this disclosure. Figure 4 As shown, the method includes the following steps:
[0066] Step 401: Install the CA server, virtual desktop client, and remote session desktop according to the configuration file, report the virtual desktop client and remote session desktop to the CA server, register them on the CA server, and generate registration information;
[0067] In this step, the server is first installed and deployed according to the configuration file. Then, the required virtual desktop client and remote session desktop are installed according to the configuration file and simultaneously reported to the server. Registration is then successfully completed on the server, generating registration information.
[0068] Step 402: Establish a connection between the corresponding virtual desktop client and the remote session desktop based on the registration information;
[0069] In this step, a connection is established between the corresponding virtual desktop client and the remote session desktop based on the registration information generated by the installation and deployment module.
[0070] Step 403: Write the information of the remote session desktop that has established the connection to the load module configuration file, and start the corresponding load scenario of the remote session desktop.
[0071] In this step, the information of the remote session desktop that has been connected is written into the load module configuration file, and the load scenario (i.e., Loader Agent) of the corresponding remote session desktop is started. After the Loader Agent is started, the scenario is automated to simulate human operation on the cloud desktop.
[0072] In one embodiment, the scenario of dynamically scheduling the load of the remote session desktop based on the performance metrics of the CA server includes:
[0073] If the overall performance of the CA server is greater than the first preset value, it is determined that the CA server load is too high. The load module will shut down some of the load on the remote session desktops so that the overall performance of the server is maintained at the second preset value.
[0074] If the overall performance of the CA server is less than the third preset value, it is determined that the CA server load is low. The load module will start a new remote session desktop load to keep the overall performance of the server at the second preset value. The first preset value is greater than the second preset value, and the second preset value is greater than the third preset value.
[0075] Step 404: Monitor test information during the stability test process; wherein, the test information includes the connection status between the virtual desktop client and the remote session desktop, as well as various fault requests and load operation status during the connection process.
[0076] In this step, the performance metrics of the server, virtual desktop client, and remote session desktop are monitored. Specifically, CPU, memory, and network metrics are monitored and recorded for the server and virtual desktop client, while key metrics such as CPU, memory, network, and IOPS are monitored and recorded for the remote session desktop.
[0077] Optionally, the method further includes:
[0078] After the test is completed, each virtual desktop client and remote session desktop is scored based on the test information to obtain a test score for each channel. The overall performance of the entire test system is then weighted and scored to obtain the total test score.
[0079] In this embodiment, the scoring module continuously monitors the connection status between the virtual desktop client and the remote session desktop, various fault conditions during the connection process, and the load operation status during the stability test.
[0080] In this embodiment, once the stability test period is reached and the test is completed, the scoring module will score each virtual desktop client and remote session desktop based on the fault situation and overall operating performance during the stability test, and at the same time, it will give a weighted score for the overall operation of the entire system.
[0081] Optionally, the testing tool also includes a reporting module;
[0082] The reporting module is used to draw charts based on the test scores for each path, the total test score, and the performance metrics of the CA server, virtual desktop client, and remote session desktop, generate a test report, and distribute the test report to relevant users.
[0083] In this embodiment, the reporting module plots the total score, scores for each path, and performance monitoring data into charts and generates a test report which is then sent to relevant personnel.
[0084] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, can implement any step of the automated testing method described above. This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the steps in the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0085] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0086] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0087] Although preferred embodiments of this disclosure have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this disclosure.
[0088] Obviously, those skilled in the art can make various modifications and variations to this disclosure without departing from its spirit and scope. Therefore, if such modifications and variations fall within the scope of the claims of this disclosure and their equivalents, this disclosure is also intended to include such modifications and variations.
Claims
1. An automated test tool, characterized by, The test tool comprises an installation and deployment module, a connection module, a load module, a monitoring module and a scoring module, wherein The installation and deployment module is configured to install a CA server, a virtual desktop client and a remote session desktop according to a configuration file, report the virtual desktop client and the remote session desktop to the CA server, and register on the CA server to generate registration information; The connection module is configured to establish a connection between the corresponding virtual desktop client and the remote session desktop according to the registration information; The load module is configured to write information of the remote session desktop with the established connection into a load module configuration file, and start a load scenario of the corresponding remote session desktop; The monitoring module is configured to monitor performance indicators of the CA server, the virtual desktop client and the remote session desktop; The scoring module is configured to monitor test information in a stability test process, wherein the test information comprises a connection state between the virtual desktop client and the remote session desktop, various fault requests in a connection process and load operating conditions.
2. The test tool of claim 1, wherein, The scoring module is further configured to: After the test is completed, score each virtual desktop client and remote session desktop according to the test information to obtain a test score of each path, and perform weighted scoring on comprehensive operation conditions of the entire test system to obtain a test total score.
3. The test tool of claim 2, wherein, The test tool further comprises a report module; The report module is configured to draw a chart according to the test score of each path, the test total score and the performance indicators of the CA server, the virtual desktop client and the remote session desktop, generate a test report, and distribute the test report to relevant users.
4. The test tool of any one of claims 1 to 3, wherein, The scoring module is further configured to: Record operation conditions of the installation and deployment module, the connection module, the load module and the monitoring module in the test process.
5. The test tool of claim 1, wherein, The load module is further configured to: Dynamically schedule load scenarios of the remote session desktop according to performance indicators of the CA server.
6. The test tool of claim 5, wherein, The dynamic scheduling of the load scenarios of the remote session desktop according to the performance indicators of the CA server comprises: If overall performance of the CA server is greater than a first preset value, it is determined that the CA server has a high load, and the load module closes load of part of the remote session desktops to maintain the overall performance of the server at a second preset value; If overall performance of the CA server is less than a third preset value, it is determined that the CA server has a low load, and the load module starts load of a new remote session desktop to maintain the overall performance of the server at the second preset value; wherein the first preset value is greater than the second preset value, and the second preset value is greater than the third preset value.
7. The test tool of claim 1, wherein, The performance indicators of the CA server and the virtual desktop client each comprise at least one of CPU, memory and network, and the performance indicators of the remote session desktop comprise at least one of CPU, memory, network and IOPS.
8. An automated testing method, characterized by, The method comprises: According to the configuration file, the CA server, the virtual desktop client and the remote session desktop are installed, the virtual desktop client and the remote session desktop are reported to the CA server, and the registration is performed on the CA server to generate registration information; According to the registration information, the connection is established between the corresponding virtual desktop client and the remote session desktop; The information of the remote session desktop with the established connection is written into the load module configuration file, and the load scene of the corresponding remote session desktop is started; The test information in the stability test process is monitored, wherein the test information includes the connection state between the virtual desktop client and the remote session desktop, various fault requests in the connection process and load running conditions.
9. The method of claim 8, wherein, The method further comprises: After the test is completed, each virtual desktop client and remote session desktop is scored according to the test information, each test score is obtained, and the test total score is obtained by weighted scoring the comprehensive running condition of the whole test system.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method in any one of claims 8 to 9.