Summary of the invention
In view of this, the embodiment of the present invention is to solve the problems, such as to exist in the prior art and provide a kind of based on cloud computing environment
Exploitation integration test method, from the writing of code, the building of source code library, the packing of install medium, the collection forming for testing environment
At the process of a set of semi-automation.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
A kind of exploitation integration test method based on cloud computing environment, comprising:
Step 1: being Liang Ge branch by the code establishing formed in development process, the code for completing exploitation is merged into first
The code of experimental and/or untapped completion is put into the second branch by branch, and the code development in second branch is completed
Afterwards, the code of second branch is merged into first branch, forms the first branch code library;
Step 2: first branch code library being detected, install medium is generated;
Step 3: the install medium being installed in examining system, and cloud platform is installed;
Step 4: the cloud platform is tested.
In above scheme, the method also includes first branch code library is detected, and is packaged and is generated archive file
JAR and software package RPM is wrapped, and is integrated into virtual disk VHD and compact disc image files ISO, forms the install medium.
In above scheme, the method also includes the ISO that is integrated into refers to, the RPM packet is appended to existing
In ISO template, the ISO is formed;
The VHD that is integrated into refers to, starts virtual machine, the JAR packet is installed in the virtual machine, and described in closing
Virtual machine forms the VHD.
In above scheme, the step 2 in the method is further comprising the steps of:
Step 31, the test system to be measured is cleared up;
Step 32, by automatic deployment configuration tool cvup, the install medium is obtained, the install medium is transferred to
In the storage catalogue of the test system to be measured;
Step 33, by the system upgrade to be tested to latest edition;
Step 34, the cloud platform is installed.
In above scheme, the method also includes, the automatic deployment configuration tool cvup can with custom profile,
And the install medium is obtained, the configuration file includes following one or more: the filename of the install medium, described
The destination path that the network IP of examining system, the storage IP of the examining system, the cloud platform are installed.
In above scheme, the method also includes passing through integration tool after forming first branch code library
Jenkins, setting time interval T, by automatic trigger, generate the install medium after time interval T.
The present invention also provides a kind of exploitation integrated test system based on cloud computing environment, the system comprises:
Creation module, for creating two branch units, the first branch units is used to merge the code for completing exploitation, and closes
And second sub-unit complete the code of exploitation, form the first branch code library, second branch units is experimental for being put into
And/or the code of untapped completion;
Module is constructed, for detecting first branch code library, and for generating install medium;
Module is installed, for the install medium to be installed in examining system, and for installing cloud platform;
Test module, for testing the cloud platform.
The building module further include:
Generation unit is packaged for detecting first branch code library and generates archive file bag JAR and software
RPM is wrapped,
Integral unit forms virtual disk VHD and compact disc image files ISO for integrating JAR and RPM respectively.
The integral unit further includes,
ISO integral unit, for being appended to the RPM in existing ISO template, forming the ISO;
VHD integral unit, for the JAR packet to be installed in virtual machine, the disk of the virtual machine forms described
VHD。
The building module further include: for passing through integration tool Jenkins, setting time interval T, and by described
The first branch code library described in automatic trigger is detected after time interval T;
The installation module further includes,
Unit is cleared up, for clearing up the examining system;
Transmission unit is used for transmission the install medium into the storage catalogue of the test system to be measured;
Updating unit, for upgrading the test system to be measured;
Installation unit, for installing the cloud platform.
The transmission unit further includes, automatic deployment configuration tool cvup, and the automatic deployment configuration tool cvup is used for
Custom profile obtains the install medium, and the configuration file includes following one or more: the install medium
The destination path that filename, the network IP of the examining system, the storage IP of the examining system, cloud platform are installed.
Technical solution provided by the present invention is then created Liang Ge branch and is carried out by using version control tool (svn)
Untapped complete or experimental code can be placed individually into a branch by the development of code, and the code developed is put into
Another branch, it is unstable to avoid process in the exploitation of independent branch, and by continuous integrating tool (jenkins), from
Dynamic deployment configuration tool (cvup) combines closely exploitation, building, installation, test, after exploitation is completed, one-touch building
And be installed in examining system, tester can take latest edition at any time or target version is tested.
Specific embodiment
In order to which technical solution of the present invention and advantage is more clearly understood, below in conjunction with attached drawing to of the invention exemplary
Embodiment is described in more detail, it is clear that and the described embodiments are merely a part of the embodiments of the present invention, rather than
The exhaustion of all embodiments.And in the absence of conflict, the feature in the embodiment and embodiment in this explanation can be mutual
It combines.
In view of the deficiencies of the prior art, the embodiment of the present invention proposes a kind of exploitation integration testing based on cloud computing environment
Method is illustrated below.
Figures 1 and 2 show that cloud platform of embodiment of the present invention exploitation building integration test method schematic diagram, as shown,
Include:
Step 101, it is Liang Ge branch by the code establishing formed in development process, the code for completing exploitation is merged into the
The code of experimental and/or untapped completion is put into the second branch by one branch, and the code development in second branch is completed
Afterwards, the code of second branch is merged into first branch, forms the first branch code library;
Preferably, during code development will using SVN carry out code version management, can create Trunk and
The code for completing exploitation is combined into Alpha branch by Alpha Liang Ge branch, and experimental and untapped completion code is still
It is retained in Trunk branch, Alpha branch is remerged after completing, those skilled in the art can also be using other points of creation
The mode of branch, the invention is not limited in this regard.
Step 102, first branch code library is detected, generates install medium;
Wherein, step 102 belongs to the step of building install medium, mainly uses continuous integrating tool Jenkins and SVN
In conjunction with being constructed, wherein continuous integrating tool Jenkins is a kind of continuous integrating tool based on Java exploitation, for supervising
It controls and continues duplicate work, Jenkins can improve-test loop process develop to product-test-with setting time
In, can choose periodical building, such as be set as Monday, Wednesday, morning Friday 1:00, Jenkins constructs automatic trigger,
It is packaged and generates JAR packet and RPM packet, and be integrated into the form of ISO and VHD mirror image.
Those skilled in the art can set the time of automatic trigger building according to the actual situation, and the present invention does not make this
Limitation.
Further include the process for integrating ISO further in above-described embodiment, is the process for making operating system mirror image, will give birth to
At RPM packet, be appended in existing ISO template, formed a required ISO.
Further, further include the process for integrating VHD, be the process for making virtual machine image, need to start a virtual machine,
The JAR packet generated before is installed in the virtual machine, and closes virtual machine, the disk of the virtual machine is exactly required VHD.
Step 103, the install medium is installed in examining system, and cloud platform is installed;
In above-described embodiment, further include,
Step 1301, the test system to be measured is cleared up;
Wherein, the examining system is cleared up, it is usually required mainly for, mounted platform is unloaded, cleaning storage link, closing need not
The network port wanted, those skilled in the art can carry out the cleaning work of examining system, the present invention according to practical operation situation
With no restriction to this.
Step 1302, by automatic deployment configuration tool cvup, the install medium is obtained, the install medium is transmitted
Into the storage catalogue of the test system to be measured;
Wherein, automatic deployment configuration tool cvup is taken, automatic deployment configuration tool cvup tool can be customized
Configuration file can configure the filename comprising VHD and ISO, and read the content in the configuration file, select ISO and VHD text
Part.It include the filename of VHD and ISO in configuration file, the network IP of examining system, the storage IP of examining system, cloud platform peace
The destination path of dress, according to the difference of examining system, the content of configuration file is different, the invention is not limited in this regard.
Step 1303, by the system upgrade to be tested to latest edition;
Step 1304, the cloud platform is installed.
Step 104, the cloud platform is tested.
Wherein, the cloud platform after installation is tested, by manually carrying out integration testing and system testing, can be used
More people carry out the test of basic function simultaneously, test to not stopping functions of modules, after integration testing, will carry out respectively
System testing.
Environment is tested using more sets, and is cooperated in such a way that date intervals construct automatically.
Step 105, after completing test, test result is returned into developer.If test passes through, the version will be issued
This.
Based on the same inventive concept, a kind of integrated survey of the exploitation based on cloud computing environment is additionally provided in the embodiment of the present invention
Test system, since the principle that these devices solve the problems, such as is similar to the exploitation integration test method based on cloud computing environment.
Fig. 3 and Fig. 4 shows cloud platform of embodiment of the present invention exploitation building integration test method schematic diagram, as shown,
Include:
The embodiment of the invention provides a kind of exploitation integrated test system based on cloud computing environment, comprising:
Creation module 201, for creating two branch units, the first branch units is used to merge the code for completing exploitation,
And merge the code that the second sub-unit completes exploitation, the first branch code library is formed, second branch units is for being put into reality
The property tested and/or the code of untapped completion;
Preferably, two branch modules of Trunk and Alpha can be created, the code for completing exploitation is combined into Alpha
Branch module, experimental and untapped completion code remain in Trunk branch module, remerge after completing
Alpha branch module, those skilled in the art can also be by the way of creating other branches, the invention is not limited in this regard.
Module 202 is constructed, for detecting first branch code library, and for generating install medium;
Further, module is constructed further include: generation unit is packaged for detecting first branch code library
Archive file bag JAR and software package RPM is generated,
Integral unit, for JAR and RPM to be integrated respectively, formation virtual disk VHD and compact disc image files ISO,
Wherein, integral unit further includes,
ISO integral unit, for being appended to the RPM in existing ISO template, forming the ISO;
VHD integral unit, for the JAR packet to be installed in virtual machine, the disk of the virtual machine forms described
VHD。
Further, building module is combined by continuous integrating tool Jenkins and SVN, wherein continuous integrating work
Tool Jenkins is a kind of continuous integrating tool based on Java exploitation, and for monitoring persistently duplicate work, Jenkins can be with
Setting time, such as be set as Monday, Wednesday, morning Friday 1:00, Jenkins and automatic trigger structure is generated into JAR packet and RPM
Packet, and it is integrated into the form of ISO and VHD mirror image.
Those skilled in the art can set automatic trigger time, the invention is not limited in this regard according to the actual situation.
Module 203 is installed, for the install medium to be installed in examining system, and for installing cloud platform;
Further include,
Unit 2031 is cleared up, the examining system will be cleared up;For unloading mounted platform, cleaning storage link is closed
The unnecessary network port is closed, those skilled in the art can carry out the function setting of cleaning unit according to practical operation situation,
The invention is not limited in this regard.
Transmission unit 2032 is used for transmission the install medium into the storage catalogue of the test system to be measured;
Further, by automatic deployment configuration tool cvup, the install medium is obtained.Wherein, which configures
Tool cvup tool can configure the filename comprising VHD and ISO, and read the configuration file with custom profile
In content, select ISO and VHD file.
It include the filename of VHD and ISO in configuration file, the network IP of examining system, the storage IP of examining system, cloud
The destination path of stage+module, according to the difference of examining system, the content of configuration file is different, and the present invention does not limit this
System.
The examining system is upgraded to latest edition for upgrading the test system to be measured by updating unit 2033.
Installation unit 2034, for installing the cloud platform.
Test module 204, for testing the cloud platform.
Multiple test modules carry out the test of basic function simultaneously, test respectively to not stopping functions of modules, pass through collection
After test, for carrying out system testing.
For convenience of description, each section of apparatus described above is divided into various modules with function or unit describes respectively.
Certainly, each module or the function of unit can be realized in same or multiple softwares or hardware in carrying out the present invention.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, the form of complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention.Moreover,
The present invention can be used one or more wherein include computer usable program code computer-usable storage medium (including
But be not limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.