CN104978191B - Using dispositions method and service device - Google Patents
Using dispositions method and service device Download PDFInfo
- Publication number
- CN104978191B CN104978191B CN201510353829.4A CN201510353829A CN104978191B CN 104978191 B CN104978191 B CN 104978191B CN 201510353829 A CN201510353829 A CN 201510353829A CN 104978191 B CN104978191 B CN 104978191B
- Authority
- CN
- China
- Prior art keywords
- application deployment
- deployment
- test case
- application
- compiling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The disclosure is directed to a kind of application dispositions method and service device, this method includes:It receives using Disposition Instructions, application deployment are treated in acquisition, described to treat that application deployment include source code and configuration file, and the deployment catalogue for treating application deployment is included in the configuration file;It obtains and treats the corresponding test case of application deployment with described;Treat that application deployment are compiled to described, it will treat that application deployment and the test case are sent to each service server after compiling, so that each service server will treat that application deployment and the test case are deposited under the deployment catalogue, and run the test case to treating that application deployment are tested after the compiling after the compiling.In the automatic deployment and test process, without manual intervention, avoid the problem that manually deployment, test easily error, while raising using deployment and testing efficiency, ensure that using deployment and the reliability tested.
Description
Technical field
This disclosure relates to field of communication technology more particularly to a kind of application dispositions method and service device.
Background technology
As distributed system is in the extensive use of different industries, in information technology field, in order to ensure system work
Robustness, stability, service provider can generally dispose the application for providing certain service in a distributed system, for vast
User uses.Wherein, more are usually contained in distributed system for disposing the server of one or more applications.
Invention content
To overcome the problems in correlation technique, the disclosure provides a kind of application dispositions method and service device, to reality
Now application automatic deployment in a distributed system, test, to improve application deployment, testing efficiency and reliability.
According to the embodiment of the present disclosure in a first aspect, provide it is a kind of using dispositions method, including:
It receiving using Disposition Instructions, application deployment are treated in acquisition, described to treat that application deployment include source code and configuration file,
The deployment catalogue for treating application deployment is included in the configuration file;
It obtains and treats the corresponding test case of application deployment with described;Treat that application deployment are compiled to described;
It will treat that application deployment and the test case are sent to each service server after compiling, so that each business clothes
Business device will treat that application deployment and the test case are deposited under the deployment catalogue, and run the test after the compiling
Use-case after the compiling to treating that application deployment are tested.
Wherein, it is described to include the application identities for treating application deployment, version number and description file using Disposition Instructions;
The acquisition treats the corresponding test case of application deployment with described, including:
It determines whether there is and treats the corresponding historical usage of application deployment with described, the historical usage is application identities and institute
State treat application deployment application identities are identical and version number less than the version number for treating application deployment application;
If treating the corresponding historical usage of application deployment in the presence of with described, obtain history corresponding with the historical usage and retouch
File is stated, the Reassessment file is the description file of the historical usage;
According to the Reassessment file and the description file for treating application deployment, obtain and treat application deployment pair with described
The test case answered.
Specifically, it is described according to the Reassessment file and the description file for treating application deployment, it obtains and institute
It states and treats the corresponding test case of application deployment, including:
By comparing the Reassessment file and the description file for treating application deployment, determine described to treat application deployment
In with the presence or absence of the functions of modules difference function module different from each function module of the historical usage;
If there is no the difference function modules, obtain the corresponding test case of the historical usage and treated as with described
The corresponding test case of application deployment;
If there are the difference function module, difference test case corresponding with the difference function module is obtained, and
The corresponding test case of the historical usage is updated according to the difference test case, by the corresponding survey of updated historical usage
Example on probation treats the corresponding test case of application deployment as with described.
Further, the method further includes:
It is described to it is described treat that application deployment are compiled before, receive compiling instruction, it is described compiling instruction includes operate
The authentication information of person;
Authentication is carried out to the operator according to the authentication information, if certification passes through, is performed described to described
Treat the step of application deployment are compiled.
According to the second aspect of the embodiment of the present disclosure, another kind is provided and applies dispositions method, including:
It receives and treats application deployment after the compiling that management server is sent and treat the corresponding test of application deployment with described
Use-case;Wherein, it is described to treat that application deployment include source code and configuration file, treat that deployment should comprising described in the configuration file
Deployment catalogue.
It will treat that application deployment and the test case are deposited under the deployment catalogue after the compiling.
The test case is run to treating that application deployment are tested after the compiling.
Wherein, the deployment catalogue includes temp directory and formal catalogue;It is described to treat application deployment after the compiling
It is deposited under the deployment catalogue with the test case, including:
It will treat that application deployment and the test case are deposited under the temp directory after the compiling.
It is described to run the test case to treating that application deployment are tested after the compiling, including:
The test case is run under the temp directory to treating that application deployment are tested after the compiling.
Further, the method further includes:
If the test case is run under the temp directory to treating that application deployment carry out test and lead to after the compiling
It crosses, then will treat that application deployment are deposited under the formal catalogue after the compiling, and delete and be deposited into the temp directory
The compiling after treat application deployment and the test case.
Wherein, the test case includes unit testing use-case and basic environment test case.
Specifically, it is described to run the test case to treating that application deployment are tested after the compiling, including:
The basic environment test case is run, the basic running environment for treating application deployment is tested.
If the basic environment testing case passes through, the unit testing use-case is run, treats that deployment should to described
Each function module is tested.
According to the third aspect of the embodiment of the present disclosure, a kind of application deployment management server is provided, including:
First receiving module is configured as receiving using Disposition Instructions.
First acquisition module is configured as obtaining and treats application deployment, described to treat that application deployment include source code and configuration
File includes the deployment catalogue for treating application deployment in the configuration file.
Second acquisition module is configured as obtaining and treats the corresponding test case of application deployment with described.
Collector is configured as treating that application deployment are compiled to described.
Sending module is configured as to treat that application deployment and the test case are sent to each business service after compiling
Device, so that each service server will treat that application deployment and the test case are deposited into the deployment mesh after the compiling
Under record, and the test case is run to treating that application deployment are tested after the compiling.
Wherein, it is described to include the application identities for treating application deployment, version number and description file using Disposition Instructions.
Second acquisition module includes:
First determination sub-module is configured to determine whether to exist and treats the corresponding historical usage of application deployment, institute with described
It is that application identities are identical with the application identities for treating application deployment and version number treats application deployment less than described to state historical usage
Version number application.
First acquisition submodule, be configured as exist with it is described when application deployment corresponding historical usage when, obtain with
The corresponding Reassessment file of the historical usage, the Reassessment file is the description file of the historical usage.
Second acquisition submodule is configured as according to the Reassessment file and the description text for treating application deployment
Part obtains and treats the corresponding test case of application deployment with described.
Specifically, second acquisition submodule includes:
Determination sub-module is configured as by comparing the Reassessment file and the description text for treating application deployment
Part determines described treat in application deployment with the presence or absence of the difference work(that functions of modules is different from each function module of the historical usage
It can module.
First acquisition submodule is configured as, there is no during the difference function module, obtaining the historical usage pair
The test case answered treats the corresponding test case of application deployment as with described.
Second acquisition submodule is configured as, there are during the difference function module, obtaining and the difference function mould
The corresponding difference test case of block, and the corresponding test case of the historical usage is updated according to the difference test case, it will
The corresponding test case of updated historical usage treats the corresponding test case of application deployment as with described.
Further, the management server further includes:
Second receiving module, be configured as the collector to it is described treat that application deployment are compiled before, receive compile
Instruction is translated, the compiling instruction includes the authentication information of operator.
Authentication module is configured as carrying out authentication to the operator according to the authentication information;Pass through in certification
When, trigger the collector.
According to the fourth aspect of the embodiment of the present disclosure, a kind of application deployment service server is provided, including:
Receiving module is configured as receiving and treats application deployment after the compiling that management server is sent and treat portion with described
Administration applies corresponding test case;Wherein, it is described to treat that application deployment include source code and configuration file, in the configuration file
Include the deployment catalogue for treating application deployment.
Memory module is configured as to treat that application deployment and the test case are deposited into the deployment after the compiling
Under catalogue.
Test module is configured as running the test case to treating that application deployment are tested after the compiling.
Wherein, the deployment catalogue includes temp directory and formal catalogue;The memory module includes:
First sub-module stored is configured as to treat that application deployment and the test case are deposited into institute after the compiling
It states under temp directory.
The test module is configured as running the test case under the temp directory to being treated after the compiling
Application deployment are tested.
Further, the memory module further includes:
Second sub-module stored, after being configured as running the test case under the temp directory to the compiling
When application deployment test and passed through, it will treat that application deployment are deposited under the formal catalogue after the compiling.
The service server further includes:
Removing module is configured as treating application deployment and institute after the compiling that deletion is deposited into the temp directory
State test case.
Wherein, the test case includes unit testing use-case and basic environment test case.
Wherein, the test module includes:
First test submodule, is configured as running the basic environment test case, to the base for treating application deployment
Plinth running environment is tested.
Second test submodule, be configured as the basic environment testing case by when, run the unit
Test case tests each function module for treating application deployment.
According to a fifth aspect of the embodiments of the present disclosure, another application deployment management server is provided, including:
Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, the processor is configured as:
It receiving using Disposition Instructions, application deployment are treated in acquisition, described to treat that application deployment include source code and configuration file,
The deployment catalogue for treating application deployment is included in the configuration file;
It obtains and treats the corresponding test case of application deployment with described;Treat that application deployment are compiled to described;
It will treat that application deployment and the test case are sent to each service server after compiling, so that each business clothes
Business device will treat that application deployment and the test case are deposited under the deployment catalogue, and run the test after the compiling
Use-case after the compiling to treating that application deployment are tested.
According to the 6th of the embodiment of the present disclosure the aspect, another application deployment service server is provided, including:
Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, the processor is configured as:
It receives and treats application deployment after the compiling that management server is sent and treat the corresponding test of application deployment with described
Use-case;Wherein, it is described to treat that application deployment include source code and configuration file, treat that deployment should comprising described in the configuration file
Deployment catalogue;
It will treat that application deployment and the test case are deposited under the deployment catalogue after the compiling;
The test case is run to treating that application deployment are tested after the compiling.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Pass through the portion that the application is set to be deployed in each service server of distributed system in the configuration file of application
Affix one's name to catalogue so that this is applied under the deployment catalogue each service server automatic deployment, be ensure that this is applied and is taken in all business
The deployment path being engaged in device is consistent;Moreover, applying corresponding test case with this by obtaining, and test case is also sent to
Each service server so that the test case and the application are stored in above-mentioned deployment catalogue by each service server together, each industry
Business server start automatically run the test case application is tested.In the automatic deployment and test process, without people
Work intervention avoids the problem that manually deployment, test easily error, and while raising using deployment and testing efficiency, ensure that should
With the reliability of deployment and test.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and for explaining the principle of the disclosure together with specification.
Fig. 1 is the application scenarios schematic diagram shown in one exemplary embodiment of the disclosure;
Fig. 2 is according to a kind of flow chart using dispositions method embodiment one shown in an exemplary embodiment;
Fig. 3 is according to a kind of flow chart using dispositions method embodiment two shown in an exemplary embodiment;
Fig. 4 is the flow chart according to a kind of embodiment three using dispositions method shown in an exemplary embodiment;
Fig. 5 is the flow chart according to a kind of example IV using dispositions method shown in an exemplary embodiment;
Fig. 6 is the flow chart according to a kind of embodiment five using dispositions method shown in an exemplary embodiment;
Fig. 7 is according to a kind of signaling interaction diagram using dispositions method shown in an exemplary embodiment;
Fig. 8 is the block diagram according to a kind of application deployment management server embodiment one shown in an exemplary embodiment;
Fig. 9 is the block diagram according to a kind of application deployment management server embodiment two shown in an exemplary embodiment;
Figure 10 is the block diagram according to a kind of application deployment management server embodiment three shown in an exemplary embodiment;
Figure 11 is the block diagram according to a kind of application deployment service server embodiment one shown in an exemplary embodiment;
Figure 12 is the block diagram according to a kind of application deployment service server embodiment two shown in an exemplary embodiment;
Figure 13 is the block diagram according to a kind of application deployment management server shown in an exemplary embodiment;
Figure 14 is the block diagram according to a kind of application deployment service server shown in an exemplary embodiment;
Figure 15 is the block diagram according to a kind of application deployment management server shown in an exemplary embodiment;
Figure 16 is the block diagram according to a kind of application deployment service server shown in an exemplary embodiment.
Pass through above-mentioned attached drawing, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
The range for limiting the disclosure by any mode and conceiving is not intended to word description, but is by reference to specific embodiment
Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
First, the application scenarios that each embodiment of the disclosure is applicable in first are introduced.
Fig. 1 is the application scenarios schematic diagram shown in one exemplary embodiment of the disclosure, as shown in Figure 1, the disclosure is respectively implemented
The application distribution formula deployment scenario applied to using dispositions method in distributed system that example improves.It is wrapped in the distributed system
N number of service server as shown in Figure 1 and a management server are included, wherein N is the integer more than 1.Wherein, the management service
Device can functionally be split as two independent servers, respectively code server and compiler server.The two services
Device can independently be set, and integrally disposed can also form above-mentioned management server together.Due to the management server
Specific implementation form influences less the application dispositions method of the embodiment of the present disclosure, therefore, except shown in Fig. 2 in following embodiment
Outside being illustrated in embodiment, described in the form of management server is whole, do not divide into code server and volume specifically
Translate server.
It describes in detail with reference to each specific embodiment to disclosure application dispositions method.
Fig. 2 is according to a kind of flow chart using dispositions method embodiment one shown in an exemplary embodiment, such as Fig. 2 institutes
Show, the present embodiment be related to using dispositions method can as shown in Figure 1 in management server perform.Specifically, the application
Dispositions method includes the following steps:
In step S101, receive using Disposition Instructions, application deployment are treated in acquisition, described to treat that application deployment include source generation
Code and configuration file include the deployment catalogue for treating application deployment in the configuration file.
In step s 102, it obtains and treats the corresponding test case of application deployment with described.
In step s 103, treat that application deployment are compiled to described.
In step S104, it will treat that application deployment and the test case are sent to each service server after compiling, with
Make each service server that will treat that application deployment and the test case are deposited under the deployment catalogue after the compiling,
And the test case is run to treating that application deployment are tested after the compiling.
At present, each application service provider always continues to introduce new various network applications, for example uses at present
In the wechat of people's instant messaging, forum, microblogging etc..After the developer of application completes the exploitation of related application,
It needs the application being deployed in the service server in above-mentioned distributed system, be used so that users is supplied to access.
Specifically, the application for developing completion can be sent to the management service in distributed system by application developer
In device.
In the present embodiment, code server shown in FIG. 1 and compiler server are included to management service with management server
The course of work of device carries out careful explanation.However, it will be understood that the management server can also integrate above-mentioned two service
The function of device, as the course of work in unique overall execution the present embodiment.
Before specifically the present embodiment is introduced, first, what deserves to be explained is, do not have between above-mentioned steps S102 and step S103
There is stringent sequential qualified relation, i.e., both can first obtain test case, treat application deployment again later and be compiled;It can also
Application deployment are first treated to be compiled, then obtain test case;Application deployment can also be treated while test case is obtained
It is compiled, is serviced respectively by two processes of above-mentioned management server or respectively by above-mentioned code server and compiling at this time
Device performs different operations.
Specifically, in the present embodiment, code server can be used for receiving the application deployment that application developer sends
Instruction, this treats application deployment using what Disposition Instructions included having developed completion.Therefore, code server, which receives and stores, answers
Application deployment are treated with what developer sent.After operation maintenance personnel logs in compiler server, by being interacted with code server,
Can be obtained from code server currently needs the application disposed to treat application deployment.
In the present embodiment, this treats in application deployment other than the source code for including the application, to further include the application
Configuration file.
Wherein, it is specifically set comprising application program in the configuration file of application.This document includes common language runtime
The setting that the configuration setting (such as procedure set binding strategy, remote processing object) of reading and application program can be read.
In the present embodiment, this is included in the configuration file and treats deployment catalogue of the application deployment in each service server,
The deployment catalogue can be preset.
As previously mentioned, in order to ensure to apply disposed in each service server after can normal operation, so as to be vast
User provides corresponding service, needs in advance to test the application, than carrying out service server base if desired for the application
Plinth environmental testing, unit testing etc..
Wherein, unit testing (unit testing):Refer to the minimum Testable unit in software is checked and tested
Card.For the meaning of unit in unit testing, unit refers to a function in C language, and unit refers to a class in Java, patterned
A window or menu etc. can be referred in software.Generally speaking, unit is exactly artificial defined minimum by brake mould
Block.Wherein, due to the application in the process of development, it is likely to based on certain common components, certain third party's components either
What certain frameworks were developed.In order to enable this application can normal operation use, need to dispose each business service of the application
Device can support these common components, third party's component, framework, i.e., each service server needs to provide this using necessary base
Plinth environment.Therefore, it is necessary to whether provide these basic environments to each service server to test.
In order to realize the automatic test to the application, in the present embodiment, management server, specifically above-mentioned code server
It needs first to obtain and applies corresponding test case with this, wherein, which just includes the unit for carrying out unit testing
Test case and the basic environment test case tested for the basic running environment to each service server.
What deserves to be explained is the generating mode of above-mentioned test case is not the claimed emphasis of the disclosure, therefore only
The generating process of the test case is described more.And in practice, test case is usually advance by special application tester
Write what design was completed.Therefore, in the present embodiment, it is assumed that be designed completion simultaneously with the test case of above-mentioned application to be disposed
A such as test case data library is stored in, then code server can inquire acquisition and apply corresponding test case with this.
Such as code server passes through the test using the identification information of the application as index match query in test case data library
Use-case.Correspondingly, it is understood that application developer other than this is treated application deployment and is sent to code server, goes back
Carry the identification information of the application, such as title of the application etc..
So as to after code server obtains test case corresponding with the application to be disposed, this be waited to dispose
Using with the test case associated storage.
During practical application deployment, need first to be compiled application to be disposed, compiling just carries out after passing through
The processing disposed into each service server.Therefore, in the case where management server is represented with an entirety alone, management
Server carries out the compilation process of the application after receiving operation maintenance personnel and treating the compiling instruction of application deployment for this.Its
In, compiling refers to the process of that the source program write using compiler from original language (source code) generates target program.
In the case where management server is represented with above-mentioned code server and compiler server, compiler server need to be from generation
This, which is obtained, in code server treats application deployment and corresponding test case, and then processing is compiled to the application.Specifically,
The code server can be after obtaining and treating the corresponding test case of application deployment with this, and automatic trigger is to compiler server hair
Give the application and the test case;Alternatively, compiler server periodically can send inquiry request to code server, to look into
It askes with the presence or absence of the application for needing to dispose in code server, if so, then the code server feeds back to compiler server phase
That answers treats application deployment and corresponding test case.
If this treats application deployment, compiling passes through, which uses the application after compiling and corresponding test
Example is sent to each service server, and the application received and test case are stored in the configuration text of the application by each service server
Under deployment catalogue described in part, so as to which the application and test case are deployed in identical by each service server automatically
Catalogue under, and start and run the test case to complete to be capable of the application test of normal operation.If test passes through,
Deployment is completed, and otherwise feeds back to compiler server alarm prompt so that the operation maintenance personnel service server abnormal to test into
Row detection is safeguarded.
In the present embodiment, by the way that the application is set to be deployed in each business of distributed formula system in the configuration file of application
Deployment catalogue in server so that this is applied under the deployment catalogue each service server automatic deployment, ensure that the application
Deployment path in all service servers is consistent;Moreover, obtain with this apply corresponding test case after, will test
Use-case is also sent to each service server so that the test case and the application are stored in above-mentioned deployment by each service server together
In catalogue, each service server start automatically run the test case application is tested.It the automatic deployment and tested
Cheng Zhong without manual intervention, avoids the problem that manually deployment, tests easy error, improves same with testing efficiency using disposing
When, it ensure that the reliability using deployment and test.
Fig. 3 is according to a kind of flow chart using dispositions method embodiment two shown in an exemplary embodiment, this implementation
Example provides the step 102 in embodiment illustrated in fig. 2 another realization method.It as shown in figure 3, should described in provided in this embodiment
It specifically may include steps of with dispositions method:
In step 201, it receives using Disposition Instructions, application deployment are treated in acquisition, and the application Disposition Instructions include institute
State the application identities for treating application deployment, version number and description file.
In step 202, it is determined whether exist and treat the corresponding historical usage of application deployment with described, the historical usage is
Application identities are identical with the application identities for treating application deployment and version number is less than answering for the version number for treating application deployment
With if treating the corresponding historical usage of application deployment in the presence of with described, performing step 203.
In step 203, Reassessment file corresponding with the historical usage is obtained, the Reassessment file is institute
State the description file of historical usage.
In step 204, according to the Reassessment file and the description file for treating application deployment, obtain with it is described
Treat the corresponding test case of application deployment.
In the present embodiment, include what management server received using Disposition Instructions in addition to including treating application deployment
Outside, application identities, version number and the description file of the application can also be included.
Wherein, the application identities and version number are used to uniquely represent the application, because using upgrading, update is had, it is same
A application has different version numbers.Wherein, the description file of the application is the function of being provided the application, is wrapped in the application
The description of each function module contained.
In addition, the application identities of the application deployment of deployed mistake, version number, description are preserved in management server
The information of file, test case, these information can be stored in a database.
Therefore, it after management server receives above application Disposition Instructions, is marked according to the application for currently treating application deployment
Know and version number inquires whether there is from above-mentioned database and currently treats that the application identities of application deployment are identical, and version number with this
Less than the historical usage i.e. application deployment for the version number for currently treating application deployment.
Wherein, what deserves to be explained is, if stored in above-mentioned database, there are one the multiple versions applied, above-mentioned inquiries
During, especially inquiry obtains the correspondence historical usage than currently treating a low version number of the version number of application deployment.
If management server queries are determined there is no historical usage corresponding with treating application deployment, can be used with test
Example generating platform interaction is to obtain test case corresponding with treating application deployment;If management server queries determine to exist with treating
The corresponding historical usage of application deployment, then its obtained from above-mentioned database the description file of the historical usage i.e. Reassessment text
Part.
And then management server is by comparing the Reassessment file and the description file for treating application deployment, to determine two
Whether a description file is consistent, and obtains test corresponding with treating application deployment in different ways according to comparison result and use
Example.
Specifically, if two application functions described described in files, the function module included, each function mould
The effect of block or realization method are all consistent, i.e., if it is determined that treating that there is no each of functions of modules and the historical usage in application deployment
The different difference function module of function module then illustrates the corresponding test case of the historical usage may be used as with waiting to dispose
Using corresponding test case.Otherwise, if treating to have differences function module in application deployment and the historical usage, pass through acquisition
The mode of incremental testing use-case obtains this and treats test case corresponding to application deployment.
Specifically, management server obtains the test case of the historical usage by above-mentioned database first, then obtain with
The corresponding difference test case of difference function module, and then the corresponding test of historical usage is updated according to difference test case and is used
Example, using the corresponding test case of updated historical usage as test case corresponding with treating application deployment.
Wherein, obtain corresponding with difference function module difference test case, for example, can by with Test cases technology
Platform interacts to obtain.By sending above-mentioned difference function module to Test cases technology platform so that Test Sample Design people
Member's design completes difference test case corresponding with the difference function module testing, and pass through Test cases technology platform and feed back to
Management server.
Wherein, the corresponding test case of historical usage is updated according to difference test case, specifically included:If difference function
Module is additional function module relative to historical usage, then the difference test case is added to the corresponding survey of historical usage
In example on probation, update is completed;If difference function module is the change for having function module relative to certain in historical usage,
The difference test case is added from the corresponding test case of historical usage, while can be by the corresponding test case of historical usage
In deleted for testing the test case of corresponding with difference function module function module, complete to update.
The relevant information respectively applied disposed is stored in the present embodiment, in management server, so that follow-up
Deployment upgrading in application, can be by the test case of corresponding application deployment, by the side for obtaining difference test case
Formula reduce for each apply need to carry out independent whole testing example designs caused by workload, can further carry
The efficiency of height application deployment.
Fig. 4 is according to a kind of flow chart using dispositions method embodiment three shown in an exemplary embodiment, above-mentioned
On the basis of embodiment, as shown in figure 4, in the present embodiment, treat that application deployment are compiled it to described in above-mentioned steps 103
Before, further include following steps:
In step 301, compiling instruction is received, the compiling instruction includes the authentication information of compilation operations person;
In step 302, authentication is carried out to the compilation operations person according to the authentication information, whether determines certification
Pass through, if certification passes through, perform step 103, if certification does not pass through, terminate.
Application after compiling passes through is sent as compilation operations person and to each service server due to above-mentioned operation maintenance personnel
With the operator of test case, there is important value for application provider since this is applied, it is awarded in order to avoid non-
The malicious operation of power personnel can carry out authentication to operation maintenance personnel.
Specifically, the authentication information of authorized person can be prestored in management server, the authentication information is such as
It is login account and password.Therefore, when operation maintenance personnel, that is, current operator logs in management server, if the login of its input
Account and password are one in the account and password authorized, then it is assumed that the operator passes through certification.
It is understood that the identification authentication mode such as can also be the modes such as identifying code, fingerprint, specific limit is not done
It is fixed.
More than, the mistakes of the application deployment in each service server of distributed system is described from the angle of management server
Journey with reference to several embodiments from the angle of each service server, introduces the detailed process of application deployment.
Fig. 5 is according to a kind of flow chart of example IV using dispositions method shown in an exemplary embodiment, such as Fig. 5
Shown, this includes the following steps using dispositions method:
In step 401, receive management server send compiling after treat application deployment and with it is described treat deployment should
With corresponding test case;Wherein, it is described to treat that application deployment include source code and configuration file, it is included in the configuration file
The deployment catalogue for treating application deployment.
In step 402, it will treat that application deployment and the test case are deposited into the deployment catalogue after the compiling
Under.
In step 403, the test case is run to treating that application deployment are tested after the compiling.
As described in foregoing embodiments, management server obtains and waits to dispose after receiving using Disposition Instructions
Using corresponding test case, after the processing such as the compiling of application deployment are treated in completion, application deployment and test case will be treated
Each service server is sent to, wherein, it treats in the configuration file of application deployment comprising the deployment catalogue for treating application deployment.
So as to which each service server treats application deployment and test after the above-mentioned compiling for receiving management server transmission
After use-case, treat that application deployment and test case are deposited under the deployment catalogue after this is compiled, so as to each business service
Device will all treat that application deployment and test case are deployed under identical deployment catalogue, and that easily malfunctions when avoiding manually disposing asks
Topic, for example deposit wrong catalogue, treat application deployment or test case has carried out maloperation etc..
And then each service server starts testing results use-case from the deployment catalogue, has completed to treat that deployment should to this
With can normal operation test.
Wherein, in the present embodiment, test case mainly includes unit testing use-case and basic environment test case.The two
The execution sequence of test case is, preferential to perform basic environment test case, to the basic running environment for treating application deployment
It is tested, if basic environment test passes through, execution unit test case, to each function module for treating application deployment
It is tested;If basic environment testing case does not pass through, alarm prompt is sent out to management server, to prompt O&M
Which type of test problem personnel occur.If correspondingly, in execution unit test case, unit testing passes through, then says
Bright this treats that application deployment can terminate in normal operation, deployment in service server, if unit testing is not over to pipe
Reason server sends out alarm prompt, to prompt which type of unit testing problem is operation maintenance personnel occur.
In the present embodiment, each service server is waited to dispose in the deployment target that carries for receiving management server transmission
Using and its corresponding test case after, automatically by this treat application deployment deposit be deployed under the catalogue, and automatic running survey
Example on probation tests the application.In the automatic deployment and test process, without manual intervention, avoid manually disposing, test
Easily the problem of error, while improving application deployment and testing efficiency, the reliability using deployment and test ensure that.
Fig. 6 is according to a kind of flow chart of embodiment five using dispositions method shown in an exemplary embodiment, such as Fig. 6
Shown, this method specifically includes the steps:
In step 501, receive management server send compiling after treat application deployment and with it is described treat deployment should
With corresponding test case;Wherein, it is described to treat that application deployment include source code and configuration file, it is included in the configuration file
The deployment catalogue for treating application deployment, the deployment catalogue include temp directory and formal catalogue.
In step 502, it will treat that application deployment and the test case are deposited into the temp directory after the compiling
Under.
In step 503, the test case is run under the temp directory to treating application deployment after the compiling
It is tested.
In step 504, if running the test case under the temp directory to treating that deployment should after the compiling
Passed through with test is carried out, then will treat that application deployment are deposited under the formal catalogue after the compiling, and deleted and be deposited into institute
It states and treats application deployment and the test case after the compiling in temp directory.
In the present embodiment, why temp directory be set and formal catalogue be based on the considerations of following, wherein, formal catalogue
It is the catalogues different from temp directory.
Due to being treated during application deployment are tested in testing results use-case, can generate many temporary files,
The garbage files such as system fragmentation, these garbage files can not only occupy the certain memory space of service server, after also resulting in
Running environment is not clean during the continuous use using commencement of commercial operation.Therefore, efficient when being used to ensure that subsequent application is formal can
It leans on, the mode of two catalogues of setting is employed in the present embodiment.
Specifically, first, each service server will treat that application deployment and test case are stored in temp directory,
In, the selection gist of the temp directory is the catalogue for selecting the operating system of service server that will disappear after restart, i.e., non-
Permanent catalogue.And then the test of application deployment is treated in service server testing results use-case completion under the temp directory, such as
Fruit test passes through, i.e., if basic environment test passes through, unit testing is also by this is treated that application deployment turn by service server
It is stored in formal catalogue, and then service server can be restarted, activation application can be used formally.The formal catalogue and interim mesh
Picture recording pair, is permanent catalogue.Also, service server deletion is deposited into temp directory and treats that application deployment and test are used
, so as to which the above-mentioned most of garbage files generated be deleted, running environment is clean when ensureing to apply commencement of commercial operation.
The application dispositions method that the disclosure provides is carried out from management server and the angle of service server respectively above
Explanation, with reference to Fig. 7, simply introduce the disclosure in a distributed system application deployment when, management server takes with business
The main interactive process of business device, wherein, in the present embodiment by taking management server includes code server and compiler server as an example
Explanation.
Fig. 7 be according to a kind of signaling interaction diagram using dispositions method shown in an exemplary embodiment, as shown in fig. 7,
The interactive process includes:
In step 601, code server is received using Disposition Instructions, this includes treating that deployment should using Disposition Instructions
With this treats that application deployment include source code and configuration file, and configuration file includes treating the deployment catalogue of application deployment.
In step 602, code server is obtained treats the corresponding test case of application deployment with this.
In step 603, compiler server is obtained from code server described treats application deployment and the test case.
In step 604, compiler server receives the compiling instruction of operator, and portion is treated according to the compiling compiling of instruction
Administration's application.
In step 605, compiler server will treat that application deployment and the test case are sent respectively to respectively after compiling
Service server.
In step 606, each service server will treat that application deployment and the test case are stored in deployment after compiling
In catalogue, and run the test case.
In conclusion management server carries deployment catalogue and treats application deployment and its corresponding test by obtaining
Use-case, and then this is treated that application deployment and test case are respectively issued to each service server so that each automatic portion of service server
It affixes one's name to this to apply under the deployment catalogue, ensure that this applies the deployment path in all service servers consistent;Moreover, pass through
It will be sent to each service server together using corresponding test case with this so that each service server is by the test case one
And be stored in above-mentioned deployment catalogue, each service server start automatically run the test case application is tested.It should be certainly
In dynamic deployment and test process, without manual intervention, avoid the problem that manually deployment, test easily error, improve using deployment
While with testing efficiency, the reliability using deployment and test ensure that.
The foregoing describe the realization processes of application dispositions method, which can be by the management server in distributed system
It realizes with service server, the built-in function of management server and service server and structure will be illustrated below.
Fig. 8 is the block diagram that management server embodiment one is disposed according to a kind of application shown in an exemplary embodiment, such as
Shown in Fig. 8, which includes:First receiving module 11, the first acquisition module 12, the second acquisition module 13, compiling mould
Block 14 and sending module 15.
First receiving module 11 is configured as receiving using Disposition Instructions.
First acquisition module 12 is configured as obtaining and treats application deployment, described to treat that application deployment include source code and match
File is put, the deployment catalogue for treating application deployment is included in the configuration file.
Second acquisition module 13 is configured as obtaining and treats the corresponding test case of application deployment with described.
Collector 14 is configured as treating that application deployment are compiled to described.
Sending module 15 is configured as to treat that application deployment and the test case are sent to each business service after compiling
Device, so that each service server will treat that application deployment and the test case are deposited into the deployment mesh after the compiling
Under record, and the test case is run to treating that application deployment are tested after the compiling.
Fig. 9 is the block diagram that management server embodiment two is disposed according to a kind of application shown in an exemplary embodiment, such as
It is described using further including the application for treating application deployment in Disposition Instructions on the basis of embodiment shown in Fig. 8 shown in Fig. 9
Mark, version number and description file.Second acquisition module 13 includes:First determination sub-module 131, the first acquisition submodule
132 and second acquisition submodule 133, wherein, second acquisition submodule 133 includes:Determination sub-module 1331, first obtains
1332 and second acquisition submodule 1333 of submodule.
First determination sub-module 131 is configured to determine whether to exist and treats the corresponding historical usage of application deployment with described,
The historical usage is that application identities are identical with the application identities for treating application deployment and version number treats that deployment should less than described
The application of version number.
First acquisition submodule 132, be configured as exist with it is described when application deployment corresponding historical usage when, obtain
Reassessment file corresponding with the historical usage, the Reassessment file are the description files of the historical usage.
Second acquisition submodule 133 is configured as according to the Reassessment file and the description for treating application deployment
File obtains and treats the corresponding test case of application deployment with described.
Wherein it is determined that submodule 1331, is configured as treating application deployment with described by comparing the Reassessment file
Description file, determine it is described treat it is different from each function module of the historical usage with the presence or absence of functions of modules in application deployment
Difference function module.
First acquisition submodule 1332, be configured as there is no during the difference function module, obtain the history should
The corresponding test case of application deployment is treated by the use of corresponding test case as with described.
Second acquisition submodule 1333 is configured as, there are during the difference function module, obtaining and the difference work(
The corresponding difference test case of energy module, and the corresponding test of the historical usage is updated according to the difference test case and is used
Example treats the corresponding test case of application deployment using the corresponding test case of updated historical usage as with described.
Figure 10 is the block diagram that management server embodiment three is disposed according to a kind of application shown in an exemplary embodiment, such as
Shown in Figure 10, on the basis of embodiment shown in Fig. 8, the management server further includes:Second receiving module 21 and certification mould
Block 22.
Second receiving module 21, be configured as the collector 14 to it is described treat that application deployment are compiled before, connect
It incorporates into own forces and translates instruction, the compiling instruction includes the authentication information of operator;
Authentication module 22 is configured as carrying out authentication to the operator according to the authentication information;
Certification by when, trigger the collector 13.
In conclusion the embodiment of the present disclosure provide application deployment management server, can realize treat application deployment and
Acquisition, storage, compiling and the distribution to each service server of its test case are disposed, and realize the system to application deployment process
One Automatic dispatching, without manually seriatim in each service server application deployment and to application test.Moreover, the pipe
Managing server, based on the application deployment stored, can treat that the differentiation of the test case of application deployment obtains in itself,
It further improves using deployment efficiency.
Figure 11 is the block diagram that service server embodiment one is disposed according to a kind of application shown in an exemplary embodiment, such as
Shown in Figure 11, which includes:Receiving module 31, memory module 32 and test module 33.
Receiving module 31 is configured as receiving and treats application deployment after the compiling that management server is sent and treated with described
The corresponding test case of application deployment;Wherein, it is described to treat that application deployment include source code and configuration file, the configuration file
In include the deployment catalogue for treating application deployment.
Memory module 32 is configured as to treat that application deployment and the test case are deposited into the portion after the compiling
It affixes one's name under catalogue.
Test module 33 is configured as running the test case to treating that application deployment are tested after the compiling.
Figure 12 is the block diagram that service server embodiment two is disposed according to a kind of application shown in an exemplary embodiment, such as
Shown in Figure 12, on the basis of embodiment illustrated in fig. 11, the deployment catalogue includes temp directory and formal catalogue, the storage
Module 32 includes:First sub-module stored 321 and the second sub-module stored 322.
First sub-module stored 321 is configured as to treat application deployment and test case deposit after the compiling
To under the temp directory.
The test module 33, after being configured as running the test case under the temp directory to the compiling
Treat that application deployment are tested.
Second sub-module stored 322 is configured as running the test case under the temp directory to the compiling
Afterwards when application deployment carry out test pass through when, will treat that application deployment are deposited under the formal catalogue after the compiling.
The service server further includes:Removing module 34.
Removing module 34, be configured as deleting after the compiling that is deposited into the temp directory treat application deployment and
The test case.
Wherein, the test case includes unit testing use-case and basic environment test case.
The test module 33 includes:First test submodule 331 and second tests submodule 332.
First test submodule 331, is configured as running the basic environment test case, and application deployment are treated to described
Basic running environment is tested.
Second test submodule 332, be configured as the basic environment testing case by when, run the list
First test case tests each function module for treating application deployment.
In conclusion each application deployment service server that the embodiment of the present disclosure provides, it can be based on management server
Unified distribution will treat that application deployment are automatically credited under corresponding deployment catalogue, and automatic running test case is completed to the application
Automatic test, improve using deployment efficiency.In addition, there is provided temp directory and formal catalogues, application deployment and survey will be treated
Example on probation is stored and is tested in temp directory, and then will test the application passed through and test case is deleted from temp directory
It removes, will treat application deployment unloading in formal catalogue, running environment is clean when being further ensured that service server operation application,
Improve application operation efficiency.
About the device in above-described embodiment, the concrete mode that wherein modules, submodule perform operation is having
It closes and is described in detail in the embodiment of this method, explanation will be not set forth in detail herein.
The foregoing describe application deployment management server built-in function and structure, as shown in figure 13, in practice, the management
Server can be realized:
Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, the processor is configured as:
It receiving using Disposition Instructions, application deployment are treated in acquisition, described to treat that application deployment include source code and configuration file,
The deployment catalogue for treating application deployment is included in the configuration file;
It obtains and treats the corresponding test case of application deployment with described;Treat that application deployment are compiled to described;
It will treat that application deployment and the test case are sent to each service server after compiling, so that each business clothes
Business device will treat that application deployment and the test case are deposited under the deployment catalogue, and run the test after the compiling
Use-case after the compiling to treating that application deployment are tested.
The foregoing describe application deployment service server built-in function and structure, as shown in figure 14, in practice, the management
Server can be realized:
Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, the processor is configured as:
It receives and treats application deployment after the compiling that management server is sent and treat the corresponding test of application deployment with described
Use-case;Wherein, it is described to treat that application deployment include source code and configuration file, treat that deployment should comprising described in the configuration file
Deployment catalogue;
It will treat that application deployment and the test case are deposited under the deployment catalogue after the compiling;
The test case is run to treating that application deployment are tested after the compiling.
Figure 15 is the block diagram according to a kind of application deployment management server 1500 shown in an exemplary embodiment.With reference to figure
15, which includes processing component 1522, further comprises one or processor and by memory 1532
Representative memory resource, can be by the instruction of the execution of processing component 1522, such as application program for storing.Memory
The application program stored in 1532 can include it is one or more each correspond to the module of one group of instruction.In addition,
Processing component 1522 is configured as execute instruction, to perform the above method:
It receiving using Disposition Instructions, application deployment are treated in acquisition, described to treat that application deployment include source code and configuration file,
The deployment catalogue for treating application deployment is included in the configuration file;
It obtains and treats the corresponding test case of application deployment with described;Treat that application deployment are compiled to described;
It will treat that application deployment and the test case are sent to each service server after compiling, so that each business clothes
Business device will treat that application deployment and the test case are deposited under the deployment catalogue, and run the test after the compiling
Use-case after the compiling to treating that application deployment are tested.
Management server 1500 can also include a power supply module 1526 and be configured as performing management server 1500
Power management, a wired or wireless network interface 1550 are configured as management server 1500 being connected to network and one
Input and output (I/O) interface 1558.Management server 1500 can be operated based on the operating system for being stored in memory 1532, example
Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Figure 16 is the block diagram according to a kind of application deployment service server 1600 shown in an exemplary embodiment.With reference to figure
16, which includes processing component 1622, further comprises one or processor and by memory 1632
Representative memory resource, can be by the instruction of the execution of processing component 1622, such as application program for storing.Memory
The application program stored in 1632 can include it is one or more each correspond to the module of one group of instruction.In addition,
Processing component 1622 is configured as execute instruction, to perform the above method:
It receives and treats application deployment after the compiling that management server is sent and treat the corresponding test of application deployment with described
Use-case;Wherein, it is described to treat that application deployment include source code and configuration file, treat that deployment should comprising described in the configuration file
Deployment catalogue;
It will treat that application deployment and the test case are deposited under the deployment catalogue after the compiling;
The test case is run to treating that application deployment are tested after the compiling.
Management server 1600 can also include a power supply module 1626 and be configured as performing management server 1600
Power management, a wired or wireless network interface 1650 are configured as management server 1600 being connected to network and one
Input and output (I/O) interface 1658.Management server 1600 can be operated based on the operating system for being stored in memory 1632, example
Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as illustratively, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.
Claims (20)
1. a kind of apply dispositions method, which is characterized in that applied to the management server in distributed system, the distributed system
N number of service server is further included in system, N is the integer more than 1, the method includes:
It receives using Disposition Instructions, application deployment are treated in acquisition, described to treat that application deployment include source code and configuration file, described
The deployment catalogue for treating application deployment is included in configuration file;
It obtains and treats the corresponding test case of application deployment with described;Treat that application deployment are compiled to described;
It will treat that application deployment and the test case are sent to each service server after compiling, so that each service server
It will treat that application deployment and the test case are deposited under the deployment catalogue, and run the test case after the compiling
To treating that application deployment are tested after the compiling.
2. according to the method described in claim 1, it is characterized in that, it is described application Disposition Instructions include described in treat application deployment
Application identities, version number and description file;
The acquisition treats the corresponding test case of application deployment with described, including:
It determines whether there is and treats the corresponding historical usage of application deployment with described, the historical usage is that application identities are treated with described
The application identities of application deployment are identical and version number less than the version number for treating application deployment application;
If treating the corresponding historical usage of application deployment in the presence of with described, it is literary to obtain Reassessment corresponding with the historical usage
Part, the Reassessment file are the description files of the historical usage;
According to the Reassessment file and the description file for treating application deployment, obtain and treat that application deployment are corresponding with described
Test case.
3. according to the method described in claim 2, it is characterized in that, described wait to dispose according to the Reassessment file with described
The description file of application obtains and treats the corresponding test case of application deployment with described, including:
By comparing the Reassessment file and the description file for treating application deployment, determine it is described treat be in application deployment
The no difference function module different from each function module of the historical usage there are functions of modules;
If there is no the difference function modules, obtain the corresponding test case of the historical usage and wait to dispose as with described
Using corresponding test case;
If there are the difference function module, acquisition difference test case corresponding with the difference function module, and according to
The difference test case updates the corresponding test case of the historical usage, and the corresponding test of updated historical usage is used
Example treats the corresponding test case of application deployment as with described.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
It is described to it is described treat that application deployment are compiled before, receive compiling instruction, it is described compiling instruction includes operator's
Authentication information;
Authentication is carried out to the operator according to the authentication information, if certification passes through, performs and described treats portion to described
The step of administration's application is compiled.
5. a kind of apply dispositions method, which is characterized in that applied to the service server in distributed system, the distributed system
System includes N number of service server and a management server, and N is the integer more than 1, the method includes:
It receives and treats application deployment after the compiling that management server is sent and treat the corresponding test case of application deployment with described;
Wherein, it is described to treat that application deployment include source code and configuration file, in the configuration file application deployment are treated comprising described in
Dispose catalogue;
It will treat that application deployment and the test case are deposited under the deployment catalogue after the compiling;
The test case is run to treating that application deployment are tested after the compiling.
6. according to the method described in claim 5, it is characterized in that, the deployment catalogue includes temp directory and formal catalogue;
It is described to treat that application deployment and the test case are deposited under the deployment catalogue after the compiling, including:
It will treat that application deployment and the test case are deposited under the temp directory after the compiling;
It is described to run the test case to treating that application deployment are tested after the compiling, including:
The test case is run under the temp directory to treating that application deployment are tested after the compiling.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
If running the test case under the temp directory to treating that application deployment carry out test and pass through after the compiling,
To treat that application deployment are deposited under the formal catalogue after the compiling, and delete be deposited into it is described in the temp directory
Application deployment and the test case are treated after compiling.
8. method according to any one of claims 5 to 7, which is characterized in that the test case includes unit testing
Use-case and basic environment test case.
9. according to the method described in claim 8, it is characterized in that, the operation test case after the compiling to treating
Application deployment are tested, including:
The basic environment test case is run, the basic running environment for treating application deployment is tested;
If the basic environment testing case passes through, the unit testing use-case is run, application deployment are treated to described
Each function module is tested.
10. management server is disposed in a kind of application, which is characterized in that applied to distributed system, the distributed system is also wrapped
N number of service server is included, N is the integer more than 1, and the management server includes:
First receiving module is configured as receiving using Disposition Instructions;
First acquisition module is configured as obtaining and treats application deployment, described to treat that application deployment include source code and configuration file,
The deployment catalogue for treating application deployment is included in the configuration file;
Second acquisition module is configured as obtaining and treats the corresponding test case of application deployment with described;
Collector is configured as treating that application deployment are compiled to described;
Sending module is configured as to treat that application deployment and the test case are sent to each service server after compiling, with
Make each service server that will treat that application deployment and the test case are deposited under the deployment catalogue after the compiling,
And the test case is run to treating that application deployment are tested after the compiling.
11. management server according to claim 10, which is characterized in that the application Disposition Instructions include described treat
Application identities, version number and the description file of application deployment;
Second acquisition module includes:
First determination sub-module is configured to determine whether to exist and treats the corresponding historical usage of application deployment with described, described to go through
History application is that application identities are identical with the application identities for treating application deployment and version number is less than the version for treating application deployment
The application of this number;
First acquisition submodule, be configured as exist with it is described when application deployment corresponding historical usage when, obtain with it is described
The corresponding Reassessment file of historical usage, the Reassessment file are the description files of the historical usage;
Second acquisition submodule is configured as, according to the Reassessment file and the description file for treating application deployment, obtaining
It takes and treats the corresponding test case of application deployment with described.
12. management server according to claim 11, which is characterized in that second acquisition submodule includes:
Determination sub-module is configured as the Reassessment file by comparing and the description file for treating application deployment, really
It is treated described in fixed in application deployment with the presence or absence of the difference function mould that functions of modules is different from each function module of the historical usage
Block;
First acquisition submodule is configured as, there is no during the difference function module, it is corresponding obtaining the historical usage
Test case treats the corresponding test case of application deployment as with described;
Second acquisition submodule is configured as, there are during the difference function module, obtaining and the difference function module pair
The difference test case answered, and the corresponding test case of the historical usage is updated according to the difference test case, it will update
The corresponding test case of historical usage afterwards treats the corresponding test case of application deployment as with described.
13. management server according to claim 10, which is characterized in that the management server further includes:
Second receiving module, be configured as the collector to it is described treat that application deployment are compiled before, receive compiling refers to
It enables, the compiling instruction includes the authentication information of operator;
Authentication module is configured as carrying out authentication to the operator according to the authentication information;Certification by when, touch
Send out collector described.
14. service server is disposed in a kind of application, which is characterized in that applied to distributed system, the distributed system includes N
A service server and a management server, N are the integer more than 1, and the service server includes:
Receiving module, be configured as receive management server send compiling after treat application deployment and with it is described treat deployment should
With corresponding test case;Wherein, it is described to treat that application deployment include source code and configuration file, it is included in the configuration file
The deployment catalogue for treating application deployment;
Memory module is configured as to treat that application deployment and the test case are deposited into the deployment catalogue after the compiling
Under;
Test module is configured as running the test case to treating that application deployment are tested after the compiling.
15. service server according to claim 14, which is characterized in that the deployment catalogue is including temp directory and just
Formula catalogue;
The memory module includes:
First sub-module stored is configured as to treat that application deployment and the test case are deposited into described face after the compiling
When catalogue under;
The test module is configured as running the test case under the temp directory to waiting to dispose after the compiling
Using being tested.
16. service server according to claim 15, which is characterized in that the memory module further includes:
Second sub-module stored is configured as running the test case under the temp directory to treating portion after the compiling
Administration's application carries out test when passing through, and will treat that application deployment are deposited under the formal catalogue after the compiling;
The service server further includes:
Removing module is configured as treating application deployment and the survey after the compiling that deletion is deposited into the temp directory
Example on probation.
17. the service server according to any one of claim 14 to 16, which is characterized in that the test case includes
Unit testing use-case and basic environment test case.
18. service server according to claim 17, which is characterized in that the test module includes:
First test submodule, is configured as running the basic environment test case, and the basis for treating application deployment is transported
Row environment is tested;
Second test submodule, be configured as the basic environment testing case by when, run the unit testing
Use-case tests each function module for treating application deployment.
19. management server is disposed in a kind of application, which is characterized in that applied to distributed system, the distributed system is also wrapped
N number of service server is included, N is the integer more than 1, including:
Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, the processor is configured as:
It receives using Disposition Instructions, application deployment are treated in acquisition, described to treat that application deployment include source code and configuration file, described
The deployment catalogue for treating application deployment is included in configuration file;
It obtains and treats the corresponding test case of application deployment with described;Treat that application deployment are compiled to described;
It will treat that application deployment and the test case are sent to each service server after compiling, so that each service server
It will treat that application deployment and the test case are deposited under the deployment catalogue, and run the test case after the compiling
To treating that application deployment are tested after the compiling.
20. service server is disposed in a kind of application, which is characterized in that applied to distributed system, the distributed system includes N
A service server and a management server, N are the integer more than 1, including:
Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, the processor is configured as:
It receives and treats application deployment after the compiling that management server is sent and treat the corresponding test case of application deployment with described;
Wherein, it is described to treat that application deployment include source code and configuration file, in the configuration file application deployment are treated comprising described in
Dispose catalogue;
It will treat that application deployment and the test case are deposited under the deployment catalogue after the compiling;
The test case is run to treating that application deployment are tested after the compiling.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510353829.4A CN104978191B (en) | 2015-06-24 | 2015-06-24 | Using dispositions method and service device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510353829.4A CN104978191B (en) | 2015-06-24 | 2015-06-24 | Using dispositions method and service device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104978191A CN104978191A (en) | 2015-10-14 |
CN104978191B true CN104978191B (en) | 2018-06-19 |
Family
ID=54274729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510353829.4A Active CN104978191B (en) | 2015-06-24 | 2015-06-24 | Using dispositions method and service device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104978191B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106528404B (en) * | 2016-09-30 | 2019-03-29 | 腾讯科技(深圳)有限公司 | Mobile applications test method and device |
CN107943486B (en) * | 2017-12-19 | 2020-12-18 | 北京微网通联股份有限公司 | Multi-language code compiling method, multi-language code distributing method, multi-language code compiling device, multi-language code distributing device and multi-language code system |
CN108228452B (en) * | 2017-12-28 | 2021-04-06 | 微梦创科网络科技(中国)有限公司 | Test method and test device based on simple factory mode |
CN110392080B (en) * | 2018-04-20 | 2023-06-06 | 杭州海康威视***技术有限公司 | Deployment method and device based on distributed system and distributed system |
CN108959086B (en) * | 2018-06-29 | 2023-02-03 | 北京金山数字娱乐科技有限公司 | Program package testing deployment method, device, system, electronic equipment and storage medium |
CN109120432B (en) * | 2018-07-18 | 2021-10-15 | 北京奇艺世纪科技有限公司 | Fault server positioning method and device |
CN109032643A (en) * | 2018-07-26 | 2018-12-18 | 北京百度网讯科技有限公司 | The method and apparatus of software upgrading |
CN109614109B (en) * | 2018-11-16 | 2022-02-01 | 中国银行股份有限公司 | Application deployment method, device and system |
CN109885476A (en) * | 2018-12-14 | 2019-06-14 | 平安万家医疗投资管理有限责任公司 | Automated testing method and device, terminal and computer readable storage medium |
CN109858226A (en) * | 2019-01-31 | 2019-06-07 | 叶春林 | The safeguards system of networking storage safety |
CN109814874B (en) * | 2019-02-20 | 2023-03-24 | 湖南国科微电子股份有限公司 | Compilation result output control method, system and application |
US10908892B2 (en) | 2019-03-12 | 2021-02-02 | International Business Machines Corporation | Generating and deploying object code files compiled on build machines |
CN111124934A (en) * | 2019-12-31 | 2020-05-08 | 中国银行股份有限公司 | JAVA application deployment state detection method and device |
CN111242577A (en) * | 2020-01-13 | 2020-06-05 | 中国建设银行股份有限公司 | RPA process automation robot deployment method and device and electronic equipment |
CN111414172B (en) * | 2020-03-18 | 2023-03-31 | 时时同云科技(成都)有限责任公司 | Automatic deployment and release system and method for application software |
CN114924755A (en) * | 2022-05-23 | 2022-08-19 | 深圳微言科技有限责任公司 | Application deployment method and system |
CN116541308B (en) * | 2023-07-03 | 2023-10-24 | 芯耀辉科技有限公司 | Regression testing method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101420325A (en) * | 2008-11-21 | 2009-04-29 | 华为技术有限公司 | Automatic deployment method, apparatus and system for software package |
CN103198010A (en) * | 2012-01-06 | 2013-07-10 | 腾讯科技(深圳)有限公司 | Software testing method, device and system |
CN103581247A (en) * | 2012-07-30 | 2014-02-12 | 杭州洱海科技有限公司 | Method for testing distributed type Web based on cloud computing environment |
CN104391795A (en) * | 2014-12-03 | 2015-03-04 | 北京京东尚科信息技术有限公司 | Method and system for automatically testing coverage rate in distributed system |
CN104598382A (en) * | 2015-01-30 | 2015-05-06 | 北京京东尚科信息技术有限公司 | Test control method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050289536A1 (en) * | 2004-06-23 | 2005-12-29 | International Business Machines Coporation | Automated deployment of an application |
-
2015
- 2015-06-24 CN CN201510353829.4A patent/CN104978191B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101420325A (en) * | 2008-11-21 | 2009-04-29 | 华为技术有限公司 | Automatic deployment method, apparatus and system for software package |
CN103198010A (en) * | 2012-01-06 | 2013-07-10 | 腾讯科技(深圳)有限公司 | Software testing method, device and system |
CN103581247A (en) * | 2012-07-30 | 2014-02-12 | 杭州洱海科技有限公司 | Method for testing distributed type Web based on cloud computing environment |
CN104391795A (en) * | 2014-12-03 | 2015-03-04 | 北京京东尚科信息技术有限公司 | Method and system for automatically testing coverage rate in distributed system |
CN104598382A (en) * | 2015-01-30 | 2015-05-06 | 北京京东尚科信息技术有限公司 | Test control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104978191A (en) | 2015-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978191B (en) | Using dispositions method and service device | |
US9588752B2 (en) | Performing unattended software installation | |
CN102413022B (en) | Application debugging method and system | |
CN109492053B (en) | Method and device for accessing data | |
US9658846B2 (en) | Software configuration control wherein containers are associated with physical storage of software application versions in a software production landscape | |
CN109460358B (en) | Configuration management method and system based on Cmdb | |
WO2020015191A1 (en) | Business rule releasing and managing method, electronic device and readable storage medium | |
CN113434158B (en) | Custom management method, device, equipment and medium for big data component | |
CN110865824A (en) | Android permeation method and device for realizing silence installation based on barrier-free service | |
CN101290581A (en) | Compiling system and method | |
CN111881042A (en) | Automatic test script generation method and device and electronic equipment | |
CN111966738A (en) | System for automatically realizing back-end programming by selecting front-end configuration | |
KR102352265B1 (en) | System and method for providing web application development platform | |
CN108897588B (en) | Routing method and routing device for communication between modules | |
CN105550342B (en) | A kind of data processing method of the distributed data base of all-transparent | |
US20110307855A1 (en) | Software project management apparatuses and methods thereof | |
CN110825370B (en) | Mobile terminal application development method, device and system | |
CN110187890A (en) | The method of project deployment, electronic equipment, storage medium | |
CN105610908B (en) | A kind of samba service implementing method and system based on Android device | |
CN109144595A (en) | Method and device based on card cage starting component | |
CN116739397B (en) | Dynamic management method for new energy indexes | |
CN108536449A (en) | Web projects dispositions method and device | |
CN116578651B (en) | Data table structure synchronization method, system and equipment | |
CN116431308A (en) | Multi-algorithm scheduling method, device, equipment and storage medium | |
CN117724741A (en) | Method and device for updating Mapper configuration file and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |