CN108595335B - Test environment deployment method, deployment device and storage medium - Google Patents

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

Info

Publication number
CN108595335B
CN108595335B CN201810426318.4A CN201810426318A CN108595335B CN 108595335 B CN108595335 B CN 108595335B CN 201810426318 A CN201810426318 A CN 201810426318A CN 108595335 B CN108595335 B CN 108595335B
Authority
CN
China
Prior art keywords
deployment
file
environment
information
workflow
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
CN201810426318.4A
Other languages
Chinese (zh)
Other versions
CN108595335A (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.)
Tenpay Payment Technology Co Ltd
Original Assignee
Tenpay Payment 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 Tenpay Payment Technology Co Ltd filed Critical Tenpay Payment Technology Co Ltd
Priority to CN201810426318.4A priority Critical patent/CN108595335B/en
Publication of CN108595335A publication Critical patent/CN108595335A/en
Application granted granted Critical
Publication of CN108595335B publication Critical patent/CN108595335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a test environment deployment method, which comprises the following steps: presetting a corresponding relation between a deployment workflow and an environment deployment file; receiving a test environment deployment instruction; acquiring and loading a corresponding deployment workflow according to the deployment workflow information; acquiring a corresponding environment deployment file according to the address information of the environment deployment file; pushing the environment deployment file to a target machine according to the address of the target machine, and performing deployment operation of the environment deployment file on the target machine according to deployment information of the environment deployment file; the invention also provides a test environment deployment device, and the test environment deployment method and the test environment deployment device of the invention perform deployment operation of the environment deployment file on the target machine based on the deployment workflow information; the difficulty and the implementation cost of the application environment deployment are reduced, and the safety of the environment deployment is improved.

Description

Test environment deployment method, deployment device and storage medium
Technical Field
The present invention relates to the field of computer programs, and in particular, to a test environment deployment method, a test environment deployment apparatus, and a storage medium.
Background
With the development of science and technology, software applications are updated more and more frequently, and in order to ensure the stability of a software application environment, software application environment deployment needs to be performed on new software applications or updated software applications so as to perform automatic testing on the new software applications or the updated software applications.
General software application environment deployment is environment deployment corresponding to a single software package and a single configuration file, and if a whole set of service system including a plurality of software packages and a plurality of configuration files needs to be deployed, manual intervention is needed to deploy the plurality of software packages and the plurality of configuration files, and if the plurality of corresponding software packages and the plurality of configuration files are stored in a plurality of address sources, environment deployment difficulty of the service system is increased.
Therefore, the existing test environment deployment method and deployment device have the problems of high environment deployment difficulty, high implementation cost, poor safety and the like.
Disclosure of Invention
The embodiment of the invention provides a test environment deployment method and a test environment deployment device which have small environment deployment difficulty, lower deployment implementation cost and better safety; the method and the device for deploying the test environment solve the technical problems that the existing method and device for deploying the test environment are high in environment deployment difficulty, high in implementation cost and poor in safety.
The embodiment of the invention provides a test environment deployment method, which comprises the following steps:
presetting a corresponding relation between a deployment workflow and an environment deployment file; the deployment workflow comprises address information of the environment deployment file and deployment information of the environment deployment file;
receiving a test environment deployment instruction, wherein the test environment deployment instruction comprises a target machine address and deployment workflow information;
acquiring and loading a corresponding deployment workflow according to the deployment workflow information;
acquiring a corresponding environment deployment file according to the address information of the environment deployment file; and
and pushing the environment deployment file to a target machine according to the target machine address, and performing deployment operation of the environment deployment file on the target machine according to deployment information of the environment deployment file.
An embodiment of the present invention further provides a test environment deployment apparatus, including:
the presetting module is used for presetting the corresponding relation between the deployment workflow and the environment deployment file; the deployment workflow comprises address information of the environment deployment file and deployment information of the environment deployment file;
The system comprises an instruction receiving module, a test environment deployment module and a test environment configuration module, wherein the instruction receiving module is used for receiving a test environment deployment instruction, and the test environment deployment instruction comprises a target machine address and deployment workflow information;
the deployment workflow loading module is used for acquiring and loading the corresponding deployment workflow according to the deployment workflow information;
the environment deployment file acquisition module is used for acquiring a corresponding environment deployment file according to the address information of the environment deployment file; and
and the deployment operation module is used for pushing the environment deployment file to a target machine according to the target machine address and carrying out deployment operation on the environment deployment file on the target machine according to the deployment information of the environment deployment file.
Embodiments of the present invention also provide a computer-readable storage medium having stored therein processor-executable instructions, which are loaded by one or more processors to perform the test environment deployment method described above.
Compared with the prior art, the test environment deployment method and the test environment deployment device perform deployment operation of the environment deployment file on the target machine based on the deployment workflow information, and the deployment workflow setting can simplify the deployment operation flow, thereby reducing the difficulty and implementation cost of application environment deployment and improving the safety of environment deployment; the technical problems that the existing test environment deployment method and the test environment deployment device are high in environment deployment difficulty, high in implementation cost and poor in safety are effectively solved.
Drawings
FIG. 1 is a flow chart of a first embodiment of a test environment deployment method of the present invention;
FIG. 2 is a flow chart of a second embodiment of a test environment deployment method of the present invention;
FIG. 3 is a schematic structural diagram of a test environment deployment apparatus according to a first embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a test environment deployment apparatus according to a second embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a preset module of a second embodiment of a test environment deployment apparatus according to the present invention;
FIG. 6 is a schematic structural diagram of a deployment source file pulling unit of a preset module of a test environment deployment apparatus according to a second embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a packing storage unit of a presetting module of a second embodiment of a test environment deployment apparatus according to the present invention;
FIG. 8a is a flow chart illustrating the deployment workflow and the environment deployment document of the test environment deployment apparatus and method according to the present invention;
FIG. 8b is a diagram illustrating the deployment workflow and the environment deployment document of the test environment deployment apparatus and the test environment deployment method according to the present invention;
FIG. 9a is a flowchart of an application environment deployment operation of the test environment deployment apparatus and the test environment deployment method of the present invention;
FIG. 9b is a diagram illustrating an application environment deployment operation of the test environment deployment apparatus and the test environment deployment method according to the present invention;
FIG. 10 is a schematic structural diagram of a deployment source file in an environment deployment file of the test environment deployment apparatus and the test environment deployment method according to the present invention;
fig. 11 is a schematic structural diagram of a working environment of an electronic device in which the test environment deployment apparatus of the present invention is located.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
In the description that follows, embodiments of the invention are described with reference to steps and symbols of operations performed by one or more computers, unless otherwise indicated. It will thus be appreciated that those steps and operations, which are referred to herein several times as being computer-executed, include being manipulated by a computer processing unit in the form of electronic signals representing data in a structured form. This manipulation transforms the data or maintains it at locations in the computer's memory system, which may reconfigure or otherwise alter the computer's operation in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the invention have been described in language specific to above, it is not intended to be limited to the specific details shown, since one skilled in the art will recognize that various steps and operations described below may be implemented in hardware.
The test environment deployment method and the test environment deployment device can be arranged on any electronic equipment and used for deploying the environment deployment file on the target machine. The electronic devices include, but are not limited to, wearable devices, head-mounted devices, medical health platforms, Personal computers, server computers, hand-held or laptop devices, mobile devices (such as mobile phones, Personal Digital Assistants (PDAs), media players, and the like), multiprocessor systems, consumer electronics, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The electronic equipment is preferably an application environment test server for performing application environment test, the application environment test server performs deployment operation of the environment deployment file on the target machine based on the deployment workflow information, difficulty and implementation cost of application environment deployment can be effectively reduced, and safety of environment deployment is improved.
Referring to fig. 1, fig. 1 is a flowchart illustrating a test environment deployment method according to a first embodiment of the present invention. The test environment deployment method of the present embodiment may be implemented using the electronic device, and includes:
Step S101, presetting a corresponding relation between a deployment workflow and an environment deployment file;
step S102, receiving a test environment deployment instruction, wherein the test environment deployment instruction comprises a target machine address and deployment workflow information;
step S103, acquiring and loading a corresponding deployment workflow according to the deployment workflow information; the deployment workflow comprises address information of the environment deployment file and deployment information of the environment deployment file;
step S104, acquiring a corresponding environment deployment file according to the address information of the environment deployment file;
and S105, pushing the environment deployment file to the target machine according to the address of the target machine, and deploying the environment deployment file on the target machine according to the deployment information of the environment deployment file.
The specific flow of the steps of the test environment deployment method of the present invention is described in detail below.
In step S101, the test environment deployment apparatus sets in advance a correspondence between the deployment workflow and the environment deployment file.
The environment deployment file is a system file that is deployed to the target machine for forming a test application execution environment on the target machine.
The deployment workflow is an automated operation flow for deploying the environment deployment file to a corresponding position of the target machine. The deployment workflow should include address information of the environment deployment file and deployment information of the environment deployment file. The address information of the environment deployment file is storage position information of the environment deployment file, and the deployment information of the environment deployment file is deployment flow information of the environment deployment file.
In this step, the corresponding relationship between the deployment workflow and the environment deployment file is preset, so that the corresponding environment deployment file is called through the deployment workflow.
In step S102, after the deployment workflow and the environment deployment file are set, the test environment deployment apparatus may receive a test environment deployment instruction, where the test environment deployment instruction is an instruction for deploying an application test environment on a target machine, and the test environment deployment instruction should include a target machine address and deployment workflow information.
The deployment workflow information is information corresponding to the deployment workflow, so that the corresponding deployment workflow can be acquired in the subsequent steps.
In step S103, the test environment deployment apparatus acquires and loads a corresponding deployment workflow according to the deployment workflow information acquired in step S102.
In step S104, the test environment deployment apparatus obtains a corresponding environment deployment file according to the address information of the environment deployment file in the deployment workflow.
In step S105, the test environment deployment apparatus pushes the environment deployment file acquired in step S104 to the target machine according to the target machine address acquired in step S102, and performs deployment operation of the environment deployment file on the target machine according to the deployment information of the environment deployment file of the deployment workflow acquired in step S103.
Thus, the application test environment deployment process of the test environment deployment method of the present embodiment is completed.
The test environment deployment method of the embodiment performs deployment operation of an environment deployment file on a target machine based on deployment workflow information; the difficulty and the implementation cost of the application environment deployment are reduced, and the safety of the environment deployment is improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating a test environment deployment method according to a second embodiment of the present invention. The test environment deployment method of the present embodiment may be implemented using the electronic device, and includes:
step S201, acquiring deployment information of the environment deployment file, and setting a corresponding deployment configuration file according to the deployment information of the environment deployment file;
step S202, pulling a corresponding deployment source file according to the deployment configuration file;
step S203, packaging and storing the pulled deployment source file to form an environment deployment file;
step S204, generating a deployment workflow according to the deployment information of the environment deployment file and the address information of the environment deployment file;
step S205, carrying out syntax detection and operation detection on the deployment workflow;
Step S206, setting the corresponding relation between the qualified deployment workflow and the corresponding environment deployment file;
step S207, receiving a test environment deployment instruction, wherein the test environment deployment instruction comprises a target machine address and deployment workflow information;
step S208, acquiring and loading a corresponding deployment workflow through a workflow calling interface according to the deployment workflow information; the deployment workflow comprises address information of the environment deployment file and deployment information of the environment deployment file;
step S209, acquiring a corresponding environment deployment file according to the address information of the environment deployment file;
step S210, pushing the environment deployment file to a target machine through a file pushing interface according to the address of the target machine; acquiring a calling database corresponding to deployment operation through a data synchronization interface; and according to the deployment information of the environment deployment file and the calling database, performing deployment operation of the environment deployment file on the target machine through the remote command execution interface.
The specific flow of each step of the test environment deployment method of the present embodiment is described in detail below.
In step S201, the test environment deployment apparatus obtains deployment information of an environment deployment file, where the deployment information of the environment deployment file is information of a plurality of deployment source files corresponding to the environment deployment file. That is, the environment deployment file may correspond to a plurality of deployment source files, and the setting of the environment deployment file on the target machine is realized by setting the plurality of deployment source files on the target machine.
And then the test environment deployment device sets a corresponding deployment configuration file according to the deployment information of the environment deployment file, wherein the deployment configuration file is the storage address information of a plurality of deployment source files in the environment deployment file, and the storage address information of different deployment source files can be different.
Preferably, the test environment deployment apparatus may further determine whether the deployment configuration file set in step S201 is the same as the deployment configuration file corresponding to the preset environment deployment file that has been set.
If the deployment configuration file set in step S201 is the same as the deployment configuration file corresponding to the preset environment deployment file that has been set, it indicates that the environment deployment file is the same as the deployment source file called by the preset environment deployment file, and the test environment deployment apparatus can directly generate a deployment workflow according to the deployment information of the environment deployment file and the address information of the preset environment deployment file, and set the corresponding relationship between the preset environment deployment file and the corresponding deployment workflow, so as to call the preset environment deployment file through the deployment workflow. Therefore, one environment deployment file can correspond to a plurality of deployment workflows, and the setting process of the corresponding relation between the environment deployment file and the corresponding deployment workflows is simplified.
If the deployment configuration file set in step S201 is different from the deployment configuration file corresponding to the preset environment deployment file, the test environment deployment apparatus sets the corresponding deployment configuration file according to the deployment information of the environment deployment file.
In step S202, the test environment deployment apparatus pulls the corresponding deployment source file according to the deployment configuration file obtained in step S201, that is, the storage address information of the plurality of deployment source files.
Here, the deployment configuration file includes address information of the corresponding deployment source file and type information of the deployment source file, and the step of pulling the corresponding deployment source file includes:
the test environment deployment device determines a pulling mode of the deployment source file according to the type information of the deployment source file. The deployment source file can be an SVN format file, an ATT format file, and the like. Since the pull manner of the deployment source file of different types of information may be different, the test environment deployment apparatus needs to determine the pull manner of the deployment source file according to the type information of the deployment source file.
And the test environment deployment device pulls the deployment source file in an acquired pulling mode of the deployment source file according to the address information of the deployment source file.
In step S203, the test environment deployment apparatus performs a package storage operation on the deployment source file pulled in step S202 to form a corresponding environment deployment file.
Specifically, the test environment deployment device may set the pulled deployment source file in the temporary folder; and then the test environment deployment device performs packaging storage operation on the deployment source file in the temporary folder according to the module function information of the deployment source file to form an environment deployment file.
The test environment deployment device stores the deployment source file with the dependency relationship as a compression package according to the module function information of the deployment source file, so that all the compression packages in the environment deployment file after being packaged are independent from each other, and the test environment deployment device can perform compression packaging operation or decompression operation on a plurality of compression packages in parallel.
In step S204, the test environment deployment apparatus forms deployment information of the environment deployment file, that is, deployment flow information of the environment deployment file, according to a set flow of the environment deployment file on the target machine. Subsequently, the environment deployment file formed in step S203 performs a saving operation, and generates address information of the environment deployment file.
And then the test environment deployment device generates a deployment workflow according to the deployment information of the environment deployment file and the address information of the environment deployment file.
Py-create workflow-name instruction creates a deployment workflow without child directories and without dependencies; creating a deployment workflow with subdirectories and without dependencies using a python management. A deployment workflow with subdirectories and dependencies, etc. is created using a python management, py-create diameter/workflow _ name-dependent extended _ workflow _ name1 extended _ workflow _ name2 instruction.
In step S205, the test environment deployment apparatus performs syntax detection and operation detection on the deployment workflow generated in step S204.
For example, the deployment workflow is subjected to syntax detection by using a python management.
In step S206, the test environment deployment apparatus obtains the syntax detection and runs the deployment workflow qualified in the step S205, and then creates a corresponding relationship between the deployment workflow qualified in the detection and the corresponding environment deployment file by the test environment deployment apparatus, so as to call the corresponding environment deployment file through the deployment workflow.
In step S207, after the deployment workflow and the environment deployment file are set, the test environment deployment apparatus may receive a test environment deployment instruction, where the test environment deployment instruction is an instruction for deploying an application test environment on a target machine, and the test environment deployment instruction should include a target machine address and deployment workflow information.
The deployment workflow information is information corresponding to the deployment workflow, so that the corresponding deployment workflow can be obtained in the subsequent steps.
In step S208, the test environment deployment device obtains and loads the corresponding deployment workflow through a workflow call interface (workflow call interface) according to the deployment workflow information obtained in step S207. The deployment workflow should include address information of the environment deployment file and deployment information of the environment deployment file.
In step S209, the test environment deployment apparatus obtains the corresponding environment deployment file according to the address information of the environment deployment file in the deployment workflow.
In step S210, the test environment deployment apparatus pushes the environment deployment file to the target machine through a push file interface (PushPackage interface) according to the target machine address acquired in step S207.
And then the test environment deployment device acquires a call database corresponding to the deployment operation through a data synchronization interface (CopydbCall interface).
And then the test environment deployment device deploys the environment deployment file on the target machine through a remote command execution interface (RemoteCall interface) according to the deployment information of the environment deployment file and the calling database.
The workflow deployment device is provided with a workflow calling interface, a file pushing interface, a data synchronization interface, a remote command execution interface and other calling interfaces, which can simplify the setting content in the deployment workflow, and the deployment workflow can directly call the interfaces to complete the deployment operation of the environment deployment file.
In order to further simplify the deployment process of the environment deployment file, the deployment information of the environment deployment file includes deployment module information that can group the deployment source files in the environment deployment file and module call information that calls the grouped deployment source files. The test environment deployment device can set the deployment source files classified according to the deployment module information on the target machine by using the calling modes corresponding to the module calling information. This may allow the same deployment source file to be called by the environment deployment file multiple times, resulting in a smaller environment deployment file storage capacity.
Thus, the application test environment deployment process of the test environment deployment method of the present embodiment is completed.
On the basis of the first embodiment, the test environment deployment method of the embodiment simplifies the setting process of the corresponding relationship between an environment deployment file and a corresponding deployment workflow by setting the environment deployment file corresponding to a plurality of deployment workflows; different pulling modes of the deployment source file are set based on the type information of the deployment source file, so that the pulling efficiency of the deployment source file is improved; the compression and decompression operation of the deployed source file is carried out according to the module function information of the deployed source file, so that the generation and use efficiency of the environment deployed file are improved; grammar detection and operation detection are carried out on the generated deployment workflow, so that the efficiency of the deployment workflow is improved; by using the calling database to perform the deployment operation of the environment deployment file, the deployment information is simplified and the effectiveness of the deployment operation is improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a test environment deployment apparatus according to a first embodiment of the present invention. The test environment deployment apparatus of this embodiment may be implemented using the first embodiment of the test environment deployment method, and the test environment deployment apparatus 30 of this embodiment includes an instruction receiving module 31, a deployment workflow loading module 32, an environment deployment file obtaining module 33, a deployment operation module 34, and a preset module 35.
The instruction receiving module 31 is configured to receive a test environment deployment instruction, where the test environment deployment instruction includes a target machine address and deployment workflow information; the deployment workflow loading module 32 is configured to obtain and load a corresponding deployment workflow according to the deployment workflow information; the deployment workflow comprises address information of the environment deployment file and deployment information of the environment deployment file; the environment deployment file obtaining module 33 is configured to obtain a corresponding environment deployment file according to the address information of the environment deployment file; the deployment operation module 34 is configured to push the environment deployment file to the target machine according to the target machine address, and perform deployment operation of the environment deployment file on the target machine according to deployment information of the environment deployment file; the presetting module 35 is configured to preset a corresponding relationship between the deployment workflow and the environment deployment file.
When the test environment deployment apparatus 30 of this embodiment is used, the presetting module 35 presets the corresponding relationship between the deployment workflow and the environment deployment file.
The environment deployment file is a system file that is deployed onto the target machine for forming a test application execution environment on the target machine.
The deployment workflow is an automated operation flow for deploying the environment deployment file to a corresponding position of the target machine. The deployment workflow should include address information of the environment deployment file and deployment information of the environment deployment file. The address information of the environment deployment file is storage position information of the environment deployment file, and the deployment information of the environment deployment file is deployment flow information of the environment deployment file.
The presetting module 35 presets the corresponding relationship between the deployment workflow and the environment deployment file, so as to call the corresponding environment deployment file through the deployment workflow.
After the deployment workflow and the environment deployment file are set, the instruction receiving module 31 may receive a test environment deployment instruction, where the test environment deployment instruction is an instruction for deploying an application test environment on a target machine, and the test environment deployment instruction should include a target machine address and deployment workflow information.
The deployment workflow information is information corresponding to the deployment workflow, so that the corresponding deployment workflow can be acquired in the subsequent steps.
Subsequently, the deployment workflow loading module 32 obtains and loads the corresponding deployment workflow according to the deployment workflow information obtained by the instruction receiving module 31.
Then, the environment deployment file obtaining module 33 obtains the corresponding environment deployment file according to the address information of the environment deployment file in the deployment workflow.
Finally, the deployment operation module 34 pushes the environment deployment file acquired by the environment deployment file acquisition module 33 to the target machine according to the target machine address acquired by the instruction receiving module 31, and performs deployment operation of the environment deployment file on the target machine according to the deployment information of the environment deployment file of the deployment workflow acquired by the deployment workflow loading module 32.
This completes the application test environment deployment process of the test environment deployment apparatus 30 of the present embodiment.
The test environment deployment device of the embodiment performs deployment operation of the environment deployment file on the target machine based on the deployment workflow information; the difficulty and the implementation cost of the application environment deployment are reduced, and the safety of the environment deployment is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a test environment deployment apparatus according to a second embodiment of the present invention. The test environment deployment apparatus of this embodiment can be implemented using the second embodiment of the test environment deployment method, and the test environment deployment apparatus 40 of this embodiment includes an instruction receiving module 41, a deployment workflow loading module 42, an environment deployment file obtaining module 43, a deployment operation module 44, and a preset module 45.
The instruction receiving module 41 is configured to receive a test environment deployment instruction, where the test environment deployment instruction includes a target machine address and deployment workflow information; the deployment workflow loading module 42 is configured to obtain and load a corresponding deployment workflow through a workflow calling interface according to the deployment workflow information; the deployment workflow comprises address information of the environment deployment file and deployment information of the environment deployment file; the environment deployment file obtaining module 43 is configured to obtain a corresponding environment deployment file according to the address information of the environment deployment file; the deployment operation module 44 is configured to push the environment deployment file to the target machine through the file pushing interface according to the target machine address; acquiring a calling database corresponding to deployment operation through a database synchronous interface; according to the deployment information of the environment deployment file and the calling database, the deployment operation of the environment deployment file is carried out on the target machine through a remote command execution interface; the presetting module 45 is used for presetting the corresponding relation between the deployment workflow and the environment deployment file.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a preset module of a test environment deployment apparatus according to a second embodiment of the present invention. The presetting module 45 includes a deployment configuration file setting unit 51, a deployment source file pulling unit 52, a package storage unit 53, a deployment workflow generating unit 54, a first presetting unit 55, a deployment configuration file judging unit 56, a second presetting unit 57, and a detecting unit 58.
The deployment configuration file setting unit 51 is configured to obtain deployment information of the environment deployment file, and set a corresponding deployment configuration file according to the deployment information of the environment deployment file; the deployment source file pulling unit 52 is configured to pull the corresponding deployment source file according to the deployment configuration file; the packaging storage unit 53 is configured to perform packaging storage operation on the pulled deployment source file to form an environment deployment file; the deployment workflow generating unit 54 is configured to generate the deployment workflow according to the deployment information of the environment deployment file and the address information of the environment deployment file; the first presetting unit 55 sets a correspondence between the environment deployment file and the corresponding deployment workflow; the deployment configuration file determining unit 56 is configured to determine whether a deployment configuration file corresponding to the deployment information of the environment deployment file is the same as a deployment configuration file corresponding to a preset environment deployment file; the second presetting unit 57 directly generates a deployment workflow according to the deployment information of the environment deployment file and the address information of the preset environment deployment file; setting a corresponding relation between a preset environment deployment file and a corresponding deployment workflow; the detection unit 58 is used for syntax detection and operation detection of the deployment workflow.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a deployment source file pulling unit of a preset module of a test environment deployment apparatus according to a second embodiment of the present invention. The deployment source file pulling unit 52 includes a pulling manner determining subunit 61 and a deployment source file pulling subunit 62.
The pulling mode determining subunit 61 is configured to determine a pulling mode of the deployment source file according to the type information of the deployment source file; the deployment source file pulling subunit 62 is configured to pull the deployment source file according to the address information of the deployment source file by using a pulling manner of the deployment source file.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a packing storage unit of a presetting module of a second embodiment of a test environment deployment apparatus according to the present invention. The packet storage unit 53 includes a temporary storage sub-unit 71 and a packet storage sub-unit 72.
The temporary storage subunit 71 is configured to set the pulled deployment source file in a temporary folder; the packaging storage subunit 72 is configured to perform a packaging storage operation on the deployment source file in the temporary folder according to the module function information of the deployment source file, so as to form an environment deployment file.
When the test environment deployment apparatus 40 of this embodiment is used, first, the deployment configuration file setting unit 51 of the preset module 45 obtains deployment information of environment deployment files, where the deployment information of the environment deployment files is information of a plurality of deployment source files corresponding to the environment deployment files. That is, the environment deployment file may correspond to a plurality of deployment source files, and the setting of the environment deployment file on the target machine is realized by setting the plurality of deployment source files on the target machine.
The deployment configuration file setting unit 51 sets a corresponding deployment configuration file according to deployment information of the environment deployment file, where the deployment configuration file is storage address information of a plurality of deployment source files in the environment deployment file, and the storage address information of different deployment source files may be different.
Preferably, the deployment configuration file determining unit 56 of the presetting module 45 may further determine whether the deployment configuration file set by the deployment configuration file setting unit 51 is the same as the deployment configuration file corresponding to the set preset environment deployment file.
If the deployment configuration file set by the deployment configuration file setting unit 51 is the same as the deployment configuration file corresponding to the preset environment deployment file that has been set, it indicates that the environment deployment file is the same as the deployment source file called by the preset environment deployment file, and the second presetting unit 57 of the presetting module 45 may directly generate a deployment workflow according to the deployment information of the environment deployment file and the address information of the preset environment deployment file, and set the corresponding relationship between the preset environment deployment file and the corresponding deployment workflow, so as to call the preset environment deployment file through the deployment workflow. Therefore, one environment deployment file can correspond to a plurality of deployment workflows, and the setting process of the corresponding relation between the environment deployment file and the corresponding deployment workflows is simplified.
If the deployment configuration file set by the deployment configuration file setting unit 51 is different from the deployment configuration file corresponding to the preset environment deployment file, the deployment configuration file setting unit 51 sets the corresponding deployment configuration file according to the deployment information of the environment deployment file.
Subsequently, the deployment source file pulling unit 52 of the preset module 45 pulls the corresponding deployment source file according to the deployment configuration file obtained by the deployment configuration file setting unit 51, that is, the storage address information of the plurality of deployment source files.
Here, the deployment configuration file includes address information of the corresponding deployment source file and type information of the deployment source file, and the step of pulling the corresponding deployment source file includes:
the pulling manner determining subunit 61 of the deployment source file pulling unit 52 determines the pulling manner of the deployment source file according to the type information of the deployment source file. The deployment source file can be an SVN format file, an ATT format file, and the like. Since the pulling manner of the deployment source file of different types of information may be different, the deployment source file pulling unit needs to determine the pulling manner of the deployment source file according to the type information of the deployment source file.
The deployment source file pulling subunit 62 of the deployment source file pulling unit 52 pulls the deployment source file described above using the obtained pulling manner of the deployment source file, according to the address information of the deployment source file.
Then, the package storage unit 53 of the presetting module 45 performs a package storage operation on the deployment source file pulled by the deployment source file pulling unit 52 to form a corresponding environment deployment file.
Specifically, the temporary storage subunit 71 of the packaging storage unit 53 may set the pulled deployment source file in a temporary folder; subsequently, the package storage subunit 72 of the package storage unit 53 performs a package storage operation on the deployment source file in the temporary folder according to the module function information of the deployment source file to form an environment deployment file.
The packed storage unit 53 performs storage operation on the deployment source file having the dependency relationship as one compressed packet according to the module function information of the deployment source file, so that all the compressed packets in the packed environment deployment file are independent from each other, and the test environment deployment device can perform compression packing operation or decompression operation on a plurality of compressed packets in parallel.
Then, the deployment workflow generation unit 54 of the presetting module 45 forms the deployment information of the environment deployment file, that is, the deployment flow information of the environment deployment file, according to the setting flow of the environment deployment file on the target machine. The deployment workflow generation unit 54 saves the environment deployment file formed by the packing storage unit, and generates address information of the environment deployment file.
Then, the deployment workflow generation unit 54 generates a deployment workflow according to the deployment information of the environment deployment file and the address information of the environment deployment file.
Py-create workflow-name instruction creates a deployment workflow without child directories and without dependencies; creating a deployment workflow with subdirectories and without dependencies using a python management. A deployment workflow with subdirectories and dependencies, etc. is created using a python management, py-create diameter/workflow _ name-dependent extended _ workflow _ name1 extended _ workflow _ name2 instruction.
The detection unit 58 of the preset module 45 then performs syntax detection and operation detection on the deployment workflow generated by the deployment workflow generation unit 54.
For example, the deployment workflow is subjected to syntax detection by using a python management.
Then, the first presetting unit 55 of the presetting module 54 obtains syntax detection and runs a deployment workflow qualified for detection, and then the first presetting unit 55 creates a corresponding relationship between the deployment workflow qualified for detection and a corresponding environment deployment file, so as to call the corresponding environment deployment file through the deployment workflow.
After the deployment workflow and the environment deployment file are set, the instruction receiving module 41 may receive a test environment deployment instruction, where the test environment deployment instruction is an instruction for deploying an application test environment on a target machine, and the test environment deployment instruction should include a target machine address and deployment workflow information.
The deployment workflow information is information corresponding to the deployment workflow, so that the corresponding deployment workflow can be obtained in the subsequent steps.
Subsequently, the deployment workflow loading module 42 acquires and loads the corresponding deployment workflow through a workflow call interface (workflow interface) according to the deployment workflow information acquired by the instruction receiving module 41. The deployment workflow should include address information of the environment deployment file and deployment information of the environment deployment file.
Then, the environment deployment file obtaining module 43 obtains the corresponding environment deployment file according to the address information of the environment deployment file in the deployment workflow.
Finally, the deployment operation module 44 pushes the environment deployment file to the target machine through a push file interface (PushPackage interface) according to the target machine address obtained by the instruction receiving module 41. The deployment operation module 44 obtains a call database corresponding to the deployment operation through a data synchronization interface (CopydbCall interface). The test deployment operation module 44 performs deployment operation of the environment deployment file on the target machine through a remote command execution interface (RemoteCall interface) according to the deployment information of the environment deployment file and the call database.
The workflow calling interface, the file pushing interface, the data synchronization interface, the remote command execution interface and other calling interfaces arranged on the test environment deployment device 40 can simplify the setting content in the deployment workflow, and the deployment workflow can directly call the interfaces to complete the deployment operation of the environment deployment file.
In order to further simplify the deployment process of the environment deployment file, the deployment information of the environment deployment file includes deployment module information that can group the deployment source files in the environment deployment file and module call information that calls the grouped deployment source files. The deployment operation module 44 may set the deployment source files classified according to the deployment module information on the target machine using the calling mode corresponding to the module calling information. This may allow the same deployment source file to be called by the environment deployment file multiple times, resulting in a smaller environment deployment file storage capacity.
This completes the application test environment deployment process of the test environment deployment apparatus 40 of the present embodiment.
On the basis of the first embodiment, the test environment deployment apparatus of this embodiment simplifies the setting process of the correspondence between an environment deployment file and a corresponding deployment workflow by setting one environment deployment file to correspond to a plurality of deployment workflows; different pulling modes of the deployment source file are set based on the type information of the deployment source file, so that the pulling efficiency of the deployment source file is improved; the compression and decompression operation of the deployed source file is carried out according to the module function information of the deployed source file, so that the generation and use efficiency of the environment deployed file are improved; grammar detection and operation detection are carried out on the generated deployment workflow, so that the efficiency of the deployment workflow is improved; by using the calling database to perform the deployment operation of the environment deployment file, the deployment information is simplified and the effectiveness of the deployment operation is improved.
The following describes a specific working principle of the test environment deployment method and the test environment deployment apparatus according to the present invention with an embodiment. Referring to fig. 8a, fig. 8b, fig. 9a and fig. 9b, fig. 8a is a flow chart illustrating a deployment workflow and an environment deployment file of the test environment deployment method and the test environment deployment apparatus according to the present invention; FIG. 8b is a diagram illustrating the deployment workflow and the environment deployment document of the test environment deployment apparatus and the test environment deployment method according to the present invention; FIG. 9a is a flowchart of an application environment deployment operation of the test environment deployment apparatus and the test environment deployment method of the present invention; fig. 9b is a schematic diagram of the application environment deployment operation of the test environment deployment apparatus and the test environment deployment method according to the present invention.
The test environment deployment apparatus in this embodiment is disposed in an application environment test server 81, and the application environment test server 81 is configured to set a corresponding relationship between a deployment workflow and an environment deployment file, and perform deployment operation of the environment deployment file on a target machine based on the corresponding relationship between the deployment workflow and the environment deployment file.
Referring to fig. 8a and 8b, the setting process of the correspondence between the deployment workflow and the environment deployment file includes:
In step S801, the user terminal 82 obtains the deployment information of the environment deployment file, and sets a corresponding deployment configuration file 83 according to the deployment information of the environment deployment file, that is, information of a plurality of deployment source files corresponding to the environment deployment file.
In step S802, the application environment testing server 81 obtains the deployment configuration file 83, and obtains the positions of the deployment source files corresponding to the environment deployment file in the deployment source file library from the deployment configuration file. The application environment test server 81 then pulls the corresponding deployment source file from the deployment source file library 84. Deployment source files in different locations may be pulled in parallel.
In step S803, the application environment testing server 81 performs a package storage operation on the pulled deployment source file, and the application environment testing server may perform a package storage operation on the deployment source file according to the module function information of the deployment source file, that is, the deployment source file with dependency relationship is used as a compression package to perform a storage operation, so as to form the environment deployment file 85.
Step S804, the application environment test server 81 forms the deployment information of the environment deployment file according to the setting flow of the environment deployment file 85 on the target machine; and generates address information of the environment deployment file according to the storage location of the environment deployment file 85.
Then, the application environment test server 81 generates a deployment workflow 86 according to the deployment information and the address information of the environment deployment file 85, and performs a storage operation on all the deployment workflows 86.
Step S805, syntax detection and operation detection are performed on the deployment workflow 86, and a corresponding relationship is created between the deployment workflow 86 qualified in detection and the corresponding environment deployment file 85.
Thus, the setting process of the corresponding relationship between the deployment workflow and the environment deployment file in the present embodiment is completed.
Referring to fig. 9a and 9b, the process of performing the deployment operation of the environment deployment file on the target machine based on the correspondence between the deployment workflow and the environment deployment file includes:
step S901, the application environment test server 91 receives a test environment deployment instruction from the user terminal 92; the test environment deployment instructions should include a target machine address and deployment workflow information.
Step S902, the application environment testing server 91 obtains and loads the corresponding deployment workflow 93 through the workflow call interface (workflow interface) according to the deployment workflow information in the environment deployment instruction. The deployment workflow 93 should include address information of the environment deployment file and deployment information of the environment deployment file.
In step S903, the application environment test server 91 obtains the corresponding environment deployment file 94 according to the address information of the environment deployment file in the deployment workflow 93.
Step S904, the application environment test server 91 pushes the environment deployment file 94 to the target machine 95 through a push file interface (PushPackage interface); meanwhile, the application environment test server 91 acquires the call database 96 corresponding to the deployment operation through a data synchronization interface (CopydbCall interface), and performs the deployment operation of the environment deployment file 94 on the target machine 95 through a remote command execution interface (remoteccall interface) by using the deployment information of the environment deployment file 94 and the call database 96.
The deployment information of the environment deployment file 94 includes deployment module information for grouping the deployment source files in the environment deployment file 94 and module call information for calling the grouped deployment source files. Referring to fig. 10, fig. 10 is a schematic structural diagram of deployment source files in an environment deployment file of the test environment deployment method and the test environment deployment apparatus of the present invention, where test.py, test _ cgi.py, and test _ server.py are module invocation information, and apache.py, l5.py, release.py, middle.py, and mysql.py are deployment module information, where the deployment source file corresponding to the deployment module information in fig. 10 may be invoked multiple times by the deployment source files of different module invocation information, and the deployment source file of the module invocation information may also be invoked multiple times by the deployment source files of other module invocation information, so as to simplify the content of the environment deployment file, such as the deployment source file corresponding to test.py in fig. 10 invokes the deployment source file corresponding to test _ cgi.py, and the deployment source file corresponding to test _ server.py; the deployment source file corresponding to test _ cgi.py calls the deployment source file corresponding to apache.py and the deployment source file corresponding to L5.py; the deployment source file corresponding to test _ server.
This completes the deployment operation flow of the environment deployment file 94 on the target machine 95 according to the present embodiment.
The test environment deployment method and the test environment deployment device perform deployment operation of the environment deployment file on the target machine based on the deployment workflow information; the difficulty and the implementation cost of application environment deployment are reduced, and the safety of environment deployment is improved; the technical problems that the existing test environment deployment method and the test environment deployment device are high in environment deployment difficulty, high in implementation cost and poor in safety are effectively solved.
As used herein, the terms "component," "module," "system," "interface," "process," and the like are generally intended to refer to a computer-related entity: hardware, a combination of hardware and software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a controller and the controller can be a component. One or more components can reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers.
FIG. 11 and the following discussion provide a brief, general description of an operating environment of an electronic device in which a test environment deployment apparatus described herein may be implemented. The operating environment of FIG. 11 is only one example of a suitable operating environment and is not intended to suggest any limitation as to the scope of use or functionality of the operating environment. Example electronic devices 1112 include, but are not limited to, wearable devices, head-mounted devices, medical health platforms, personal computers, server computers, hand-held or laptop devices, mobile devices (such as mobile phones, Personal Digital Assistants (PDAs), media players, and the like), multiprocessor systems, consumer electronics, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
Although not required, embodiments are described in the general context of "computer readable instructions" being executed by one or more electronic devices. Computer readable instructions may be distributed via computer readable media (discussed below). Computer readable instructions may be implemented as program modules, such as functions, objects, Application Programming Interfaces (APIs), data structures, etc. that perform particular tasks or implement particular abstract data types. Typically, the functionality of the computer readable instructions may be combined or distributed as desired in various environments.
FIG. 11 illustrates an example of an electronic device 1112 that includes one or more embodiments of a test environment deployment apparatus of the present invention. In one configuration, electronic device 1112 includes at least one processing unit 1116 and memory 1118. Depending on the exact configuration and type of electronic device, Memory 1118 may be volatile (such as Random Access Memory (RAM)), non-volatile (such as Read-Only Memory (ROM), flash Memory, etc.) or some combination of the two. This configuration is illustrated in fig. 11 by dashed line 1114.
In other embodiments, electronic device 1112 may include additional features and/or functionality. For example, device 1112 may also include additional storage (e.g., removable and/or non-removable) including, but not limited to, magnetic storage, optical storage, and the like. Such additional storage is illustrated in FIG. 11 by storage 1120. In one embodiment, computer readable instructions to implement one or more embodiments provided herein may be in storage 1120. Storage 1120 may also store other computer readable instructions to implement an operating system, an application program, and the like. Computer readable instructions may be loaded in memory 1118 for execution by processing unit 1116, for example.
The term "computer readable media" as used herein includes computer storage media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions or other data. Memory 1118 and storage 1120 are examples of computer storage media. Computer storage media includes, but is not limited to, RAM, ROM, Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other Memory technology, Compact Disk Read-Only Memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic Disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by electronic device 1112. Any such computer storage media may be part of electronic device 1112.
Electronic device 1112 may also include communication connection(s) 1126 that allow electronic device 1112 to communicate with other devices. Communication connection(s) 1126 may include, but are not limited to, a modem, a Network Interface Card (NIC), an integrated Network Interface, a radio frequency transmitter/receiver, an infrared port, a USB connection, or other interfaces for connecting electronic device 1112 to other electronic devices. Communication connection 1126 may include a wired connection or a wireless connection. Communication connection 1126 may transmit and/or receive communication media.
The term "computer readable media" may include communication media. Communication media typically embodies computer readable instructions or other data in a "modulated data signal" such as a carrier wave or other transport mechanism and includes any information delivery media. The term "modulated data signal" may include signals that: one or more of the signal characteristics may be set or changed in such a manner as to encode information in the signal.
Electronic device 1112 may include input device(s) 1124 such as keyboard, mouse, pen, voice input device, touch input device, infrared cameras, video input devices, and/or any other input device. Output device(s) 1122 such as one or more displays, speakers, printers, and/or any other output device may also be included in device 1112. The input device 1124 and the output device 1122 may be connected to the electronic device 1112 via a wired connection, wireless connection, or any combination thereof. In one embodiment, an input device or an output device from another electronic device may be used as input device 1124 or output device 1122 for electronic device 1112.
Components of electronic device 1112 may be connected by various interconnects, such as a bus. Such interconnects may include Peripheral Component Interconnect (PCI), such as PCI express, Universal Serial Bus (USB), firewire (IEEE 1394), optical bus structures, and so forth. In another embodiment, components of electronic device 1112 may be interconnected by a network. For example, memory 1118 may be comprised of multiple physical memory units located in different physical locations interconnected by a network.
Those skilled in the art will realize that storage devices utilized to store computer readable instructions may be distributed across a network. For example, an electronic device 1130 accessible via a network 1128 may store computer readable instructions to implement one or more embodiments provided by the present invention. Electronic device 1112 may access electronic device 1130 and download a part or all of the computer readable instructions for execution. Alternatively, electronic device 1112 may download pieces of the computer readable instructions, as needed, or some instructions may be executed at electronic device 1112 and some at electronic device 1130.
Various operations of embodiments are provided herein. In one embodiment, the one or more operations may constitute computer readable instructions stored on one or more computer readable media, which when executed by an electronic device, will cause the computing device to perform the operations. The order in which some or all of the operations are described should not be construed as to imply that these operations are necessarily order dependent. Those skilled in the art will appreciate alternative orderings having the benefit of this description. Moreover, it should be understood that not all operations are necessarily present in each embodiment provided herein.
Also, although the disclosure has been shown and described with respect to one or more implementations, equivalent alterations and modifications will occur to others skilled in the art based upon a reading and understanding of this specification and the annexed drawings. The present disclosure includes all such modifications and alterations, and is limited only by the scope of the appended claims. In particular regard to the various functions performed by the above described components (e.g., elements, resources, etc.), the terms used to describe such components are intended to correspond, unless otherwise indicated, to any component which performs the specified function of the described component (e.g., that is functionally equivalent), even though not structurally equivalent to the disclosed structure which performs the function in the herein illustrated exemplary implementations of the disclosure. In addition, while a particular feature of the disclosure may have been disclosed with respect to only one of several implementations, such feature may be combined with one or more other features of the other implementations as may be desired and advantageous for a given or particular application. Furthermore, to the extent that the terms "includes," has, "" contains, "or variants thereof are used in either the detailed description or the claims, such terms are intended to be inclusive in a manner similar to the term" comprising.
Each functional unit in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Each apparatus or system described above may perform the method in the corresponding method embodiment.
In summary, although the present invention has been disclosed in the foregoing embodiments, the serial numbers before the embodiments are used for convenience of description only, and the sequence of the embodiments of the present invention is not limited. Furthermore, the above embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be limited by the appended claims.

Claims (10)

1. A test environment deployment method, comprising:
Acquiring deployment information of an environment deployment file, and setting a corresponding deployment configuration file according to the deployment information of the environment deployment file; the deployment information of the environment deployment file comprises deployment module information for grouping deployment source files in the environment deployment file and module calling information for calling the grouped deployment source files; the deployment configuration file comprises address information of a corresponding deployment source file and type information of the deployment source file;
determining a pulling mode of the deployment source file according to the type information of the deployment source file;
pulling the deployment source file by using a pulling mode of the deployment source file according to the address information of the deployment source file;
performing packaging storage operation on the pulled deployment source file to form the environment deployment file;
generating a deployment workflow according to the deployment information of the environment deployment file and the address information of the environment deployment file; and
setting the corresponding relation between the environment deployment file and the corresponding deployment workflow; the deployment workflow comprises address information of the environment deployment file and deployment information of the environment deployment file;
Receiving a test environment deployment instruction, wherein the test environment deployment instruction comprises a target machine address and deployment workflow information;
acquiring and loading a corresponding deployment workflow through a workflow calling interface according to the deployment workflow information;
acquiring the corresponding environment deployment file according to the address information of the environment deployment file and the corresponding relation, and
pushing the environment deployment file to a target machine through a file pushing interface according to the target machine address, and acquiring a calling database corresponding to deployment operation through a database synchronous interface; according to the deployment information of the environment deployment file and the calling database, the deployment source files grouped according to the deployment module information are arranged on the target machine through a remote command execution interface by using a calling mode corresponding to the module calling information, so that the setting content in the deployment workflow is simplified, the same deployment source file can be called by the environment deployment file for multiple times, and the storage capacity of the environment deployment file is smaller.
2. The test environment deployment method according to claim 1, wherein the step of setting a corresponding deployment configuration file according to deployment information of the environment deployment file includes:
Judging whether a deployment configuration file corresponding to the deployment information of the environment deployment file is the same as a deployment configuration file corresponding to a preset environment deployment file or not;
if the two deployment files are the same, generating a deployment workflow directly according to the deployment information of the environment deployment file and the address information of a preset environment deployment file; setting a corresponding relation between the preset environment deployment file and the corresponding deployment workflow;
and if the deployment information of the environment deployment files is different, setting corresponding deployment configuration files according to the deployment information of the environment deployment files.
3. The test environment deployment method according to claim 1, wherein, before the step of setting the correspondence between the environment deployment file and the corresponding deployment workflow, the step of generating the deployment workflow further includes, after the step of setting the correspondence between the environment deployment file and the corresponding deployment workflow:
performing grammar detection and operation detection on the deployment workflow;
the step of setting the corresponding relationship between the environment deployment file and the corresponding deployment workflow comprises:
and setting the corresponding relation between the deployment workflow qualified for detection and the corresponding environment deployment file.
4. The test environment deployment method according to claim 1, wherein the step of performing a packaging operation on the pulled deployment source files to form the environment deployment file is:
Setting the pulled deployment source file in a temporary folder; and
and performing packaging storage operation on the deployment source file in the temporary folder according to the module function information of the deployment source file to form the environment deployment file.
5. A test environment deployment apparatus, comprising:
a preset module comprising: the deployment configuration file setting unit is used for acquiring deployment information of the environment deployment file and setting a corresponding deployment configuration file according to the deployment information of the environment deployment file; the deployment information of the environment deployment file comprises deployment module information for grouping deployment source files in the environment deployment file and module calling information for calling the grouped deployment source files; the deployment configuration file comprises address information of a corresponding deployment source file and type information of the deployment source file; a deployment source file pull unit comprising: a pull mode determining subunit, configured to determine, according to the type information of the deployment source file, a pull mode of the deployment source file; the deployment source file pulling subunit is used for pulling the deployment source file by using a pulling mode of the deployment source file according to the address information of the deployment source file; a packaging storage unit, configured to perform packaging storage operation on the pulled deployment source file to form the environment deployment file; the deployment workflow generating unit is used for generating the deployment workflow according to the deployment information of the environment deployment file and the address information of the environment deployment file; the first preset unit is used for setting the corresponding relation between the environment deployment file and the corresponding deployment workflow; the deployment workflow comprises address information of the environment deployment file and deployment information of the environment deployment file;
The system comprises an instruction receiving module, a test environment deployment module and a test environment configuration module, wherein the instruction receiving module is used for receiving a test environment deployment instruction, and the test environment deployment instruction comprises a target machine address and deployment workflow information;
the deployment workflow loading module is used for acquiring and loading the corresponding deployment workflow through a workflow calling interface according to the deployment workflow information;
an environment deployment file acquisition module, configured to acquire a corresponding environment deployment file according to the address information of the environment deployment file and the corresponding relationship, and
the deployment operation module is used for pushing the environment deployment file to a target machine through a file pushing interface according to the target machine address and acquiring a calling database corresponding to deployment operation through a database synchronous interface; according to the deployment information of the environment deployment file and the calling database, the deployment source files grouped according to the deployment module information are arranged on the target machine through a remote command execution interface by using a calling mode corresponding to the module calling information, so that the setting content in the deployment workflow is simplified, the same deployment source file can be called by the environment deployment file for multiple times, and the storage capacity of the environment deployment file is smaller.
6. The test environment deployment device of claim 5, wherein the presetting module comprises:
the deployment configuration file judging unit is used for judging whether a deployment configuration file corresponding to the deployment information of the environment deployment file is the same as a deployment configuration file corresponding to a preset environment deployment file; and
the second preset unit is used for generating a deployment workflow directly according to the deployment information of the environment deployment file and the address information of the preset environment deployment file; and setting the corresponding relation between the preset environment deployment file and the corresponding deployment workflow.
7. The test environment deployment device of claim 5, wherein the pre-set module comprises:
the detection unit is used for carrying out grammatical detection and operation detection on the deployment workflow;
the first preset unit is used for setting the corresponding relation between the deployment workflow qualified in detection and the corresponding environment deployment file.
8. The test environment deployment apparatus of claim 5, wherein the packed storage unit comprises:
the temporary storage subunit is used for setting the pulled deployment source file in a temporary folder; and
And the packaging storage subunit is used for performing packaging storage operation on the deployment source file in the temporary folder according to the module function information of the deployment source file to form the environment deployment file.
9. A storage medium having stored therein processor-executable instructions, the instructions being loaded by one or more processors to perform the test environment deployment method of any one of claims 1-4.
10. An electronic device comprising a processor and a memory, the memory storing executable instructions; the processor loads the instructions from the memory to perform the test environment deployment method of any of claims 1-4.
CN201810426318.4A 2018-05-07 2018-05-07 Test environment deployment method, deployment device and storage medium Active CN108595335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810426318.4A CN108595335B (en) 2018-05-07 2018-05-07 Test environment deployment method, deployment device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810426318.4A CN108595335B (en) 2018-05-07 2018-05-07 Test environment deployment method, deployment device and storage medium

Publications (2)

Publication Number Publication Date
CN108595335A CN108595335A (en) 2018-09-28
CN108595335B true CN108595335B (en) 2022-06-10

Family

ID=63620900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810426318.4A Active CN108595335B (en) 2018-05-07 2018-05-07 Test environment deployment method, deployment device and storage medium

Country Status (1)

Country Link
CN (1) CN108595335B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158655B (en) * 2019-12-31 2023-09-22 中国银行股份有限公司 Deployment method and device of software running environment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222001A (en) * 2011-06-28 2011-10-19 用友软件股份有限公司 Environment deployment device and method
CN102541594A (en) * 2010-12-21 2012-07-04 微软公司 Multi-machine deployment and configuration of multi-tiered applications
CN103189839A (en) * 2010-09-07 2013-07-03 惠普发展公司,有限责任合伙企业 System and method for automated deployment of a multi-component computer environment
CN103488533A (en) * 2013-09-06 2014-01-01 乐视致新电子科技(天津)有限公司 Program executing method, program executing equipment and program executing system
CN104317642A (en) * 2014-09-28 2015-01-28 华为技术有限公司 Method and device for configuring software in cloud calculation environment
CN105144092A (en) * 2013-03-14 2015-12-09 微软技术许可有限责任公司 Software release workflow management
CN106445611A (en) * 2016-09-30 2017-02-22 广州特道信息科技有限公司 Big data node system and automatic deploying method
CN107203400A (en) * 2017-06-21 2017-09-26 郑州云海信息技术有限公司 A kind of method and device of remote deployment component

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10216503B2 (en) * 2013-03-13 2019-02-26 Elasticbox Inc. Deploying, monitoring, and controlling multiple components of an application
US10365909B2 (en) * 2016-04-21 2019-07-30 Data Accelerator Ltd. Method and system for deploying virtualized applications

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103189839A (en) * 2010-09-07 2013-07-03 惠普发展公司,有限责任合伙企业 System and method for automated deployment of a multi-component computer environment
CN102541594A (en) * 2010-12-21 2012-07-04 微软公司 Multi-machine deployment and configuration of multi-tiered applications
CN102222001A (en) * 2011-06-28 2011-10-19 用友软件股份有限公司 Environment deployment device and method
CN105144092A (en) * 2013-03-14 2015-12-09 微软技术许可有限责任公司 Software release workflow management
CN103488533A (en) * 2013-09-06 2014-01-01 乐视致新电子科技(天津)有限公司 Program executing method, program executing equipment and program executing system
CN104317642A (en) * 2014-09-28 2015-01-28 华为技术有限公司 Method and device for configuring software in cloud calculation environment
CN106445611A (en) * 2016-09-30 2017-02-22 广州特道信息科技有限公司 Big data node system and automatic deploying method
CN107203400A (en) * 2017-06-21 2017-09-26 郑州云海信息技术有限公司 A kind of method and device of remote deployment component

