CN111740859B - Test environment deployment method and device, electronic equipment and storage medium - Google Patents

Test environment deployment method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111740859B
CN111740859B CN202010537006.8A CN202010537006A CN111740859B CN 111740859 B CN111740859 B CN 111740859B CN 202010537006 A CN202010537006 A CN 202010537006A CN 111740859 B CN111740859 B CN 111740859B
Authority
CN
China
Prior art keywords
client
server
agent
environment
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010537006.8A
Other languages
Chinese (zh)
Other versions
CN111740859A (en
Inventor
贾文泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010537006.8A priority Critical patent/CN111740859B/en
Publication of CN111740859A publication Critical patent/CN111740859A/en
Application granted granted Critical
Publication of CN111740859B publication Critical patent/CN111740859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a deployment method and device of a test environment, electronic equipment and a storage medium, relates to the field of software testing, and can be used for a cloud platform or cloud service. The specific scheme is as follows: the server side equipment sends a file transmission command to the client side equipment through the server side agent and the client side agent; receiving an execution result of a file transmission command returned by the client device through the server agent and the client agent; responding to the execution result of the file transmission command that the client equipment acquires the deployment script of the environment to be deployed, and sending a script execution command to the client equipment through the server agent and the client agent; and receiving an execution result of the deployment script of the environment to be deployed, which is returned by the client equipment through the server agent and the client agent. The method and the device for deploying the mobile terminal can achieve the purposes of simplifying the deployment process and improving the deployment efficiency, and are more convenient for users to use.

Description

Test environment deployment method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and further relates to a virtual machine technology, and in particular, to a method and an apparatus for deploying a test environment, an electronic device, and a storage medium.
Background
In the software testing process, the most important test means such as static code inspection, unit test and the like are system level test. The system level test can provide a plurality of test methods such as performance test, difference test, pressure test and the like. In system level testing, the deployment of a test environment is the most fundamental. In addition to being fast and stable, the testing environment also needs to provide high consistency with the real environment on the line and ease of configuration for the testing environment.
For a C + + service, its test environment is mainly composed of three parts, namely, a program main file (bin), a program configuration (conf), and program data (data). These required data are generally stored in a Distributed File System (HDFS) or other data clusters, and are notified to the environment deployment tool through corresponding data description files. And in the process of environment deployment, the deployment script performs operations such as data analysis, data pulling, data modification and the like. Fig. 1 is a schematic diagram of a structure of a data description file in the prior art. Desc may include a file name, a data source address, and a deployment address of each file, as shown in fig. 1. For example, the file name: a; data source address: distributed File System// Cluster name: directory name/file name; deployment address: a local directory. And the file name B: data source address: distributed File System// Cluster name: directory name/file name; deployment address: a local directory. Therefore, in the whole environment deployment process, the most critical point is how to distribute and schedule the execution of the deployment script.
With the gradual development of business scale, the traditional physical machine deployment is gradually eliminated due to the low resource utilization rate, and the service deployment of each internet company is gradually migrated to the virtualized container resource. In order to ensure the consistency of the test environment and the online environment, the deployment of the test environment should also have the capability of deploying to the virtualized resources. In the prior art, the environment deployment mode of the physical machine is different from that of the virtual container, the physical machine and the virtual container are deployed in the environment in respective modes, the physical machine and the virtual container cannot be deployed in a universal mode, the deployment efficiency is low, and the usability is poor.
Disclosure of Invention
The application provides a deployment method, a deployment device, equipment and a storage medium of a test environment, which can achieve the purposes of simplifying a deployment process and improving deployment efficiency and are more convenient for users to use.
In a first aspect, the present application provides a method for deploying a test environment, the method including:
sending a file transmission command to the client device through the server agent and the client agent;
receiving an execution result of the file transmission command returned by the client device through the server agent and the client agent;
responding to the execution result of the file transmission command that the client equipment acquires the deployment script of the environment to be deployed, and sending a script execution command to the client equipment through the server agent and the client agent;
and receiving an execution result of the deployment script of the environment to be deployed, which is returned by the client equipment through the server agent and the client agent.
In a second aspect, the present application provides a method for deploying a test environment, the method including:
receiving a file transmission command sent by server equipment through a server agent and a client agent; responding to the file transmission command, and acquiring a deployment script of the environment to be deployed in the server-side equipment through a pre-started hypertext transfer protocol (HTTP) file transmission service of the environment to be deployed;
the execution result of the file transmission command is sent to the server equipment through the server agent and the client agent;
responding to the execution result of the file transmission command that the deployment script of the environment to be deployed is acquired, and receiving a script execution command sent by the server device through the server agent and the client agent; and executing the deployment script of the environment to be deployed in response to the script execution command.
In a third aspect, the present application provides a deployment apparatus for a test environment, the apparatus including: the device comprises a first sending module and a first receiving module; wherein,
the first sending module is used for sending a file transmission command to the client equipment through the server agent and the client agent;
the first receiving module is configured to receive an execution result of the file transmission command returned by the client device through the server agent and the client agent;
the first sending module is further configured to send a script execution command to the client device through the server agent and the client agent in response to that the execution result of the file transmission command is that the client device has acquired the deployment script of the environment to be deployed;
the first receiving module is further configured to receive an execution result of the deployment script of the environment to be deployed, which is returned by the client device through the server agent and the client agent.
In a fourth aspect, the present application provides a deployment apparatus for a test environment, the apparatus comprising: the second receiving module and the second sending module; wherein,
the second receiving module is used for receiving a file transmission command sent by the server equipment through the server agent and the client agent; responding to the file transmission command, and acquiring a deployment script of the environment to be deployed in the server-side equipment through a pre-started HTTP file transmission service of the environment to be deployed;
the second sending module is configured to send an execution result of the file transfer command to the server device through the server agent and the client agent;
the second receiving module is further configured to receive a script execution command sent by the server device through the server agent and the client agent in response to that the execution result of the file transmission command is that the deployment script of the environment to be deployed is acquired; and responding to the script execution command to execute the deployment script of the environment to be deployed.
In a fifth aspect, an embodiment of the present application provides an electronic device, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the deployment method of the test environment according to any embodiment of the present application.
In a sixth aspect, the present application provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the deployment method of the test environment according to any embodiment of the present application.
According to the technical scheme provided by the application, the purposes of simplifying the deployment process and improving the deployment efficiency can be achieved, and the use by a user is more convenient.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a diagram illustrating a structure of a data description file in the prior art;
FIG. 2 is a flowchart illustrating a method for deploying a test environment according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating interaction between a server agent and a client agent according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating interaction between a server agent and a client agent according to an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating a deployment method of a test environment according to a second embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for deploying a test environment according to a third embodiment of the present application;
fig. 7 is a schematic flowchart of a deployment method of a test environment according to a fourth embodiment of the present application;
fig. 8 is a schematic structural diagram of a deployment apparatus of a test environment according to a fifth embodiment of the present application;
fig. 9 is a schematic structural diagram of a deployment apparatus of a test environment according to a sixth embodiment of the present application;
FIG. 10 is a block diagram of an electronic device for implementing a deployment method of a test environment according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Example one
Fig. 2 is a flowchart of a deployment method of a test environment according to an embodiment of the present application, where the method may be executed by a deployment apparatus or a server device of the test environment, where the deployment apparatus or the server device may be implemented by software and/or hardware, and the apparatus or the server device may be integrated in any intelligent device with a network communication function. As shown in fig. 2, the deployment method of the test environment may include the following steps:
s201, sending a file transmission command to the client device through the server agent and the client agent.
In a specific embodiment of the present application, the server device may send a file transfer command to the client device through the server agent and the client agent; the server-side equipment is deployed in a central control environment; the client device is deployed in an environment to be deployed; the central control environment refers to a running environment which can perform centralized control on the environment deployment of each client device. The server-side equipment can send commands to each client-side equipment in the central control environment and receive command execution results returned by each client-side equipment. The file transmission command is used for informing the client device to acquire the deployment script of the environment to be deployed in the server device through the HTTP file transmission service of the environment to be deployed which is started in advance. In one embodiment, in response to detecting that the server program receives a parameter transmitted by the client device, analyzing the transmitted parameter to obtain an IP address and a port number of the client device and a command to be executed by the client device; then sending a connection request to the client device according to the IP address and the port number of the client device so that the client device responds to the connection request and establishes connection with the server device; in response to the command that the client device needs to execute being a file transfer command, the server device may send the file transfer command to the client device through the server agent and the client agent based on the connection.
Fig. 3 is a schematic diagram illustrating interaction between a server agent and a client agent according to an embodiment of the present application. Because the server device can only interact with the physical machine through the interaction tool sshpass, when the client device uses a virtualized container (including Matrix/Docker, etc.), the server device cannot send a command to the container using sshpass. Therefore, the Server/Client service based on the open source framework brpc in the application takes the mirror image file of adding the Client device into Matrix/Docker as a basic environment, establishes the virtualization container and completes the deployment of the Server/Client, and completes the interaction between the Server device and the Client device through the deployed Server/Client service. As shown in fig. 3, a Server Agent is deployed in a central control environment of a Server device, a Client Agent is deployed in an environment to be deployed of a Client device, and command execution of a remote container is realized through interaction between the Server Agent and the Client Agent. Under the scheme, one server-side device corresponds to a plurality of client-side devices; the server side equipment is responsible for sending commands to each client side equipment; the commands may be Linux commands, executing Shell scripts, executing Python scripts, etc. And after receiving the command, the client device directly executes the command locally and returns an execution result to the server device.
Fig. 4 is a flowchart illustrating interaction between a server agent and a client agent according to an embodiment of the present application. As shown in fig. 4, the implementation of the Server Agent and the Client Agent is performed based on the brpc framework, and the Server only needs to know the IP address and the port number of the Client. The Server sends a command to the port of the Client according to the IP address and the port number of the Client, and the Client monitors the corresponding port and directly executes the command locally after receiving the command. In one embodiment, the process of interaction between the Server Agent and the Client Agent may include the following steps: 1) the Client Agent is directly started during deployment, and a port is monitored in the whole process; 2) when a remote container command needs to be executed, a server program is called, and an IP address and a port number of a client device needing to be connected and a command needing to be executed are transmitted to the server program, such as: a server ip port cmd; 3) when the Server Agent detects the parameters transmitted by the Server program, the Server Agent analyzes the parameters (the Client Agent waits for connection at the moment), establishes connection with the Client equipment according to the IP address and the port number of the Client equipment and transmits a command; 4) the Client Agent does not perform additional processing after reading the command from the port, calls the pop execution command through the system, and returns the execution result of the command to the Server Agent (the Server Agent waits to return at the moment); 5) the Server Agent sets a waiting timeout after sending the command, and if the response of the Client Agent is not received within a timeout range, the request is considered to be timeout; if the response of the Client Agent is received, reading and returning; 6) and the Server Agent prints and outputs, and records a log for use in troubleshooting. By the process, the Server Agent and the Client Agent are interacted, the limitation that sshpass is only suitable for a physical machine is solved, and the problem that communication cannot be carried out in a container is also solved. In addition, the Server Agent and the Client Agent interact through the port, and the details of whether the bottom layer is a physical machine or a container are shielded. When the Server Agent is started in the container, the environment for executing the command is the container environment; when starting up in the physical machine, the environment in which it executes commands is the physical machine environment. Therefore, the scheme provided by the application can be simultaneously applied to the physical machine and the container.
S202, receiving an execution result of the file transmission command returned by the client device through the server agent and the client agent.
In a specific embodiment of the present application, the server device may receive an execution result of a file transfer command returned by the client device through the server agent and the client agent; wherein, the execution result of the file transmission command comprises: the client device already acquires the deployment script of the environment to be deployed and the client device does not acquire the deployment script of the environment to be deployed. For example, if the execution result of the file transmission command is 1, it indicates that the client device has acquired the deployment script of the environment to be deployed; and if the execution result of the file transmission command is 0, indicating that the client device does not acquire the deployment script of the environment to be deployed.
S203, responding to the execution result of the file transmission command that the client device obtains the deployment script of the environment to be deployed, and sending a script execution command to the client device through the server agent and the client agent.
In a specific embodiment of the application, in response to that the execution result of the file transmission command is that the client device has acquired the deployment script of the environment to be deployed, the server device may send a script execution command to the client device through the server agent and the client agent; the script execution command is used for informing the client device to execute the deployment script of the environment to be deployed.
S204, receiving an execution result of the deployment script of the environment to be deployed, which is returned by the client device through the server agent and the client agent.
In a specific embodiment of the present application, the server device may receive an execution result of the deployment script of the environment to be deployed, which is returned by the client device through the server agent and the client agent.
According to the deployment method of the test environment, the server side equipment sends a file transmission command to the client side equipment through the server side agent and the client side agent; then receiving the execution result of the file transmission command returned by the client device through the server agent and the client agent; responding to the execution result of the file transmission command that the client equipment obtains the deployment script of the environment to be deployed, and sending a script execution command to the client equipment through the server agent and the client agent; and finally, receiving an execution result of the deployment script of the environment to be deployed, which is returned by the client equipment through the server agent and the client agent. That is to say, in the application, whether the application is directed to a physical machine or a virtual container, the server device can send a command to the client device through the server agent and the client agent, notify the client device to obtain the deployment script of the environment to be deployed in the server device through the HTTP file transmission service of the environment to be deployed that is started in advance, and notify the client device to execute the deployment script of the environment to be deployed, so that the purposes of simplifying the deployment process and improving the deployment efficiency can be achieved, and the application by a user is facilitated. However, in the existing deployment method of the test environment, the environment deployment method of the physical machine is different from the environment deployment method of the virtual container, and they adopt respective modes to perform environment deployment, and cannot adopt a universal mode to perform deployment. Because the technical means of sending the command to the client equipment through the server agent and the client agent and starting the HTTP file transmission service of the environment to be deployed in advance is adopted, the technical problem that an environment deployment method of a physical machine and an environment deployment method of a virtual container are not universal in the prior art is solved, the technical scheme provided by the application can achieve the purposes of simplifying a deployment process and improving deployment efficiency, and is more convenient for users to use; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
Example two
Fig. 5 is a schematic flowchart of a deployment method of a test environment according to a second embodiment of the present application. As shown in fig. 5, the deployment method of the test environment may include the following steps:
s501, sending a service starting command to the client device through the server agent and the client agent.
In a specific embodiment of the present application, the server device may send a service start command to the client device through the server agent and the client agent; the service starting command is used for informing the client device of starting the HTTP file transmission service of the environment to be deployed.
S502, receiving an execution result of a service starting command returned by the client device through the server agent and the client agent.
In a specific embodiment of the present application, the server device may receive an execution result of a service start command returned by the client device through the server agent and the client agent; wherein, the execution result comprises: the client device has started the HTTP file transfer service and the client device has not started the HTTP file transfer service. For example, if the execution result of the service start command is 1, it indicates that the client device has started the HTTP file transfer service; if the execution result of the service start command is 0, it indicates that the client device does not start the HTTP file transfer service.
S503, responding to the execution result of the service starting command, that the client equipment starts the HTTP file transmission service of the environment to be deployed, and sending a file transmission command to the client equipment through the server agent and the client agent.
In a specific embodiment of the present application, in response to that the execution result of the service start command is that the client device has started the HTTP file transfer service of the environment to be deployed, the server device may send a file transfer command to the client device through the server agent and the client agent. For example, if the execution result of the service start command is 1, it indicates that the client device has started the HTTP file transfer service; if the execution result of the service start command is 0, it indicates that the client device does not start the HTTP file transfer service.
S504, receiving an execution result of the file transmission command returned by the client device.
And S505, responding to the execution result of the file transmission command, that the client equipment acquires the deployment script of the environment to be deployed, and sending a script execution command to the client equipment through the server agent and the client agent.
S506, receiving an execution result of the deployment script of the environment to be deployed, which is returned by the client device through the server agent and the client agent.
Preferably, in the embodiment of the present application, in order to solve the problem of file transfer caused by the command wget/scp not being available in the container environment and the anonymous FTP, the present application uses the HTTP service to solve the problem, and the HTTP service is improved based on the file transfer tool simplehtttpserver provided by the cross-platform computer design language Python 2. In actual deployment, the performance requirement on file transfer is high because the number of files of a large service may reach hundreds, and the size of the files reaches dozens of G. The native simplehtpserver has poor concurrency performance, so some targeted modifications need to be made to achieve the purpose of being suitable for business. In one embodiment, the server device may first convert the file transfer tool from a single-thread service mode to a multi-thread service mode; and then creating HTTP file transmission service for the client device through a file transmission tool in a multithreading service mode. In one embodiment, the server device may change the simplex http server in the single-thread service mode to the simplex tpserver in the multi-thread service mode by: the native simpleHTTPServer can be directly started by a pyhton-m SimleHTTPServer port number mode, and the mode starts the service in a single thread. Multi-threaded services are enabled by the following encapsulation: (1) acquiring a Handler of SimpleHTTPServer: simplehtpserver. simplehtpretquestller; (2) providing a multi-threaded Handler by means of ThreadingMixIn; (3) a multithreaded Handler is launched.
According to the deployment method of the test environment, the server-side equipment sends a file transmission command to the client-side equipment through the server-side agent and the client-side agent; then receiving the execution result of the file transmission command returned by the client device through the server agent and the client agent; responding to the execution result of the file transmission command that the client equipment obtains the deployment script of the environment to be deployed, and sending a script execution command to the client equipment through the server agent and the client agent; and finally, receiving an execution result of the deployment script of the environment to be deployed, which is returned by the client equipment through the server agent and the client agent. That is to say, in the application, whether the application is directed to a physical machine or a virtual container, the server device can send a command to the client device through the server agent and the client agent, notify the client device to obtain the deployment script of the environment to be deployed in the server device through the HTTP file transmission service of the environment to be deployed that is started in advance, and notify the client device to execute the deployment script of the environment to be deployed, so that the purposes of simplifying the deployment process and improving the deployment efficiency can be achieved, and the application by a user is facilitated. In the existing deployment method of the test environment, the environment deployment method of the physical machine is different from the environment deployment method of the virtual container, and the physical machine and the virtual container adopt respective modes for environment deployment, so that the physical machine and the virtual container cannot adopt a universal mode for deployment. Because the technical means of sending the command to the client equipment through the server agent and the client agent and starting the HTTP file transmission service of the environment to be deployed in advance is adopted, the technical problem that an environment deployment method of a physical machine and an environment deployment method of a virtual container are not universal in the prior art is solved, the technical scheme provided by the application can achieve the purposes of simplifying a deployment process and improving deployment efficiency, and is more convenient for users to use; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
EXAMPLE III
Fig. 6 is a flowchart of a deployment method of a test environment according to a third embodiment of the present application, where the method may be performed by a deployment apparatus or a client device of the test environment, where the deployment apparatus or the client device may be implemented by software and/or hardware, and the apparatus or the client device may be integrated in any intelligent device with a network communication function. As shown in fig. 6, the deployment method of the test environment may include the following steps:
s601, receiving a file transmission command sent by server equipment through a server agent and a client agent; and responding to the file transmission command, and acquiring the deployment script of the environment to be deployed in the server-side equipment through the HTTP file transmission service of the environment to be deployed which is started in advance.
In a specific embodiment of the present application, the client device may receive a file transfer command sent by the server device through the server agent and the client agent; and responding to the file transmission command, and acquiring the deployment script of the environment to be deployed in the server-side equipment through the HTTP file transmission service of the environment to be deployed which is started in advance. In one embodiment, a client device may pass parameters into a server program; the parameters comprise an IP address and a port number of the client equipment and commands to be executed by the client equipment; then receiving a connection request sent by the server side equipment according to the IP address and the port number of the client side equipment, and responding to the connection request to establish connection with the server side equipment; in response to the command to be executed being a file transfer command, the client device may receive, based on the connection, a file transfer command sent by the server device through the server agent and the client agent.
S602, the execution result of the file transmission command is sent to the server device through the server agent and the client agent.
In a specific embodiment of the present application, the client device may send an execution result of the file transfer command to the server device through the server agent and the client agent; wherein, the execution result of the file transmission command comprises: the client device already acquires the deployment script of the environment to be deployed and the client device does not acquire the deployment script of the environment to be deployed. For example, if the execution result of the file transmission command is 1, it indicates that the client device has acquired the deployment script of the environment to be deployed; and if the execution result of the file transmission command is 0, indicating that the client device does not acquire the deployment script of the environment to be deployed.
S603, responding to the execution result of the file transmission command that the deployment script of the environment to be deployed is acquired, and receiving a script execution command sent by the server device through the server agent and the client agent; and executing the deployment script of the environment to be deployed in response to the script execution command.
In a specific embodiment of the application, in response to that the execution result of the file transmission command is that the deployment script of the environment to be deployed is acquired, the client device may receive a script execution command sent by the server device through the server agent and the client agent; the script execution command is used for informing the client equipment to execute a deployment script of the environment to be deployed; the deployment script of the environment to be deployed is then executed in response to the script execution command.
According to the deployment method of the test environment, the server-side equipment sends a file transmission command to the client-side equipment through the server-side agent and the client-side agent; then receiving the execution result of the file transmission command returned by the client device through the server agent and the client agent; responding to the execution result of the file transmission command that the client equipment obtains the deployment script of the environment to be deployed, and sending a script execution command to the client equipment through the server agent and the client agent; and finally, receiving an execution result of the deployment script of the environment to be deployed, which is returned by the client equipment through the server agent and the client agent. That is to say, in the application, whether the application is directed to a physical machine or a virtual container, the server device can send a command to the client device through the server agent and the client agent, notify the client device to obtain the deployment script of the environment to be deployed in the server device through the HTTP file transmission service of the environment to be deployed that is started in advance, and notify the client device to execute the deployment script of the environment to be deployed, so that the purposes of simplifying the deployment process and improving the deployment efficiency can be achieved, and the application by a user is facilitated. In the existing deployment method of the test environment, the environment deployment method of the physical machine is different from the environment deployment method of the virtual container, and the physical machine and the virtual container adopt respective modes for environment deployment, so that the physical machine and the virtual container cannot adopt a universal mode for deployment. Because the technical means of sending the command to the client equipment through the server agent and the client agent and starting the HTTP file transmission service of the environment to be deployed in advance is adopted, the technical problem that an environment deployment method of a physical machine and an environment deployment method of a virtual container are not universal in the prior art is solved, the technical scheme provided by the application can achieve the purposes of simplifying a deployment process and improving deployment efficiency, and is more convenient for users to use; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
Example four
Fig. 7 is a flowchart illustrating a deployment method of a test environment according to a fourth embodiment of the present application. As shown in fig. 7, the deployment method of the test environment may include the following steps:
s701, receiving a service starting command sent by server equipment through a server agent and a client agent; and starting the HTTP file transmission service of the environment to be deployed in response to the service starting command.
In a specific embodiment of the present application, the client device may receive a service start command sent by the server device through the server agent and the client agent; and starting the HTTP file transmission service of the environment to be deployed in response to the service starting command.
S702, sending the execution result of the service starting command to the server equipment through the server agent and the client agent.
In a specific embodiment of the present application, the client device may send an execution result of the service start command to the server device through the server agent and the client agent; wherein, the execution result comprises: the client device has started the HTTP file transfer service and the client device has not started the HTTP file transfer service. For example, if the execution result of the service start command is 1, it indicates that the client device has started the HTTP file transfer service; if the execution result of the service start command is 0, it indicates that the client device does not start the HTTP file transfer service.
S703, responding to the execution result of the service starting command, starting the HTTP file transmission service of the environment to be deployed, and receiving a file transmission command sent by the server side equipment through the server side agent and the client side agent; and responding to the file transmission command, and acquiring the deployment script of the environment to be deployed in the server-side equipment through the HTTP file transmission service of the environment to be deployed which is started in advance.
In a specific embodiment of the present application, in response to that the execution result of the service start command is that the HTTP file transfer service of the environment to be deployed has been started, the client device may receive a file transfer command sent by the server device through the server agent and the client agent; and then responding to the file transmission command and acquiring the deployment script of the environment to be deployed in the server-side equipment through the HTTP file transmission service of the environment to be deployed which is started in advance. For example, if the execution result of the service start command is 1, it indicates that the client device has started the HTTP file transfer service; if the execution result of the service start command is 0, it indicates that the client device does not start the HTTP file transfer service.
S704, the execution result of the file transmission command is sent to the server device through the server agent and the client agent.
S705, responding to the execution result of the file transmission command that the deployment script of the environment to be deployed is acquired, and receiving a script execution command sent by the server equipment through the server agent and the client agent; and executing the deployment script of the environment to be deployed in response to the script execution command.
According to the deployment method of the test environment, the server-side equipment sends a file transmission command to the client-side equipment through the server-side agent and the client-side agent; then receiving the execution result of the file transmission command returned by the client device through the server agent and the client agent; responding to the execution result of the file transmission command, namely that the client equipment acquires the deployment script of the environment to be deployed, and sending a script execution command to the client equipment through the server agent and the client agent; and finally, receiving an execution result of the deployment script of the environment to be deployed, which is returned by the client equipment through the server agent and the client agent. That is to say, in the application, whether the application is directed to a physical machine or a virtual container, the server device can send a command to the client device through the server agent and the client agent, notify the client device to obtain the deployment script of the environment to be deployed in the server device through the HTTP file transmission service of the environment to be deployed that is started in advance, and notify the client device to execute the deployment script of the environment to be deployed, so that the purposes of simplifying the deployment process and improving the deployment efficiency can be achieved, and the application by a user is facilitated. In the existing deployment method of the test environment, the environment deployment method of the physical machine is different from the environment deployment method of the virtual container, and the physical machine and the virtual container adopt respective modes for environment deployment, so that the physical machine and the virtual container cannot adopt a universal mode for deployment. Because the technical means of sending the command to the client equipment through the server agent and the client agent and starting the HTTP file transmission service of the environment to be deployed in advance is adopted, the technical problem that an environment deployment method of a physical machine and an environment deployment method of a virtual container are not universal in the prior art is solved, the technical scheme provided by the application can achieve the purposes of simplifying a deployment process and improving deployment efficiency, and is more convenient for users to use; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
EXAMPLE five
Fig. 8 is a schematic structural diagram of a deployment apparatus of a test environment according to a fifth embodiment of the present application. As shown in fig. 8, the apparatus 800 includes: a first transmitting module 801 and a first receiving module 802; wherein,
the first sending module 801 is configured to send a file transfer command to the client device through the server agent and the client agent;
the first receiving module 802 is configured to receive an execution result of the file transmission command returned by the client device through the server agent and the client agent;
the first sending module 801 is further configured to send a script execution command to the client device through the server agent and the client agent in response to that the execution result of the file transmission command is that the client device has acquired the deployment script of the environment to be deployed;
the first receiving module 802 is further configured to receive an execution result of the deployment script of the environment to be deployed, which is returned by the client device through the server agent and the client agent.
Further, the first sending module 801 is further configured to send a service start command to the client device through the server agent and the client agent;
the first receiving module 802 is further configured to receive an execution result of the service start command returned by the client device through the server agent and the client agent;
the first sending module 801 is specifically configured to, in response to that the execution result of the service start command is that the client device has started the HTTP file transfer service of the environment to be deployed, execute an operation of sending the file transfer command to the client device through the server agent and the client agent.
Further, the first sending module 801 is specifically configured to, in response to detecting that a server program receives a parameter sent from the client device, analyze the parameter, and acquire an IP address and a port number of the client device and a command that needs to be executed by the client device; sending a connection request to the client device according to the IP address and the port number of the client device so that the client device responds to the connection request and establishes connection with the server device; and responding to the command which needs to be executed by the client device and is the file transmission command, and sending the file transmission command to the client device through the server agent and the client agent based on the connection.
Further, the apparatus further comprises: a service creation module 803 (not shown in the figure) for converting the file transfer tool from a single-thread service mode to a multi-thread service mode; and creating the HTTP file transmission service for the client equipment through a file transmission tool in the multithreading service mode.
The deployment device of the test environment can execute the method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method. For details of the test environment, reference may be made to the deployment method of the test environment provided in the first embodiment and the second embodiment of the present application.
EXAMPLE six
Fig. 9 is a schematic structural diagram of a deployment apparatus of a test environment according to a sixth embodiment of the present application. As shown in fig. 9, the apparatus 900 includes: a second receiving module 901 and a second sending module 902; wherein,
the second receiving module 901 is configured to receive a file transmission command sent by a server device through a server agent and a client agent; responding to the file transmission command, and acquiring a deployment script of the environment to be deployed in the server-side equipment through a pre-started HTTP file transmission service of the environment to be deployed;
the second sending module 902 is configured to send an execution result of the file transfer command to the server device through the server agent and the client agent;
the second receiving module 901 is further configured to receive a script execution command sent by the server device through the server agent and the client agent in response to that the execution result of the file transmission command is that the deployment script of the environment to be deployed is acquired; and responding to the script execution command to execute the deployment script of the environment to be deployed.
Further, the second receiving module 901 is further configured to receive a service start command sent by the server device through the server agent and the client agent; responding to the service starting command to start the HTTP file transmission service of the environment to be deployed;
the second sending module 902 further sends an execution result of the service start command to the server device through the server agent and the client agent;
the second receiving module 901 is specifically configured to, in response to that the execution result of the service start command is that the HTTP file transmission service of the environment to be deployed is started, execute an operation of receiving the file transmission command sent by the server device through the server agent and the client agent.
Further, the second receiving module 901 is specifically configured to transmit parameters to a server program; the parameters comprise an IP address and a port number of the client equipment and commands which need to be executed by the client equipment; receiving a connection request sent by the server side equipment according to the IP address and the port number of the client side equipment, and responding to the connection request to establish connection with the server side equipment; and responding to the command which needs to be executed by the client equipment and is the file transmission command, and receiving the file transmission command which is sent by the server equipment through the server agent and the client agent based on the connection.
The deployment device of the test environment can execute the method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method. For details of the technology that are not described in detail in this embodiment, reference may be made to the deployment method of the test environment provided in the third embodiment and the fourth embodiment of the present application.
EXAMPLE seven
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 10 is a block diagram of an electronic device according to a deployment method of a test environment according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may 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 meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 10, the electronic apparatus includes: one or more processors 1001, memory 1002, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing some of the necessary operations (e.g., as an array of servers, a group of blade servers, or a multi-processor system). Fig. 10 illustrates an example of one processor 1001.
The memory 1002 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the test environment deployment methods provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the deployment method of the test environment provided by the present application.
The memory 1002, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the deployment method of the test environment in the embodiment of the present application (for example, the first sending module 801 and the first receiving module 803 shown in fig. 8). The processor 1001 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions, and modules stored in the memory 1002, that is, implements the deployment method of the test environment in the above method embodiments.
The memory 1002 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device of the deployment method of the test environment, and the like. Further, the memory 1002 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 1002 may optionally include memory located remotely from the processor 1001, which may be connected to the test environment's deployment method electronics over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the deployment method of the test environment may further include: an input device 1003 and an output device 1004. The processor 1001, the memory 1002, the input device 1003, and the output device 1004 may be connected by a bus or other means, and the bus connection is exemplified in fig. 10.
The input device 1003 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus of the deployment method of the test environment, such as an input device like a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 1004 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here 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 a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, 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 may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the server side equipment sends a file transmission command to the client side equipment through the server side agent and the client side agent; then receiving the execution result of the file transmission command returned by the client device through the server agent and the client agent; responding to the execution result of the file transmission command that the client equipment obtains the deployment script of the environment to be deployed, and sending a script execution command to the client equipment through the server agent and the client agent; and finally, receiving an execution result of the deployment script of the environment to be deployed, which is returned by the client equipment through the server agent and the client agent. That is to say, in the application, whether the application is directed to a physical machine or a virtual container, the server device can send a command to the client device through the server agent and the client agent, notify the client device to obtain the deployment script of the environment to be deployed in the server device through the HTTP file transmission service of the environment to be deployed that is started in advance, and notify the client device to execute the deployment script of the environment to be deployed, so that the purposes of simplifying the deployment process and improving the deployment efficiency can be achieved, and the application by a user is facilitated. However, in the existing deployment method of the test environment, the environment deployment method of the physical machine is different from the environment deployment method of the virtual container, and they adopt respective modes to perform environment deployment, and cannot adopt a universal mode to perform deployment. Because the technical means of sending the command to the client equipment through the server agent and the client agent and starting the HTTP file transmission service of the environment to be deployed in advance is adopted, the technical problem that an environment deployment method of a physical machine and an environment deployment method of a virtual container are not universal in the prior art is solved, the technical scheme provided by the application can achieve the purposes of simplifying a deployment process and improving deployment efficiency, and is more convenient for users to use; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A deployment method of a test environment, which is executed by a server device, the method comprising:
sending a file transmission command to client equipment through a server agent and a client agent, wherein the file transmission command is used for informing the client equipment to acquire a deployment script of an environment to be deployed in the server equipment through a pre-started HTTP file transmission service of the environment to be deployed; the server-side equipment is deployed in a central control environment; the client device is deployed in an environment to be deployed; the types of the client devices comprise physical machines and virtual containers;
receiving an execution result of the file transmission command returned by the client device through the server agent and the client agent, wherein the execution result of the file transmission command is used for recording whether the client device acquires a deployment script of an environment to be deployed;
responding to the execution result of the file transmission command that the client device obtains the deployment script of the environment to be deployed, and sending a script execution command to the client device through the server agent and the client agent, wherein the script execution command is used for informing the client device to execute the deployment script of the environment to be deployed;
and receiving an execution result of the deployment script of the environment to be deployed, which is returned by the client equipment through the server agent and the client agent.
2. The method of claim 1, wherein prior to sending the file transfer command to the client device via the server agent and the client agent, the method further comprises:
sending a service start command to the client device through the server agent and the client agent;
receiving an execution result of the service starting command returned by the client device through the server agent and the client agent;
and responding to the execution result of the service starting command that the client equipment starts the hypertext transfer protocol (HTTP) file transfer service of the environment to be deployed, and executing the operation of sending the file transfer command to the client equipment through the server agent and the client agent.
3. The method of claim 1, wherein sending the file transfer command to the client device via the server agent and the client agent comprises:
responding to the detection that a server program receives the parameters transmitted by the client device, analyzing the parameters, and acquiring the IP address and the port number of the client device and the command to be executed by the client device;
sending a connection request to the client device according to the IP address and the port number of the client device, so that the client device responds to the connection request and establishes connection with the server device;
and responding to the command which needs to be executed by the client device and is the file transmission command, and sending the file transmission command to the client device through the server agent and the client agent based on the connection.
4. The method of claim 2, further comprising:
converting the file transmission tool from a single thread service mode to a multi-thread service mode;
and creating the HTTP file transmission service of the environment to be deployed for the client equipment by using the file transmission tool in the multithread service mode.
5. A method of deploying a test environment, performed by a client device, the method comprising:
receiving a file transmission command sent by server equipment through a server agent and a client agent; responding to the file transmission command, and acquiring a deployment script of the environment to be deployed in the server-side equipment through a pre-started hypertext transfer protocol (HTTP) file transmission service of the environment to be deployed; the server-side equipment is deployed in a central control environment; the client device is deployed in an environment to be deployed; the types of the client devices comprise physical machines and virtual containers;
the execution result of the file transmission command is sent to the server device through the server agent and the client agent, and the execution result of the file transmission command is used for recording whether the client device obtains a deployment script of an environment to be deployed;
responding to the execution result of the file transmission command that the deployment script of the environment to be deployed is acquired, and receiving a script execution command sent by the server device through the server agent and the client agent; and responding to the script execution command to execute the deployment script of the environment to be deployed, wherein the script execution command is used for informing the client device to execute the deployment script of the environment to be deployed.
6. The method of claim 5, wherein prior to receiving the file transfer command sent by the server device through the server agent and the client agent, the method further comprises:
receiving a service starting command sent by the server side equipment through the server side agent and the client side agent; responding to the service starting command to start the HTTP file transmission service of the environment to be deployed;
sending an execution result of the service starting command to the server equipment through the server agent and the client agent;
and in response to the execution result of the service starting command being that the HTTP file transmission service of the environment to be deployed is started, executing the operation of receiving the file transmission command sent by the server side equipment through the server side agent and the client side agent.
7. The method of claim 5, wherein receiving the file transfer command sent by the server device through the server agent and the client agent comprises:
transmitting parameters to a server program; the parameters comprise an IP address and a port number of the client equipment and commands which need to be executed by the client equipment;
receiving a connection request sent by the server side equipment according to the IP address and the port number of the client side equipment, and responding to the connection request to establish connection with the server side equipment;
and responding to the command needing to be executed as the file transmission command, and receiving the file transmission command sent by the server equipment through the server agent and the client agent based on the connection.
8. A deployment apparatus of a test environment, configured at a server device, the apparatus comprising: the device comprises a first sending module and a first receiving module; wherein,
the first sending module is used for sending a file transmission command to the client device through the server agent and the client agent, wherein the file transmission command is used for informing the client device to obtain the deployment script of the environment to be deployed in the server device through the HTTP file transmission service of the environment to be deployed which is started in advance; the server-side equipment is deployed in a central control environment; the client device is deployed in an environment to be deployed; the types of the client devices comprise physical machines and virtual containers;
the first receiving module is configured to receive an execution result of the file transmission command returned by the client device through the server agent and the client agent, where the execution result of the file transmission command is used to record whether the client device obtains a deployment script of the environment to be deployed;
the first sending module is further configured to send a script execution command to the client device through the server agent and the client agent in response to that the execution result of the file transmission command is that the client device has acquired the deployment script of the environment to be deployed, where the script execution command is used to notify the client device to execute the deployment script of the environment to be deployed;
the first receiving module is further configured to receive an execution result of the deployment script of the environment to be deployed, which is returned by the client device through the server agent and the client agent.
9. The apparatus of claim 8, wherein:
the first sending module is further configured to send a service start command to the client device through the server agent and the client agent;
the first receiving module is further configured to receive an execution result of the service start command returned by the client device through the server agent and the client agent;
the first sending module is specifically configured to, in response to a result of executing the service start command being that the client device has started the HTTP file transfer service of the environment to be deployed, execute an operation of sending the file transfer command to the client device through the server agent and the client agent.
10. The apparatus of claim 8, wherein:
the first sending module is specifically configured to, in response to detecting that a server program receives a parameter transmitted by the client device, analyze the parameter to obtain an IP address and a port number of the client device and a command that needs to be executed by the client device; sending a connection request to the client device according to the IP address and the port number of the client device so that the client device responds to the connection request and establishes connection with the server device; and responding to the command which needs to be executed by the client device and is the file transmission command, and sending the file transmission command to the client device through the server agent and the client agent based on the connection.
11. The apparatus of claim 9, further comprising: the service creation module is used for converting the file transmission tool from a single thread service mode to a multi-thread service mode; and creating the HTTP file transmission service of the environment to be deployed for the client equipment by using the file transmission tool in the multithread service mode.
12. An apparatus for deploying a test environment, configured at a client device, the apparatus comprising: the second receiving module and the second sending module; wherein,
the second receiving module is used for receiving a file transmission command sent by the server equipment through the server agent and the client agent; responding to the file transmission command, and acquiring a deployment script of the environment to be deployed in the server-side equipment through a pre-started hypertext transfer protocol (HTTP) file transmission service of the environment to be deployed; the server-side equipment is deployed in a central control environment; the client device is deployed in an environment to be deployed; the types of the client devices comprise physical machines and virtual containers;
the second sending module is configured to send an execution result of the file transmission command to the server device through the server agent and the client agent, where the execution result of the file transmission command is used to record whether the client device obtains a deployment script of the environment to be deployed;
the second receiving module is further configured to receive a script execution command sent by the server device through the server agent and the client agent in response to that the execution result of the file transmission command is that the deployment script of the environment to be deployed is acquired; and responding to the script execution command to execute the deployment script of the environment to be deployed, wherein the script execution command is used for informing the client device to execute the deployment script of the environment to be deployed.
13. The apparatus of claim 12, wherein:
the second receiving module is further configured to receive a service start command sent by the server device through the server agent and the client agent; responding to the service starting command to start the HTTP file transmission service of the environment to be deployed;
the second sending module is further used for sending an execution result of the service starting command to the server equipment through the server agent and the client agent;
the second receiving module is specifically configured to, in response to that the execution result of the service start command is that the HTTP file transfer service of the environment to be deployed is started, execute an operation of receiving the file transfer command sent by the server device through the server agent and the client agent.
14. The apparatus of claim 12, wherein:
the second receiving module is specifically used for transmitting parameters to the server program; wherein the parameters comprise an IP address and a port number of the client device and commands which need to be executed by the client device; receiving a connection request sent by the server side equipment according to the IP address and the port number of the client side equipment, and responding to the connection request to establish connection with the server side equipment; and responding to the command needing to be executed as the file transmission command, and receiving the file transmission command sent by the server equipment through the server agent and the client agent based on the connection.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4 or 5-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-4 or 5-7.
CN202010537006.8A 2020-06-12 2020-06-12 Test environment deployment method and device, electronic equipment and storage medium Active CN111740859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010537006.8A CN111740859B (en) 2020-06-12 2020-06-12 Test environment deployment method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010537006.8A CN111740859B (en) 2020-06-12 2020-06-12 Test environment deployment method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111740859A CN111740859A (en) 2020-10-02
CN111740859B true CN111740859B (en) 2022-09-13

