CN104978191A - Application deployment method and server - Google Patents

Application deployment method and server Download PDF

Info

Publication number
CN104978191A
CN104978191A CN201510353829.4A CN201510353829A CN104978191A CN 104978191 A CN104978191 A CN 104978191A CN 201510353829 A CN201510353829 A CN 201510353829A CN 104978191 A CN104978191 A CN 104978191A
Authority
CN
China
Prior art keywords
application deployment
test case
deployment
treat
application
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
Application number
CN201510353829.4A
Other languages
Chinese (zh)
Other versions
CN104978191B (en
Inventor
沈建荣
谭国斌
窦锦帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510353829.4A priority Critical patent/CN104978191B/en
Publication of CN104978191A publication Critical patent/CN104978191A/en
Application granted granted Critical
Publication of CN104978191B publication Critical patent/CN104978191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to an application deployment method and a server. The method comprises the steps of: receiving an application deployment instruction, and obtaining a to-be-deployed application, wherein the to-be-deployed application comprises a source code and a configuration file, and the configuration file comprises a deployment directory of the to-be-deployed application; obtaining a test case corresponding to the to-be-deployed application; and compiling the to-be-deployed application, sending the compiled to-be-deployed application and the test case to each business server for storing the compiled to-be-deployed application and the test case in the deployment directory, and running the test case for testing the compiled to-be-deployed application. In automatic deployment and test processes, manual intervention is not required, so that the problem of easiness for causing errors in manual deployment and test is avoided, and the reliability of application deployment and test is ensured while the efficiency of application deployment and test is improved.

Description

Application deployment method and server
Technical field
The disclosure relates to communication technical field, particularly relates to a kind of application deployment method and server.
Background technology
Along with distributed system is in the widespread use of different industries, in areas of information technology, in order to ensure robustness, the stability of system works, service provider generally can by provide certain to serve application deployment in a distributed system, use for users.Wherein, multiple stage is often included in distributed system for disposing the server of one or more application.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of application deployment method and server, in order to realize application automatic deployment in a distributed system, test, to improve application deployment, testing efficiency and reliability.
According to the first aspect of disclosure embodiment, a kind of application deployment method is provided, comprises:
Receive application deployment instruction, obtain and treat application deployment, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
Obtain and treat with described the test case that application deployment are corresponding; Treat that application deployment compile to described;
By compiling after treat that application deployment and described test case send to each service server, with make described each service server by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, and run described test case to treating that application deployment are tested after described compiling.
Wherein, described application deployment instruction comprise described in treat the application identities of application deployment, version number and description document; Described acquisition treats with described the test case that application deployment are corresponding, comprising:
Determine whether there is and treat with described the historical usage that application deployment are corresponding, with described, to be application identities treat that the identical and version number of the application identities of application deployment is lower than the described application treating the version number of application deployment to described historical usage;
If exist and treat with described the historical usage that application deployment are corresponding, then obtain the Reassessment file corresponding with described historical usage, described Reassessment file is the description document of described historical usage;
According to described Reassessment file and the described description document treating application deployment, obtain and treat with described the test case that application deployment are corresponding.
Specifically, described according to described Reassessment file and the described description document treating application deployment, obtain and treat with described the test case that application deployment are corresponding, comprising:
By more described Reassessment file and the described description document treating application deployment, described in determining, treat in application deployment, whether to there is the functions of modules difference function module different from each functional module of described historical usage;
If there is not described difference function module, then obtain test case corresponding to described historical usage and treat as with described the test case that application deployment are corresponding;
If there is described difference function module, then obtain the difference test case corresponding with described difference function module, and upgrade test case corresponding to described historical usage according to described difference test case, test case corresponding for the historical usage after upgrading is treated as with described the test case that application deployment are corresponding.
Further, described method also comprises:
Described to described treat that application deployment compile before, receive compiler directive, described compiler directive comprises the authentication information of operator;
According to described authentication information, authentication is carried out to described operator, if certification is passed through, then perform and describedly treat to described the step that application deployment compile.
According to the second aspect of disclosure embodiment, another kind of application deployment method is provided, comprises:
Treating application deployment and treating with described the test case that application deployment are corresponding after the compiling that receiving management server sends; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file.
By after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under.
Run described test case to treating that application deployment are tested after described compiling.
Wherein, described deployment catalogue comprises temp directory and formal catalogue; Described by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, comprising:
By after described compiling treat that application deployment and described test case are deposited into described temp directory under.
The described test case of described operation, to treating that application deployment are tested after described compiling, comprising:
Described test case is run to treating that application deployment are tested after described compiling under described temp directory.
Further, described method also comprises:
If run described test case to treating that application deployment are carried out test and passed through after described compiling under described temp directory, then by after described compiling treat that application deployment are deposited into described formal catalogue under, and delete and treat application deployment and described test case after the described compiling being deposited in described temp directory.
Wherein, described test case comprises unit testing use-case and basic environment test case.
Specifically, the described test case of described operation, to treating that application deployment are tested after described compiling, comprising:
Run described basic environment test case, treat that the basic running environment of application deployment is tested to described.
If described basic environment testing case passes through, then run described unit testing use-case, treat that each functional module of application deployment is tested to described.
According to the third aspect of disclosure embodiment, a kind of application deployment management server is provided, comprises:
First receiver module, is configured to receive application deployment instruction.
First acquisition module, is configured to acquisition and treats application deployment, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file.
Second acquisition module, is configured to obtain and treats with described the test case that application deployment are corresponding.
Collector, is configured to treat that application deployment compile to described.
Sending module, be configured to by compiling after treat that application deployment and described test case send to each service server, with make described each service server by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, and run described test case to treating that application deployment are tested after described compiling.
Wherein, described application deployment instruction comprise described in treat the application identities of application deployment, version number and description document.
Described second acquisition module comprises:
First determines submodule, be configured to determine whether there is and treat with described the historical usage that application deployment are corresponding, with described, to be application identities treat that the identical and version number of the application identities of application deployment is lower than the described application treating the version number of application deployment to described historical usage.
First obtain submodule, be configured to exist with described until the historical usage that application deployment are corresponding time, obtain the Reassessment file corresponding with described historical usage, described Reassessment file is the description document of described historical usage.
Second obtains submodule, is configured to according to described Reassessment file and the described description document treating application deployment, obtains and treats with described the test case that application deployment are corresponding.
Particularly, described second acquisition submodule comprises:
Determine submodule, be configured to, by more described Reassessment file and the described description document treating application deployment, described in determining, treat in application deployment, whether to there is the functions of modules difference function module different from each functional module of described historical usage.
First obtains submodule, being configured to when there is not described difference function module, obtaining test case corresponding to described historical usage and treating as with described the test case that application deployment are corresponding.
Second obtains submodule, be configured to when there is described difference function module, obtain the difference test case corresponding with described difference function module, and upgrade test case corresponding to described historical usage according to described difference test case, test case corresponding for the historical usage after upgrading is treated as with described the test case that application deployment are corresponding.
Further, described management server also comprises:
Second receiver module, be configured to described collector to described treat that application deployment compile before, receive compiler directive, described compiler directive comprises the authentication information of operator.
Authentication module, is configured to carry out authentication according to described authentication information to described operator; When certification is passed through, trigger described collector.
According to the fourth aspect of disclosure embodiment, a kind of application deployment service server is provided, comprises:
Receiver module, is configured to treating application deployment and treating with described the test case that application deployment are corresponding after the compiling of receiving management server transmission; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file.
Memory module, be configured to after by described compiling treat that application deployment and described test case are deposited into described deployment catalogue under.
Test module, is configured to run described test case to treating that application deployment are tested after described compiling.
Wherein, described deployment catalogue comprises temp directory and formal catalogue; Described memory module comprises:
First sub module stored, be configured to after by described compiling treat that application deployment and described test case are deposited into described temp directory under.
Described test module, is configured to run described test case under described temp directory to treating that application deployment are tested after described compiling.
Further, described memory module also comprises:
Second sub module stored, be configured to run under described temp directory described test case to after described compiling until application deployment test by time, by after described compiling treat that application deployment are deposited into described formal catalogue under.
Described service server also comprises:
Removing module, is configured to delete and treats application deployment and described test case after the described compiling be deposited in described temp directory.
Wherein, described test case comprises unit testing use-case and basic environment test case.
Wherein, described test module comprises:
First test submodule, is configured to run described basic environment test case, treats that the basic running environment of application deployment is tested to described.
Second test submodule, be configured to described basic environment testing case by time, run described unit testing use-case, treat that each functional module of application deployment is tested to described.
According to the 5th aspect of disclosure embodiment, another kind of application deployment management server is provided, comprises:
Processor;
Be configured to the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive application deployment instruction, obtain and treat application deployment, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
Obtain and treat with described the test case that application deployment are corresponding; Treat that application deployment compile to described;
By compiling after treat that application deployment and described test case send to each service server, with make described each service server by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, and run described test case to treating that application deployment are tested after described compiling.
According to the 6th aspect of disclosure embodiment, another kind of application deployment service server is provided, comprises:
Processor;
Be configured to the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Treating application deployment and treating with described the test case that application deployment are corresponding after the compiling that receiving management server sends; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
By after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under;
Run described test case to treating that application deployment are tested after described compiling.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
By arranging the deployment catalogue in each service server of this application deployment in distributed system in the configuration file of application, under making each service server automatic deployment this being applied in this deployment catalogue, ensure that the deployment path that this is applied in all service servers is consistent; And, by obtaining the test case corresponding with this application, and test case is also sent to each service server, make each service server by this test case and this application in the lump stored in above-mentioned deployment catalogue, this test case of the automatic startup optimization of each service server is tested this application.In this automatic deployment and test process, without the need to manual intervention, avoid artificial deployment, test the problem of easily makeing mistakes, while improving application deployment and testing efficiency, ensure that the reliability of application deployment and test.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the application scenarios schematic diagram shown in the disclosure one exemplary embodiment;
Fig. 2 is the process flow diagram of a kind of application deployment embodiment of the method one according to an exemplary embodiment;
Fig. 3 is the process flow diagram of a kind of application deployment embodiment of the method two according to an exemplary embodiment;
Fig. 4 is the process flow diagram of the embodiment three of a kind of application deployment method according to an exemplary embodiment;
Fig. 5 is the process flow diagram of the embodiment four of a kind of application deployment method according to an exemplary embodiment;
Fig. 6 is the process flow diagram of the embodiment five of a kind of application deployment method according to an exemplary embodiment;
Fig. 7 is the Signalling exchange figure of a kind of application deployment method according to an exemplary embodiment;
Fig. 8 is the block diagram of a kind of application deployment management server embodiment one according to an exemplary embodiment;
Fig. 9 is the block diagram of a kind of application deployment management server embodiment two according to an exemplary embodiment;
Figure 10 is the block diagram of a kind of application deployment management server embodiment three according to an exemplary embodiment;
Figure 11 is the block diagram of a kind of application deployment service server embodiment one according to an exemplary embodiment;
Figure 12 is the block diagram of a kind of application deployment service server embodiment two according to an exemplary embodiment;
Figure 13 is the block diagram of a kind of application deployment management server according to an exemplary embodiment;
Figure 14 is the block diagram of a kind of application deployment service server according to an exemplary embodiment;
Figure 15 is the block diagram of a kind of application deployment management server according to an exemplary embodiment;
Figure 16 is the block diagram of a kind of application deployment service server according to an exemplary embodiment.
By above-mentioned accompanying drawing, illustrate the embodiment that the disclosure is clear and definite more detailed description will be had hereinafter.These accompanying drawings and text description be not in order to limited by any mode the disclosure design scope, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
First, first introduce each embodiment of the disclosure the application scenarios that is suitable for.
Fig. 1 is the application scenarios schematic diagram shown in the disclosure one exemplary embodiment, and as shown in Figure 1, the application deployment method that each embodiment of the disclosure improves is the application distribution deployment scenario be applicable in distributed system.This distributed system comprises N number of service server as shown in Figure 1 and a management server, wherein N be greater than 1 integer.Wherein, this management server functionally can be split as two independently servers, is respectively code server and compiler server.These two servers can independently be arranged, and also integratedly can be set together and form above-mentioned management server.Because the application deployment method impact of specific implementation form on disclosure embodiment of this management server is little, therefore, in following embodiment except middle special instruction embodiment illustrated in fig. 2, all describe with the form of management server entirety, specifically do not divide into code server and compiler server.
Below in conjunction with each specific embodiment, disclosure application deployment method is described in detail.
Fig. 2 is the process flow diagram of a kind of application deployment embodiment of the method one according to an exemplary embodiment, as shown in Figure 2, the application deployment method that the present embodiment relates to can as shown in Figure 1 in management server perform.Concrete, this application deployment method comprises the following steps:
In step S101, receive application deployment instruction, obtain and treat application deployment, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file.
In step s 102, acquisition treats with described the test case that application deployment are corresponding.
In step s 103, treat that application deployment compile to described.
In step S104, by compiling after treat that application deployment and described test case send to each service server, with make described each service server by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, and run described test case to treating that application deployment are tested after described compiling.
At present, each application service provider always constantly weeds out the old and bring forth the new various network application, such as current micro-letter for people's instant messaging, forum, microblogging etc.After the developer of application completes the exploitation of related application, need, by the service server of this application deployment in above-mentioned distributed system, to access use to be supplied to users.
Specifically, the application of having developed can be sent in the management server in distributed system by application developer.
In the present embodiment, comprise the code server shown in Fig. 1 with management server and compiler server carries out careful explanation to the course of work of management server.But be understandable that, this management server also can the function of integrated above-mentioned two servers, performs the course of work in the present embodiment as unique entirety.
Before specifically introducing the present embodiment, first, what deserves to be explained is not there is between above-mentioned steps S102 and step S103 strict sequential qualified relation, namely both first can obtain test case, treat application deployment afterwards again and compile; Also can first treat application deployment to compile, then obtain test case; Can also acquisition test case while, treat application deployment and compile, now respectively by above-mentioned management server two processes or perform different operations by above-mentioned code server and compiler server respectively.
Specifically, in the present embodiment, code server may be used for receive application developer send application deployment instruction, this application deployment instruction comprise developed treat application deployment.Therefore, code server receive and store application developer send treat application deployment.After operation maintenance personnel logs in compiler server, by carrying out alternately with code server, namely the application that can obtain current needs deployment from code server treats application deployment.
In the present embodiment, this treats, in application deployment except the source code including this application, also to comprise the configuration file of this application.
Wherein, comprise application program in the configuration file of application specifically to arrange.This file comprises configuration setting (as procedure set binding strategy, teleprocessing object etc.) that CLR reads, and the setting that application program can read.
In the present embodiment, include this in this configuration file and treat the deployment catalogue of application deployment in each service server, this deployment catalogue can preset.
As previously mentioned, can normally run after deployment to ensure to be applied in each service server, thus provide corresponding service for users, need to test this application in advance, such as need to carry out the test of service server basic environment, unit testing etc. to this application.
Wherein, unit testing (unit testing): refer to and the most I test cell in software is checked and verified.For the implication of unit in unit testing, in C language, unit refers to a function, and in Java, unit refers to a class, can refer to a window or a menu etc. in patterned software.Generally speaking, unit is exactly the minimum tested functional module of artificial regulation.Wherein, due to this application on stream, be likely and develop based on some common component, some third party's assembly or some framework.In order to make this application normally can run use, need each service server disposing this application can support these common components, third party's assembly, framework, namely each service server needs to provide this application necessary basic environment.Therefore, need whether to provide these basic environments to test to each service server.
In order to realize the automatic test to this application, in the present embodiment, management server, specifically above-mentioned code server needs first to obtain the test case corresponding with this application, wherein, this test case just comprises the unit testing use-case for carrying out unit testing, and the basic environment test case for testing the basic running environment of 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 exceeds the generative process describing this test case.And in practice, test case is generally write in advance by special application testing personnel to have designed.Therefore, in the present embodiment, suppose that carrying out design with the test case of application above-mentioned to be disposed completes and be stored in a such as test case data storehouse, then code server can be inquired about and obtain the test case corresponding with this application.Such as code server passes through with the test case of the identification information of this application for index match query in test case data storehouse.Accordingly, be understandable that, application developer, except this being treated application deployment and sends to code server, also carries the identification information of this application, the title etc. of such as this application.
Thus, after code server obtains test case corresponding to the application to be disposed with this, this is treated application deployment and this test case association store.
In the application deployment process of reality, need first application to be disposed to be compiled, compile by the rear process just carrying out disposing in each service server.Therefore, when management server represents with the entirety of alone, management server, after receiving operation maintenance personnel and treating the compiler directive of application deployment for this, carries out the compilation process of this application.Wherein, compiling refers to that the source program (source code) utilizing program compiler to write from source language produces the process of target program.
When management server represents with above-mentioned code server and compiler server, compiler server need obtain the test case that this treats application deployment and correspondence from code server, and then carries out process of compilation to this application.Concrete, this code server after acquisition treats with this test case that application deployment are corresponding, can trigger and sends this application and this test case to compiler server automatically; Or, compiler server periodically can send inquiry request to code server, to inquire about in code server the application whether existing and need to dispose, if had, then this code server feeds back to the test case that compiler server treats application deployment and correspondence accordingly.
If this treats application deployment, compiling is passed through, then the application after this compiling and corresponding test case are sent to each service server by this compiler server, under the application received and test case are stored in the deployment catalogue described in the configuration file of this application by each service server, thus, under this application and test case are all deployed in identical catalogue by each service server automatically, and this test case of startup optimization is to complete the test that can normally run this application.If test is passed through, then dispose, otherwise fed back to compiler server alarm prompt, to make operation maintenance personnel, detection has been carried out to the service server that test is abnormal and safeguard.
In the present embodiment, by arranging the deployment catalogue of this application deployment in each service server of distributed formula system in the configuration file of application, under making each service server automatic deployment this being applied in this deployment catalogue, ensure that the deployment path that this is applied in all service servers is consistent; And, after obtaining the test case corresponding with this application, test case is also sent to each service server, make each service server by this test case and this application in the lump stored in above-mentioned deployment catalogue, this test case of the automatic startup optimization of each service server is tested this application.In this automatic deployment and test process, without the need to manual intervention, avoid artificial deployment, test the problem of easily makeing mistakes, while improving application deployment and testing efficiency, ensure that the reliability of application deployment and test.
Fig. 3 is the process flow diagram of a kind of application deployment embodiment of the method two according to an exemplary embodiment, and the present embodiment provides another kind of implementation to the step 102 in embodiment illustrated in fig. 2.As shown in Figure 3, the described application deployment method that the present embodiment provides specifically can comprise the steps:
In step 201, receive application deployment instruction, obtain and treat application deployment, described in described application deployment instruction comprises, treat the application identities of application deployment, version number and description document.
In step 202., determine whether there is and treat with described the historical usage that application deployment are corresponding, with described, to be application identities treat that the identical and version number of the application identities of application deployment is lower than the described application treating the version number of application deployment to described historical usage, if exist and treat with described the historical usage that application deployment are corresponding, then perform step 203.
In step 203, obtain the Reassessment file corresponding with described historical usage, described Reassessment file is the description document of described historical usage.
In step 204, according to described Reassessment file and the described description document treating application deployment, obtain and treat with described the test case that application deployment are corresponding.
In the present embodiment, the application deployment instruction received in management server comprises except comprising and treating application deployment, can also comprise the application identities of this application, version number and description document.
Wherein, this application identities and version number are used for unique this application of expression, because application has upgrading, upgrades, same application has different version numbers.Wherein, the description document of this application is the function provided this application, the description of each functional module comprised in this application.
In addition, preserve the information of the application identities of the application deployment disposed, version number, description document, test case in management server, these information can be stored in a database.
Therefore, after management server receives above-mentioned application deployment instruction, treat that the application identities of application deployment and version number inquire about whether to exist from above-mentioned database currently with this treat that the application identities of application deployment is identical according to current, and version number is lower than the current historical usage i.e. application deployment treating the version number of application deployment.
Wherein, what deserves to be explained is, if store multiple versions of an application in above-mentioned database, then in the process of above-mentioned inquiry, especially inquiry obtains than the current corresponding historical usage treating a low version number of the version number of application deployment.
If management server queries determines not exist the historical usage corresponding with treating application deployment, then can with Test cases technology platform alternately to obtain the test case corresponding with treating application deployment; If management server queries determines to there is the historical usage corresponding with treating application deployment, then it obtains description document and the Reassessment file of this historical usage from above-mentioned database.
And then management server, by comparing this Reassessment file and the description document treating application deployment, to determine that whether two description document are consistent, and obtains the test case corresponding with treating application deployment according to comparative result in different ways.
Specifically, if effect or the implementation of the application function described in two description document, the functional module comprised, each functional module are consistent, if namely determine to treat there is not the functions of modules difference function module different from each functional module of this historical usage in application deployment, then illustrate and test case corresponding to this historical usage can be adopted as the test case corresponding with treating application deployment.Otherwise there are differences functional module if treat in application deployment and this historical usage, then the mode by obtaining incremental testing use-case obtains this test case treating corresponding to application deployment.
Particularly, first management server obtains the test case of this historical usage by above-mentioned database, obtain the difference test case corresponding with difference function module again, and then upgrade test case corresponding to historical usage according to difference test case, using test case corresponding for the historical usage after upgrading as the test case corresponding with treating application deployment.
Wherein, obtain the difference test case corresponding with difference function module, such as can by obtaining alternately with Test cases technology platform.By sending above-mentioned difference function module to Test cases technology platform, making Test Sample Design personnel design the difference test case corresponding with this difference function module testing, and feeding back to management server by Test cases technology platform.
Wherein, test case corresponding to historical usage is upgraded according to difference test case, specifically comprise: if difference function module is the functional module additional relative to historical usage, then this difference test case is added in test case corresponding to historical usage, complete renewal; If difference function module is the change relative to the existing functional module of certain in historical usage, then from test case corresponding to historical usage, add this difference test case, the test case being used for testing the functional module corresponding with this difference function module in test case corresponding for historical usage can be deleted simultaneously, complete renewal.
In the present embodiment, the relevant information of each application disposed is stored in management server, thus make when the application of subsequent deployment upgrading, can by the test case of the application deployment of correspondence, reduced by the mode obtaining difference test case and need to carry out independently for each application the workload that all testing example design bring, the efficiency of application deployment can be improved further.
Fig. 4 is the process flow diagram of a kind of application deployment embodiment of the method three according to an exemplary embodiment, on the basis of above-described embodiment, as shown in Figure 4, in the present embodiment, above-mentioned steps 103 to described treat that application deployment compile before, also comprise the steps:
In step 301, receive compiler directive, described compiler directive comprises the authentication information of compilation operations person;
In step 302, according to described authentication information, authentication is carried out to described compilation operations person, determine whether certification is passed through, if certification is passed through, then perform step 103, if certification is not passed through, then terminate.
Due to above-mentioned operation maintenance personnel as compilation operations person and to each service server send compiling by after application and the operator of test case, because this application has important value for application provider, therefore, in order to avoid the malicious operation of unauthorized personnel, authentication can be carried out to operation maintenance personnel.
Specifically, can prestore the authentication information of authorized person in management server, this authentication information is such as login account and password.Therefore, when operation maintenance personnel and current operator's login management server, if the login account of its input and password are one in the account and password of having authorized, then think that this operator passes through certification.
Be understandable that, this identification authentication mode can also be such as the mode such as identifying code, fingerprint, is not specifically limited.
Above, describe the process of application deployment each service server of distributed system from the angle of management server, below in conjunction with the angle of several embodiment from each service server, introduce the detailed process of application deployment.
Fig. 5 is the process flow diagram of the embodiment four of a kind of application deployment method according to an exemplary embodiment, and as shown in Figure 5, this application deployment method comprises the steps:
In step 401, receiving management server send compiling after treat application deployment and treat with described the test case that application deployment are corresponding; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file.
In step 402, by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under.
In step 403, described test case is run to treating that application deployment are tested after described compiling.
As described in foregoing embodiments, management server is after receiving application deployment instruction, obtain the test case corresponding with treating application deployment, after completing the compiling etc. treating application deployment and processing, to treat that application deployment and test case send to each service server, wherein, treat in the configuration file of application deployment, to comprise the deployment catalogue treating application deployment.
Thus, each service server receive management server send above-mentioned compiling after treat application deployment and test case after, by after this compiling treat that application deployment and test case are deposited into this deployment catalogue under, thus, each service server is by under treating that application deployment and test case are deployed in identical deployment catalogue, the problem of easily makeing mistakes when avoiding manually disposing, such as deposits wrong catalogue, treats application deployment or test case has carried out maloperation etc.
And then each service server is startup optimization test case from this deployment catalogue, complete and the test that can application deployment normally run has been treated to this.
Wherein, in the present embodiment, test case mainly comprises unit testing use-case and basic environment test case.The execution sequence of these two test cases is, to described, preferential execution basic environment test case, treats that the basic running environment of application deployment is tested, if basic environment test is passed through, to described, then performance element test case, treats that each functional module of application deployment is tested; If basic environment testing case does not pass through, then send alarm prompt to management server, occur which type of test problem to point out operation maintenance personnel.Accordingly, if when performance element test case, unit testing is passed through, then illustrate that this treats that application deployment normally can run in service server, dispose and terminate, if unit testing is not passed through, then send alarm prompt to management server, occur which type of unit testing problem to point out operation maintenance personnel.
In the present embodiment, each service server carrying of receiving that management server sends dispose target after the test case of application deployment and correspondence thereof, automatically this is treated that namely application deployment stored under being deployed to this catalogue, and testing results use-case is tested to this application automatically.In this automatic deployment and test process, without the need to manual intervention, avoid artificial deployment, test the problem of easily makeing mistakes, while improving application deployment and testing efficiency, ensure that the reliability of application deployment and test.
Fig. 6 is the process flow diagram of the embodiment five of a kind of application deployment method according to an exemplary embodiment, and as shown in Figure 6, the method specifically comprises following step:
In step 501, receiving management server send compiling after treat application deployment and treat with described the test case that application deployment are corresponding; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file, described deployment catalogue comprises temp directory and formal catalogue.
In step 502, by after described compiling treat that application deployment and described test case are deposited into described temp directory under.
In step 503, under described temp directory, described test case is run to treating that application deployment are tested after described compiling.
In step 504, if run described test case to treating that application deployment are carried out test and passed through after described compiling under described temp directory, then by after described compiling treat that application deployment are deposited into described formal catalogue under, and delete and treat application deployment and described test case after the described compiling being deposited in described temp directory.
In the present embodiment, why arrange temp directory and formal catalogue is based on following consideration, wherein, formal catalogue is the catalogue different from temp directory.
Carry out in the process of testing owing to treating application deployment at testing results use-case, the garbage files such as a lot of temporary file, system fragmentation can be produced, these garbage files not only can take the certain storage space of service server, and when subsequent applications commencement of commercial operation also can be caused to use, running environment is unclean.Therefore, in order to ensure high efficient and reliable when follow-up application formally uses, in the present embodiment, have employed the mode that two catalogues are set.
Specifically, first, each service server will treat that application deployment and test case are all stored in temp directory, and wherein, the selection gist of this temp directory is, select the catalogue that the operating system of service server just can disappear after restart, i.e. impermanency catalogue.And then, service server testing results use-case under this temp directory completes the test treating application deployment, if test is passed through, if namely basic environment test is also passed through by, unit testing, then this is treated that application deployment dump in formal catalogue by service server, and then can service server be restarted, activating application can formally use.This formal catalogue is relative with temp directory, is permanent catalogue.Further, service server is deleted to be deposited into and is treated application deployment and test case in temp directory, thus is all deleted by the above-mentioned most of garbage files produced, and when ensureing application commencement of commercial operation, running environment is clean.
Below from the angle of management server and service server, the application deployment method that the disclosure provides is illustrated respectively, below in conjunction with Fig. 7, simply introduce the disclosure in a distributed system application deployment time, the main reciprocal process of management server and service server, wherein, code server is comprised for management server in the present embodiment and compiler server illustrates.
Fig. 7 is the Signalling exchange figure of a kind of application deployment method according to an exemplary embodiment, and as shown in Figure 7, this reciprocal process comprises:
In step 601, code server receives application deployment instruction, and this application deployment instruction comprises treats application deployment, and this treats that application deployment comprise source code and configuration file, and configuration file comprises the deployment catalogue treating application deployment.
In step 602, code server obtains and treats with this test case that application deployment are corresponding.
In step 603, compiler server obtain from code server described in treat application deployment and described test case.
In step 604, compiler server receives the compiler directive of operator, according to the compiling of this compiler directive, treat application deployment.
In step 605, compiler server by compiling after treat that application deployment and described test case send to each service server respectively.
In step 606, each service server by treating that application deployment and described test case are stored in and dispose in catalogue after compiling, and runs described test case.
In sum, management server is by obtaining the test case treating application deployment and its correspondence carrying and dispose catalogue, and then this is treated that application deployment and test case issue each service server respectively, under making each service server automatic deployment this being applied in this deployment catalogue, ensure that the deployment path that this is applied in all service servers is consistent; And by the test case corresponding with this application is sent to each service server in the lump, make each service server by this test case in the lump stored in above-mentioned deployment catalogue, this test case of the automatic startup optimization of each service server is tested this application.In this automatic deployment and test process, without the need to manual intervention, avoid artificial deployment, test the problem of easily makeing mistakes, while improving application deployment and testing efficiency, ensure that the reliability of application deployment and test.
The foregoing describe the implementation procedure of application deployment method, this process can be realized by the management server in distributed system and service server, is described below by the built-in function of management server and service server and structure.
Fig. 8 is the block diagram of a kind of application deployment management server embodiment one according to an exemplary embodiment, as shown in Figure 8, this management server comprises: the first receiver module 11, first acquisition module 12, second acquisition module 13, collector 14 and sending module 15.
First receiver module 11, is configured to receive application deployment instruction.
First acquisition module 12, is configured to acquisition and treats application deployment, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file.
Second acquisition module 13, is configured to obtain and treats with described the test case that application deployment are corresponding.
Collector 14, is configured to treat that application deployment compile to described.
Sending module 15, be configured to by compiling after treat that application deployment and described test case send to each service server, with make described each service server by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, and run described test case to treating that application deployment are tested after described compiling.
Fig. 9 is the block diagram of a kind of application deployment management server embodiment two according to an exemplary embodiment, as shown in Figure 9, on basis embodiment illustrated in fig. 8, described in also comprising in described application deployment instruction, treat the application identities of application deployment, version number and description document.Described second acquisition module 13 comprises: first determines that submodule 131, first obtains submodule 132 and second and obtains submodule 133, wherein, described second acquisition submodule 133 comprises: determine that submodule 1331, first obtains submodule 1332 and second and obtains submodule 1333.
First determines submodule 131, be configured to determine whether there is and treat with described the historical usage that application deployment are corresponding, with described, to be application identities treat that the identical and version number of the application identities of application deployment is lower than the described application treating the version number of application deployment to described historical usage.
First obtain submodule 132, be configured to exist with described until the historical usage that application deployment are corresponding time, obtain the Reassessment file corresponding with described historical usage, described Reassessment file is the description document of described historical usage.
Second obtains submodule 133, is configured to according to described Reassessment file and the described description document treating application deployment, obtains and treats with described the test case that application deployment are corresponding.
Wherein, determine submodule 1331, be configured to, by more described Reassessment file and the described description document treating application deployment, described in determining, treat in application deployment, whether to there is the functions of modules difference function module different from each functional module of described historical usage.
First obtains submodule 1332, being configured to when there is not described difference function module, obtaining test case corresponding to described historical usage and treating as with described the test case that application deployment are corresponding.
Second obtains submodule 1333, be configured to when there is described difference function module, obtain the difference test case corresponding with described difference function module, and upgrade test case corresponding to described historical usage according to described difference test case, test case corresponding for the historical usage after upgrading is treated as with described the test case that application deployment are corresponding.
Figure 10 is the block diagram of a kind of application deployment management server embodiment three according to an exemplary embodiment, and as shown in Figure 10, on basis embodiment illustrated in fig. 8, described management server also comprises: the second receiver module 21 and authentication module 22.
Second receiver module 21, be configured to described collector 14 to described treat that application deployment compile before, receive compiler directive, described compiler directive comprises the authentication information of operator;
Authentication module 22, is configured to carry out authentication according to described authentication information to described operator;
When certification is passed through, trigger described collector 13.
In sum, the application deployment management server that disclosure embodiment provides, can realize treating the acquisition of application deployment and test case thereof, storage, compiling and the distribution to each service server to dispose, realize the unified Automatic dispatching to application deployment, without the need to manually application deployment and testing application in each service server seriatim.And this management server can based on the application deployment stored in self, and the differentiation of carrying out the test case treating application deployment obtains, and improves application deployment efficiency further.
Figure 11 is the block diagram of a kind of application deployment service server embodiment one according to an exemplary embodiment, and as shown in figure 11, this service server comprises: receiver module 31, memory module 32 and test module 33.
Receiver module 31, is configured to treating application deployment and treating with described the test case that application deployment are corresponding after the compiling of receiving management server transmission; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file.
Memory module 32, be configured to after by described compiling treat that application deployment and described test case are deposited into described deployment catalogue under.
Test module 33, is configured to run described test case to treating that application deployment are tested after described compiling.
Figure 12 is the block diagram of a kind of application deployment service server embodiment two according to an exemplary embodiment, as shown in figure 12, on basis embodiment illustrated in fig. 11, described deployment catalogue comprises temp directory and formal catalogue, and described memory module 32 comprises: the first sub module stored 321 and the second sub module stored 322.
First sub module stored 321, be configured to after by described compiling treat that application deployment and described test case are deposited into described temp directory under.
Described test module 33, is configured to run described test case under described temp directory to treating that application deployment are tested after described compiling.
Second sub module stored 322, be configured to run under described temp directory described test case to after described compiling until application deployment test by time, by after described compiling treat that application deployment are deposited into described formal catalogue under.
Described service server also comprises: removing module 34.
Removing module 34, is configured to delete and treats application deployment and described test case after the described compiling be deposited in described temp directory.
Wherein, described test case comprises unit testing use-case and basic environment test case.
Described test module 33 comprises: the first test submodule 331 and the second test submodule 332.
First test submodule 331, is configured to run described basic environment test case, treats that the basic running environment of application deployment is tested to described.
Second test submodule 332, be configured to described basic environment testing case by time, run described unit testing use-case, treat that each functional module of application deployment is tested to described.
In sum, each application deployment service server that disclosure embodiment provides, based on the unified distribution of management server, can will treat application deployment automatically stored under corresponding deployment catalogue, and testing results use-case completes the automatic test to this application automatically, improves application deployment efficiency.In addition, be provided with temp directory and formal catalogue, to treat that application deployment and test case store and test in temp directory, and then will this application of passing through be tested and test case is deleted from temp directory, to treat that application deployment unloading is in formal catalogue, during further guarantee service server operation application, running environment is clean, improves application operational efficiency.
About the device in above-described embodiment, wherein the concrete mode of modules, submodule executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
The foregoing describe built-in function and the structure of application deployment management server, as shown in figure 13, in reality, this management server can be embodied as:
Processor;
Be configured to the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive application deployment instruction, obtain and treat application deployment, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
Obtain and treat with described the test case that application deployment are corresponding; Treat that application deployment compile to described;
By compiling after treat that application deployment and described test case send to each service server, with make described each service server by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, and run described test case to treating that application deployment are tested after described compiling.
The foregoing describe built-in function and the structure of application deployment service server, as shown in figure 14, in reality, this management server can be embodied as:
Processor;
Be configured to the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Treating application deployment and treating with described the test case that application deployment are corresponding after the compiling that receiving management server sends; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
By after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under;
Run described test case to treating that application deployment are tested after described compiling.
Figure 15 is the block diagram of a kind of application deployment management server 1500 according to an exemplary embodiment.With reference to Figure 15, this management server 1500 comprises processing components 1522, and it comprises one or processor further, and the memory resource representated by storer 1532, can such as, by the instruction of the execution of processing components 1522, application program for storing.The application program stored in storer 1532 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1522 is configured to perform instruction, to perform the above method:
Receive application deployment instruction, obtain and treat application deployment, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
Obtain and treat with described the test case that application deployment are corresponding; Treat that application deployment compile to described;
By compiling after treat that application deployment and described test case send to each service server, with make described each service server by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, and run described test case to treating that application deployment are tested after described compiling.
Management server 1500 can also comprise the power management that a power supply module 1526 is configured to perform management server 1500, a wired or wireless network interface 1550 is configured to management server 1500 to be connected to network, and input and output (I/O) interface 1558.Management server 1500 can operate the operating system based on being stored in storer 1532, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Figure 16 is the block diagram of a kind of application deployment service server 1600 according to an exemplary embodiment.With reference to Figure 16, this management server 1600 comprises processing components 1622, and it comprises one or processor further, and the memory resource representated by storer 1632, can such as, by the instruction of the execution of processing components 1622, application program for storing.The application program stored in storer 1632 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1622 is configured to perform instruction, to perform the above method:
Treating application deployment and treating with described the test case that application deployment are corresponding after the compiling that receiving management server sends; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
By after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under;
Run described test case to treating that application deployment are tested after described compiling.
Management server 1600 can also comprise the power management that a power supply module 1626 is configured to perform management server 1600, a wired or wireless network interface 1650 is configured to management server 1600 to be connected to network, and input and output (I/O) interface 1658.Management server 1600 can operate the operating system based on being stored in storer 1632, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (20)

1. an application deployment method, is characterized in that, described method comprises:
Receive application deployment instruction, obtain and treat application deployment, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
Obtain and treat with described the test case that application deployment are corresponding; Treat that application deployment compile to described;
By compiling after treat that application deployment and described test case send to each service server, with make described each service server by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, and run described test case to treating that application deployment are tested after described compiling.
2. method according to claim 1, is characterized in that, treats the application identities of application deployment, version number and description document described in described application deployment instruction comprises;
Described acquisition treats with described the test case that application deployment are corresponding, comprising:
Determine whether there is and treat with described the historical usage that application deployment are corresponding, with described, to be application identities treat that the identical and version number of the application identities of application deployment is lower than the described application treating the version number of application deployment to described historical usage;
If exist and treat with described the historical usage that application deployment are corresponding, then obtain the Reassessment file corresponding with described historical usage, described Reassessment file is the description document of described historical usage;
According to described Reassessment file and the described description document treating application deployment, obtain and treat with described the test case that application deployment are corresponding.
3. method according to claim 2, is characterized in that, described according to described Reassessment file and the described description document treating application deployment, obtains and treats with described the test case that application deployment are corresponding, comprising:
By more described Reassessment file and the described description document treating application deployment, described in determining, treat in application deployment, whether to there is the functions of modules difference function module different from each functional module of described historical usage;
If there is not described difference function module, then obtain test case corresponding to described historical usage and treat as with described the test case that application deployment are corresponding;
If there is described difference function module, then obtain the difference test case corresponding with described difference function module, and upgrade test case corresponding to described historical usage according to described difference test case, test case corresponding for the historical usage after upgrading is treated as with described the test case that application deployment are corresponding.
4. method according to claim 1, is characterized in that, described method also comprises:
Described to described treat that application deployment compile before, receive compiler directive, described compiler directive comprises the authentication information of operator;
According to described authentication information, authentication is carried out to described operator, if certification is passed through, then perform and describedly treat to described the step that application deployment compile.
5. an application deployment method, is characterized in that, described method comprises:
Treating application deployment and treating with described the test case that application deployment are corresponding after the compiling that receiving management server sends; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
By after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under;
Run described test case to treating that application deployment are tested after described compiling.
6. method according to claim 5, is characterized in that, described deployment catalogue comprises temp directory and formal catalogue;
Described by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, comprising:
By after described compiling treat that application deployment and described test case are deposited into described temp directory under;
The described test case of described operation, to treating that application deployment are tested after described compiling, comprising:
Described test case is run to treating that application deployment are tested after described compiling under described temp directory.
7. method according to claim 6, is characterized in that, described method also comprises:
If run described test case to treating that application deployment are carried out test and passed through after described compiling under described temp directory, then by after described compiling treat that application deployment are deposited into described formal catalogue under, and delete and treat application deployment and described test case after the described compiling being deposited in described temp directory.
8. the method according to any one of claim 5 to 7, is characterized in that, described test case comprises unit testing use-case and basic environment test case.
9. method according to claim 8, is characterized in that, the described test case of described operation, to treating that application deployment are tested after described compiling, comprising:
Run described basic environment test case, treat that the basic running environment of application deployment is tested to described;
If described basic environment testing case passes through, then run described unit testing use-case, treat that each functional module of application deployment is tested to described.
10. an application deployment management server, is characterized in that, described management server comprises:
First receiver module, is configured to receive application deployment instruction;
First acquisition module, is configured to acquisition and treats application deployment, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
Second acquisition module, is configured to obtain and treats with described the test case that application deployment are corresponding;
Collector, is configured to treat that application deployment compile to described;
Sending module, be configured to by compiling after treat that application deployment and described test case send to each service server, with make described each service server by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, and run described test case to treating that application deployment are tested after described compiling.
11. management servers according to claim 10, is characterized in that, treat the application identities of application deployment, version number and description document described in described application deployment instruction comprises;
Described second acquisition module comprises:
First determines submodule, be configured to determine whether there is and treat with described the historical usage that application deployment are corresponding, with described, to be application identities treat that the identical and version number of the application identities of application deployment is lower than the described application treating the version number of application deployment to described historical usage;
First obtain submodule, be configured to exist with described until the historical usage that application deployment are corresponding time, obtain the Reassessment file corresponding with described historical usage, described Reassessment file is the description document of described historical usage;
Second obtains submodule, is configured to according to described Reassessment file and the described description document treating application deployment, obtains and treats with described the test case that application deployment are corresponding.
12. management servers according to claim 11, is characterized in that, described second obtains submodule comprises:
Determine submodule, be configured to, by more described Reassessment file and the described description document treating application deployment, described in determining, treat in application deployment, whether to there is the functions of modules difference function module different from each functional module of described historical usage;
First obtains submodule, being configured to when there is not described difference function module, obtaining test case corresponding to described historical usage and treating as with described the test case that application deployment are corresponding;
Second obtains submodule, be configured to when there is described difference function module, obtain the difference test case corresponding with described difference function module, and upgrade test case corresponding to described historical usage according to described difference test case, test case corresponding for the historical usage after upgrading is treated as with described the test case that application deployment are corresponding.
13. management servers according to claim 10, is characterized in that, described management server also comprises:
Second receiver module, be configured to described collector to described treat that application deployment compile before, receive compiler directive, described compiler directive comprises the authentication information of operator;
Authentication module, is configured to carry out authentication according to described authentication information to described operator; When certification is passed through, trigger described collector.
14. 1 kinds of application deployment service servers, is characterized in that, described service server comprises:
Receiver module, is configured to treating application deployment and treating with described the test case that application deployment are corresponding after the compiling of receiving management server transmission; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
Memory module, be configured to after by described compiling treat that application deployment and described test case are deposited into described deployment catalogue under;
Test module, is configured to run described test case to treating that application deployment are tested after described compiling.
15. service servers according to claim 14, is characterized in that, described deployment catalogue comprises temp directory and formal catalogue;
Described memory module comprises:
First sub module stored, be configured to after by described compiling treat that application deployment and described test case are deposited into described temp directory under;
Described test module, is configured to run described test case under described temp directory to treating that application deployment are tested after described compiling.
16. service servers according to claim 15, is characterized in that, described memory module also comprises:
Second sub module stored, be configured to run under described temp directory described test case to after described compiling until application deployment test by time, by after described compiling treat that application deployment are deposited into described formal catalogue under;
Described service server also comprises:
Removing module, is configured to delete and treats application deployment and described test case after the described compiling be deposited in described temp directory.
17., according to claim 14 to the service server according to any one of 16, is characterized in that, described test case comprises unit testing use-case and basic environment test case.
18. service servers according to claim 17, is characterized in that, described test module comprises:
First test submodule, is configured to run described basic environment test case, treats that the basic running environment of application deployment is tested to described;
Second test submodule, be configured to described basic environment testing case by time, run described unit testing use-case, treat that each functional module of application deployment is tested to described.
19. 1 kinds of application deployment management servers, is characterized in that, comprising:
Processor;
Be configured to the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive application deployment instruction, obtain and treat application deployment, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
Obtain and treat with described the test case that application deployment are corresponding; Treat that application deployment compile to described;
By compiling after treat that application deployment and described test case send to each service server, with make described each service server by after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under, and run described test case to treating that application deployment are tested after described compiling.
20. 1 kinds of application deployment service servers, is characterized in that, comprising:
Processor;
Be configured to the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Treating application deployment and treating with described the test case that application deployment are corresponding after the compiling that receiving management server sends; Wherein, described in treat that application deployment comprise source code and configuration file, treat the deployment catalogue of application deployment described in comprising in described configuration file;
By after described compiling treat that application deployment and described test case are deposited into described deployment catalogue under;
Run described test case to treating that application deployment are tested after described compiling.
CN201510353829.4A 2015-06-24 2015-06-24 Using dispositions method and service device Active CN104978191B (en)

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 true CN104978191A (en) 2015-10-14
CN104978191B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528404A (en) * 2016-09-30 2017-03-22 腾讯科技(深圳)有限公司 Mobile application test method and apparatus
CN107943486A (en) * 2017-12-19 2018-04-20 北京星河星云信息技术有限公司 A kind of multilingual code compiling method, distribution method, device and system
CN108228452A (en) * 2017-12-28 2018-06-29 微梦创科网络科技(中国)有限公司 A kind of test method and test device based on simple factory mode
CN109032643A (en) * 2018-07-26 2018-12-18 北京百度网讯科技有限公司 The method and apparatus of software upgrading
CN109120432A (en) * 2018-07-18 2019-01-01 北京奇艺世纪科技有限公司 A kind of failed server localization method and device
CN109614109A (en) * 2018-11-16 2019-04-12 中国银行股份有限公司 Using dispositions method, device and system
US10908892B2 (en) 2019-03-12 2021-02-02 International Business Machines Corporation Generating and deploying object code files compiled on build machines

Citations (6)

* Cited by examiner, † Cited by third party
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
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528404A (en) * 2016-09-30 2017-03-22 腾讯科技(深圳)有限公司 Mobile application test method and apparatus
US10698797B2 (en) 2016-09-30 2020-06-30 Tencent Technology (Shenzhen) Company Limited Mobile application program testing method, server, terminal, and storage medium
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
CN107943486A (en) * 2017-12-19 2018-04-20 北京星河星云信息技术有限公司 A kind of multilingual code compiling method, distribution method, device and system
CN108228452B (en) * 2017-12-28 2021-04-06 微梦创科网络科技(中国)有限公司 Test method and test device based on simple factory mode
CN108228452A (en) * 2017-12-28 2018-06-29 微梦创科网络科技(中国)有限公司 A kind of test method and test device based on simple factory mode
CN109120432A (en) * 2018-07-18 2019-01-01 北京奇艺世纪科技有限公司 A kind of failed server localization method and device
CN109032643A (en) * 2018-07-26 2018-12-18 北京百度网讯科技有限公司 The method and apparatus of software upgrading
CN109614109A (en) * 2018-11-16 2019-04-12 中国银行股份有限公司 Using dispositions method, device and system
US10908892B2 (en) 2019-03-12 2021-02-02 International Business Machines Corporation Generating and deploying object code files compiled on build machines

Also Published As

Publication number Publication date
CN104978191B (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN104978191A (en) Application deployment method and server
KR101038965B1 (en) How to Configure Test Systems, Computer-readable Media, and Computing Systems
CN103647816A (en) Method and device for upgrading application software
US20080320109A1 (en) Complex software deployment
CN104679574A (en) Virtual machine image management system in cloud computing
CN106681766B (en) Remote firmware upgrade control method and system
CN104506639A (en) Root right acquiring method and device
US20110087767A1 (en) Computer Environment Analysis Tool
KR101512611B1 (en) Systems and methods for repairing system files
CN103714287A (en) Method and device for obtaining temporary Root authority
CN103390130A (en) Rogue program searching and killing method and device based on cloud security as well as server
CN105389177A (en) Software version confirmation method, device and system
CN105302533A (en) Code synchronizing method and apparatus
CN105426165A (en) Script tool processing method and apparatus
CN103019732A (en) Method and system for installation and deployment of integrated software based on province, city and county
CN106569863B (en) Resource and code modularization-based android app resource updating and repairing method
CN105335195A (en) Device driver upgrading method and apparatus as well as electronic device
CN105447040A (en) Binary file management and update method and device, and binary file management system
CN103095698B (en) The restorative procedure of client software, device and communication system
CN104317672A (en) System file repairing method, device and system
CN105549959A (en) Compiling inspection method and device
CN107294924B (en) Vulnerability detection method, device and system
CN101616002B (en) User identity authentication method and device thereof
CN105072398B (en) A kind of device updating method and device
CN102413488B (en) Information interacting method in automatic drive test system and equipment

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