CN108595335A - Test environment dispositions method, deployment device and storage medium - Google Patents
Test environment dispositions method, deployment device and storage medium Download PDFInfo
- Publication number
- CN108595335A CN108595335A CN201810426318.4A CN201810426318A CN108595335A CN 108595335 A CN108595335 A CN 108595335A CN 201810426318 A CN201810426318 A CN 201810426318A CN 108595335 A CN108595335 A CN 108595335A
- Authority
- CN
- China
- Prior art keywords
- deployment
- file
- environment
- information
- work
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments 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 present invention provides a kind of test environment dispositions method comprising:Pre-set the correspondence of map out the work stream and environment deployment file;Receive test environment Disposition Instructions;According to the stream information that maps out the work, obtains and load the corresponding stream that maps out the work;According to the address information of environment deployment file, corresponding environment deployment file is obtained;According to target machine address, environment is disposed into file push to target machine, and according to the deployment information of environment deployment file, carries out the deployment operation of the environment deployment file on the target machine;The present invention also provides a kind of test environments to dispose device, and test environment dispositions method of the invention and test environment deployment device carry out the deployment operation of environment deployment file based on the stream information that maps out the work on the target machine;The difficulty and cost of implementation for reducing application environment deployment improve the safety of environment deployment.
Description
Technical field
The present invention relates to computer program fields, more particularly to a kind of test environment dispositions method, deployment device and deposit
Storage media.
Background technology
With the development of science and technology, the update of software application is more and more frequent, in order to ensure the stability of software application environment,
Need to carry out software application environment deployment to new software application or updated software application, so as to new software application or
Updated software application is tested automatically.
General software application environment deployment is disposed both for single software package and the corresponding environment of single configuration file,
Such as to dispose a whole set of operation system including multiple software packages and multiple configuration files, then need the multiple software packages of manpower intervention and
The deployment of multiple configuration files, such as corresponding multiple software packages and multiple configuration files are stored in multiple address sources, then can be more
Add the environment deployment difficulty for increasing operation system.
Therefore existing test environment dispositions method and deployment device there is environment deployment difficulty be larger, cost of implementation compared with
The problems such as high and safety is poor.
Invention content
A kind of environment deployment difficulty of offer of the embodiment of the present invention is small, deployment cost of implementation is relatively low and safety is preferably tested
Environment dispositions method and test environment dispose device;Device is disposed to solve existing test environment dispositions method and test environment
Environment deployment difficulty is larger, cost of implementation is higher and safety is poor technical problem.
The embodiment of the present invention provides a kind of test environment dispositions method comprising:
Pre-set the correspondence of map out the work stream and environment deployment file;The wherein described stream that maps out the work includes environment
The address information of deployment file and the deployment information of environment deployment file;
Test environment Disposition Instructions are received, wherein the test environment Disposition Instructions include target machine address and deployment
Workflow information;
According to the stream information that maps out the work, obtains and load the corresponding stream that maps out the work;
According to the address information of the environment deployment file, corresponding environment deployment file is obtained;And
According to the target machine address, the environment is disposed into file push to target machine, and according to the environment
The deployment information of deployment file carries out the deployment operation of the environment deployment file on the target machine.
The embodiment of the present invention also provides a kind of test environment deployment device comprising:
Module is pre-set, the correspondence for pre-setting the map out the work stream and environment deployment file;Wherein
The stream that maps out the work includes the address information of environment deployment file and the deployment information of environment deployment file;
Command reception module, for receiving test environment Disposition Instructions, wherein the test environment Disposition Instructions include mesh
Mark machine address and the stream information that maps out the work;
The stream load-on module that maps out the work obtains for the stream information that maps out the work according to and loads corresponding deployment work
It flows;
Environment disposes file acquisition module, for the address information according to the environment deployment file, obtains corresponding ring
Border deployment file;And
Deployment operation module, for according to the target machine address, the environment to be disposed file push to target machine
Device, and according to the deployment information of the environment deployment file, the portion of the environment deployment file is carried out on the target machine
Administration's operation.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored with processor-executable instruction,
Described instruction is loaded by one or more processors, to execute above-mentioned test environment dispositions method.
Compared to the prior art, test environment dispositions method of the invention and test environment deployment device are based on mapping out the work
Stream information carries out the deployment operation of environment deployment file on the target machine, and the setting for the stream that maps out the work can simplify deployment operation
Flow, to reduce application environment deployment difficulty and cost of implementation, improve environment deployment safety;Effectively
Solving the environment deployment of existing test environment dispositions method and test environment deployment device, difficulty is larger, cost of implementation is higher
And the technical problem that safety is poor.
Description of the drawings
Fig. 1 is the flow chart of the first embodiment of the test environment dispositions method of the present invention;
Fig. 2 is the flow chart of the second embodiment of the test environment dispositions method of the present invention;
Fig. 3 is the structural schematic diagram that the test environment of the present invention disposes the first embodiment of device;
Fig. 4 is the structural schematic diagram that the test environment of the present invention disposes the second embodiment of device;
Fig. 5 is the structural schematic diagram for pre-setting module that the test environment of the present invention disposes the second embodiment of device;
Fig. 6 is the deployment source file drawing for pre-setting module that the test environment of the present invention disposes the second embodiment of device
Take the structural schematic diagram of unit;
Fig. 7 is the packing storage unit for pre-setting module that the test environment of the present invention disposes the second embodiment of device
Structural schematic diagram;
Fig. 8 a are the test environment dispositions method of the present invention and map out the work stream and the environment of test environment deployment device
The setting procedure figure of deployment file;
Fig. 8 b are the test environment dispositions method of the present invention and map out the work stream and the environment of test environment deployment device
The setting schematic diagram of deployment file;
Fig. 9 a are the test environment dispositions method of the present invention and the application environment deployment operation of test environment deployment device
Flow chart;
Fig. 9 b are the test environment dispositions method of the present invention and the application environment deployment operation of test environment deployment device
Schematic diagram;
Figure 10 is the portion in the test environment dispositions method of the present invention and the environment deployment file of test environment deployment device
Affix one's name to the structural schematic diagram of source file;
Figure 11 is the working environment structural schematic diagram that the test environment of the present invention disposes the electronic equipment where device.
Specific implementation mode
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one
It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by
It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will be referred to by the operation performed by one or multi-section computer
The step of and symbol illustrate, unless otherwise stating clearly.Therefore, these steps and operation be will appreciate that, carried for several times wherein having
Include by representing with the computer disposal list of the electronic signal of the data in a structuring pattern to be executed by computer
Member is manipulated.At this manipulation transforms data or the position being maintained in the memory system of the computer, it can match again
It sets or in addition changes the running of the computer in a manner familiar to those skilled in the art.The data knot that the data are maintained
Structure is the provider location of the memory, has the specific feature defined in the data format.But the principle of the invention is with above-mentioned
Word illustrates, is not represented as a kind of limitation, those skilled in the art will appreciate that plurality of step as described below and
Operation also may be implemented in hardware.
Test environment dispositions method and test environment the deployment device of the present invention may be provided at any electronic equipment, be used for
The deployment operation of environment deployment file is carried out on the target machine.The electronic equipment includes but not limited to wearable device, wears
Equipment, medical treatment & health platform, personal computer, server computer, hand-held or laptop devices, mobile device (for example are moved
Mobile phone, personal digital assistant (PDA, Personal Digital Assistant), media player etc.), multiprocessor
System, consumer electronic devices, minicomputer, mainframe computer include the Distributed Calculation of above-mentioned arbitrary system or equipment
Environment, etc..The electronic equipment is preferably the application environment test server for carrying out application environment test, the application environment test
Server carries out the deployment operation of environment deployment file based on the stream information that maps out the work on the target machine, can effectively reduce and answer
The difficulty and cost of implementation disposed with environment improve the safety of environment deployment.
Fig. 1 is please referred to, Fig. 1 is the flow chart of the first embodiment of the test environment dispositions method of the present invention.The present embodiment
Test environment dispositions method above-mentioned electronic equipment can be used to be implemented, the test environment dispositions method packet of the present embodiment
It includes:
Step S101 pre-sets the correspondence of map out the work stream and environment deployment file;
Step S102, receives test environment Disposition Instructions, wherein test environment Disposition Instructions include target machine address with
And the stream information that maps out the work;
Step S103 is obtained according to the stream information that maps out the work and is loaded the corresponding stream that maps out the work;Wherein map out the work stream
The deployment information of address information and environment deployment file including environment deployment file;
Step S104 obtains corresponding environment deployment file according to the address information of environment deployment file;
Step S105 disposes environment deployment file push to target machine, and according to environment according to target machine address
The deployment information of file carries out the deployment operation of environment deployment file on the target machine.
The following detailed description of the detailed process of each step of the test environment dispositions method of the present invention.
In step S101, it is corresponding with environment deployment file that test environment deployment device pre-sets the stream that maps out the work
Relationship.
Environment deployment file is to be deployed on target machine, for forming test application running environment on the target machine
System file.
Stream map out the work as environment is disposed administration of Documents Department to the automation mechanized operation flow on the corresponding position of target machine.
The stream that maps out the work should include the address information of environment deployment file and the deployment information of environment deployment file.Environment deployment text
The address information of part is the storage location information of environment deployment file, and the deployment information of environment deployment file is environment deployment file
Deployment procedure information.
The correspondence for pre-setting map out the work stream and environment deployment file in this step, will pass through deployment work
Make stream and calls corresponding environment deployment file.
In step s 102, after the stream that maps out the work is set with environment deployment file, test environment disposes device can
Test environment Disposition Instructions are received, which is the instruction of application deployment test environment on the target machine,
The test environment Disposition Instructions should include target machine address and the stream information that maps out the work.
The stream information that maps out the work is the corresponding information of stream that maps out the work, so that subsequent step obtains corresponding map out the work
Stream.
In step s 103, the stream information that maps out the work that test environment deployment device is obtained according to step S102, obtains simultaneously
Load the corresponding stream that maps out the work.
In step S104, test environment is disposed device and is believed according to the address of the environment deployment file in the stream that maps out the work
Breath, obtains corresponding environment deployment file.
In step S105, the target machine address that test environment deployment device is obtained according to step S102, by step
The environment that S104 is obtained disposes file push to target machine, and is disposed according to the environment of the step S103 streams that map out the work obtained
The deployment information of file carries out the deployment operation of environment deployment file on the target machine.
The application test environment for completing the test environment dispositions method of the present embodiment in this way disposes process.
The test environment dispositions method of the present embodiment carries out environment deployment on the target machine based on the stream information that maps out the work
The deployment operation of file;The difficulty and cost of implementation for reducing application environment deployment improve the safety of environment deployment.
Fig. 2 is please referred to, Fig. 2 is the flow chart of the second embodiment of the test environment dispositions method of the present invention.The present embodiment
Test environment dispositions method above-mentioned electronic equipment can be used to be implemented, the test environment dispositions method packet of the present embodiment
It includes:
Step S201 obtains the deployment information of environment deployment file, and is arranged according to the deployment information of environment deployment file
Corresponding deployment configuration file;
Step S202 pulls corresponding deployment source file according to deployment configuration file;
Step S203 carries out the deployment source file pulled to be packaged storage operation, to form environment deployment file;
Step S204, according to the address information of the deployment information of environment deployment file and environment deployment file, generating unit
Affix one's name to workflow;
Step S205 carries out grammer detection to the stream that maps out the work and operation detects;
Step S206, setting detection qualified map out the work stream and the correspondence of corresponding environment deployment file;
Step S207, receives test environment Disposition Instructions, wherein test environment Disposition Instructions include target machine address with
And the stream information that maps out the work;
Step S208 is obtained by workflow calling interface according to the stream information that maps out the work and is loaded corresponding deployment work
It flows;The stream that wherein maps out the work includes the address information of environment deployment file and the deployment information of environment deployment file;
Step S209 obtains corresponding environment deployment file according to the address information of environment deployment file;
Environment is disposed file push to target machine by step S210 according to target machine address by pushing files interface
Device;By Data synchronization interface, the corresponding calling database of deployment operation is obtained;According to the deployment information of environment deployment file with
And database is called, the deployment operation that interface carries out environment deployment file on the target machine is executed by remote command.
The following detailed description of the detailed process of each step of the test environment dispositions method of the present embodiment.
In step s 201, test environment deployment device obtains the deployment information of environment deployment file, environment deployment text
The deployment information of part is the information of the corresponding multiple deployment source files of environment deployment file.I.e. environment deployment file can correspond to multiple
Source file is disposed, setting environment disposes text on the target machine to realize by the way that multiple deployment source files are arranged on the target machine
Part.
Corresponding deployment configuration file is arranged according to the deployment information of environment deployment file in subsequent test environment deployment device,
The deployment configuration file is the storage address information of multiple deployment source files in environment deployment file, difference deployment source file
Storage address information can be different.
Preferably, test environment deployment device also can determine whether the deployment configuration file being arranged in step S201 whether with set
The corresponding deployment configuration file of default environment deployment file set is identical.
As the deployment configuration file being arranged in step S201 deployment corresponding with the default environment deployment file being arranged is matched
It sets that file is identical, then illustrates that the environment deployment file is identical as the deployment source file that default environment deployment file calls, test wrapper
Border is disposed device and can be generated directly according to the address information of the deployment information of environment deployment file and default environment deployment file
Map out the work stream, and the correspondence for presetting environment deployment file and the corresponding stream that maps out the work is arranged, will pass through deployment work
Make stream and calls the default environment deployment file.An environment deployment file may make to correspond to multiple streams that map out the work in this way, to
Simplify the setting procedure of environment deployment file and the correspondence of the corresponding stream that maps out the work.
As the deployment configuration file being arranged in step S201 deployment corresponding with the default environment deployment file being arranged is matched
Set that file is different, then corresponding deployment configuration text is arranged according to the deployment information of environment deployment file in test environment deployment device
Part.
In step S202, the deployment configuration file that test environment deployment device is obtained according to step S201, i.e., multiple portions
The storage address information for affixing one's name to source file, pulls corresponding deployment source file.
Here deployment configuration file includes the address information of corresponding deployment source file and disposes the type letter of source file
Breath, the step of pulling corresponding deployment source file include:
Test environment disposes type information of the device according to deployment source file, and determine deployment source file pulls mode.Portion
It can be SVN formatted files, ATT formatted files etc. to affix one's name to source file.Since the deployment source file of different types of information pulls mode
May be different, therefore test environment deployment device needs the type information according to deployment source file, to determine deployment source file
Pull mode.
Test environment disposes address information of the device according to deployment source file, uses the side of pulling of the deployment source file of acquisition
Formula pulls above-mentioned deployment source file.
In step S203, test environment disposes device and carries out being packaged storage behaviour to the deployment source file that step S202 is pulled
Make, to form corresponding environment deployment file.
Specifically, first the deployment source file pulled can be arranged in temporary folder for test environment deployment device;Then
Test environment disposes device according to the functions of modules information of deployment source file, beats the deployment source file in temporary folder
Packet storage operation, to form environment deployment file.
Test environment disposes functions of modules information of the device according to deployment source file, by the deployment source document with dependence
Part carries out storage operation as a compressed package, may make in this way be packaged after environment deployment file in all compressed packages between
It is independent from each other, test environment deployment device can carry out multiple compressed packages parallel compression packaging operation or decompression operation.
In step S204, test environment disposes setting procedure of the device according to environment deployment file on the target machine,
Form the deployment information of environment deployment file, i.e. the deployment procedure information of environment deployment file.The ring that later step S203 is formed
Border deployment file carries out preservation operation, and the address information of build environment deployment file.
Then test environment disposes deployment information and environment deployment file of the device according to above-mentioned environment deployment file
Address information, generate deployment workflow.
Python manange.py-create workflow_name instructions are such as used to create without subdirectory and without dependence
The stream that maps out the work;Being created using python manange.py-create dirname/workflow_name instructions has specific item
Record and the stream that maps out the work without dependence;Use python manange.py-create dirname/workflow_name-
Depend exited_workflow_name1 exited_workflow_name2 instructions, which create, to be had subdirectory and has dependence
Map out the work stream etc..
In step S205, test environment dispose device to step S204 generates map out the work stream carry out grammer detect with
And operation detection.
Grammer inspection such as is carried out to the stream that maps out the work using python manage.py-verify workflow_name instructions
It surveys, operation detection etc. is carried out to the stream that maps out the work using python manage.py-run workflow_name instructions.
In step S206, test environment disposes grammer detection and operation in device obtaining step S205 and detects qualification
Map out the work stream, and subsequent test environment deployment device disposes document creation by the qualified stream that maps out the work is detected with corresponding environment
Correspondence calls corresponding environment deployment file will pass through the stream that maps out the work.
In step S207, after the stream that maps out the work is set with environment deployment file, test environment disposes device can
Test environment Disposition Instructions are received, which is the instruction of application deployment test environment on the target machine,
The test environment Disposition Instructions should include target machine address and the stream information that maps out the work.
The stream information that maps out the work is the corresponding information of stream that maps out the work, so that subsequent step obtains corresponding map out the work
Stream.
In step S208, the stream information that maps out the work that test environment deployment device is obtained according to step S207 passes through work
Make stream calling interface (WorkflowCall interfaces) to obtain and load the corresponding stream that maps out the work.The stream that maps out the work should include ring
The address information of border deployment file and the deployment information of environment deployment file.
In step S209, test environment is disposed device and is believed according to the address of the environment deployment file in the stream that maps out the work
Breath, obtains corresponding environment deployment file.
In step S210, the target machine address that test environment deployment device is obtained according to step S207 passes through push
Environment is disposed file push to target machine by file interface (PushPackage interfaces).
Subsequent test environment deployment device is obtained deployment operation and is corresponded to by Data synchronization interface (CopydbCall interfaces)
Calling database.
Then test environment disposes device according to the deployment information of environment deployment file and calls database, by long-range
Order executes the deployment operation that interface (RemoteCall interfaces) carries out environment deployment file on the target machine.
Test environment deployment device on be arranged workflow calling interface, pushing files interface, Data synchronization interface and
Remote command, which executes the calling interfaces such as interface, can simplify the set content in flowing that maps out the work, and the stream that maps out the work can directly invoke
Above-mentioned interface completes the deployment operation of environment deployment file.
In order to be further simplified the deployment flow of environment deployment file, the deployment information of environment deployment file includes can be to ring
The deployment module information and the deployment source file after grouping is adjusted that deployment source file in the deployment file of border is grouped
Module recalls information.Test environment disposes device and the corresponding method of calling of module recalls information can be used, will be according to deployment
The deployment source file setting that module information is classified is on the target machine.It may make that same deployment source file can be by environment in this way
Deployment file repeatedly calls, so that environment disposes file storage capability smaller.
The application test environment for completing the test environment dispositions method of the present embodiment in this way disposes process.
On the basis of first embodiment, the test environment dispositions method of the present embodiment disposes text by the way that an environment is arranged
Part corresponds to multiple streams that map out the work, and simplifies the setting stream of environment deployment file and the correspondence of the corresponding stream that maps out the work
Journey;What the type information based on deployment source file was arranged different deployment source files pulls mode, improves and disposes source file
Pull efficiency;The compression and decompression operation that deployment source file is carried out by the functions of modules information of deployment source file, improves ring
Border deployment file generates and service efficiency;Grammer detection and operation detection are carried out to the stream that maps out the work of generation, improved
Map out the work the effective percentage of stream;The deployment operation of environment deployment file is carried out by using database is called, simplifies deployment
Information and the validity for improving deployment operation.
The present invention also provides a kind of test environments to dispose device, please refers to Fig. 3, and Fig. 3 is the test environment deployment of the present invention
The structural schematic diagram of the first embodiment of device.Above-mentioned test environment portion can be used in the test environment deployment device of the present embodiment
The first embodiment of arranging method is implemented, and the test environment deployment device 30 of the present embodiment includes command reception module 31, portion
Administration's workflow load-on module 32, environment dispose file acquisition module 33, deployment operation module 34 and pre-set module 35.
For command reception module 31 for receiving test environment Disposition Instructions, wherein test environment Disposition Instructions include target machine
Device address and the stream information that maps out the work;The stream load-on module 32 that maps out the work is used to, according to the stream information that maps out the work, obtain and add
Carry the corresponding stream that maps out the work;The stream that wherein maps out the work includes the address information and environment deployment file of environment deployment file
Deployment information;Environment disposes file acquisition module 33 for the address information according to environment deployment file, obtains corresponding environment
Deployment file;Deployment operation module 34 is used for according to target machine address, environment is disposed file push to target machine, and root
According to the deployment information of environment deployment file, the deployment operation of the environment deployment file is carried out on the target machine;It pre-sets
Module 35 is used to pre-set the correspondence of map out the work stream and environment deployment file.
The test environment deployment device 30 of the present embodiment pre-sets deployment work in use, pre-setting module 35 first
Make the correspondence of stream and environment deployment file.
Environment deployment file is to be deployed on target machine, for forming test application running environment on the target machine
System file.
Stream map out the work as environment is disposed administration of Documents Department to the automation mechanized operation flow on the corresponding position of target machine.
The stream that maps out the work should include the address information of environment deployment file and the deployment information of environment deployment file.Environment deployment text
The address information of part is the storage location information of environment deployment file, and the deployment information of environment deployment file is environment deployment file
Deployment procedure information.
The correspondence that module 35 pre-sets map out the work stream and environment deployment file is pre-set, will pass through portion
It affixes one's name to workflow and calls corresponding environment deployment file.
After the stream that maps out the work is set with environment deployment file, command reception module 31 can receive test environment deployment
Instruction, the test environment Disposition Instructions are the instruction of application deployment test environment on the target machine, and test environment deployment refers to
Order should include target machine address and the stream information that maps out the work.
The stream information that maps out the work is the corresponding information of stream that maps out the work, so that subsequent step obtains corresponding map out the work
Stream.
The stream information that maps out the work that the stream load-on module 32 that then maps out the work is obtained according to command reception module 31, obtains simultaneously
Load the corresponding stream that maps out the work.
Then environment deployment file acquisition module 33 is obtained according to the address information of the environment deployment file in the stream that maps out the work
Take corresponding environment deployment file.
The target machine address that finally deployment operation module 34 is obtained according to command reception module 31, by environment deployment file
The environment that acquisition module 33 obtains disposes file push to target machine, and the portion obtained according to the stream load-on module 32 that maps out the work
The deployment information of the environment deployment file of workflow is affixed one's name to, carries out the deployment operation of environment deployment file on the target machine.
The application test environment for completing the test environment deployment device 30 of the present embodiment in this way disposes process.
The test environment deployment device of the present embodiment carries out environment deployment on the target machine based on the stream information that maps out the work
The deployment operation of file;The difficulty and cost of implementation for reducing application environment deployment improve the safety of environment deployment.
Fig. 4 is please referred to, Fig. 4 is the structural schematic diagram that the test environment of the present invention disposes the second embodiment of device.This reality
The second embodiment of above-mentioned test environment dispositions method can be used to be implemented for the test environment deployment device for applying example, this implementation
The test environment deployment device 40 of example includes command reception module 41, map out the work stream load-on module 42, environment deployment file obtain
Modulus block 43, deployment operation module 44 and pre-set module 45.
For command reception module 41 for receiving test environment Disposition Instructions, wherein test environment Disposition Instructions include target machine
Device address and the stream information that maps out the work;The stream load-on module 42 that maps out the work is used to, according to the stream information that maps out the work, pass through work
Stream calling interface obtains and loads the corresponding stream that maps out the work;The stream that wherein maps out the work includes the address information of environment deployment file
And the deployment information of environment deployment file;Environment disposes file acquisition module 43 for believing according to the address of environment deployment file
Breath, obtains corresponding environment deployment file;Deployment operation module 44 is used to, according to target machine address, pass through pushing files interface
Environment is disposed into file push to target machine;By database synchronization interface, the corresponding calling database of deployment operation is obtained;
According to the deployment information of environment deployment file and database is called, execute interface by remote command carries out on the target machine
The deployment operation of environment deployment file;Pre-set pair of the module 45 for pre-setting map out the work stream and environment deployment file
It should be related to.
Fig. 5 is please referred to, Fig. 5 is the knot for pre-setting module that the test environment of the present invention disposes the second embodiment of device
Structure schematic diagram.This pre-sets module 45 and pulls unit 52 including deployment configuration file setting unit 51, deployment source file, is packaged
Storage unit 53, map out the work stream generation unit 54, the first pre-set unit 55, deployment configuration file judging unit 56, the
Two pre-set units 57 and detection unit 58.
Deployment configuration file setting unit 51 is used to obtain the deployment information of environment deployment file, and disposes text according to environment
Corresponding deployment configuration file is arranged in the deployment information of part;Deployment source file pulls unit 52 and is used for according to deployment configuration file,
Pull corresponding deployment source file;Storage unit 53 is packaged to be used to that the deployment source file pulled to be carried out to be packaged storage operation, with
Form environment deployment file;The stream generation unit 54 that maps out the work is used for the deployment information according to environment deployment file and Ministry of environment
The address information of file is affixed one's name to, map out the work stream described in generation;First pre-set unit 55 be arranged environment deployment file with it is corresponding
The stream that maps out the work correspondence;Deployment configuration file judging unit 56 is used to judge the deployment information pair of environment deployment file
Whether corresponding with default environment deployment file the deployment configuration file answered deployment configuration file be identical;Second pre-set unit
57 directly according to the address information of the deployment information of environment deployment file and default environment deployment file, and generation maps out the work
Stream;And the correspondence for presetting environment deployment file and the corresponding stream that maps out the work is set;Detection unit 58 is used for disposing work
Make stream and carries out grammer detection and operation detection.
Fig. 6 is please referred to, Fig. 6 is the portion for pre-setting module that the test environment of the present invention disposes the second embodiment of device
Administration's source file pulls the structural schematic diagram of unit.The deployment source file pull unit 52 include pull mode determination subelement 61 with
And deployment source file pulls subelement 62.
Mode determination subelement 61 is pulled for the type information according to deployment source file, determines pulling for deployment source file
Mode;Deployment source file pulls subelement 62 for the address information according to deployment source file, uses pulling for deployment source file
Mode pulls deployment source file.
Please refer to Fig. 7, Fig. 7 be the test environment of the present invention dispose the second embodiment of device pre-set beating for module
The structural schematic diagram of packet storage unit.The packing storage unit 53 includes interim storage subelement 71 and packing storing sub-units
72。
Interim storage subelement 71 is used to the deployment source file pulled being arranged in temporary folder;It is single to be packaged storage
Member 72 carries out the deployment source file in temporary folder to be packaged storage behaviour for the functions of modules information according to deployment source file
Make, to form environment deployment file.
The test environment of the present embodiment disposes device 40 in use, the deployment configuration file for pre-setting module 45 first is set
The deployment information that unit 51 obtains environment deployment file is set, the deployment information of the environment deployment file corresponds to for environment deployment file
Multiple deployment source files information.I.e. environment deployment file can correspond to multiple deployment source files, by setting on the target machine
It sets multiple deployment source files and environment deployment file is set on the target machine to realize.
Corresponding deployment configuration text is arranged according to the deployment information of environment deployment file in deployment configuration file setting unit 51
Part, the deployment configuration file are the storage address information of multiple deployment source files in environment deployment file, difference deployment source document
The storage address information of part can be different.
Preferably, the deployment configuration file judging unit 56 for pre-setting module 45 also can determine whether that deployment configuration file is arranged
Whether the deployment configuration file that unit 51 is arranged is identical as the corresponding deployment configuration file of default environment deployment file being arranged.
Such as the deployment configuration file that deployment configuration file setting unit 51 is arranged and the default environment deployment file being arranged
Corresponding deployment configuration file is identical, then illustrates the deployment source file that the environment deployment file is called with default environment deployment file
Identical, the second pre-set unit 57 for pre-setting module 45 can be directly according to the deployment information of environment deployment file and pre-
If the address information of environment deployment file, deployment workflow is generated, and be arranged and preset environment deployment file and corresponding deployment work
Make the correspondence flowed, the default environment deployment file is called will pass through the stream that maps out the work.It may make a Ministry of environment in this way
Administration's file corresponds to multiple streams that map out the work, so that simplification environment deployment file and the correspondence of the corresponding stream that maps out the work are set
Set flow.
Such as the deployment configuration file that deployment configuration file setting unit 51 is arranged and the default environment deployment file being arranged
Corresponding deployment configuration file is different, then deployment configuration file setting unit 51 is set according to the deployment information of environment deployment file
Set corresponding deployment configuration file.
The subsequent deployment source file for pre-setting module 45 pulls unit 52 and is obtained according to deployment configuration file setting unit 51
The deployment configuration file taken, i.e., the storage address information of multiple deployment source files, pulls corresponding deployment source file.
Here deployment configuration file includes the address information of corresponding deployment source file and disposes the type letter of source file
Breath, the step of pulling corresponding deployment source file include:
Deployment source file pulls the type information for pulling mode determination subelement 61 according to deployment source file of unit 52, really
That disposes source file surely pulls mode.It can be SVN formatted files, ATT formatted files etc. to dispose source file.Since different type is believed
The mode that pulls of the deployment source file of breath may be different, therefore dispose source file and pull unit needs according to deployment source file
Type information, to determine that deployment source file pulls mode.
Deployment source file pulls the address information that the deployment source file of unit 52 pulls subelement 62 according to deployment source file,
Above-mentioned deployment source file is pulled using the mode that pulls of the deployment source file of acquisition.
Then the packing storage unit 53 for pre-setting module 45 pulls the deployment source that unit 52 pulls to deployment source file
File carries out being packaged storage operation, to form corresponding environment deployment file.
Specifically, can first the deployment source file pulled setting faced by being packaged the interim storage subelement 71 of storage unit 53
When file in;Then be packaged storage unit 53 packings storing sub-units 72 according to dispose source file functions of modules information,
Deployment source file in temporary folder is carried out to be packaged storage operation, to form environment deployment file.
It is packaged functions of modules information of the storage unit 53 according to deployment source file, by the deployment source file with dependence
Carry out storage operation as a compressed package, may make in this way be packaged after environment deployment file in all compressed packages between be
Mutually independent, test environment deployment device can carry out multiple compressed packages parallel compression packaging operation or decompression operation.
Then pre-set module 45 map out the work stream generation unit 54 according to environment deployment file on the target machine
Setting procedure, form the deployment information of environment deployment file, i.e. the deployment procedure information of environment deployment file.Map out the work stream
Generation unit 54 carries out preservation operation, and the ground of build environment deployment file to being packaged the environment deployment file that storage unit is formed
Location information.
Then the stream generation unit 54 that maps out the work is disposed according to the deployment information and environment of above-mentioned environment deployment file
The address information of file generates deployment workflow.
Python manange.py-create workflow_name instructions are such as used to create without subdirectory and without dependence
The stream that maps out the work;Being created using python manange.py-create dirname/workflow_name instructions has specific item
Record and the stream that maps out the work without dependence;Use python manange.py-create dirname/workflow_name-
Depend exited_workflow_name1 exited_workflow_name2 instructions, which create, to be had subdirectory and has dependence
Map out the work stream etc..
Then pre-set the stream that maps out the work that the detection unit 58 of module 45 generates the stream generation unit 54 that maps out the work
Carry out grammer detection and operation detection.
Grammer inspection such as is carried out to the stream that maps out the work using python manage.py-verify workflow_name instructions
It surveys, operation detection etc. is carried out to the stream that maps out the work using python manage.py-run workflow_name instructions.
Then the first pre-set unit 55 for pre-setting module 54 obtains grammer detection and operation detects qualification
Map out the work stream, and subsequent first pre-set unit 55 is created the qualified stream that maps out the work is detected with corresponding environment deployment file
Correspondence is built, corresponding environment deployment file is called will pass through the stream that maps out the work.
After the stream that maps out the work is set with environment deployment file, command reception module 41 can receive test environment deployment
Instruction, the test environment Disposition Instructions are the instruction of application deployment test environment on the target machine, and test environment deployment refers to
Order should include target machine address and the stream information that maps out the work.
The stream information that maps out the work is the corresponding information of stream that maps out the work, so that subsequent step obtains corresponding map out the work
Stream.
The stream information that maps out the work that the stream load-on module 42 that then maps out the work is obtained according to command reception module 41, passes through work
Make stream calling interface (WorkflowCall interfaces) to obtain and load the corresponding stream that maps out the work.The stream that maps out the work should include ring
The address information of border deployment file and the deployment information of environment deployment file.
Then environment deployment file acquisition module 43 is obtained according to the address information of the environment deployment file in the stream that maps out the work
Take corresponding environment deployment file.
The target machine address that finally deployment operation module 44 is obtained according to command reception module 41, is connect by pushing files
Environment is disposed file push to target machine by mouth (PushPackage interfaces).Deployment operation module 44 is synchronized by data to be connect
Mouth (CopydbCall interfaces) obtains the corresponding calling database of deployment operation.Deployment operation module 44 is surveyed to be disposed according to environment
The deployment information and calling database of file, interface (RemoteCall interfaces) is executed on the target machine by remote command
Carry out the deployment operation of environment deployment file.
Test environment deployment device 40 on be arranged workflow calling interface, pushing files interface, Data synchronization interface with
And the calling interfaces such as remote command execution interface can simplify the set content in mapping out the work stream, the stream that maps out the work can be adjusted directly
The deployment operation of environment deployment file is completed with above-mentioned interface.
In order to be further simplified the deployment flow of environment deployment file, the deployment information of environment deployment file includes can be to ring
The deployment module information and the deployment source file after grouping is adjusted that deployment source file in the deployment file of border is grouped
Module recalls information.The corresponding method of calling of module recalls information can be used in deployment operation module 44, will be according to deployment mould
The deployment source file setting that block message is classified is on the target machine.It may make that same deployment source file can be by Ministry of environment in this way
Administration's file repeatedly calls, so that environment disposes file storage capability smaller.
The application test environment for completing the test environment deployment device 40 of the present embodiment in this way disposes process.
On the basis of first embodiment, the test environment deployment device of the present embodiment disposes text by the way that an environment is arranged
Part corresponds to multiple streams that map out the work, and simplifies the setting stream of environment deployment file and the correspondence of the corresponding stream that maps out the work
Journey;What the type information based on deployment source file was arranged different deployment source files pulls mode, improves and disposes source file
Pull efficiency;The compression and decompression operation that deployment source file is carried out by the functions of modules information of deployment source file, improves ring
Border deployment file generates and service efficiency;Grammer detection and operation detection are carried out to the stream that maps out the work of generation, improved
Map out the work the effective percentage of stream;The deployment operation of environment deployment file is carried out by using database is called, simplifies deployment
Information and the validity for improving deployment operation.
Illustrate that the test environment dispositions method of the present invention and test environment dispose device below by a specific embodiment
Concrete operating principle.Please refer to Fig. 8 a, Fig. 8 b, the test environment dispositions method that Fig. 9 a and Fig. 9 b, Fig. 8 a are the present invention and survey
The setting procedure figure of map out the work stream and the environment deployment file of device is disposed in test ring border;Fig. 8 b are the test environment of the present invention
The setting schematic diagram of map out the work stream and the environment deployment file of dispositions method and test environment deployment device;Fig. 9 a are this hair
The flow chart of the application environment deployment operation of bright test environment dispositions method and test environment deployment device;Fig. 9 b are the present invention
Test environment dispositions method and test environment deployment device application environment deployment operation schematic diagram.
Test environment deployment device in this specific embodiment is arranged in application environment test server 81, this applies ring
Border test server 81 is based on above-mentioned portion for being configured to the correspondence of map out the work stream and environment deployment file
The correspondence of administration's workflow and environment deployment file carries out the deployment operation of environment deployment file on the target machine.
Fig. 8 a and Fig. 8 b are please referred to, the setting procedure packet of the correspondence of map out the work stream and the environment deployment file
It includes:
Step S801, user terminal 82 obtain the deployment information of environment deployment file, and according to the portion of environment deployment file
It affixes one's name to information and corresponding deployment configuration file 83, the i.e. information of the corresponding multiple deployment source files of environment deployment file is set.
Step S802, application environment test server 81 obtain above-mentioned deployment configuration file 83, and from deployment configuration file
The middle position for obtaining the corresponding multiple deployment source files of the environment deployment file in deployment source file library.Subsequent application environment is surveyed
Examination server 81 pulls corresponding deployment source file from deployment source file library 84.The deployment source file of different location can carry out
It pulls parallel.
Step S803, application environment test server 81 carry out the deployment source file pulled to be packaged storage operation, application
Environmental testing server can carry out deployment source file by the functions of modules information of deployment source file being packaged storage operation, i.e., will tool
There is the deployment source file of dependence to carry out storage operation as a compressed package, to form environment deployment file 85.
Step S804, setting stream of the application environment test server 81 according to environment deployment file 85 on the target machine
Journey forms the deployment information of environment deployment file;And according to the storage location of environment deployment file 85, build environment deployment file
Address information.
Subsequent application environment test server 81 is believed according to the deployment information of above-mentioned environment deployment file 85 and address
Breath generates deployment workflow 86, and all stream 86 that maps out the work is carried out storage operation.
Step S805 carries out grammer detection to the stream 86 that maps out the work and operation detects, and will detect qualified deployment work
Make stream 86 and creates correspondence with corresponding environment deployment file 85.
The setting of the correspondence of the map out the work stream and environment deployment file of this specific embodiment is completed in this way
Flow.
Fig. 9 a and Fig. 9 b are please referred to, the correspondence based on above-mentioned map out the work stream and environment deployment file is in target machine
The deployment operation flow of administration of progress Ministry of environment file includes on device:
Step S901, application environment test server 91 receive test environment Disposition Instructions from user terminal 92;The test
Environment Disposition Instructions should include target machine address and the stream information that maps out the work.
Step S902, application environment test server 91 pass through according to the stream information that maps out the work in environment Disposition Instructions
Workflow calling interface (WorkflowCall interfaces) obtains and loads the corresponding stream 93 that maps out the work.The stream 93 that maps out the work is answered
The deployment information of address information and environment deployment file including environment deployment file.
Step S903, application environment test server 91 are believed according to the address of the environment deployment file in the stream 93 that maps out the work
Breath, obtains corresponding environment deployment file 94.
Step S904, application environment test server 91 is by pushing files interface (PushPackage interfaces) by environment
Deployment file 94 pushes to target machine 95;Application environment test server 91 passes through Data synchronization interface simultaneously
(CopydbCall interfaces) obtains the corresponding calling database 96 of deployment operation, and the deployment letter of use environment deployment file 94
Breath and calling database 96 execute interface (RemoteCall interfaces) by remote command and carry out environment on target machine 95
The deployment operation of deployment file 94.
The deployment information of wherein environment deployment file 94 includes dividing the deployment source file in environment deployment file 94
The deployment module information of group and the module recalls information that the deployment source file after grouping is called.Figure 10 is please referred to, is schemed
10 be the deployment source file in the environment deployment file of test environment dispositions method and test environment the deployment device of the present invention
Structural schematic diagram, test.py, test_cgi.py and test_server.py therein are module recalls information,
Apache.py, L5.py, relay.py, middle.py and mysql.py are deployment module information, the deployment module in Figure 10
The corresponding deployment source file of information can repeatedly be called by the deployment source file of different module recalls informations, module recalls information
Deployment source file also can repeatedly be called by the deployment source file of other module recalls informations, to simplify environment deployment file
Content, as the corresponding deployment source files of the test.py in Figure 10 call the corresponding deployment source files of test_cgi.py and
The corresponding deployment source files of test_server.py;The corresponding deployment source files of test_cgi.py call apache.py corresponding
Dispose source file and the corresponding deployment source files of L5.py;The corresponding deployment source files of test_server.py call
The corresponding deployment source files of relay.py, the corresponding deployment source files of middle.py and the corresponding deployment source documents of mysql.py
Part.
The deployment operation that administration of Ministry of environment file 94 is carried out on target machine 95 of this specific embodiment is completed in this way
Flow.
Test environment dispositions method and test environment the deployment device of the present invention is based on mapping out the work stream information in target machine
The deployment operation of administration of Ministry of environment file is carried out on device;The difficulty and cost of implementation for reducing application environment deployment, improve ring
The safety of border deployment;The environment deployment of the existing test environment dispositions method of effective solution and test environment deployment device
The technical problem that difficulty is larger, cost of implementation is higher and safety is poor.
" component ", " module ", " system ", " interface ", " process " etc. are usually intended to as used herein the term
Refer to computer related entity:Hardware, the combination of hardware and software, software or software in execution.For example, component can be but not
It is limited to run process on a processor, processor, object, executable application, thread, program and/or the computer executed.
By diagram, both the application and the controller run on the controller can be component.One or more components can have
It is in the process executed and/or thread, and component can be located on a computer and/or be distributed in two or more meters
Between calculation machine.
Figure 11 and the discussion below, which provide, sets the electronics where realizing test environment deployment device of the present invention
Brief, summary the description of standby working environment.The working environment of Figure 11 be only an example of working environment appropriate simultaneously
And suggestion is not intended to about the purposes of working environment or any restrictions of the range of function.Example electronic equipment 1112 includes but not
It is limited to wearable device, helmet, medical treatment & health platform, personal computer, server computer, hand-held or on knee sets
Standby, mobile device (such as mobile phone, personal digital assistant (PDA), media player etc.), multicomputer system, consumption
The distributed computing environment, etc. of type electronic equipment, minicomputer, mainframe computer including above-mentioned arbitrary system or equipment.
Although not requiring, in the common background that " computer-readable instruction " is executed by one or more electronic equipments
Lower description embodiment.Computer-readable instruction can be distributed and (be discussed below) via computer-readable medium.It is computer-readable
Instruction can be implemented as program module, such as the function of execution particular task or realization particular abstract data type, object, application
Programming interface (API), data structure etc..Typically, the function of the computer-readable instruction can be in various environment arbitrarily
Combination or distribution.
Figure 11 illustrates the electronic equipment that the test environment including the present invention disposes one or more of device embodiment
1112 example.In one configuration, electronic equipment 1112 includes at least one processing unit 1116 and memory 1118.According to
The exact configuration and type of electronic equipment, memory 1118 can be volatibility (such as random access memory (RAM,
Random Access Memory)), non-volatile (such as read-only memory (ROM, Read-Only Memory), flash memory
Deng) or the two certain combination.The configuration is illustrated by dotted line 1114 in fig. 11.
In other embodiments, electronic equipment 1112 may include supplementary features and/or function.For example, equipment 1112 is also
May include additional storage device (such as removable and/or non-removable) comprising but it is not limited to magnetic memory apparatus, light
Storage device etc..This additional memory devices are illustrated by storage device 1120 in fig. 11.In one embodiment, it is used for real
The computer-readable instruction of existing one or more embodiments provided in this article can be in storage device 1120.Storage device
1120 can also store other computer-readable instructions for realizing operating system, application program etc..Computer-readable instruction
It can be loaded into memory 1118 and be executed by such as processing unit 1116.
Term as used herein " computer-readable medium " includes computer storage media.Computer storage media includes
The volatibility that any method or technique of the information of such as computer-readable instruction or other data etc is realized for storage
With non-volatile, removable and nonremovable medium.Memory 1118 and storage device 1120 are the realities of computer storage media
Example.Computer storage media include but not limited to RAM, ROM, band Electrically Erasable Programmable Read-Only Memory (EEPROM,
Electrically Erasable Programmable Read-Only Memory), flash memory or other memory technologies, only
Read CD (CD-ROM, Compact Disc Read-Only Memory), digital versatile disc (DVD, Digital Video
Disk) or other light storage devices, cassette tape, tape, disk storage device or other magnetic storage apparatus or can be used for depositing
Any other medium that storage it is expected information and can be accessed by electronic equipment 1112.Arbitrary such computer storage media can be with
It is a part for electronic equipment 1112.
Electronic equipment 1112 can also include the communication connection 1126 for allowing electronic equipment 1112 to be communicated with other equipment.It is logical
Letter connection 1126 can include but is not limited to modem, network interface card (NIC, Network Interface Card),
Integrated network interface, radiofrequency launcher/receiver, infrared port, USB connections or for electronic equipment 1112 to be connected to other
Other interfaces of electronic equipment.Communication connection 1126 may include wired connection or wireless connection.Communication connection 1126 can be sent out
Penetrate and/or receive communication medium.
Term " computer-readable medium " may include communication media.Communication media typically comprises computer-readable instruction
Or other data in " the own modulated data signal " of such as carrier wave or other transmission mechanisms etc, and include that any information is passed
Send medium.Term " own modulated data signal " may include such signal:One or more of the characteristics of signals is according to general
Mode in information coding to signal is set or changed.
Electronic equipment 1112 may include input equipment 1124, for example, keyboard, mouse, pen, voice-input device, touch it is defeated
Enter equipment, infrared camera, video input apparatus and/or any other input equipment.Can also include that output is set in equipment 1112
Standby 1122, such as one or more displays, loud speaker, printer and/or other arbitrary output equipments.1124 He of input equipment
Output equipment 1122 can be connected to electronic equipment 1112 via wired connection, wireless connection or its arbitrary combination.In a reality
It applies in example, input equipment or output equipment from another electronic equipment are used as the input equipment of electronic equipment 1112
1124 or output equipment 1122.
The component of electronic equipment 1112 can be connected by various interconnection (such as bus).Such interconnection may include outer
Enclose component interconnection (PCI) (such as quick PCI), universal serial bus (USB), firewire (IEEE 1394), optical bus structure etc.
Deng.In another embodiment, the component of electronic equipment 1112 can pass through network interconnection.For example, memory 1118 can be by
Multiple physical memory cells arcs composition in different physical locations, by network interconnection.
It would be recognized by those skilled in the art that the storage device for storing computer-readable instruction can be across network point
Cloth.For example, can be stored for realizing one provided by the present invention via the electronic equipment 1130 that network 1128 accesses or
The computer-readable instruction of multiple embodiments.Electronic equipment 1112 can access electronic equipment 1130 and downloading computer is readable
What is instructed is part or all of for execution.Alternatively, electronic equipment 1112 can be downloaded a plurality of computer-readable on demand
It instructs or some instruction can be executed at electronic equipment 1112 and some instructions can be held at electronic equipment 1130
Row.
There is provided herein the various operations of embodiment.In one embodiment, one or more operations can be with structure
At the computer-readable instruction stored on one or more computer-readable mediums, will make to succeed in one's scheme when being executed by electronic equipment
It calculates equipment and executes the operation.Describing the sequences of some or all of operations, to should not be construed as to imply that these operations necessarily suitable
Sequence is relevant.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this specification.Furthermore, it is to be understood that
Not all operation must exist in each embodiment provided in this article.
Moreover, although the disclosure, this field skill has shown and described relative to one or more realization methods
Art personnel will be appreciated that equivalent variations and modification based on the reading and understanding to the specification and drawings.The disclosure include it is all this
The modifications and variations of sample, and be limited only by the scope of the following claims.In particular, to by said modules (such as element,
Resource etc.) various functions that execute, the term for describing such component is intended to correspond to the specified work(for executing the component
The random component (unless otherwise instructed) of energy (such as it is functionally of equal value), even if illustrated herein with execution in structure
The disclosure exemplary implementations in function open structure it is not equivalent.In addition, although the special characteristic of the disclosure
Through being disclosed relative to the only one in several realization methods, but this feature can with such as can be to given or specific application
For be it is expected and one or more other features combinations of other advantageous realization methods.Moreover, with regard to term " comprising ", " tool
Have ", " containing " or its deformation be used in specific implementation mode or claim for, such term be intended to with term
The similar mode of "comprising" includes.
Each functional unit in the embodiment of the present invention can be integrated in a processing module, can also be each unit list
Solely be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module both may be used
The form of hardware is realized, can also be realized in the form of software function module.If the integrated module is with software function
The form of module is realized and when sold or used as an independent product, can also be stored in a computer-readable storage and be situated between
In matter.Storage medium mentioned above can be read-only memory, disk or CD etc..Above-mentioned each device or system, can be with
Execute the method in correlation method embodiment.
In conclusion although the present invention is disclosed above with embodiment, the serial number before embodiment only makes for convenience of description
With not causing to limit to the sequence of various embodiments of the present invention.Also, above-described embodiment is not to limit the present invention, this field
Those of ordinary skill, without departing from the spirit and scope of the present invention, can make it is various change and retouch, therefore the present invention
The range that claim of protection domain being subject to defines.
Claims (15)
1. a kind of test environment dispositions method, which is characterized in that including:
Pre-set the correspondence of map out the work stream and environment deployment file;The wherein described stream that maps out the work includes environment deployment
The address information of file and the deployment information of environment deployment file;
Test environment Disposition Instructions are received, wherein the test environment Disposition Instructions include target machine address and map out the work
Stream information;
According to the stream information that maps out the work, obtains and load the corresponding stream that maps out the work;
According to the address information of the environment deployment file, corresponding environment deployment file is obtained;And
According to the target machine address, the environment is disposed into file push to target machine, and dispose according to the environment
The deployment information of file carries out the deployment operation of the environment deployment file on the target machine.
2. test environment dispositions method according to claim 1, which is characterized in that described to pre-set described map out the work
Stream and environment deployment file correspondence the step of include:
The deployment information of the environment deployment file is obtained, and corresponding according to the setting of the deployment information of the environment deployment file
Deployment configuration file;
According to the deployment configuration file, the corresponding deployment source file is pulled;
The deployment source file pulled is carried out to be packaged storage operation, to form the environment deployment file;
According to the address information of the deployment information of the environment deployment file and environment deployment file, map out the work described in generation
Stream;And
The correspondence of the environment deployment file and the corresponding stream that maps out the work is set.
3. test environment dispositions method according to claim 2, which is characterized in that described according to the environment deployment file
Deployment information be arranged corresponding deployment configuration file the step of include:
Judge the corresponding deployment configuration file of the deployment information of the environment deployment file whether with default environment deployment file pair
The deployment configuration file answered is identical;
As identical, then directly believed according to the address of the deployment information of the environment deployment file and default environment deployment file
Breath generates deployment workflow;And the correspondence of the default environment deployment file and the corresponding stream that maps out the work is set;
Such as difference, then corresponding deployment configuration file is arranged according to the deployment information of the environment deployment file.
4. test environment dispositions method according to claim 2, which is characterized in that in the setting environment deployment text
Part with the step of the correspondence of the corresponding stream that maps out the work before, map out the work described in the generation stream the step of after also wrap
It includes:
Grammer detection and operation detection are carried out to the stream that maps out the work;
The setting environment deployment file includes with the step of correspondence of the corresponding stream that maps out the work::
Detection qualified map out the work stream and the correspondence of corresponding environment deployment file are set.
5. test environment dispositions method according to claim 2, which is characterized in that the deployment configuration file includes corresponding to
It disposes the address information of source file and disposes the type information of source file;
It is described according to the deployment configuration file, the step of pulling the corresponding deployment source file is:
According to the type information of the deployment source file, determine the deployment source file pulls mode;And
According to the address information of the deployment source file, the deployment source document is pulled using the mode that pulls of the deployment source file
Part.
6. test environment dispositions method according to claim 2, which is characterized in that the described pair of deployment source document pulled
Part carries out packaging operation, is the step of the environment deployment file to be formed:
The deployment source file pulled is arranged in temporary folder;And
According to the functions of modules information of the deployment source file, the deployment source file in temporary folder is carried out to be packaged storage behaviour
Make, to form the environment deployment file.
7. test environment dispositions method according to claim 1, which is characterized in that
Map out the work stream information described in the basis, obtain and load it is corresponding map out the work stream the step of be:
According to the stream information that maps out the work, is obtained by workflow calling interface and load the corresponding stream that maps out the work;
It is described according to the target machine address, be by environment deployment file push to the step of target machine:
According to the target machine address, the environment is disposed to target machine by file push by pushing files interface;
The deployment information according to the environment deployment file carries out the environment deployment file on the target machine
The step of deployment operation is:
By database synchronization interface, the corresponding calling database of deployment operation is obtained;And
According to the deployment information of the environment deployment file and the calling database, interface is executed in institute by remote command
State the deployment operation that the environment deployment file is carried out on target machine.
8. test environment dispositions method according to claim 1, which is characterized in that the deployment of the environment deployment file is believed
Breath includes the deployment module information being grouped to the deployment source file in environment deployment file and to the deployment source after grouping
The module recalls information that file is called;
The deployment information according to the environment deployment file carries out the environment deployment file on the target machine
The step of deployment operation is:
Using the corresponding method of calling of the module recalls information, the deployment source that will be grouped according to the deployment module information
File is arranged on the target machine.
9. a kind of test environment disposes device, which is characterized in that including:
Module is pre-set, the correspondence for pre-setting the map out the work stream and environment deployment file;It is wherein described
The stream that maps out the work includes the address information of environment deployment file and the deployment information of environment deployment file;
Command reception module, for receiving test environment Disposition Instructions, wherein the test environment Disposition Instructions include target machine
Device address and the stream information that maps out the work;
The stream load-on module that maps out the work obtains for the stream information that maps out the work according to and loads the corresponding stream that maps out the work;
Environment disposes file acquisition module, for the address information according to the environment deployment file, obtains corresponding Ministry of environment
Affix one's name to file;And
Deployment operation module, for according to the target machine address, the environment to be disposed file push to target machine, and
According to the deployment information of the environment deployment file, the deployment behaviour of the environment deployment file is carried out on the target machine
Make.
10. test environment according to claim 9 disposes device, which is characterized in that the module that pre-sets includes:
Deployment configuration file setting unit, the deployment information for obtaining the environment deployment file, and according to the Ministry of environment
Corresponding deployment configuration file is arranged in the deployment information for affixing one's name to file;
Deployment source file pulls unit, for according to the deployment configuration file, pulling the corresponding deployment source file;
It is packaged storage unit, storage operation is packaged for being carried out to the deployment source file pulled, to form the Ministry of environment
Affix one's name to file;
Map out the work stream generation unit, for according to the deployment information of the environment deployment file and the ground of environment deployment file
Location information, map out the work described in generation stream;And
The correspondence of the environment deployment file and the corresponding stream that maps out the work is arranged in first pre-set unit.
11. test environment according to claim 10 disposes device, which is characterized in that the module that pre-sets includes:
Deployment configuration file judging unit, for judging the corresponding deployment configuration file of the deployment information of the environment deployment file
Whether deployment configuration file corresponding with default environment deployment file is identical;And
Second pre-set unit, directly according to the deployment information of the environment deployment file and default environment deployment file
Address information generates deployment workflow;And default environment deployment file pass corresponding with the corresponding stream that maps out the work is set
System.
12. test environment according to claim 10 disposes device, which is characterized in that the module that pre-sets includes:
Detection unit, for carrying out grammer detection and operation detection to the stream that maps out the work;
First pre-set unit is used to be arranged qualified map out the work stream and pair of corresponding environment deployment file of detection
It should be related to.
13. test environment according to claim 10 disposes device, which is characterized in that the deployment configuration file includes pair
The address information of source file should be disposed and dispose the type information of source file;
The deployment source file pulls unit and includes:
Mode determination subelement is pulled, for the type information according to the deployment source file, determines the deployment source file
Pull mode;And
Deployment source file pulls subelement, for the address information according to the deployment source file, uses the deployment source file
The mode that pulls pull the deployment source file.
14. test environment according to claim 10 disposes device, which is characterized in that the packing storage unit includes:
Interim storage subelement, for being arranged the deployment source file pulled in temporary folder;And
Storing sub-units are packaged, for the functions of modules information according to the deployment source file, to the deployment in temporary folder
Source file carries out being packaged storage operation, to form the environment deployment file.
15. a kind of storage medium is stored with processor-executable instruction, described instruction is by one or more processors
Load, to execute such as test environment dispositions method any in claim 1-8.
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 true CN108595335A (en) | 2018-09-28 |
CN108595335B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111158655A (en) * | 2019-12-31 | 2020-05-15 | 中国银行股份有限公司 | Deployment method and device of software running environment |
CN111782523A (en) * | 2020-06-29 | 2020-10-16 | 平安国际智慧城市科技股份有限公司 | Cloud service deployment test method and device, electronic equipment and storage medium |
CN111782523B (en) * | 2020-06-29 | 2024-06-04 | 深圳赛安特技术服务有限公司 | Cloud service deployment testing method and device, electronic equipment and storage medium |
Citations (10)
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 |
US20140282495A1 (en) * | 2013-03-13 | 2014-09-18 | Pablo Chico de Guzman Huerta | Deploying, monitoring, and controlling multiple components of an application |
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 |
US20170308367A1 (en) * | 2016-04-21 | 2017-10-26 | Data Accelerator Ltd | Method and system for deploying virtualized applications |
-
2018
- 2018-05-07 CN CN201810426318.4A patent/CN108595335B/en active Active
Patent Citations (10)
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 |
US20140282495A1 (en) * | 2013-03-13 | 2014-09-18 | Pablo Chico de Guzman Huerta | Deploying, monitoring, and controlling multiple components of an application |
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 |
US20170308367A1 (en) * | 2016-04-21 | 2017-10-26 | Data Accelerator Ltd | Method and system for deploying virtualized applications |
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 |
Non-Patent Citations (2)
Title |
---|
刘卫国: "《Python程序设计教程》", 30 April 2016, 电子工业出版社 * |
陶皖: "《云计算与大数据》", 31 October 2017, 西安电子科技大学出版社 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111158655A (en) * | 2019-12-31 | 2020-05-15 | 中国银行股份有限公司 | Deployment method and device of software running environment |
CN111158655B (en) * | 2019-12-31 | 2023-09-22 | 中国银行股份有限公司 | Deployment method and device of software running environment |
CN111782523A (en) * | 2020-06-29 | 2020-10-16 | 平安国际智慧城市科技股份有限公司 | Cloud service deployment test method and device, electronic equipment and storage medium |
CN111782523B (en) * | 2020-06-29 | 2024-06-04 | 深圳赛安特技术服务有限公司 | Cloud service deployment testing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108595335B (en) | 2022-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9898395B2 (en) | Unit-level formal verification for vehicular software systems | |
CN106970873A (en) | Mock method of testings, apparatus and system on line | |
CN108647527B (en) | File packing method, file packing device, file unpacking device and network equipment | |
CN106445951A (en) | File transmission method and apparatus | |
CN112256321A (en) | Static library packaging method and device, computer equipment and storage medium | |
CN110209569A (en) | Interface test method, interface test device and storage medium | |
CN109614372A (en) | A kind of object storage, read method, device and service server | |
CN112395363B (en) | Data synchronization method, device, equipment and readable storage medium | |
CN112631590B (en) | Component library generation method, device, electronic equipment and computer readable medium | |
CN111680253A (en) | Page application data packet generation method and device, computer equipment and storage medium | |
US20240103928A1 (en) | Information processing method and apparatus for animation resource, device, medium and product | |
CN107463422A (en) | Code dispositions method and device, electronic equipment | |
CN106445548A (en) | Test pack issuing method and device | |
CN106648569A (en) | Target serialization achieving method and device | |
CN113268245A (en) | Code analysis method, device and storage medium | |
CN112631649A (en) | Intelligent contract management method, device, terminal equipment and medium | |
CN110851211A (en) | Method, apparatus, electronic device, and medium for displaying application information | |
CN109697034B (en) | Data writing method and device, electronic equipment and storage medium | |
CN107450959A (en) | A kind of edition data issue, acquisition methods, equipment and device and more new system | |
CN112241298A (en) | Page display method and device, storage medium and electronic device | |
CN113391860B (en) | Service request processing method and device, electronic equipment and computer storage medium | |
CN108595335A (en) | Test environment dispositions method, deployment device and storage medium | |
CN113391811B (en) | Function compiling method, function compiling device, electronic equipment and computer readable storage medium | |
CN103176843B (en) | The file migration method and apparatus of MapReduce distributed system | |
CN111752644A (en) | Interface simulation method, device, 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 |