Family

ID=72649116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010537006.8A Active CN111740859B (en) 2020-06-12 2020-06-12 Test environment deployment method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111740859B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113572833B (en) * 2021-07-21 2024-05-14 北京百度网讯科技有限公司 Cloud mobile phone maintenance method and device, electronic equipment and storage medium
CN114124703B (en) * 2021-11-26 2024-01-23 浪潮卓数大数据产业发展有限公司 Multi-environment service configuration method, equipment and medium based on Kubernetes
CN114338674B (en) * 2021-12-30 2023-08-18 天翼物联科技有限公司 Multi-agent automatic deployment method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254436A (en) * 2016-07-28 2016-12-21 腾讯科技(深圳)有限公司 A kind of method of remote debugging, relevant device and system
CN110196722A (en) * 2019-05-07 2019-09-03 平安科技(深圳)有限公司 Cloud host batch management method, system, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10728135B2 (en) * 2017-10-13 2020-07-28 Keysight Technologies, Inc. Location based test agent deployment in virtual processing environments

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254436A (en) * 2016-07-28 2016-12-21 腾讯科技(深圳)有限公司 A kind of method of remote debugging, relevant device and system
CN110196722A (en) * 2019-05-07 2019-09-03 平安科技(深圳)有限公司 Cloud host batch management method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN111740859A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN111740859B (en) Test environment deployment method and device, electronic equipment and storage medium
CN112988499B (en) Data processing method and device, electronic equipment and storage medium
JP7167222B2 (en) APPLET DATA ACQUISITION METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM
CN111737127A (en) Method and apparatus for testing map service
US9122793B2 (en) Distributed debugging of an application in a distributed computing environment
CN111694857B (en) Method, device, electronic equipment and computer readable medium for storing resource data
JP2022020541A (en) Test method and device
EP3920500A1 (en) Method and apparatus for verifying operation state of application
JP7387773B2 (en) Continuous integration testing methods, systems and devices, electronic equipment, storage media and computer programs
CN112925651A (en) Application resource deployment method, device, electronic equipment and medium
CN103677970A (en) System and method for achieving combination display of terminal local desktop and far-end virtual desktop
WO2022179034A1 (en) Automatic testing method and apparatus, electronic device, and storage medium
CN111913884A (en) Distributed test method, device, equipment, system and readable storage medium
CN109815057A (en) A kind of data back up method and mobile terminal
CN112235417B (en) Method and device for sending debugging instruction
CN114077367A (en) Method and device for realizing shortcut of android application in Linux system
CN113900834A (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN113377665A (en) Container technology-based testing method and device, electronic equipment and storage medium
CN111966471B (en) Access method, device, electronic equipment and computer storage medium
CN112395126B (en) Fault log processing method and device, electronic equipment and storage medium
CN111767059A (en) Deployment method and device of deep learning model, electronic equipment and storage medium
CN115357493A (en) Test method, test device, electronic equipment and storage medium
CN111416860B (en) Transaction processing method and device based on block chain, electronic equipment and medium
CN111292223B (en) Graph calculation processing method and device, electronic equipment and storage medium
CN112131095B (en) Pressure testing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant