[go: up one dir, main page]

CN102708051B - The method and system of program continuous integrating - Google Patents

The method and system of program continuous integrating Download PDF

Info

Publication number
CN102708051B
CN102708051B CN201210127027.8A CN201210127027A CN102708051B CN 102708051 B CN102708051 B CN 102708051B CN 201210127027 A CN201210127027 A CN 201210127027A CN 102708051 B CN102708051 B CN 102708051B
Authority
CN
China
Prior art keywords
program
described program
log
message
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210127027.8A
Other languages
Chinese (zh)
Other versions
CN102708051A (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.)
Celestica Technology Consultancy Shanghai Co Ltd
Original Assignee
Celestica Technology Consultancy Shanghai Co Ltd
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 Celestica Technology Consultancy Shanghai Co Ltd filed Critical Celestica Technology Consultancy Shanghai Co Ltd
Priority to CN201210127027.8A priority Critical patent/CN102708051B/en
Publication of CN102708051A publication Critical patent/CN102708051A/en
Application granted granted Critical
Publication of CN102708051B publication Critical patent/CN102708051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a kind of method and system of program continuous integrating, wherein, the method of program continuous integrating of the present invention comprises: compile obtained amended program, and compiling output the first log-on message successfully, then, based on described first log-on message, described program is tested, to determine whether described program can true(-)running.The present invention can compile amended program automatically, and successful for compiling program is tested, and can greatly reduce the repeated work of programming personnel thus, improves the work efficiency of programming personnel.

Description

The method and system of program continuous integrating
Technical field
The present invention relates to software test, particularly relate to a kind of method and system of program continuous integrating.
Background technology
Along with the development of computer technology, software vendor is in order to meet the various demands of user, continually develop out the software that can realize various function, and any a software on stream, often need cost many painstaking effort of project team member, such as, first to formulate the interim task of this software project, target, concrete enforcement etc. subsequently, and this software project rarely feeds back between each stage of project, and usually only just can see result in the later stage of the project life cycle, usually also only have by forcing target date and milestone to follow the tracks of each project stage etc., easily cause a lot of problem just can be found in the later stage of software development thus, this not only extends software development cycle, also add the cost of software development.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of method and system of program continuous integrating, so that the problem that Timeliness coverage settlement procedure are existing on stream.
For achieving the above object and other relevant objects, the invention provides a kind of method of program continuous integrating, it comprises step: 1) compile the program obtained, and compile successfully output the first log-on message afterwards; 2) based on described first log-on message, described program is tested, to determine whether described program can true(-)running.
Preferably, described step 2) also comprise: when determining that described program can normally be run, export the second log-on message; And step 3) based on described second log-on message, described program is incorporated in the procedure set belonging to described program.
Preferably, the method for described program continuous integrating also comprises step: 4) when determine described program can not true(-)running time, start abovementioned steps 1 based on the amendment to described program).
Preferably, the method for described program continuous integrating also comprises step: 5) described program carried out the compiling result that compiles and/or notify relevant programming public to the test result that described program is tested.
Preferably, what described notice adopted is mail notification mode.
Based on above-mentioned purpose, the present invention also provides a kind of described program continuous integration system, and it comprises: collector, for compiling obtained program, and is compiling output the first log-on message successfully; Test module, for testing described program based on described first log-on message, to determine whether described program can true(-)running.
Preferably, described program continuous integration system also comprises: integration module, described program is incorporated in the procedure set belonging to described program for obtaining the second log-on message of output when described program can normally be run based on described test module in test.
Preferably, described program continuous integration system also comprises: start module, for when described test module test obtain described program can not true(-)running time, start described collector based on the amendment to described program.
Preferably, described program continuous integration system also comprises: notice output module, for the compiling result that obtains being compiled described program by described collector and/or by described test module to described program test and the test result that obtains notifies relevant programming public.
Preferably, what described notice adopted is mail notification mode.
As mentioned above, the method and system of program continuous integrating of the present invention, have following beneficial effect: can automatically compile amended program, and successful for compiling program are tested, the repeated work of programming personnel can be greatly reduced thus, improve the work efficiency of programming personnel; In addition, compiling result and/or test result can also be supplied to programming personnel, so that programming personnel can produced problem in discovery procedure fast, and solve in time, thus the shortening program development cycle.
Accompanying drawing explanation
Fig. 1 is shown as the method flow diagram of program continuous integrating of the present invention.
Fig. 2 is shown as the method flow diagram of a kind of preferred program continuous integrating of the present invention.
Fig. 3 is shown as program continuous integration system structural representation of the present invention.
Fig. 4 is shown as one of the present invention preferred program continuous integration system structural representation.
Element numbers explanation
1 program continuous integration system
11 collectors
12 test modules
13 integration modules
14 start module
15 notice output modules
S1-S5, S21 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
Fig. 1 is the process flow diagram of the method for program continuous integrating of the present invention.Wherein, the method for described program continuous integrating performs primarily of program continuous integration system, and described program continuous integration system is the application module etc. be arranged in computer equipment.This computer equipment be a kind of can according to the program stored in advance, automatically, carry out the modernization intelligent electronic device of massive values computation and various information processing at high speed, its hardware includes but not limited to microprocessor, FPGA (field programmable gate array), DSP (digital signal processor), embedded device etc.
In step sl, described program continuous integration system is used for compiling obtained program, and is compiling output the first log-on message successfully.
It should be noted that, those skilled in the art should understand that the process that described program continuous integration system compiles program, therefore no longer described in detail at this.
Wherein, described program comprises the set of the command sequence of any computing machine language compilation, and preferably, it includes but not limited to: can realize the command sequence collection of simple function, can realize multi-functional command sequence collection etc.Such as, the program of the area of a circle can be calculated, comprise the program etc. of copy editor's function and graphics edition function.
The mode that described program continuous integration system obtains program includes but not limited to: the operation 1) based on programming personnel obtains program, such as, 3 to 10 row of the program X1 of programming personnel shown by programming interface inserts program code x11, then preserve amended program X1, then described program continuous integration system obtains program X1 based on the operation of preserving from programming personnel.2) described program continuous integration system is supplied to by other equipment.Such as, amended program is supplied to described program continuous integration system etc. by the computer equipment belonging to the version control system of save routine.
When described program is by compiling, described program continuous integration system exports the first log-on message.Described first log-on message comprises anyly can start the information of described program being carried out testing, and it includes but not limited to Boolean etc.
In step s 2, described program continuous integration system is used for testing described program based on described first log-on message, to determine whether described program can true(-)running.Preferably, described program continuous integration system comprises automatic test machine.
It should be noted that, those skilled in the art should understand that the process that described program continuous integration system is tested program, therefore no longer described in detail at this.
Wherein, the implication of program energy true(-)running comprises described program based on after the operation of presumptive test use-case, can export the result corresponding with described presumptive test use-case.
Preferably, as shown in Figure 2, also comprise step S21 in step S2 of the present invention, the method for program continuous integrating of the present invention also comprises step S3.
Particularly, in the step s 21, when described program can normally be run, the second log-on message is exported.Wherein, described second log-on message comprises anyly can represent that described program is can the information of true(-)running, and it includes but not limited to Boolean etc.
In step s3, when described program can normally be run, described program is incorporated in the procedure set belonging to described program based on described second log-on message by described program continuous integration system.
Particularly, described program, based on the identity characteristic information such as annotation of described program such as identity class, is replaced the program block that identity characteristic information in described procedure set is identical by described program continuous integration system; Or described program, based on the annotation information of described program such as numbering class, is added in described procedure set and numbers corresponding position etc. with described by described program continuous integration system.
Wherein, the mode of procedure set that described program continuous integration system is determined belonging to described program includes but not limited to: determine based on arranging in advance; Corresponding relation based on preset program and procedure set is determined.
As another kind of optimal way, as shown in Figure 2, the method for described program continuous integrating also comprises step S4.
In step s 4 which, when described program can not normally be run, abovementioned steps 1 is started based on the amendment to described program).Wherein, the situation that described program can not normally be run comprises any situation causing program normally to run, and it includes but not limited to: described program not by compiling, described program not by test etc.
Such as, program A ' fails in step sl by compiling or failing in step s 2 by test, then described program continuous integration system determines that described program A ' can not normally run, after then personnel modify to described program A ', described program continuous integration system obtains described amended program A ', again to perform compilation operations and/or test operation etc.
As another optimal way, as shown in Figure 2, the method for described program continuous integrating also comprises step S5.
In step s 5, described program continuous integration system is by the compiling result compiled amended program and/or notify relevant programming public to the test result that program is tested.
Wherein, described compiling result includes but not limited to: compile successful information, cause the information etc. of certain line code compiled unsuccessfully.Described test result includes but not limited to: test successful information, cause the abnormal information etc. of the subprogram of test crash.
Wherein, described compiling result and/or test result are notified that the mode of relevant programming public includes but not limited to by described program continuous integration system: described compiling result and/or test result are notified relevant programming public by the contact method 1) based on relevant programming public.Such as, the information of certain line code compiled unsuccessfully is notified relevant programming public by predetermined email address by described program continuous integration system.2) directly show compiling result and/or test result to relevant programming public, or compiling result and/or test result to be preserved, so that programming personnel checks.Such as, program is not preserved with daily record form, so that programming personnel checks by the test result of test by described program continuous integration system.
Fig. 3 is the structural representation of program continuous integration system of the present invention.Described program continuous integration system 1 comprises: collector 11 and test module 12.
Described collector 11 for compiling obtained program, and is compiling output the first log-on message successfully.
It should be noted that, those skilled in the art should understand that the process that described test module 11 pairs of programs compile, therefore no longer described in detail at this.
Wherein, described program comprises the set of the command sequence of any computing machine language compilation, and preferably, it includes but not limited to: can realize the command sequence collection of simple function, can realize multi-functional command sequence collection etc.Such as, the program of the area of a circle, the program comprising copy editor's function and graphics edition function etc. can be calculated.
The mode that described collector 11 obtains program includes but not limited to: the operation 1) based on programming personnel obtains program, such as, 3 to 10 row of the program X1 of programming personnel shown by programming interface inserts program code x11, then preserve amended program X1, then described collector 11 obtains described program X1 based on the operation of preserving from programming personnel.2) described collector 11 is supplied to by other equipment.Such as, by the version control system said computer equipment of save routine, amended program is supplied to described collector 11 etc.
When described program is by compiling, described collector exports the first log-on message.Described first log-on message comprises anyly can start the information of described program being carried out testing, and it includes but not limited to Boolean etc.
Described test module 12 for testing described program based on described first log-on message, to determine whether described program can true(-)running.Preferably, described test module comprises automatic test machine.
It should be noted that, those skilled in the art should understand that the process that described test module 12 pairs of programs are tested, therefore no longer described in detail at this.
Wherein, the implication of program energy true(-)running comprises described program based on after the operation of presumptive test use-case, can export the result corresponding with described presumptive test use-case.
Preferably, as shown in Figure 4, described program continuous integration system 1 also comprises: integration module 13.
Described program is incorporated in the procedure set belonging to described program for obtaining the second log-on message of output when described program can normally be run based on described test module in test by described integration module 13.Wherein, described second log-on message comprises anyly can represent that described program is can the information of true(-)running, and it includes but not limited to Boolean etc.
Particularly, described program, based on the identity characteristic information such as annotation of described program such as identity class, is replaced the program block that identity characteristic information in described procedure set is identical by described integration module 13; Or described program, based on the annotation information of described program such as numbering class, is added in described procedure set and numbers corresponding position etc. with described by described integration module.
Wherein, the mode of procedure set that described integration module is determined belonging to described program includes but not limited to: determine based on manually arranging in advance; Corresponding relation based on preset program and procedure set is determined.
As a kind of optimal way, as shown in Figure 4, described program continuous integration system 1 also comprises: start module 14.
Described startup module 14 for when described test module test obtain described program can not true(-)running time, start described collector 11 based on the amendment to described program.Wherein, the situation that described program can not normally be run comprises any situation causing program normally to run, and it includes but not limited to: described program not by compiling, described program not by test etc.
Such as, program A ' is not by compiling or test, then described test module 12 determines that described program A ' can not normally run, after then personnel modify to described program A ', described startup module 14 obtains described amended program A ', again to perform compilation operations and/or test operation etc.
As another optimal way, as shown in Figure 4, described program continuous integration system 1 also comprises notice output module 15.
Described notice output module 15 is for notifying relevant programming public by the compiling compiled amended program result and/or to the test result that program is tested.
Wherein, described compiling result includes but not limited to: compile successful information, cause the information etc. of certain line code compiled unsuccessfully.Described test result includes but not limited to: test successful information, cause the abnormal information etc. of the subprogram of test crash.
Wherein, described compiling result and/or test result are notified that the mode of relevant programming public includes but not limited to by described notice output module 15: described compiling result and/or test result are notified relevant programming public by the contact method 1) based on relevant programming public.Such as, the information of certain line code compiled unsuccessfully is notified relevant programming public by predetermined email address by described notice output module 15.2) directly show compiling result and/or test result to relevant programming public, or compiling result and/or test result to be preserved, so that programming personnel checks.Such as, program is not preserved with daily record form, so that programming personnel checks by the test result of test by described notice output module 15.
In sum, the method and system of program continuous integrating of the present invention can compile amended program automatically, and successful for compiling program are tested, and can greatly reduce the repeated work of programming personnel thus, improve the work efficiency of programming personnel; In addition, compiling result and/or test result can be supplied to programming personnel by described program continuous integration system, so that programming personnel can produced problem in discovery procedure fast, and then Problems existing in settlement procedure performance history in time, shorten the program development cycle.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (6)

1. a method for program continuous integrating, is characterized in that, comprising:
1) program obtained is compiled, and compiling output the first log-on message successfully; Wherein, described first log-on message comprises and anyly can start the information of described program being carried out testing;
2) based on described first log-on message, described program is tested, to determine that described program whether can true(-)running;
3) when determining that described program can normally be run, export the second log-on message, based on described second log-on message, and based on the corresponding relation of manual setting in advance or default described program and procedure set, described program is incorporated in the procedure set belonging to described program, based on the identity characteristic information of described program, described program is replaced the program block that identity characteristic information in described procedure set is identical; Or, based on the numbering annotation information of described program, described program is added on position corresponding with described numbering annotation information in described procedure set; When determine described program can not true(-)running time, start abovementioned steps 1 based on the amendment to described program); Wherein, described second log-on message comprises and anyly can represent that described program is can the information of true(-)running.
2. the method for program continuous integrating according to claim 1, is characterized in that, also comprise:
Described program is carried out the compiling result that compiles and/or relevant programming public is notified to the test result that described program is tested.
3. the method for program continuous integrating according to claim 2, is characterized in that, what described notice adopted is mail notification mode.
4. a program continuous integration system, is characterized in that, comprising:
Collector, for compiling obtained program, and is compiling output the first log-on message successfully; Wherein, described first log-on message comprises and anyly can start the information of described program being carried out testing;
Test module, for testing described program based on described first log-on message, to determine that described program whether can true(-)running;
Integration module, for obtaining the second log-on message of output when described program can normally be run in test based on described test module, and based on the corresponding relation of manual setting in advance or default described program and procedure set, and described program is incorporated in the procedure set belonging to described program, based on the identity characteristic information of described program, described program is replaced the program block that identity characteristic information in described procedure set is identical; Or, based on the numbering annotation information of described program, described program is added on position corresponding with described numbering annotation information in described procedure set; Wherein, described second log-on message comprises and anyly can represent that described program is can the information of true(-)running;
Start module, for when described test module test obtain described program can not true(-)running time, start described collector based on the amendment to described program.
5. program continuous integration system according to claim 4, it is characterized in that, also comprise: notice output module, for the compiling result that obtains being compiled described program by described collector and/or by described test module to described program test and the test result that obtains notifies relevant programming public.
6. program continuous integration system according to claim 5, is characterized in that, what described notice adopted is mail notification mode.
CN201210127027.8A 2012-07-12 2012-07-12 The method and system of program continuous integrating Active CN102708051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210127027.8A CN102708051B (en) 2012-07-12 2012-07-12 The method and system of program continuous integrating

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210127027.8A CN102708051B (en) 2012-07-12 2012-07-12 The method and system of program continuous integrating