Also Published As

Publication number Publication date
CN108595335A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
US11467854B2 (en) Method and apparatus for loading multiple differing versions of a native library into a native environment
CN113312037B (en) Data processing method, device, equipment and storage medium applied to micro-service
US20040221268A1 (en) Off-device class/resource loading methods, systems and computer program products for debugging a Java application in a Java micro device
US9678767B2 (en) Unified extensible firmware interface (UEFI) driver and protocol
CN110162964B (en) Method, device and system for checking file tampering
CN111324421B (en) Container mirror image providing method, loading method, related equipment and system
CN103353844A (en) Upgrading method and system of SDK (software development kit)
CN112965761B (en) Data processing method, system, electronic equipment and storage medium
CN111240766A (en) Application starting method and device, electronic equipment and computer readable storage medium
CN110851204A (en) Application starting method and device and application packaging method and device
CN113885935A (en) Resource packaging method and device, electronic equipment and computer readable storage medium
CN115145605A (en) Vehicle-mounted application software upgrading method and system, electronic equipment and storage medium
EP3797356B1 (en) Code base sharing between standalone and web-based versions of an application due to the implementing of an emulated network communication channel
US20160124757A1 (en) Monitoring a mobile device application
CN114840214A (en) Program compiling and starting method, device and storage medium
CN108595335B (en) Test environment deployment method, deployment device and storage medium
CN113407165B (en) SDK generation and self-upgrade method, device, readable medium and equipment
CN113138768B (en) Application package generation method and device, electronic equipment and readable storage medium
CN107133169B (en) Application test packet generation method and generation device
CN107092472B (en) Dynamic publishing method and device
AU2016378425B2 (en) Application program running method and apparatus
CN113094085A (en) Component integration method and device, computer-readable storage medium and electronic equipment
CN114090090B (en) Starting method and device of terminal firmware, electronic equipment and storage medium
CN110502251B (en) Application installation method and device
CN110245066B (en) Application operating environment creating method, creating device, electronic equipment and storage medium

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