CN104156224A - Continuous integration method and system for software construction - Google Patents
Continuous integration method and system for software construction Download PDFInfo
- Publication number
- CN104156224A CN104156224A CN201310176646.0A CN201310176646A CN104156224A CN 104156224 A CN104156224 A CN 104156224A CN 201310176646 A CN201310176646 A CN 201310176646A CN 104156224 A CN104156224 A CN 104156224A
- Authority
- CN
- China
- Prior art keywords
- version control
- control repository
- test result
- running
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a continuous integration method for software construction. The method comprises the first step of starting a version control library, establishing a running environment for overall construction and extracting input and output metadata in the version control library, the second step of analyzing and converting related data files to generate final output results, the third step of packaging the output results into a complete installation file form, the fourth step of transferring software construction to the running environment, executing a function integration test and recording and storing a test result, wherein the test result comprises the running duration, running states, running results and running logs of all procedures, and the fifth step of making the test result generate an entry html file, compressing and packaging the html file and automatically sending the compressed and packaged html file to a developing user in a mail mode. The invention further discloses a continuous integration system for software construction. By the adoption of the continuous integration method and system for software construction, software defects or updates can be found in time, the software defects can be repaired or updating programs can be started, the development efficiency can be improved greatly, and the error rate can be lowered.
Description
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of software building and continue integrated approach and system.
Background technology
Software continuous is integrated is a kind of software creation and test process of robotization, continues in integrating process, and development teams can repeatedly build their software every day.As a kind of Software Practice, continue the integrated development teams that allows and in the time of software building, continue to receive feedback, find in time software defect, and it is repaired, and needn't wait until that later stage construction cycle just finds and repair-deficiency, therefore, it can cause different impacts to the development efficiency of software and input cost.
When existing software continuous integration system operation, automatically realization flow starts, need manually to manually boot corresponding steps according to actual needs, therefore development efficiency is lower, developer's workload is large, and cost is higher, and likely because of artificial origin, and cause the startup of missing steps necessary, so that cause the result that needs the later stage to do over again.
Summary of the invention
Technical matters to be solved by this invention is, provide a kind of software building to continue integrated approach and system, can preset according to actual needs execution sequence and the executive mode of each step, make the self-starting of each steps flow chart energy, simultaneously, also test result can be sent to development of user automatically, it can greatly improve development efficiency and reduce error rate, in addition, also can monitor in real time version control repository, in the time finding that version control repository changes, can start corresponding construction step by automatic or manual, it can be found in time software defect and repair, have and be convenient to further improve development efficiency.
In order to solve the problems of the technologies described above, the invention provides a kind of software building and continue integrated approach, comprise: start version control repository, set up the environment that whole structure moves, extract the input and output metadata in version control repository, described version control repository comprises establishment, renewal, creates baseline and report data information, and the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode; Associated data files is resolved and changed, and to generate final Output rusults, described associated data files comprises the input and output metadata in apply metadata and the described version control repository in database; By described Output rusults be packaged into complete can installation file form; Structure is moved to running environment, carry out function integration testing, and test result is recorded to storage, described test result comprises operation duration, running status, operation result and the running log of each step; Described test result is generated to an entrance html(Hypertext Markup Language, HTML (Hypertext Markup Language)) file, and described html file is compressed to packing, automatically send to development of user by the mode of mail.
As the improvement of such scheme, described software building continues integrated approach and also comprises: described associated data files is converted to executable file or the medium object that can directly move; Described executable file or medium object are carried out to unit testing, and unit testing result is recorded to storage.
As the improvement of such scheme, described software building continues integrated approach and also comprises: by carrying out code coverage test through the source code of conversion and/or dissection process, to evaluate code tester coverage condition.
As the improvement of such scheme, described software building continues integrated approach and also comprises: carry out code static analysis, whether the compiling that checks all codes meets certain programmed specification or standard, and check result is recorded to storage.
As the improvement of such scheme, described software building continues integrated approach and also comprises: version control repository is monitored in real time, and judge whether version control repository changes, in the time being judged as YES, automatic or manual is carried out and is started version control repository, set up the environment that whole structure moves, extract the step of the input and output metadata in version control repository.
Correspondingly, the present invention also provides a kind of software building continuous integration system, comprise: data construct extraction element, be used for starting version control repository, set up the environment that whole structure moves, extract the input and output metadata in version control repository, described version control repository comprises establishment, renewal, creates baseline and report data information, and the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode; Data processing equipment, for associated data files is resolved and changed, to generate final Output rusults, described associated data files comprises the input and output metadata in apply metadata and the described version control repository in database; Packing apparatus, for described Output rusults is packaged into complete can installation file form; Moving apparatus, for structure is moved to running environment, carries out function integration testing, and test result is recorded to storage, and described test result comprises operation duration, running status, operation result and the running log of each step; Report dispensing device, generates an entrance html file by described test result, and described html file is compressed to packing, automatically sends to development of user by the mode of mail.
As the improvement of such scheme, described software building continuous integration system also comprises: DTU (Data Transfer unit), for described associated data files being converted to executable file or the medium object that can directly move; Unit testing device, for described executable file or medium object are carried out to unit testing, and records storage by unit testing result.
As the improvement of such scheme, described software building continuous integration system also comprises: code coverage proving installation, and for the source code of process conversion and/or dissection process is carried out to code coverage test, to evaluate code tester coverage condition.
As the improvement of such scheme, described software building continuous integration system also comprises: code static analysis device, be used for carrying out code static analysis, whether the compiling that checks all codes meets certain programmed specification or standard, and check result is recorded to storage.
As the improvement of such scheme, described software building continuous integration system also comprises: monitoring judgment means, for version control repository is monitored in real time, and judges whether version control repository changes, in the time being judged as YES, automatic or manual starts described data construct extraction element.
Implementing beneficial effect of the present invention is: the present invention can set up the environment that whole structure moves, the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode, development of user can be preset execution sequence and the executive mode of each step according to actual needs, make each steps flow chart energy self-starting operation, automatically move according to default execution sequence, it has reduced workload, has reduced cost of development, has improved development efficiency; Simultaneously, the present invention can generate an entrance html file by described test result, and described html file is compressed to packing, mode by mail sends to development of user automatically, described test result comprises operation duration, running status, operation result and the running log of each step, development of user can fully understand the relevant information of grasping each step, find in time defect and repair, avoid wrong defect to extend to the later stage always, bring more gross error to the work in later stage, therefore, it can reduce error rate, has greatly improved development efficiency; In addition, the present invention also can monitor in real time to version control repository, in the time finding that version control repository changes, can start corresponding construction step by automatic or manual, and it can be found in time software defect and repair, have and be convenient to further improve development efficiency.
Brief description of the drawings
Fig. 1 is the first embodiment schematic flow sheet that a kind of software building of the present invention continues integrated approach;
Fig. 2 is the second embodiment schematic flow sheet that a kind of software building of the present invention continues integrated approach;
Fig. 3 is the 3rd embodiment schematic flow sheet that a kind of software building of the present invention continues integrated approach;
Fig. 4 is the 4th embodiment schematic flow sheet that a kind of software building of the present invention continues integrated approach;
Fig. 5 is the 5th embodiment schematic flow sheet that a kind of software building of the present invention continues integrated approach;
Fig. 6 is the structural representation of a kind of software building continuous integration system 1 of the present invention;
Fig. 7 is another structural representation of a kind of software building continuous integration system 1 of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 is the first embodiment schematic flow sheet that a kind of software building of the present invention continues integrated approach, comprising:
S100, starts version control repository, sets up the environment that whole structure moves, and extracts the input and output metadata in version control repository.
Described version control repository comprises establishment, renewal, creates baseline and report data information, and the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode.
It should be noted that, adding when initialization module, can automatically create together with step, and then the execution sequence to each step and executive mode are revised accordingly or arrange according to actual needs; In addition, this step can be guaranteed the repeatability and the reliability that build.
S101, resolves and changes associated data files, to generate final Output rusults.
Described associated data files comprises the input and output metadata in apply metadata and the described version control repository in database.
It should be noted that, be mainly relevant to arranging of its for the apply metadata in database, and it need be by resolving and conversion, and in addition, described associated data files mainly refers to the data file of the script form that can directly move.
S102, by described Output rusults be packaged into complete can installation file form.
It should be noted that, this step process is the packaging process of product, and the result after packing is called again distribution of document, thereby packing is exactly by java class and library file is packaged as JAR or EAR file can be arranged on server it as an example of Java example.
S103, moves to running environment by structure, carries out function integration testing, and test result is recorded to storage.
Described test result comprises operation duration, running status, operation result and the running log of each step.
It should be noted that, this step process can detect each step correlation circumstance, for example, the defect mistake existing in step etc., it can be and whether can carry out further work necessary foundation is provided.
S104, generates an entrance html file by described test result, and described html file is compressed to packing, automatically sends to development of user by the mode of mail.
It should be noted that, can will state html compressing file and be packaged into the compressed package of zip form, described test result is sent to development of user automatically by the mode of mail, can make development of user overall understanding grasp the relevant information of each step, find in time defect and repair, avoid wrong defect to extend to the later stage always, bring more gross error to the work in later stage, therefore, it can reduce error rate, can greatly improve development efficiency.
Fig. 2 is the second embodiment schematic flow sheet that a kind of software building of the present invention continues integrated approach, comprising:
S200, starts version control repository, sets up the environment that whole structure moves, and extracts the input and output metadata in version control repository.
Described version control repository comprises establishment, renewal, creates baseline and report data information, and the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode.
It should be noted that, adding when initialization module, can automatically create together with step, and then the execution sequence to each step and executive mode are revised accordingly or arrange according to actual needs; In addition, this step can be guaranteed the repeatability and the reliability that build.
S201, is converted to described associated data files executable file or the medium object that can directly move.
S202, carries out unit testing to described executable file or medium object, and unit testing result is recorded to storage.
It should be noted that, unit testing need be carried out use-case design test, and whether it can check each developer's achievement can compatiblely to coordinate, and guarantees the quality building.
S203, resolves and changes associated data files, to generate final Output rusults.
Described associated data files comprises the input and output metadata in apply metadata and the described version control repository in database.
It should be noted that, be mainly relevant to arranging of its for the apply metadata in database, and it need be by resolving and conversion.
S204, by described Output rusults be packaged into complete can installation file form.
It should be noted that, this step process is the packaging process of product, and the result after packing is called again distribution of document, thereby packing is exactly by java class and library file is packaged as JAR or EAR file can be arranged on server it as an example of Java example.
S205, moves to running environment by structure, carries out function integration testing, and test result is recorded to storage.
Described test result comprises operation duration, running status, operation result and the running log of each step.
It should be noted that, this step process can detect each step correlation circumstance, for example, the defect mistake existing in step etc., it can be and whether can carry out further work necessary foundation is provided.
S206, generates an entrance html file by described test result, and described html file is compressed to packing, automatically sends to development of user by the mode of mail.
It should be noted that, can will state html compressing file and be packaged into the compressed package of zip form, described test result is sent to development of user automatically by the mode of mail, can make development of user overall understanding grasp the relevant information of each step, find in time defect and repair, avoid wrong defect to extend to the later stage always, bring more gross error to the work in later stage, in addition, unit testing result also can send to development of user automatically by the mode of mail, therefore, it can reduce error rate, can greatly improve development efficiency.
Fig. 3 is the 3rd embodiment schematic flow sheet that a kind of software building of the present invention continues integrated approach, comprising:
S300, starts version control repository, sets up the environment that whole structure moves, and extracts the input and output metadata in version control repository.
Described version control repository comprises establishment, renewal, creates baseline and report data information, and the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode.
It should be noted that, adding when initialization module, can automatically create together with step, and then the execution sequence to each step and executive mode are revised accordingly or arrange according to actual needs; In addition, this step can be guaranteed the repeatability and the reliability that build.
S301, is converted to described associated data files executable file or the medium object that can directly move.
S302, carries out unit testing to described executable file or medium object, and unit testing result is recorded to storage.
It should be noted that, unit testing need be carried out use-case design test, and whether it can check each developer's achievement can compatiblely to coordinate, and guarantees the quality building.
S303, resolves and changes associated data files, to generate final Output rusults.
Described associated data files comprises the input and output metadata in apply metadata and the described version control repository in database.
It should be noted that, be mainly relevant to arranging of its for the apply metadata in database, and it need be by resolving and conversion.
S304, by described Output rusults be packaged into complete can installation file form.
It should be noted that, this step process is the packaging process of product, and the result after packing is called again distribution of document, thereby packing is exactly by java class and library file is packaged as JAR or EAR file can be arranged on server it as an example of Java example.
S305, moves to running environment by structure, carries out function integration testing, and test result is recorded to storage.
Described test result comprises operation duration, running status, operation result and the running log of each step.
It should be noted that, this step process can detect each step correlation circumstance, for example, the defect mistake existing in step etc., it can be and whether can carry out further work necessary foundation is provided.
S306, by carrying out code coverage test through the source code of conversion and/or dissection process, to evaluate code tester coverage condition.
It should be noted that, this step is that one of function integration testing and unit testing is effectively supplemented, and it can evaluate how many codes and pass through test, the direction that should stress with clear and definite other functional tests.
S307, generates an entrance html file by described test result, and described html file is compressed to packing, automatically sends to development of user by the mode of mail.
It should be noted that, can will state html compressing file and be packaged into the compressed package of zip form, described test result is sent to development of user automatically by the mode of mail, can make development of user overall understanding grasp the relevant information of each step, find in time defect and repair, avoid wrong defect to extend to the later stage always, bring more gross error to the work in later stage, in addition, unit testing result and code coverage test result also can send to development of user automatically by the mode of mail, therefore, it can reduce error rate, can greatly improve development efficiency.
Fig. 4 is the 4th embodiment schematic flow sheet that a kind of software building of the present invention continues integrated approach, comprising:
S400, starts version control repository, sets up the environment that whole structure moves, and extracts the input and output metadata in version control repository.
Described version control repository comprises establishment, renewal, creates baseline and report data information, and the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode.
It should be noted that, adding when initialization module, can automatically create together with step, and then the execution sequence to each step and executive mode are revised accordingly or arrange according to actual needs; In addition, this step can be guaranteed the repeatability and the reliability that build.
S401, carries out code static analysis, and whether the compiling that checks all codes meets certain programmed specification or standard, and check result is recorded to storage.
It should be noted that, this step process can guarantee that all members that the code of compiling can be developed team modify and read, and it has realized the consistance of the specifications such as compiler language or standard.
S402, is converted to described associated data files executable file or the medium object that can directly move.
S403, carries out unit testing to described executable file or medium object, and unit testing result is recorded to storage.
It should be noted that, unit testing need be carried out use-case design test, and whether it can check each developer's achievement can compatiblely to coordinate, and guarantees the quality building.
S404, resolves and changes associated data files, to generate final Output rusults.
Described associated data files comprises the input and output metadata in apply metadata and the described version control repository in database.
It should be noted that, be mainly relevant to arranging of its for the apply metadata in database, and it need be by resolving and conversion.
S405, by described Output rusults be packaged into complete can installation file form.
It should be noted that, this step process is the packaging process of product, and the result after packing is called again distribution of document, thereby packing is exactly by java class and library file is packaged as JAR or EAR file can be arranged on server it as an example of Java example.
S406, moves to running environment by structure, carries out function integration testing, and test result is recorded to storage.
Described test result comprises operation duration, running status, operation result and the running log of each step.
It should be noted that, this step process can detect each step correlation circumstance, for example, the defect mistake existing in step etc., it can be and whether can carry out further work necessary foundation is provided.
S407, by carrying out code coverage test through the source code of conversion and/or dissection process, to evaluate code tester coverage condition.
It should be noted that, this step is that one of function integration testing and unit testing is effectively supplemented, and it can evaluate how many codes and pass through test, the direction that should stress with clear and definite other functional tests.
S408, generates an entrance html file by described test result, and described html file is compressed to packing, automatically sends to development of user by the mode of mail.
It should be noted that, can will state html compressing file and be packaged into the compressed package of zip form, described test result is sent to development of user automatically by the mode of mail, can make development of user overall understanding grasp the relevant information of each step, find in time defect and repair, avoid wrong defect to extend to the later stage always, bring more gross error to the work in later stage, in addition, unit testing result, code staticaanalysis results and code coverage test result also can send to development of user automatically by the mode of mail, therefore, it can reduce error rate, can greatly improve development efficiency.
Fig. 5 is the 5th embodiment schematic flow sheet that a kind of software building of the present invention continues integrated approach, comprising:
S500, monitors in real time to version control repository, and judges whether version control repository changes, and in the time being judged as YES, carries out S501 step, in the time being judged as NO, and process ends.
It should be noted that, in the time being judged as YES, can automatically perform S501 step, also can be arranged to manually carry out S501 step; This step can be found software defect or renewal in time, to repair in time or start refresh routine, it has is convenient to further improve development efficiency.
S501, starts version control repository, sets up the environment that whole structure moves, and extracts the input and output metadata in version control repository.
Described version control repository comprises establishment, renewal, creates baseline and report data information, and the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode.
It should be noted that, adding when initialization module, can automatically create together with step, and then the execution sequence to each step and executive mode are revised accordingly or arrange according to actual needs; In addition, this step can be guaranteed the repeatability and the reliability that build.
S502, carries out code static analysis, and whether the compiling that checks all codes meets certain programmed specification or standard, and check result is recorded to storage.
It should be noted that, this step process can guarantee that all members that the code of compiling can be developed team modify and read, and it is conducive to realize the consistance of the specifications such as compiler language or standard.
S503, is converted to described associated data files executable file or the medium object that can directly move.
S504, carries out unit testing to described executable file or medium object, and unit testing result is recorded to storage.
It should be noted that, unit testing need be carried out use-case design test, and whether it can check each developer's achievement can compatiblely to coordinate, and guarantees the quality building.
S505, resolves and changes associated data files, to generate final Output rusults.
Described associated data files comprises the input and output metadata in apply metadata and the described version control repository in database.
It should be noted that, be mainly relevant to arranging of its for the apply metadata in database, and it need be by resolving and conversion.
S506, by described Output rusults be packaged into complete can installation file form.
It should be noted that, this step process is the packaging process of product, and the result after packing is called again distribution of document, thereby packing is exactly by java class and library file is packaged as JAR or EAR file can be arranged on server it as an example of Java example.
S507, moves to running environment by structure, carries out function integration testing, and test result is recorded to storage.
Described test result comprises operation duration, running status, operation result and the running log of each step.
It should be noted that, this step process can detect each step correlation circumstance, for example, the defect mistake existing in step etc., it can be and whether can carry out further work necessary foundation is provided.
S508, by carrying out code coverage test through the source code of conversion and/or dissection process, to evaluate code tester coverage condition.
It should be noted that, this step is that one of function integration testing and unit testing is effectively supplemented, and it can evaluate how many codes and pass through test, the direction that should stress with clear and definite other functional tests.
S509, generates an entrance html file by described test result, and described html file is compressed to packing, automatically sends to development of user by the mode of mail.
It should be noted that, can will state html compressing file and be packaged into the compressed package of zip form, described test result is sent to development of user automatically by the mode of mail, can make development of user overall understanding grasp the relevant information of each step, find in time defect and repair, avoid wrong defect to extend to the later stage always, bring more gross error to the work in later stage, in addition, unit testing result, code staticaanalysis results and code coverage test result also can send to development of user automatically by the mode of mail, therefore, it can reduce error rate, can greatly improve development efficiency.
Fig. 6 is the structural representation of a kind of software building continuous integration system 1 of the present invention, comprising:
Data construct extraction element 2, be used for starting version control repository, set up the environment that whole structure moves, extract the input and output metadata in version control repository, described version control repository comprises establishment, renewal, creates baseline and report data information, and the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode.
It should be noted that, can be according to actual needs by data construct extraction element 2 execution sequence to each step and executive mode revise accordingly or arrange; Meanwhile, it can guarantee the repeatability and the reliability that build.
Data processing equipment 3, for associated data files is resolved and changed, to generate final Output rusults, described associated data files comprises the input and output metadata in apply metadata and the described version control repository in database.
Packing apparatus 4, for described Output rusults is packaged into complete can installation file form.
It should be noted that, be called again distribution of document by the result after packing apparatus 4 packing, thereby packing is exactly by java class and library file is packaged as JAR or EAR file can be arranged on server it as an example of Java example.
Moving apparatus 5, for structure is moved to running environment, carries out function integration testing, and test result is recorded to storage, and described test result comprises operation duration, running status, operation result and the running log of each step.
It should be noted that, moving apparatus 5 can detect each step correlation circumstance, for example, the defect mistake existing in step etc., it can be and whether can carry out further work necessary foundation is provided.
Report dispensing device 6, generates an entrance html file by described test result, and described html file is compressed to packing, automatically sends to development of user by the mode of mail.
It should be noted that, can will state html compressing file and be packaged into the compressed package of zip form by report dispensing device 6, described test result is sent to development of user automatically by the mode of mail, it can make development of user overall understanding grasp the relevant information of each step, finds in time defect and repairs, and avoids wrong defect to extend to the later stage always, bring more gross error to the work in later stage, therefore, it can reduce error rate, can greatly improve development efficiency.
As from the foregoing, the present invention can set up the environment that whole structure moves by data construct extraction element 2, the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode, development of user can be preset execution sequence and the executive mode of each step according to actual needs, make each steps flow chart energy self-starting operation, automatically move according to default execution sequence, it has reduced workload, reduce cost of development, improved development efficiency, simultaneously, the present invention can generate an entrance html file by described test result by report dispensing device 6, and described html file is compressed to packing, mode by mail sends to development of user automatically, described test result comprises the operation duration of each step, running status, operation result and running log, development of user can fully understand the relevant information of grasping each step, find in time defect and repair, avoid wrong defect to extend to the later stage always, bring more gross error to the work in later stage, therefore, it can reduce error rate, greatly improve development efficiency.
Fig. 7 is another structural representation of a kind of software building continuous integration system 1 of the present invention, and described software building continuous integration system 1 also comprises:
DTU (Data Transfer unit) 7, for being converted to described associated data files executable file or the medium object that can directly move.
Unit testing device 8, for described executable file or medium object are carried out to unit testing, and records storage by unit testing result.
It should be noted that, unit testing device 8 can be carried out use-case design test, and whether it can check each developer's achievement can compatiblely to coordinate, and guarantees the quality building.
More preferably, described software building continuous integration system 1 also comprises: code coverage proving installation 9, and for the source code of process conversion and/or dissection process is carried out to code coverage test, to evaluate code tester coverage condition.
It should be noted that, code coverage proving installation 9 can evaluate how many codes and pass through test, is one of function integration testing and unit testing is effectively supplemented, and can specify the direction that other functional tests should stress.
More preferably, described software building continuous integration system 1 also comprises: code static analysis device 11, for carrying out code static analysis, whether the compiling that checks all codes meets certain programmed specification or standard, and check result is recorded to storage.
It should be noted that, code static analysis device 11 can guarantee that all members that the code of compiling can be developed team modify and read, and it is conducive to realize the consistance of the specifications such as compiler language or standard.
More preferably, described software building continuous integration system 1 also comprises: monitoring judgment means 12, for version control repository is monitored in real time, and judges whether version control repository changes, in the time being judged as YES, automatic or manual starts described data construct extraction element 2.
It should be noted that, monitoring judgment means 12 is monitored in real time to version control repository, to find in time software defect or renewal, and repairs in time or starts refresh routine, and it has is convenient to further improve development efficiency.
In addition, the unit testing result drawing by unit testing device 8, the code coverage test result drawing by code coverage proving installation 9 and the code staticaanalysis results drawing by code static analysis device 11 all can send to development of user automatically by the mode of mail.
As from the foregoing, the present invention can set up the environment that whole structure moves by data construct extraction element 2, the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode, development of user can be preset execution sequence and the executive mode of each step according to actual needs, make each steps flow chart energy self-starting operation, automatically move according to default execution sequence, it has reduced workload, reduce cost of development, improved development efficiency, simultaneously, the present invention can generate an entrance html file by described test result by report dispensing device 6, and described html file is compressed to packing, mode by mail sends to development of user automatically, described test result comprises the operation duration of each step, running status, operation result and running log, development of user can fully understand the relevant information of grasping each step, find in time defect and repair, avoid wrong defect to extend to the later stage always, bring more gross error to the work in later stage, therefore, it can reduce error rate, greatly improve development efficiency, in addition, the present invention also can monitor version control repository in real time by monitoring judgment means 12, in the time finding that version control repository changes, can start corresponding construction step by automatic or manual, it can find software defect or renewal in time, and repair in time or start refresh routine, have and be convenient to further improve development efficiency.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.
Claims (10)
1. software building continues an integrated approach, it is characterized in that, comprising:
Start version control repository, set up the environment that whole structure moves, extract the input and output metadata in version control repository, described version control repository comprises establishment, renewal, creates baseline and report data information, and the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode;
Associated data files is resolved and changed, and to generate final Output rusults, described associated data files comprises the input and output metadata in apply metadata and the described version control repository in database;
By described Output rusults be packaged into complete can installation file form;
Structure is moved to running environment, carry out function integration testing, and test result is recorded to storage, described test result comprises operation duration, running status, operation result and the running log of each step;
Described test result is generated to an entrance html file, and described html file is compressed to packing, automatically send to development of user by the mode of mail.
2. software building as claimed in claim 1 continues integrated approach, it is characterized in that, also comprises:
Described associated data files is converted to executable file or the medium object that can directly move;
Described executable file or medium object are carried out to unit testing, and unit testing result is recorded to storage.
3. software building as claimed in claim 1 or 2 continues integrated approach, it is characterized in that, also comprises:
By carrying out code coverage test through the source code of conversion and/or dissection process, to evaluate code tester coverage condition.
4. software building as claimed in claim 1 continues integrated approach, it is characterized in that, also comprises:
Carry out code static analysis, whether the compiling that checks all codes meets certain programmed specification or standard, and check result is recorded to storage.
5. the software building as described in claim 1 or 2 or 4 continues integrated approach, it is characterized in that, also comprises:
Version control repository is monitored in real time, and judge whether version control repository changes, in the time being judged as YES, automatic or manual is carried out and is started version control repository, set up the environment that whole structure moves, extract the step of the input and output metadata in version control repository.
6. a software building continuous integration system, is characterized in that, comprising:
Data construct extraction element, be used for starting version control repository, set up the environment that whole structure moves, extract the input and output metadata in version control repository, described version control repository comprises establishment, renewal, creates baseline and report data information, and the environment that described structure moves comprises interpolation initialization template, the execution sequence that each step is set and executive mode;
Data processing equipment, for associated data files is resolved and changed, to generate final Output rusults, described associated data files comprises the input and output metadata in apply metadata and the described version control repository in database;
Packing apparatus, for described Output rusults is packaged into complete can installation file form;
Moving apparatus, for structure is moved to running environment, carries out function integration testing, and test result is recorded to storage, and described test result comprises operation duration, running status, operation result and the running log of each step;
Report dispensing device, generates an entrance html file by described test result, and described html file is compressed to packing, automatically sends to development of user by the mode of mail.
7. software building continuous integration system as claimed in claim 6, is characterized in that, also comprises:
DTU (Data Transfer unit), for being converted to described associated data files executable file or the medium object that can directly move;
Unit testing device, for described executable file or medium object are carried out to unit testing, and records storage by unit testing result.
8. the software building continuous integration system as described in claim 6 or 7, is characterized in that, also comprises:
Code coverage proving installation, for the source code of process conversion and/or dissection process is carried out to code coverage test, to evaluate code tester coverage condition.
9. software building continuous integration system as claimed in claim 6, is characterized in that, also comprises:
Code static analysis device, for carrying out code static analysis, whether the compiling that checks all codes meets certain programmed specification or standard, and check result is recorded to storage.
10. the software building continuous integration system as described in claim 6 or 7 or 9, is characterized in that, also comprises:
Monitoring judgment means, for version control repository is monitored in real time, and judges whether version control repository changes, and in the time being judged as YES, automatic or manual starts described data construct extraction element.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310176646.0A CN104156224B (en) | 2013-05-14 | 2013-05-14 | A kind of software building continuous integrating method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310176646.0A CN104156224B (en) | 2013-05-14 | 2013-05-14 | A kind of software building continuous integrating method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104156224A true CN104156224A (en) | 2014-11-19 |
CN104156224B CN104156224B (en) | 2017-11-07 |
Family
ID=51881731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310176646.0A Active CN104156224B (en) | 2013-05-14 | 2013-05-14 | A kind of software building continuous integrating method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104156224B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293811A (en) * | 2016-07-28 | 2017-01-04 | 北京中电普华信息技术有限公司 | A kind of packing and issuing method and device automatically |
CN106326110A (en) * | 2016-08-10 | 2017-01-11 | 浪潮(北京)电子信息产业有限公司 | Bug defect restoration method and system in system version development process |
CN106874205A (en) * | 2017-02-27 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of automated function test devices and methods therefor in continuous integrating |
CN107179988A (en) * | 2017-05-15 | 2017-09-19 | 杭州时趣信息技术有限公司 | A kind of software project iteration security system |
CN107450933A (en) * | 2017-08-18 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of software continuous integrated approach and system |
CN107621944A (en) * | 2017-09-22 | 2018-01-23 | 天翼电子商务有限公司 | Continuous integration pipeline system and method based on automatic operation and maintenance |
CN108011974A (en) * | 2017-12-25 | 2018-05-08 | 苏州赛源微电子有限公司 | A kind of software building continuous integration system |
CN108062220A (en) * | 2017-11-17 | 2018-05-22 | 南京轩世琪源软件科技有限公司 | A kind of framework of rapid build information system software |
CN108241502A (en) * | 2016-12-26 | 2018-07-03 | 航天信息股份有限公司 | A kind of method and device of code continuous integrating |
CN109976994A (en) * | 2017-12-27 | 2019-07-05 | 航天信息股份有限公司 | White-box testing method, apparatus, the computer equipment of Java project |
CN112328259A (en) * | 2020-11-26 | 2021-02-05 | 北京五八信息技术有限公司 | Compiling time length processing method and device |
CN113032240A (en) * | 2019-12-09 | 2021-06-25 | 中车时代电动汽车股份有限公司 | Software test automation management system and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515232A (en) * | 2008-02-21 | 2009-08-26 | 卓望数码技术(深圳)有限公司 | Software continuous integration system and method |
US20110307860A1 (en) * | 2010-06-09 | 2011-12-15 | Hong Seong Park | Simulation-based interface testing automation system and method for robot software components |
CN102708051A (en) * | 2012-07-12 | 2012-10-03 | 加弘科技咨询(上海)有限公司 | Continuous integration method and continuous integration system for program |
CN102799515A (en) * | 2011-05-24 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Application program testing method and device |
CN102880546A (en) * | 2012-09-03 | 2013-01-16 | 上海方正数字出版技术有限公司 | Software integration testing method and system based on extensible markup language (XML) database |
-
2013
- 2013-05-14 CN CN201310176646.0A patent/CN104156224B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515232A (en) * | 2008-02-21 | 2009-08-26 | 卓望数码技术(深圳)有限公司 | Software continuous integration system and method |
US20110307860A1 (en) * | 2010-06-09 | 2011-12-15 | Hong Seong Park | Simulation-based interface testing automation system and method for robot software components |
CN102799515A (en) * | 2011-05-24 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Application program testing method and device |
CN102708051A (en) * | 2012-07-12 | 2012-10-03 | 加弘科技咨询(上海)有限公司 | Continuous integration method and continuous integration system for program |
CN102880546A (en) * | 2012-09-03 | 2013-01-16 | 上海方正数字出版技术有限公司 | Software integration testing method and system based on extensible markup language (XML) database |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293811A (en) * | 2016-07-28 | 2017-01-04 | 北京中电普华信息技术有限公司 | A kind of packing and issuing method and device automatically |
CN106326110A (en) * | 2016-08-10 | 2017-01-11 | 浪潮(北京)电子信息产业有限公司 | Bug defect restoration method and system in system version development process |
CN108241502A (en) * | 2016-12-26 | 2018-07-03 | 航天信息股份有限公司 | A kind of method and device of code continuous integrating |
CN108241502B (en) * | 2016-12-26 | 2021-04-16 | 航天信息股份有限公司 | Method and device for continuously integrating codes |
CN106874205A (en) * | 2017-02-27 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of automated function test devices and methods therefor in continuous integrating |
CN107179988A (en) * | 2017-05-15 | 2017-09-19 | 杭州时趣信息技术有限公司 | A kind of software project iteration security system |
CN107450933A (en) * | 2017-08-18 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of software continuous integrated approach and system |
CN107621944A (en) * | 2017-09-22 | 2018-01-23 | 天翼电子商务有限公司 | Continuous integration pipeline system and method based on automatic operation and maintenance |
CN108062220B (en) * | 2017-11-17 | 2019-05-24 | 内蒙古博微计算机有限公司 | A kind of framework of rapid build information system software |
CN108062220A (en) * | 2017-11-17 | 2018-05-22 | 南京轩世琪源软件科技有限公司 | A kind of framework of rapid build information system software |
CN108011974A (en) * | 2017-12-25 | 2018-05-08 | 苏州赛源微电子有限公司 | A kind of software building continuous integration system |
CN109976994A (en) * | 2017-12-27 | 2019-07-05 | 航天信息股份有限公司 | White-box testing method, apparatus, the computer equipment of Java project |
CN113032240A (en) * | 2019-12-09 | 2021-06-25 | 中车时代电动汽车股份有限公司 | Software test automation management system and method |
CN112328259A (en) * | 2020-11-26 | 2021-02-05 | 北京五八信息技术有限公司 | Compiling time length processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104156224B (en) | 2017-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104156224A (en) | Continuous integration method and system for software construction | |
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
KR101132560B1 (en) | System and method for automatic interface testing based on simulation for robot software components | |
CN104077140B (en) | Automation Compilation Method and compilation device for continuous integrating | |
CN103164328B (en) | The regression testing method of a kind of business function, Apparatus and system | |
CN103019928B (en) | A kind of automated testing method and system | |
CN104407980B (en) | Mobile solution automatic test device and method | |
CN102819492B (en) | Keyword driven automatic testing frame on basis of Android | |
CN108845940B (en) | Enterprise-level information system automatic function testing method and system | |
CN108073400A (en) | Software automation construction method, server and storage medium | |
Fritzson et al. | The OpenModelica integrated modeling, simulation and optimization environment | |
CN105608012A (en) | Automatic test method and automatic test system | |
CN102693183A (en) | Method and system for realizing automatic software testing | |
CN110825619A (en) | Automatic generation method and device of interface test case and storage medium | |
CN104424088A (en) | Software testing method and device | |
CN101930400A (en) | SDK (Software Development Kit) automatic test system and method | |
CN100451986C (en) | Automatic verification method of network chip | |
CN105094783A (en) | Method and device for testing Android application stability | |
KR20120121950A (en) | Application Graphic User Interface Test Automation System and Method Thereof | |
CN102567164A (en) | Instruction set batch testing device and method for processor | |
US10846059B2 (en) | Automated generation of software bindings | |
CN102479152A (en) | Method and device for obtaining automatic test result of tool based on Android platform | |
CN103399814A (en) | Automated testing method and automated testing device | |
CN103186463B (en) | Determine the method and system of the test specification of software | |
CN111966587A (en) | Data acquisition method, device 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 | ||
CP03 | Change of name, title or address |
Address after: 510000 eighteen, building 8, 6, Donggang Road, Yuexiu District, Guangzhou, Guangdong. Patentee after: GUANGDONG POWER GRID CO., LTD. INFORMATION CENTER Address before: 510080 18 18, Shui Gang Gang, Dongfeng East Road, Yuexiu District, Guangzhou, Guangdong. Patentee before: Information Center of Guangdong Power Grid Corporation |