Publications (2)

Publication Number Publication Date
CN102708051A CN102708051A (en) 2012-10-03
CN102708051B true CN102708051B (en) 2016-04-27

Family

ID=46900856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210127027.8A Active CN102708051B (en) 2012-07-12 2012-07-12 The method and system of program continuous integrating

Country Status (1)

Country Link
CN (1) CN102708051B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156224B (en) * 2013-05-14 2017-11-07 广东电网公司信息中心 A kind of software building continuous integrating method and system
CN104090763A (en) * 2014-07-11 2014-10-08 携程计算机技术(上海)有限公司 Compiling and publishing method and publishing server
CN105335284B (en) * 2014-08-07 2018-12-28 腾讯科技(深圳)有限公司 A kind of data processing method and device for continuous integration system
CN106293742A (en) * 2016-08-11 2017-01-04 浪潮电子信息产业股份有限公司 Automatic system integration method based on timing construction
CN106126432A (en) * 2016-09-18 2016-11-16 网易(杭州)网络有限公司 Development project is revised method of testing and the device of content
CN106970818A (en) * 2017-03-27 2017-07-21 深圳市中博睿存信息技术有限公司 A kind of software continuous integrated approach and device for Linux platform
CN108572912A (en) * 2017-09-22 2018-09-25 北京金山云网络技术有限公司 A continuous integration method, device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515232A (en) * 2008-02-21 2009-08-26 卓望数码技术(深圳)有限公司 Software continuous integration system and method
CN102012814A (en) * 2010-11-24 2011-04-13 中兴通讯股份有限公司 Construction method and system for software version

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7885929B2 (en) * 2006-01-03 2011-02-08 Motio, Inc. Continuous integration of business intelligence software

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515232A (en) * 2008-02-21 2009-08-26 卓望数码技术(深圳)有限公司 Software continuous integration system and method
CN102012814A (en) * 2010-11-24 2011-04-13 中兴通讯股份有限公司 Construction method and system for software version

