Test environment recovery method, device and system, electronic equipment and storage medium

By using the control end to send configuration instructions to the execution end in the test environment, automatically configure cloud hosts and applications, the problem of low recovery efficiency caused by the complexity of the test environment is solved, and an efficient and automated recovery process is achieved.

CN118939546APending Publication Date: 2024-11-12CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410989381.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the prior art, the test environment has low manual recovery efficiency due to its complexity and cannot be restored efficiently.

Method used

The control end sends historical configuration instructions for cloud hosts and applications to the execution end, and the execution end automatically configures cloud hosts and applications to realize automatic recovery of the test environment.

Benefits of technology

Improve the recovery efficiency of the test environment, reduce human errors, and realize the automated recovery process of the test environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939546A_ABST
    Figure CN118939546A_ABST
Patent Text Reader

Abstract

The invention discloses a test environment recovery method, device and system, electronic equipment and a storage medium, and relates to the technical field of data processing, the method comprises the following steps: respectively receiving a first configuration instruction of at least one cloud host sent by a control end, and respectively receiving a second configuration instruction of at least one application program corresponding to the at least one cloud host; respectively configuring at least one cloud host based on the historical cloud host configuration parameters; respectively configuring at least one application program in at least one cloud host based on the historical application program configuration parameters; sending a first configuration result of the at least one cloud host to a control end, and sending a second configuration result of the at least one application program to the control end, so that the control end determines whether the test environment is recovered or not based on the first configuration result and the second configuration result; the test environment is composed of at least one cloud host and at least one application program. Compared with the prior art, the embodiment of the invention realizes the automatic recovery of the test environment, and improves the recovery efficiency of the test environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a method and device for recovering a test environment, a system, an electronic device, and a storage medium. Background Art

[0002] The test environment is a computing environment built specifically for software testing. The test environment simulates the configuration required for the software in actual use. The test environment will take up a lot of computing resources. In order to avoid wasting computing resources, when the test environment is not in use, it needs to be deleted. When the test environment needs to be used, it needs to be restored.

[0003] In the related technologies for restoring the test environment, the test environment is usually restored manually. Since the test environment is relatively complex, manual restoration of the test environment will result in low efficiency of restoring the test environment. Summary of the invention

[0004] The present disclosure provides a test environment recovery method and device, system, electronic device and storage medium, which is mainly intended to solve the problem that the test environment is relatively complex and manual recovery of the test environment leads to low efficiency of test environment recovery.

[0005] According to a first aspect of the present disclosure, a method for recovering a test environment is provided, wherein the method is applied to an execution end and includes:

[0006] Respectively receiving a first configuration instruction of at least one cloud host sent by a control terminal, and respectively receiving a second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction includes historical cloud host configuration parameters, and the second configuration instruction includes historical application configuration parameters;

[0007] Based on the historical cloud host configuration parameters, respectively configure the at least one cloud host;

[0008] Based on the historical application configuration parameters, respectively configuring the at least one application in the at least one cloud host;

[0009] A first configuration result of the at least one cloud host is sent to the control end, and a second configuration result of the at least one application is sent to the control end, so that the control end determines whether a test environment is restored based on the first configuration result and the second configuration result; the test environment is composed of the at least one cloud host and the at least one application.

[0010] Optionally, after respectively configuring the at least one cloud host based on the historical cloud host configuration parameters, the method further includes:

[0011] Respectively obtain target identification information corresponding to the at least one cloud host;

[0012] According to the pre-established mapping relationship between the identification information and the network address, searching for the target network address corresponding to the target identification information;

[0013] The target network address is determined as the network address of the target cloud host corresponding to the target identification information, so as to access the target cloud host based on the target network address; the target cloud host is any cloud host among the at least one cloud host.

[0014] Optionally, configuring the at least one cloud host respectively based on the historical cloud host configuration parameters includes:

[0015] Respectively obtaining a first configuration order of each cloud host in the at least one cloud host;

[0016] Based on the first configuration sequence, cloud host configuration is performed respectively according to the target historical cloud host configuration parameters corresponding to each cloud host to obtain the at least one cloud host.

[0017] Optionally, configuring the at least one application in the at least one cloud host based on the historical application configuration parameters includes:

[0018] Respectively obtain a second configuration order of each application in the at least one application;

[0019] Based on the second configuration order, application configuration is performed respectively according to the target historical application configuration parameters corresponding to each application to obtain the at least one application.

[0020] Optionally, after determining whether the test environment is restored, the method further includes:

[0021] In the case where it is determined that the test environment is restored, responding to an operation instruction for operating the test environment and based on the operation instruction, operating the test environment to obtain an operation result;

[0022] The operation result is sent to the control end so that the control end processes the operation result.

[0023] According to a second aspect of the present disclosure, a method for recovering a test environment is provided, wherein the method is applied to a control end and includes:

[0024] When it is determined that the test environment needs to be restored, respectively obtaining historical cloud host configuration parameters of at least one cloud host required for restoring the test environment, and respectively obtaining historical application configuration parameters of at least one application corresponding to the at least one cloud host; the test environment is composed of the at least one cloud host and the at least one application;

[0025] Based on the historical cloud host configuration parameters, respectively generate first configuration instructions for the at least one cloud host, and based on the historical application configuration parameters, respectively generate second configuration instructions for the at least one application;

[0026] Sending the first configuration instruction and the second configuration instruction to the execution end respectively, so that the execution end generates the at least one cloud host based on the first configuration instruction and the execution end generates the at least one application based on the second configuration instruction;

[0027] Receiving a first configuration result of the at least one cloud host and a second configuration result of the at least one application program sent by the execution end;

[0028] If it is determined that the first configuration result is that the at least one cloud host is configured successfully, and the second configuration result is that the at least one application is configured successfully, it is determined that the test environment is restored.

[0029] Optionally, after determining that the test environment is restored, the method further includes:

[0030] Receiving an operation result of operating the test environment sent by the execution end;

[0031] The operation result, the first configuration result, and the second configuration result are visually displayed.

[0032] According to a third aspect of the present disclosure, a test environment recovery device is provided, the device being applied to an execution end, comprising:

[0033] A receiving unit, configured to respectively receive a first configuration instruction of at least one cloud host sent by a control terminal, and respectively receive a second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction includes historical cloud host configuration parameters, and the second configuration instruction includes historical application configuration parameters;

[0034] A configuration unit, configured to respectively configure the at least one cloud host based on the historical cloud host configuration parameters;

[0035] The configuration unit is further configured to respectively configure the at least one application in the at least one cloud host based on the historical application configuration parameters;

[0036] A sending unit, used for sending a first configuration result of the at least one cloud host to the control end, and sending a second configuration result of the at least one application to the control end, so that the control end determines whether the test environment is restored based on the first configuration result and the second configuration result; the test environment is composed of the at least one cloud host and the at least one application.

[0037] Optionally, the device further comprises:

[0038] an acquisition unit, configured to respectively acquire target identification information corresponding to the at least one cloud host after respectively configuring the at least one cloud host based on the historical cloud host configuration parameters;

[0039] A search unit, configured to search for a target network address corresponding to the target identification information according to a pre-established mapping relationship between the identification information and the network address;

[0040] A determination unit is used to determine the target network address as the network address of the target cloud host corresponding to the target identification information, so as to access the target cloud host based on the target network address; the target cloud host is any cloud host among the at least one cloud host.

[0041] Optionally, the configuration unit includes:

[0042] An acquisition module, used to respectively acquire a first configuration order of each cloud host in the at least one cloud host;

[0043] A configuration module is used to perform cloud host configuration according to the target historical cloud host configuration parameters corresponding to each cloud host based on the first configuration sequence to obtain the at least one cloud host.

[0044] Optionally, the configuration unit is further configured to:

[0045] Respectively obtain a second configuration order of each application in the at least one application;

[0046] Based on the second configuration order, application configuration is performed respectively according to the target historical application configuration parameters corresponding to each application to obtain the at least one application.

[0047] Optionally, the device further comprises:

[0048] an operating unit, configured to, after determining whether the test environment is restored, respond to an operating instruction for operating the test environment and, based on the operating instruction, operate the test environment to obtain an operating result if it is determined that the test environment is restored;

[0049] The sending unit is used to send the operation result to the control end so that the control end processes the operation result.

[0050] According to a fourth aspect of the present disclosure, a test environment recovery device is provided, the device being applied to a control end, comprising:

[0051] an acquisition unit, configured to respectively acquire historical cloud host configuration parameters of at least one cloud host required for the test environment to be restored, and respectively acquire historical application program configuration parameters of at least one application program corresponding to the at least one cloud host, when determining that the test environment needs to be restored; the test environment is composed of the at least one cloud host and the at least one application program;

[0052] A generating unit, configured to generate first configuration instructions for the at least one cloud host based on the historical cloud host configuration parameters, and to generate second configuration instructions for the at least one application based on the historical application configuration parameters;

[0053] A sending unit, configured to send the first configuration instruction and the second configuration instruction to an execution end, respectively, so that the execution end generates the at least one cloud host based on the first configuration instruction, and the execution end generates the at least one application based on the second configuration instruction;

[0054] a receiving unit, configured to receive a first configuration result of the at least one cloud host and a second configuration result of the at least one application program sent by the execution end;

[0055] A determination unit is used to determine that the test environment is restored when it is determined that the first configuration result is that the at least one cloud host is configured successfully and the second configuration result is that the at least one application is configured successfully.

[0056] Optionally, the device further comprises:

[0057] The receiving unit is further configured to, after determining that the test environment is restored, receive an operation result of operating the test environment sent by the execution end;

[0058] A display unit is used to visually display the operation result, the first configuration result, and the second configuration result.

[0059] According to a fifth aspect of the present disclosure, a data flashing test system is provided, the system comprising an execution end and a control end, including:

[0060] The execution end includes a recovery device for the test environment as described in the third aspect of the present disclosure;

[0061] The control end includes a recovery device for the test environment as described in the fourth aspect of the present disclosure.

[0062] According to a sixth aspect of the present disclosure, there is provided an electronic device, including:

[0063] at least one processor; and

[0064] a memory communicatively connected to the at least one processor; wherein,

[0065] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the first aspect or the method described in the second aspect.

[0066] According to a seventh aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect or the method described in the second aspect.

[0067] According to an eighth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method described in the first aspect or the method described in the second aspect.

[0068] The test environment recovery method and device, system, electronic device and storage medium provided by the present disclosure respectively receive the first configuration instruction of at least one cloud host sent by the control end, and respectively receive the second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction includes the historical cloud host configuration parameter, and the second configuration instruction includes the historical application configuration parameter; based on the historical cloud host configuration parameter, respectively configure the at least one cloud host; based on the historical application configuration parameter, respectively configure the at least one application in the at least one cloud host; send the first configuration result of the at least one cloud host to the control end, and send the second configuration result of the at least one application to the control end, so that the control end determines whether the test environment is restored based on the first configuration result and the second configuration result; the test environment consists of the at least one cloud host and the at least one application. Compared with the related art, the embodiment of the present disclosure sends the configuration instruction of configuring the cloud host and the application corresponding to the cloud host to the execution end through the control end, and the execution end automatically configures the cloud host and the application corresponding to the cloud host based on the configuration instruction, and the test environment consists of the cloud host and the application corresponding to the cloud host, so as to realize the automatic recovery of the test environment and improve the efficiency of the test environment recovery.

[0069] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0071] Figure 1 A flowchart of a method for restoring a test environment provided by an embodiment of the present disclosure;

[0072] Figure 2 A flowchart of another test environment recovery method provided by an embodiment of the present disclosure;

[0073] Figure 3 A schematic diagram of a process flow of a test environment recovery provided by an embodiment of the present disclosure;

[0074] Figure 4 A schematic diagram of a recovery system for a test environment provided by an embodiment of the present disclosure;

[0075] Figure 5 A schematic diagram of the structure of a test environment recovery device provided by an embodiment of the present disclosure;

[0076] Figure 6 A schematic diagram of the structure of another test environment recovery device provided by an embodiment of the present disclosure;

[0077] Figure 7 A schematic diagram of the structure of another test environment recovery device provided by an embodiment of the present disclosure;

[0078] Figure 8 A schematic diagram of the structure of another test environment recovery device provided by an embodiment of the present disclosure;

[0079] Fig. 9 A schematic diagram of a test environment recovery system provided by an embodiment of the present disclosure;

[0080] Fig.10 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0081] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0082] The following describes a method and apparatus, system, electronic device, and storage medium for recovering a test environment according to an embodiment of the present disclosure with reference to the accompanying drawings.

[0083] Figure 1 A flowchart of a method for recovering a test environment provided by an embodiment of the present disclosure.

[0084] like Figure 1 As shown, the method is applied to the execution end, and the method includes the following steps:

[0085] Step 101, respectively receiving a first configuration instruction of at least one cloud host sent by a control terminal, and respectively receiving a second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction includes historical cloud host configuration parameters, and the second configuration instruction includes historical application configuration parameters.

[0086] The control end is a control system used to control the execution end to recover the test environment. The execution end is a test environment recovery system used to execute commands sent by the control end. Both the control end and the execution end are deployed in servers in a cloud computing environment.

[0087] A cloud host is a virtual server provided in a cloud computing environment. The cloud host can dynamically allocate and release computing resources, such as central processing unit, memory, storage and network bandwidth. The first configuration instruction is a control instruction sent from the control end to the execution end, which is used to control the execution end to configure the cloud host. The application is the software or service running on the cloud host. The application can be a web application, database, message queue, middleware, or other types of software. The second configuration instruction is a control instruction sent from the control end to the execution end, which is used to control the execution end to configure the application running on the cloud host.

[0088] The historical cloud host configuration parameters are a set of parameters previously used to configure the cloud host. The historical cloud host configuration parameters include, but are not limited to, the cloud host environment type, cloud host version, cloud host name, cloud host specifications, the subnet name corresponding to the cloud host, the private network address of the cloud host, the backup name of the cloud host, and the execution order between cloud hosts.

[0089] Historical application configuration parameters are a set of parameters previously used to configure an application. Historical cloud host configuration parameters include, but are not limited to, application environment, application version, name of the cloud host where the application is located, application parameters, startup commands corresponding to the application, and the execution order between applications.

[0090] By receiving and executing instructions containing historical configuration parameters, standardization, automation and traceability of environment configuration can be ensured, which is crucial for the control and quality assurance of software development and testing processes.

[0091] Step 102: respectively configure the at least one cloud host based on the historical cloud host configuration parameters.

[0092] The execution end uses automated tools and scripts to initialize at least one cloud host, set basic properties, install and configure software, configure the network and storage, and perform customized settings and verification to ensure that the configuration of the cloud host meets expectations.

[0093] The configuration process based on historical configuration parameters can be used in conjunction with automation tools and scripts to automate the creation, configuration, and management of cloud hosts, improving operation and maintenance efficiency and response speed.

[0094] Step 103: Based on the historical application configuration parameters, respectively configure the at least one application in the at least one cloud host.

[0095] Based on historical application configuration parameters, the execution end uses automated tools and scripts to install, configure, and verify the application in the specified cloud host to ensure the consistency and accuracy of its configuration.

[0096] Automating the configuration of applications can significantly reduce the time required to deploy applications and improve the accuracy of configuration, especially when multiple instances or complex applications need to be deployed.

[0097] Step 104, sending the first configuration result of the at least one cloud host to the control end, and sending the second configuration result of the at least one application to the control end, so that the control end determines whether the test environment is restored based on the first configuration result and the second configuration result; the test environment is composed of the at least one cloud host and the at least one application.

[0098] The first configuration result is the result information fed back by the execution end to the control end after the cloud host configuration is completed. The first configuration result is not limited to the status of the cloud host (such as running, stopped), configuration details (such as allocated hardware resources, network settings, security group rules) and any warning or error information that occurs during the configuration process.

[0099] The second configuration result is the result information that the execution end feeds back to the control end after the application configuration is completed. The second configuration result is not limited to the application status (such as running, stopped), configuration details (such as installation path, configuration file content, dependent libraries), and any warning or error information that occurs during the configuration process.

[0100] The test environment is a complete computing environment for testing consisting of at least one cloud host and at least one application. The test environment may be used for software testing, system demonstration, performance evaluation, or other environments that require specific configuration and application running. The recovery of the test environment means that the cloud host and application have been correctly configured according to the historical configuration parameters and can be used for the intended test purpose.

[0101] The purpose of sending configuration results to the control end is to ensure the correct recovery of the test environment, support automated monitoring and management, and provide fast feedback and decision support.

[0102] The test environment recovery method provided by the present disclosure comprises the following steps: receiving a first configuration instruction of at least one cloud host sent by a control end, and receiving a second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction comprises a historical cloud host configuration parameter, and the second configuration instruction comprises a historical application configuration parameter; configuring the at least one cloud host respectively based on the historical cloud host configuration parameter; configuring the at least one application in the at least one cloud host respectively based on the historical application configuration parameter; sending a first configuration result of the at least one cloud host to the control end, and sending a second configuration result of the at least one application to the control end, so that the control end determines whether the test environment is recovered based on the first configuration result and the second configuration result; the test environment is composed of the at least one cloud host and the at least one application. Compared with the related art, the embodiment of the present disclosure sends a configuration instruction for configuring the cloud host and the application corresponding to the cloud host to the execution end through the control end, and the execution end automatically configures the cloud host and the application corresponding to the cloud host based on the configuration instruction, and the test environment is composed of the cloud host and the application corresponding to the cloud host, so as to realize automatic recovery of the test environment and improve the efficiency of test environment recovery.

[0103] In actual applications, after configuring the at least one cloud host respectively based on the historical cloud host configuration parameters, in order to access the cloud host, it is necessary to assign a network address to the cloud host, which can be achieved by but not limited to the following methods: respectively obtaining target identification information corresponding to the at least one cloud host; searching for the target network address corresponding to the target identification information according to a pre-established mapping relationship between identification information and network address; determining the target network address as the network address of the target cloud host corresponding to the target identification information, so as to access the target cloud host based on the target network address; the target cloud host is any one of the at least one cloud host.

[0104] Exemplarily, the target identification information is used to uniquely identify a cloud host, such as the name, number, label or any other information that can be used to identify the cloud host. The target identification information is used to find and distinguish different cloud hosts in the cloud computing environment; the mapping relationship is a corresponding relationship that associates the target identification information of the cloud host with its network address. This mapping relationship can be a lookup table, a database or any other data structure for quickly retrieving and associating the identification information of the cloud host with the corresponding network address.

[0105] By obtaining the target identification information of the cloud host and searching for the corresponding target network address based on the pre-established mapping relationship between the identification information and the network address, the location of the target cloud host can be quickly determined. This method avoids the tedious process of manually searching and configuring the network address, and improves the efficiency and accuracy of accessing the cloud host.

[0106] As a refinement of step 102, when executing the configuration of the at least one cloud host based on the historical cloud host configuration parameters, it can be implemented in but not limited to the following manner: obtaining a first configuration order for each cloud host in the at least one cloud host; based on the first configuration order, performing cloud host configuration according to the target historical cloud host configuration parameters corresponding to each cloud host to obtain the at least one cloud host.

[0107] Exemplarily, the first configuration sequence refers to the configuration sequence that needs to be followed between the cloud hosts when configuring at least one cloud host. The first configuration sequence may be determined based on a variety of factors, such as dependencies between cloud hosts, business logic requirements, performance optimization considerations, etc. Through a sequential and accurate configuration process, the correct construction and stable operation of the cloud host are ensured, and the availability and maintainability of the cloud host are improved.

[0108] As a refinement of step 103, when performing the configuration of the at least one application in the at least one cloud host based on the historical application configuration parameters, the following methods may be used but are not limited to:

[0109] Respectively obtain a second configuration order of each application in the at least one application;

[0110] Based on the second configuration order, application configuration is performed respectively according to the target historical application configuration parameters corresponding to each application to obtain the at least one application.

[0111] Exemplarily, the second configuration order refers to the configuration order that needs to be followed between the various applications when configuring multiple applications. This order may be determined based on a variety of factors, such as dependencies between applications, business logic requirements, performance optimization considerations, etc. Through the sequential and correct configuration process, the stability and reliability of the application are ensured, and the availability and maintainability of the application are improved.

[0112] In actual applications, after determining whether the test environment has been restored, it is necessary to monitor the test environment, which can be achieved by but is not limited to the following methods: when it is determined that the test environment has been restored, respond to an operation instruction to operate the test environment, and based on the operation instruction, operate the test environment to obtain an operation result; send the operation result to the control end so that the control end processes the operation result.

[0113] Exemplarily, the operation instructions are used to perform specific operations on the test environment, including but not limited to starting or stopping applications, executing test scripts, simulating user behavior, changing configuration settings, and collecting performance data. The operation result is the output or feedback after the operation is performed on the test environment according to the operation instruction. The operation result includes but is not limited to the success or failure status of the operation, any related log information, performance data, test results, and system status changes. Ensure that the test environment can respond to the operation instructions normally and accurately after recovery, and provide decision support and data basis for subsequent testing, development, or deployment by feeding back the operation results to the control end.

[0114] The above embodiment describes a method for recovering a test environment applied to an execution end. The subsequent embodiment describes a method for recovering a test environment applied to a control end. Figure 2 A flowchart of another test environment recovery method provided by an embodiment of the present disclosure.

[0115] like Figure 2 As shown, the method is applied to the control end, and the method comprises the following steps:

[0116] Step 201, when it is determined that the test environment needs to be restored, respectively obtain historical cloud host configuration parameters of at least one cloud host required for restoring the test environment, and respectively obtain historical application configuration parameters of at least one application corresponding to the at least one cloud host; the test environment is composed of the at least one cloud host and the at least one application.

[0117] Manually configuring the test environment is often time-consuming, labor-intensive, and error-prone. By automatically restoring historical configuration parameters, the efficiency of setting up the test environment can be greatly improved, human errors can be reduced, and testers can focus more on the test itself rather than the environment configuration.

[0118] Step 202: Generate first configuration instructions for the at least one cloud host based on the historical cloud host configuration parameters, and generate second configuration instructions for the at least one application based on the historical application configuration parameters.

[0119] Manually configuring multiple cloud hosts and applications is a tedious and error-prone task. By generating configuration instructions, this process can be automated, making recovery more efficient and reducing human error.

[0120] Step 203, sending the first configuration instruction and the second configuration instruction to the execution end respectively, so that the execution end generates the at least one cloud host based on the first configuration instruction, and the execution end generates the at least one application based on the second configuration instruction.

[0121] By sending configuration instructions to the execution end, the test environment can be deployed automatically. The execution end automatically creates and configures the cloud host, installs and configures the application according to the instructions, greatly reducing the time and possible errors of manual operations.

[0122] Step 204: Receive a first configuration result of the at least one cloud host and a second configuration result of the at least one application program sent by the execution end.

[0123] The purpose of receiving the configuration results sent by the execution end is to verify whether the recovery process of the test environment is successful, to promptly discover and resolve any potential problems, and to record the configuration history to support subsequent operations and decisions.

[0124] Step 205: If it is determined that the first configuration result is that the at least one cloud host is successfully configured, and the second configuration result is that the at least one application is successfully configured, it is determined that the test environment is restored.

[0125] The decision-making process of determining whether the test environment has been successfully restored by verifying the configuration results of the cloud host and application. This helps ensure the stability of the test environment and the reliability of the test.

[0126] The test environment recovery method provided by the present disclosure comprises the following steps: receiving a first configuration instruction of at least one cloud host sent by a control end, and receiving a second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction comprises a historical cloud host configuration parameter, and the second configuration instruction comprises a historical application configuration parameter; configuring the at least one cloud host respectively based on the historical cloud host configuration parameter; configuring the at least one application in the at least one cloud host respectively based on the historical application configuration parameter; sending a first configuration result of the at least one cloud host to the control end, and sending a second configuration result of the at least one application to the control end, so that the control end determines whether the test environment is recovered based on the first configuration result and the second configuration result; the test environment is composed of the at least one cloud host and the at least one application. Compared with the related art, the embodiment of the present disclosure sends a configuration instruction for configuring the cloud host and the application corresponding to the cloud host to the execution end through the control end, and the execution end automatically configures the cloud host and the application corresponding to the cloud host based on the configuration instruction, and the test environment is composed of the cloud host and the application corresponding to the cloud host, so as to realize automatic recovery of the test environment and improve the efficiency of test environment recovery.

[0127] In actual applications, after determining that the test environment has been restored, in order to facilitate monitoring of the test environment, the following methods may be used but are not limited to: receiving the operation result of the test environment sent by the execution end; and visually displaying the operation result, the first configuration result, and the second configuration result. Visual display provides a platform for monitoring and tracking the test environment status and operation results. Relevant personnel can view historical data at any time to understand the historical changes of the test environment, which is conducive to more refined management and control of the test environment.

[0128] As an extension of the above embodiment, in order to better understand the entire process of test environment recovery, as shown in FIG. Figure 3 As shown, Figure 3A process flow diagram of a test environment recovery provided by an embodiment of the present disclosure is provided. A subnet is allocated separately for the test environment to prevent other test environments from occupying the private network address of the test environment. An application program layout template and a cloud host layout template are maintained according to the configuration sequence of each application in the test environment and the cloud host where it is located. The cloud host layout template includes: cloud host environment, cloud host version, cloud host version name, cloud host specification name, subnet name corresponding to the cloud host, private network address, backup name, configuration sequence, etc.; the application program layout template includes: application program environment, application program version, cloud host name where the application is located, application program parameters, startup command corresponding to the application program, and configuration sequence. Create backups for each cloud host in the test environment, and update the corresponding names of the backups to the host layout template. When restoring the test environment, first read the cloud host template, restore according to the host information and order arranged on the host template, read the cloud host information to be restored, and then execute the command to create the cloud host, specifying the backup name, subnet, corresponding private network address and other parameters in the command; after the cloud host is created, read the application orchestration template, and start the corresponding applications in sequence according to the service information and orchestration order on the application orchestration template. After all applications on the cloud host are started, start the subsequent cloud hosts and services in sequence according to the above steps until all cloud hosts and applications in the test environment are started and the test environment is restored.

[0129] In order to better understand the recovery system of the test environment, such as Figure 4 As shown, Figure 4 A relationship diagram of a recovery system for a test environment provided by an embodiment of the present disclosure, wherein the execution end is composed of a command execution unit and a service detection unit, and will automatically start running when the cloud host is restored and started. The command execution unit is mainly responsible for executing the service execution command issued by the orchestration management module, and the main execution steps of the unit are as follows: after receiving the command from the orchestration management module, the corresponding service will be started according to the received command; after starting, a message will be passed to the service detection unit to inform the service detection unit of the service to be detected. The service detection unit is responsible for detecting whether the executed command is successful, and replying the detection result to the service monitoring module. The main execution steps of the unit are as follows: when the service detection unit receives the message from the command execution unit, it will obtain the detection command of the message service, and execute the command to detect the status of the service; after detecting the status of the service, it will communicate with the service monitoring module and send the service status to the service monitoring unit of the service monitoring module.

[0130] The control end is composed of an orchestration management module, a service monitoring module, an interface call module, and a display module, wherein the orchestration management module includes a host orchestration unit and a service orchestration unit. The host orchestration unit is responsible for reading and processing the host orchestration template information. The main execution steps of this unit are as follows: When the command to restore the test environment is triggered, the unit will read the host orchestration template information, and combine the read parameter information into a request, and call the application programming interface through the interface call module to create a cloud host with the image, subnet, and private network address specified by the parameters; when the service on a cloud host is started, it will be installed again to create subsequent cloud hosts in sequence until all cloud hosts are created. The service orchestration unit is responsible for reading and processing the service orchestration template information. The main execution steps of this unit are as follows: When a cloud host is restored, the unit will read the service orchestration template information of the corresponding host, and combine the first service parameter information read into a command in sequence, and send it to the execution end, and the execution end executes the received command; when the message sent by the service monitoring module is received, the corresponding service of the command is successfully started, and the next service parameter will be read in sequence and combined into a command, and sent to the execution end, and the execution end executes the received command; and so on, after all the corresponding service orchestration template information of the fainted host is successfully executed, continue to execute the service orchestration template corresponding to the next host according to the above steps.

[0131] Service monitoring module: includes host service monitoring unit and business service monitoring unit. The host service monitoring unit is responsible for monitoring the status of cloud hosts. The main steps of this unit are as follows: after the host is created and the execution end successfully starts, it will send a cloud host status message to the host service monitoring unit. After receiving the status message, the unit will send a cloud host startup success message to the service orchestration module of the orchestration management module; the unit will update the maintained host status information and send the status information to the display interface for display; the business service monitoring unit is responsible for monitoring the service status of components and system services deployed on each cloud host. The main steps of this unit are as follows: after the service instructions issued by the service orchestration module are executed, the unit will receive the service execution results sent by the execution end and send the results to the service orchestration unit; the unit will update the maintained service status information and send the status information to the display interface for display.

[0132] Interface call module: This module is mainly responsible for converting protocols and calling application programming interfaces. The main steps of this module are as follows: when receiving the host recovery command sent by the host orchestration unit, splice the parameters and convert the request protocol into a network protocol; initiate a network request to the cloud environment platform: call the create cloud host interface to create a cloud host with specified parameters.

[0133] Display module: This module is mainly used for displaying user operations, operation results and system interface.

[0134] In summary, the embodiments of the present disclosure can achieve the following effects:

[0135] The disclosed embodiment sends configuration instructions for configuring the cloud host and the application corresponding to the cloud host to the execution end through the control end. The execution end automatically configures the cloud host and the application corresponding to the cloud host based on the configuration instructions. The test environment is composed of the cloud host and the application corresponding to the cloud host, thereby realizing automatic recovery of the test environment and improving the efficiency of test environment recovery.

[0136] Corresponding to the above test environment recovery method, the present invention also provides a test environment recovery device. Since the device embodiment of the present invention corresponds to the above method embodiment, the details not disclosed in the device embodiment can be referred to the above method embodiment, and will not be repeated in the present invention.

[0137] Figure 5 A schematic diagram of a structure of a test environment recovery device provided in an embodiment of the present disclosure, wherein the device is applied to an execution end, such as Figure 5 As shown, including:

[0138] The receiving unit 31 is used to respectively receive a first configuration instruction of at least one cloud host sent by the control terminal, and respectively receive a second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction includes historical cloud host configuration parameters, and the second configuration instruction includes historical application configuration parameters;

[0139] A configuration unit 32, configured to respectively configure the at least one cloud host based on the historical cloud host configuration parameters;

[0140] The configuration unit 32 is further configured to respectively configure the at least one application in the at least one cloud host based on the historical application configuration parameters;

[0141] The sending unit 33 is used to send the first configuration result of the at least one cloud host to the control end, and send the second configuration result of the at least one application to the control end, so that the control end determines whether the test environment is restored based on the first configuration result and the second configuration result; the test environment is composed of the at least one cloud host and the at least one application.

[0142] The test environment recovery device provided by the present disclosure receives a first configuration instruction of at least one cloud host sent by the control end, and receives a second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction includes a historical cloud host configuration parameter, and the second configuration instruction includes a historical application configuration parameter; based on the historical cloud host configuration parameter, the at least one cloud host is configured; based on the historical application configuration parameter, the at least one application is configured in the at least one cloud host; the first configuration result of the at least one cloud host is sent to the control end, and the second configuration result of the at least one application is sent to the control end, so that the control end determines whether the test environment is restored based on the first configuration result and the second configuration result; the test environment is composed of the at least one cloud host and the at least one application. Compared with the related art, the embodiment of the present disclosure sends a configuration instruction for configuring the cloud host and the application corresponding to the cloud host to the execution end through the control end, and the execution end automatically configures the cloud host and the application corresponding to the cloud host based on the configuration instruction, and the test environment is composed of the cloud host and the application corresponding to the cloud host, so as to realize automatic recovery of the test environment and improve the efficiency of test environment recovery.

[0143] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the device also includes:

[0144] An acquisition unit 34 is configured to respectively acquire target identification information corresponding to the at least one cloud host after respectively configuring the at least one cloud host based on the historical cloud host configuration parameters;

[0145] A search unit 35, configured to search for a target network address corresponding to the target identification information according to a pre-established mapping relationship between the identification information and the network address;

[0146] The determination unit 36 ​​is used to determine the target network address as the network address of the target cloud host corresponding to the target identification information, so as to access the target cloud host based on the target network address; the target cloud host is any cloud host among the at least one cloud host.

[0147] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the configuration unit 32 includes:

[0148] An acquisition module 321 is used to respectively acquire a first configuration order of each cloud host in the at least one cloud host;

[0149] The configuration module 322 is used to perform cloud host configuration according to the target historical cloud host configuration parameters corresponding to each cloud host based on the first configuration sequence to obtain the at least one cloud host.

[0150] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the configuration unit 32 is also used for:

[0151] Respectively obtain a second configuration order of each application in the at least one application;

[0152] Based on the second configuration order, application configuration is performed respectively according to the target historical application configuration parameters corresponding to each application to obtain the at least one application.

[0153] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the device also includes:

[0154] An operating unit 37 is used for, after determining whether the test environment is restored, responding to an operation instruction for operating the test environment and operating the test environment based on the operation instruction to obtain an operation result if it is determined that the test environment is restored;

[0155] The sending unit 38 is used to send the operation result to the control end so that the control end processes the operation result.

[0156] Figure 7 A structural diagram of another test environment recovery device provided in an embodiment of the present disclosure, wherein the device is applied to a control end, such as Figure 7 As shown, including:

[0157] The acquisition unit 41 is used to respectively acquire historical cloud host configuration parameters of at least one cloud host required for the test environment to be restored, and respectively acquire historical application program configuration parameters of at least one application program corresponding to the at least one cloud host, when it is determined that the test environment needs to be restored; the test environment is composed of the at least one cloud host and the at least one application program;

[0158] A generating unit 42, configured to generate first configuration instructions for the at least one cloud host based on the historical cloud host configuration parameters, and to generate second configuration instructions for the at least one application based on the historical application configuration parameters;

[0159] The sending unit 43 is used to send the first configuration instruction and the second configuration instruction to the execution end respectively, so that the execution end generates the at least one cloud host based on the first configuration instruction and the execution end generates the at least one application based on the second configuration instruction;

[0160] A receiving unit 44, configured to receive a first configuration result of the at least one cloud host and a second configuration result of the at least one application program sent by the execution end;

[0161] The determination unit 45 is configured to determine that the test environment is restored when it is determined that the first configuration result is that the at least one cloud host is configured successfully and the second configuration result is that the at least one application is configured successfully.

[0162] The test environment recovery device provided by the present disclosure receives a first configuration instruction of at least one cloud host sent by the control end, and receives a second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction includes a historical cloud host configuration parameter, and the second configuration instruction includes a historical application configuration parameter; based on the historical cloud host configuration parameter, the at least one cloud host is configured; based on the historical application configuration parameter, the at least one application is configured in the at least one cloud host; the first configuration result of the at least one cloud host is sent to the control end, and the second configuration result of the at least one application is sent to the control end, so that the control end determines whether the test environment is restored based on the first configuration result and the second configuration result; the test environment is composed of the at least one cloud host and the at least one application. Compared with the related art, the embodiment of the present disclosure sends a configuration instruction for configuring the cloud host and the application corresponding to the cloud host to the execution end through the control end, and the execution end automatically configures the cloud host and the application corresponding to the cloud host based on the configuration instruction, and the test environment is composed of the cloud host and the application corresponding to the cloud host, so as to realize automatic recovery of the test environment and improve the efficiency of test environment recovery.

[0163] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 8 As shown, the device also includes:

[0164] The receiving unit 44 is further configured to, after determining that the test environment is restored, receive an operation result of operating the test environment sent by the execution end;

[0165] The display unit 46 is used to visually display the operation result, the first configuration result, and the second configuration result.

[0166] Fig. 9A schematic diagram of a recovery system for a test environment provided by an embodiment of the present disclosure is shown in FIG. Fig. 9 As shown, including:

[0167] The execution end 51 and the control end 52, wherein the execution end 51 is a device configured at the execution end, and the control end 52 is a device configured at the control end.

[0168] It should be noted that the above explanation of the method embodiment is also applicable to the device of the embodiment of the present disclosure, and the principle is the same, which is no longer limited in the embodiment of the present disclosure.

[0169] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0170] Fig.10 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0171] like Fig.10 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 to a RAM (Random Access Memory) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 606. An I / O (Input / Output) interface 605 is also connected to the bus 606.

[0172] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 604, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0173] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as a recovery method for a test environment. For example, in some embodiments, the recovery method for a test environment may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the aforementioned recovery method of the test environment in any other appropriate manner (for example, by means of firmware).

[0174] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0175] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0176] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or a flash memory, an optical fiber, a CD-ROM (Compact Dis sc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0177] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0178] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0179] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0180] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0181] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0182] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for restoring a test environment, characterized in that: The method is applied to the execution end, and includes: Respectively receiving a first configuration instruction of at least one cloud host sent by a control terminal, and respectively receiving a second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction includes historical cloud host configuration parameters, and the second configuration instruction includes historical application configuration parameters; Based on the historical cloud host configuration parameters, respectively configure the at least one cloud host; Based on the historical application configuration parameters, respectively configuring the at least one application in the at least one cloud host; A first configuration result of the at least one cloud host is sent to the control end, and a second configuration result of the at least one application is sent to the control end, so that the control end determines whether a test environment is restored based on the first configuration result and the second configuration result; the test environment is composed of the at least one cloud host and the at least one application.

2. The method according to claim 1, characterized in that After respectively configuring the at least one cloud host based on the historical cloud host configuration parameters, the method further includes: Respectively obtain target identification information corresponding to the at least one cloud host; According to the pre-established mapping relationship between the identification information and the network address, searching for the target network address corresponding to the target identification information; The target network address is determined as the network address of the target cloud host corresponding to the target identification information, so as to access the target cloud host based on the target network address; the target cloud host is any cloud host among the at least one cloud host.

3. The method according to claim 1, characterized in that The configuring the at least one cloud host respectively based on the historical cloud host configuration parameters comprises: Respectively obtaining a first configuration order of each cloud host in the at least one cloud host; Based on the first configuration sequence, cloud host configuration is performed respectively according to the target historical cloud host configuration parameters corresponding to each cloud host to obtain the at least one cloud host.

4. The method according to claim 1, characterized in that The configuring the at least one application in the at least one cloud host based on the historical application configuration parameters includes: Respectively obtain a second configuration order of each application in the at least one application; Based on the second configuration order, application configuration is performed respectively according to the target historical application configuration parameters corresponding to each application to obtain the at least one application.

5. The method according to claim 1, characterized in that After determining whether the test environment is restored, the method further includes: In the case where it is determined that the test environment is restored, responding to an operation instruction for operating the test environment and based on the operation instruction, operating the test environment to obtain an operation result; The operation result is sent to the control end so that the control end processes the operation result.

6. A method for restoring a test environment, characterized in that: The method is applied to a control terminal and includes: When it is determined that the test environment needs to be restored, respectively obtaining historical cloud host configuration parameters of at least one cloud host required for restoring the test environment, and respectively obtaining historical application configuration parameters of at least one application corresponding to the at least one cloud host; the test environment is composed of the at least one cloud host and the at least one application; Based on the historical cloud host configuration parameters, respectively generate first configuration instructions for the at least one cloud host, and based on the historical application configuration parameters, respectively generate second configuration instructions for the at least one application; Sending the first configuration instruction and the second configuration instruction to the execution end respectively, so that the execution end generates the at least one cloud host based on the first configuration instruction and the execution end generates the at least one application based on the second configuration instruction; Receiving a first configuration result of the at least one cloud host and a second configuration result of the at least one application program sent by the execution end; If it is determined that the first configuration result is that the at least one cloud host is configured successfully, and the second configuration result is that the at least one application is configured successfully, it is determined that the test environment is restored.

7. The method according to claim 6, characterized in that After determining that the test environment is restored, the method further includes: receiving an operation result of operating the test environment sent by the execution end; The operation result, the first configuration result, and the second configuration result are visually displayed.

8. A test environment recovery device, characterized in that: The device is applied to an execution end and includes: A receiving unit, configured to respectively receive a first configuration instruction of at least one cloud host sent by a control terminal, and respectively receive a second configuration instruction of at least one application corresponding to the at least one cloud host; the first configuration instruction includes historical cloud host configuration parameters, and the second configuration instruction includes historical application configuration parameters; A configuration unit, configured to respectively configure the at least one cloud host based on the historical cloud host configuration parameters; The configuration unit is further configured to respectively configure the at least one application in the at least one cloud host based on the historical application configuration parameters; A sending unit, used for sending a first configuration result of the at least one cloud host to the control end, and sending a second configuration result of the at least one application to the control end, so that the control end determines whether the test environment is restored based on the first configuration result and the second configuration result; the test environment is composed of the at least one cloud host and the at least one application.

9. A test environment recovery device, characterized in that: The device is applied to a control end and includes: an acquisition unit, configured to respectively acquire historical cloud host configuration parameters of at least one cloud host required for the test environment to be restored, and respectively acquire historical application program configuration parameters of at least one application program corresponding to the at least one cloud host, when determining that the test environment needs to be restored; the test environment is composed of the at least one cloud host and the at least one application program; A generating unit, configured to generate first configuration instructions for the at least one cloud host based on the historical cloud host configuration parameters, and to generate second configuration instructions for the at least one application based on the historical application configuration parameters; A sending unit, configured to send the first configuration instruction and the second configuration instruction to an execution end, respectively, so that the execution end generates the at least one cloud host based on the first configuration instruction, and the execution end generates the at least one application based on the second configuration instruction; a receiving unit, configured to receive a first configuration result of the at least one cloud host and a second configuration result of the at least one application program sent by the execution end; A determination unit is used to determine that the test environment is restored when it is determined that the first configuration result is that the at least one cloud host is configured successfully and the second configuration result is that the at least one application is configured successfully.

10. A test environment recovery system, characterized in that: The system includes an execution end and a control end, including: The execution end includes the recovery device of the test environment as claimed in claim 8; The control end includes the test environment recovery device as claimed in claim 9.

11. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5 or the method of any one of claims 6-7.

12. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5 or the method according to any one of claims 6-7.

13. A computer program product, characterized in that The method comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 5 or the method according to any one of claims 6 to 7.