Also Published As

Publication number Publication date
CN102708051A (en) 2012-10-03

Similar Documents

Publication Publication Date Title
CN102708051B (en) The method and system of program continuous integrating
CN104765914B (en) A kind of relay protection device logic configuration method
CN106777101B (en) Data processing engine
CN108833459B (en) Data reporting method and terminal equipment
CN102855178B (en) Method and device for generating Mock base during unit test
CN103309800B (en) A kind of webpage automated testing method and system
CN102306119A (en) System for capturing global exception and method
CN106354638A (en) Automatic testing method and device based on lexical analysis
US7185322B2 (en) Method and apparatus for parallel action processing
CN102542116B (en) Method and device of DFM (Design for Manufacturability) analysis automation
CN104536893A (en) Batch processing program content error processing method and device
CN107102942B (en) Input domain error positioning-based minimum fault positioning method
CN104008046A (en) Method and device for testing programs
Borde et al. Pride-an environment for component-based development of distributed real-time embedded systems
CN102521135B (en) The method of testing of linear system and device
CN119396406A (en) An automatic incremental compilation method and system for Java development
CN111666368B (en) Data processing method and device, storage medium and terminal
CN118151941A (en) Compiling optimization method, device, equipment and medium of electric power Internet of things operating system
CN111400191A (en) Web page security testing method, device and computer readable storage medium
CN112307589A (en) Unit working condition creating method and device, electronic equipment and storage medium
CN102023870B (en) Detection method and device for software modification as well as electronic equipment
CN103559134A (en) Configuration method and device for benchmark test component
CN115544319A (en) Industrial Internet big data platform and data processing method
CN115599772A (en) A Localization Migration Adaptation Method for Embedded Edge Computing Service Application System
CN107589966A (en) The method and apparatus of management code in software development system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant