CN107480049A - Defect-restoration method therefor, device and computer equipment - Google Patents

Defect-restoration method therefor, device and computer equipment Download PDF

Info

Publication number
CN107480049A
CN107480049A CN201710576521.5A CN201710576521A CN107480049A CN 107480049 A CN107480049 A CN 107480049A CN 201710576521 A CN201710576521 A CN 201710576521A CN 107480049 A CN107480049 A CN 107480049A
Authority
CN
China
Prior art keywords
defect
research
user
fresh code
mentioned
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.)
Pending
Application number
CN201710576521.5A
Other languages
Chinese (zh)
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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201710576521.5A priority Critical patent/CN107480049A/en
Publication of CN107480049A publication Critical patent/CN107480049A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The application proposes a kind of defect-restoration method therefor, device and computer equipment, wherein, drawbacks described above restorative procedure includes:Automatic test is carried out to research and development fresh code, and obtains the test report of the automatic test;According to the defects of described test report, the class name occurred in the research and development fresh code where the position of the defect is obtained;Class name according to where occurring the position of the defect in the research and development fresh code, it is determined that repairing the user of the defect;The test report is sent to the user, so that the user repairs to the defect.The application can realize rapidly is sent to corresponding user by test report, avoids research staff and is flooded by substantial amounts of test report, shortens and repairs the time-consuming of defect, improves the efficiency for repairing defect.

Description

Defect-restoration method therefor, device and computer equipment
Technical field
The application is related to Computer Applied Technology field, more particularly to a kind of defect-restoration method therefor, device and computer are set It is standby.
Background technology
With the continuous maturation of software industry, enterprises would generally use various instruments to improve constantly development efficiency, continue Integrated (Continuous Integration;Hereinafter referred to as:CI) environment is exactly representative therein.
In existing correlation technique, a common CI environment can include:Automatic code download, packing/structure, deployment, Automatic test and issue etc..
Research staff is after research and development, it usually needs by writing automation cell test case in research and development code Each method is tested, and this partial test use-case will perform in CI environment as automatic test script.
After above-mentioned automatic test script is finished, CI environment issues test result to all research staff, Then research staff finds out the defects of to one's name responsible module and modified from test result again, so as to cause to repair Defect it is time-consuming longer, the efficiency comparison for repairing defect is low.
The content of the invention
The application is intended to one of technical problem at least solving in correlation technique to a certain extent.
Therefore, first purpose of the application is to propose a kind of defect-restoration method therefor, rapidly test is reported with realizing Accuse and give corresponding user, avoid research staff and flooded by substantial amounts of test report, shorten and repair the time-consuming of defect, carry The high efficiency for repairing defect.
Second purpose of the application is to propose a kind of bug repairing apparatus.
The 3rd purpose of the application is to propose a kind of computer equipment.
The 4th purpose of the application is to propose a kind of non-transitorycomputer readable storage medium.
The 5th purpose of the application is to propose a kind of computer program product.
For the above-mentioned purpose, the application first aspect embodiment proposes a kind of defect-restoration method therefor, including:It is new to researching and developing Code carries out automatic test, and obtains the test report of the automatic test;According to the defects of described test report, obtain Obtain the class name researched and developed and occurred in fresh code where the position of the defect;Described lack occurs according in the research and development fresh code Class name where sunken position, it is determined that repairing the user of the defect;The test report is sent to the user, with toilet User is stated to repair the defect.
In the defects of the embodiment of the present application provides restorative procedure, automatic test is carried out to research and development fresh code, and obtain After the test report for stating automatic test, according to the defects of above-mentioned test report, obtain and occur in above-mentioned research and development fresh code Class name where the position of drawbacks described above, then according to the class where the position that drawbacks described above occurs in above-mentioned research and development fresh code Name, it is determined that repairing the user of drawbacks described above, above-mentioned test report is finally sent to above-mentioned user, so that above-mentioned user is to above-mentioned Defect is repaired, and test report rapidly is sent into corresponding user so as to realize, it is big to avoid research staff The test report of amount is flooded, and is shortened and is repaired the time-consuming of defect, improves the efficiency for repairing defect.
For the above-mentioned purpose, the application second aspect embodiment proposes a kind of bug repairing apparatus, including:Test mould Block, for carrying out automatic test to research and development fresh code, and obtain the test report of the automatic test;Module is obtained, is used According to the defects of described test report, the class name occurred in the research and development fresh code where the position of the defect is obtained; Determining module, for the class where the position of the defect occurs in the research and development fresh code according to the acquisition module acquisition Name, it is determined that repairing the user of the defect;Sending module, the test report for the test module to be obtained are sent to described User, so that the user repairs to the defect.
In the defects of the embodiment of the present application provides prosthetic device, test module carries out automatic test to research and development fresh code, And after obtaining the test report of above-mentioned automatic test, module is obtained according to the defects of above-mentioned test report, is obtained above-mentioned The class name where the position that drawbacks described above occurs in fresh code is researched and developed, it is then determined that module occurs according in above-mentioned research and development fresh code Class name where the position of drawbacks described above, it is determined that repairing the user of drawbacks described above, last sending module sends out above-mentioned test report Above-mentioned user is given, so that above-mentioned user repairs to drawbacks described above, is rapidly sent test report so as to realize To corresponding user, avoid research staff and flooded by substantial amounts of test report, shorten and repair the time-consuming of defect, improve and repair The efficiency of multiple defect.
For the above-mentioned purpose, the application third aspect embodiment proposes a kind of computer equipment, including memory, processing Device and the computer program that can be run on the memory and on the processor is stored in, meter described in the computing device During calculation machine program, method as described above is realized.
For the above-mentioned purpose, the application fourth aspect embodiment proposes a kind of non-transitory computer-readable storage medium Matter, is stored thereon with computer program, and the computer program realizes method as described above when being executed by processor.
For the above-mentioned purpose, the aspect embodiment of the application the 5th proposes a kind of computer program product, when the calculating When instruction in machine program product is by computing device, method as described above is realized.
The aspect and advantage that the application adds will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the application.
Brief description of the drawings
The above-mentioned and/or additional aspect of the application and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow chart of the application defect-restoration method therefor one embodiment;
Fig. 2 is the flow chart of another embodiment of the application defect-restoration method therefor;
Fig. 3 is the flow chart of the application defect-restoration method therefor further embodiment;
Fig. 4 is the flow chart of the application defect-restoration method therefor further embodiment;
Fig. 5 is the structural representation of the application bug repairing apparatus one embodiment;
Fig. 6 is the structural representation of another embodiment of the application bug repairing apparatus;
Fig. 7 is the structural representation of the application computer equipment one embodiment.
Embodiment
Embodiments herein is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the application, and it is not intended that limitation to the application.
Fig. 1 is the flow chart of the application defect-restoration method therefor one embodiment, as shown in figure 1, drawbacks described above restorative procedure It can include:
Step 101, automatic test is carried out to research and development fresh code, and obtains the test report of above-mentioned automatic test.
For the present embodiment to be illustrated exemplified by the research and development of fresh code are carried out in CI environment, common CI environment can be with Including:Automatic code download, packing/structure, deployment, automatic test and issue etc..
In the present embodiment, after automatic test is carried out to research and development fresh code, it can obtain to above-mentioned research and development fresh code Carry out the test report of automatic test.
Step 102, according to the defects of above-mentioned test report, the position that drawbacks described above occurs in above-mentioned research and development fresh code is obtained Class name where putting.
Step 103, according to the class name where the position that drawbacks described above occurs in above-mentioned research and development fresh code, it is determined that repairing above-mentioned The user of defect.
Step 104, above-mentioned test report is sent to above-mentioned user, so that above-mentioned user repairs to drawbacks described above.
Specifically, above-mentioned test report can be sent to above-mentioned user after above-mentioned automatic test terminates, so as to Above-mentioned user can be made to repair drawbacks described above.
In specific implementation, above-mentioned test report can be sent to above-mentioned user by sending out mail, it can also be used Above-mentioned test report is sent to above-mentioned user by his mode, such as is sent to above-mentioned test report by instant communication software Above-mentioned user, the present embodiment to above-mentioned test report is sent into above-mentioned user used by mode be not construed as limiting.
In drawbacks described above restorative procedure, automatic test is carried out to research and development fresh code, and obtain above-mentioned automatic test After test report, according to the defects of above-mentioned test report, the position that drawbacks described above occurs in above-mentioned research and development fresh code is obtained The class name at place, then according to the class name where the position that drawbacks described above occurs in above-mentioned research and development fresh code, it is determined that repairing above-mentioned The user of defect, above-mentioned test report is finally sent to above-mentioned user, so that above-mentioned user repairs to drawbacks described above, from And can realize and test report is rapidly sent to corresponding user, avoid research staff and flooded by substantial amounts of test report Not yet, shorten and repair the time-consuming of defect, improve the efficiency for repairing defect.
Fig. 2 is the flow chart of another embodiment of the application defect-restoration method therefor, as shown in Fig. 2 real shown in the application Fig. 1 Apply in example, step 103 can include:
Step 201, searched according to above-mentioned class name in code library, obtain the research and development for the opening position that drawbacks described above occurs The last reviser of fresh code, above-mentioned the last reviser is determined to repair the user of drawbacks described above.
, can after the class name where the position of drawbacks described above occurs in obtaining above-mentioned research and development fresh code in the present embodiment So that the last modification of the research and development fresh code for the opening position that drawbacks described above occurs is found in code library according to above-mentioned class name Person, it is believed that the generation of drawbacks described above, there is larger possibility to be derived from the reviser of the last time to drawbacks described above occurs The modification of the research and development fresh code of opening position, thus may determine that use of the above-mentioned the last reviser for reparation drawbacks described above Family.
It is then possible to above-mentioned test report is sent to above-mentioned user, so as to shorten research staff in whole tests The defects of being to one's name the responsible for required time is searched in report, improves the efficiency for repairing defect.
Fig. 3 is the flow chart of the application defect-restoration method therefor further embodiment, as shown in figure 3, real shown in the application Fig. 1 Apply in example, step 103 can include:
Step 301, according to the class name where the position that drawbacks described above occurs in above-mentioned research and development fresh code, it is above-mentioned to obtain generation Functional module corresponding to the research and development fresh code of the opening position of defect.
Step 302, the functional module according to corresponding to the research and development fresh code for the opening position that drawbacks described above occurs, in functional module With being searched in the mapping table of user, the user for being responsible for above-mentioned corresponding functional module is obtained, it is determined that responsible above-mentioned right The user for the functional module answered is the user for repairing drawbacks described above.
, can after the class name where the position of drawbacks described above occurs in obtaining above-mentioned research and development fresh code in the present embodiment According to the class name where the position that drawbacks described above occurs in above-mentioned research and development fresh code, to obtain the opening position of generation drawbacks described above Functional module corresponding to researching and developing fresh code, then can be searched in the mapping table of functional module and user, be obtained It is responsible for the user of above-mentioned corresponding functional module, then the test result for the functional module that above-mentioned user is responsible for can be sent to Above-mentioned user, search so as to shortening research staff in whole test report the defects of being to one's name responsible for it is required when Between, improve the efficiency for repairing defect.
Fig. 4 is the flow chart of the application defect-restoration method therefor further embodiment, as shown in figure 4, real shown in the application Fig. 1 Apply in example, step 102 can include:
Step 401, according to the defects of above-mentioned test report, obtain in above-mentioned research and development fresh code where drawbacks described above Java method.
Step 402, the Java method according to where drawbacks described above, determine that drawbacks described above occurs in above-mentioned research and development fresh code Class name where position.
That is, in specific implementation, above-mentioned research and development fresh code can be obtained according to the defects of above-mentioned test report Java method where middle drawbacks described above, then further according to the Java method where drawbacks described above, you can determine that above-mentioned research and development are new The class name where the position of drawbacks described above occurs in code.
Certainly, this one kind side for being only to determine the class name where the position of generation drawbacks described above in above-mentioned research and development fresh code Formula, the present embodiment are not limited to that, other modes can also be used to determine that drawbacks described above occurs in above-mentioned research and development fresh code Class name where position, the present embodiment are not construed as limiting to this.
Fig. 5 is that the defects of the structural representation, the present embodiment of the application bug repairing apparatus one embodiment repairs dress The defects of the embodiment of the present application provides restorative procedure can be realized by putting, as shown in figure 5, drawbacks described above prosthetic device can include: Test module 51, obtain module 52, determining module 53 and sending module 54;
Wherein, test module 51, for carrying out automatic test to research and development fresh code, and above-mentioned automatic test is obtained Test report;For the present embodiment to be illustrated exemplified by the research and development of fresh code are carried out in CI environment, a common CI environment can With including:Automatic code download, packing/structure, deployment, automatic test and issue etc..
In the present embodiment, after test module 51 carries out automatic test to research and development fresh code, it can obtain to above-mentioned Research and develop the test report that fresh code carries out automatic test.
Obtain module 52, for according to the defects of above-mentioned test report, obtain occur in above-mentioned research and development fresh code it is above-mentioned Class name where the position of defect;
Determining module 53, for according to the position that drawbacks described above occurs in the above-mentioned research and development fresh code for obtaining the acquisition of module 52 The class name at place, it is determined that repairing the user of drawbacks described above;
Sending module 54, the test report for test module 51 to be obtained are sent to above-mentioned user, so as to above-mentioned user Drawbacks described above is repaired.
Specifically, above-mentioned test report can be sent to by sending module 54 after above-mentioned automatic test terminates User is stated, so as to so that above-mentioned user repairs to drawbacks described above.
In specific implementation, above-mentioned test report can be sent to above-mentioned user by sending module 54 by sending out mail, It can use other modes that above-mentioned test report is sent into above-mentioned user, such as by instant communication software by above-mentioned test Report is sent to above-mentioned user, and above-mentioned test report is sent to side used by above-mentioned user by the present embodiment to sending module 54 Formula is not construed as limiting.
In drawbacks described above prosthetic device, test module 51 to research and development fresh code carry out automatic test, and obtain it is above-mentioned from After the test report of dynamicization test, module 52 is obtained according to the defects of above-mentioned test report, obtains above-mentioned research and development fresh code Class name where the middle position that drawbacks described above occurs, it is then determined that according in above-mentioned research and development fresh code drawbacks described above occurs for module 53 Position where class name, it is determined that repairing the user of drawbacks described above, above-mentioned test report is sent to by last sending module 54 User is stated, so that above-mentioned user repairs to drawbacks described above, is rapidly sent to test report correspondingly so as to realize User, avoid research staff and flooded by substantial amounts of test report, shorten and repair the time-consuming of defect, improve reparation defect Efficiency.
Fig. 6 is the structural representation of the application bug repairing apparatus another embodiment, repairs dress the defects of with shown in Fig. 5 To put and compare, difference is, the defects of shown in Fig. 6 in prosthetic device, determining module 53, specifically for being existed according to above-mentioned class name Searched in code library, obtain the last reviser of the research and development fresh code for the opening position that drawbacks described above occurs, it is determined that Above-mentioned the last reviser is the user for repairing drawbacks described above.
In the present embodiment, the class where the position of drawbacks described above occurs in obtaining module 52 and obtaining above-mentioned research and development fresh code After name, determining module 53 can find the research and development new generation for the opening position that drawbacks described above occurs according to above-mentioned class name in code library The last reviser of code, it is believed that the generation of drawbacks described above, there is the modification that larger possibility is derived from the last time The modification of research and development fresh code of the person to the opening position of generation drawbacks described above, thus may determine that above-mentioned the last reviser is Repair the user of drawbacks described above.
Then, above-mentioned test report can be sent to above-mentioned user by sending module 54, so as to shorten research staff The defects of being to one's name the responsible for required time is searched in whole test report, improves the efficiency for repairing defect.
In another implementation, determining module 53 can include:Obtain submodule 531 and search submodule 532;
Wherein, submodule 531 is obtained, for according to the class where the position that drawbacks described above occurs in above-mentioned research and development fresh code Name, obtain functional module corresponding to the research and development fresh code for the opening position that drawbacks described above occurs;
Submodule 532 is searched, it is new for the research and development according to the opening position for obtaining the generation drawbacks described above that submodule 531 obtains Functional module corresponding to code, searched, obtained responsible above-mentioned corresponding in the mapping table of functional module and user The user of functional module, it is determined that the user for being responsible for above-mentioned corresponding functional module is the user of reparation drawbacks described above.
In this implementation, where the position of drawbacks described above occurs in obtaining module 52 and obtaining above-mentioned research and development fresh code After class name, obtaining submodule 531 can obtain according to the class name where the position that drawbacks described above occurs in above-mentioned research and development fresh code Functional module corresponding to the research and development fresh code of the opening position of drawbacks described above must occur, then searching submodule 532 can be in function Searched in the mapping table of module and user, obtain the user for being responsible for above-mentioned corresponding functional module, then send mould The test result for the functional module that above-mentioned user is responsible for can be sent to above-mentioned user by block 54, so as to shorten research staff The defects of being to one's name the responsible for required time is searched in whole test report, improves the efficiency for repairing defect.
In the present embodiment, module 52 is obtained, specifically for according to the defects of above-mentioned test report, it is new to obtain above-mentioned research and development Java method in code where drawbacks described above;Java method according to where drawbacks described above, determine in above-mentioned research and development fresh code The class name where the position of drawbacks described above occurs.
That is, in specific implementation, obtaining module 52 can obtain above-mentioned according to the defects of above-mentioned test report The Java method where drawbacks described above in fresh code is researched and developed, then further according to the Java method where drawbacks described above, you can it is determined that The class name where the position of drawbacks described above occurs in above-mentioned research and development fresh code.
Certainly, this one kind side for being only to determine the class name where the position of generation drawbacks described above in above-mentioned research and development fresh code Formula, the present embodiment are not limited to that, other modes can also be used to determine that drawbacks described above occurs in above-mentioned research and development fresh code Class name where position, the present embodiment are not construed as limiting to this.
Fig. 7 is the structural representation of the application computer equipment one embodiment, and above computer equipment can include depositing Reservoir, processor and it is stored in the computer program that can be run on above-mentioned memory and on above-mentioned processor, above-mentioned processor When performing above computer program, it is possible to achieve the defects of the embodiment of the present application provides restorative procedure.
Wherein, above computer equipment can be server or personal computer (Personal Computer;Below Referred to as:PC) etc., the present embodiment is not construed as limiting to the concrete form of above computer equipment.
Fig. 7 shows the block diagram suitable for being used for the exemplary computer device 12 for realizing the application embodiment.Fig. 7 is shown Computer equipment 12 be only an example, any restrictions should not be brought to the function and use range of the embodiment of the present application.
As shown in fig. 7, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with Including but not limited to:One or more processor or processing unit 16, system storage 28, connect different system component The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.Lift For example, these architectures include but is not limited to industry standard architecture (Industry Standard Architecture;Hereinafter referred to as:ISA) bus, MCA (Micro Channel Architecture;Below Referred to as:MAC) bus, enhanced isa bus, VESA (Video Electronics Standards Association;Hereinafter referred to as:VESA) local bus and periphery component interconnection (Peripheral Component Interconnection;Hereinafter referred to as:PCI) bus.
Computer equipment 12 typically comprises various computing systems computer-readable recording medium.These media can be it is any can be by The usable medium that computer equipment 12 accesses, including volatibility and non-volatile media, moveable and immovable medium.
System storage 28 can include the computer system readable media of form of volatile memory, such as arbitrary access Memory (Random Access Memory;Hereinafter referred to as:RAM) 30 and/or cache memory 32.Computer equipment 12 It may further include other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only conduct Citing, storage system 34 can be used for reading and writing immovable, non-volatile magnetic media, and (Fig. 7 do not show, commonly referred to as " hard disk Driver ").Although not shown in Fig. 7, it can provide for the magnetic to may move non-volatile magnetic disk (such as " floppy disk ") read-write Disk drive, and to removable anonvolatile optical disk (such as:Compact disc read-only memory (Compact Disc Read Only Memory;Hereinafter referred to as:CD-ROM), digital multi read-only optical disc (Digital Video Disc Read Only Memory;Hereinafter referred to as:DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driving Device can be connected by one or more data media interfaces with bus 18.Memory 28 can include at least one program and produce Product, the program product have one group of (for example, at least one) program module, and it is each that these program modules are configured to perform the application The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42, such as memory 28 can be stored in In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs Module and routine data, the realization of network environment may be included in each or certain combination in these examples.Program mould Block 42 generally performs function and/or method in embodiments described herein.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 Deng) communication, the equipment communication interacted with the computer equipment 12 can be also enabled a user to one or more, and/or with making Obtain any equipment that the computer equipment 12 can be communicated with one or more of the other computing device (such as network interface card, modulatedemodulate Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also To pass through network adapter 20 and one or more network (such as LAN (Local Area Network;Hereinafter referred to as: LAN), wide area network (Wide Area Network;Hereinafter referred to as:WAN) and/or public network, for example, internet) communication.Such as figure Shown in 7, network adapter 20 is communicated by bus 18 with other modules of computer equipment 12.It should be understood that although in Fig. 7 not Show, computer equipment 12 can be combined and use other hardware and/or software module, included but is not limited to:Microcode, equipment are driven Dynamic device, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, so as to perform various function application and Data processing, such as realize the defects of the embodiment of the present application provides restorative procedure.
The embodiment of the present application also provides a kind of non-transitorycomputer readable storage medium, is stored thereon with computer journey Sequence, the defects of the embodiment of the present application provides restorative procedure can be realized when above computer program is executed by processor.
Above-mentioned non-transitorycomputer readable storage medium can use appointing for one or more computer-readable media Meaning combination.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Computer can Read storage medium and for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device Or device, or any combination above.The more specifically example (non exhaustive list) of computer-readable recording medium includes: Electrical connection, portable computer diskette, hard disk, random access memory (RAM), read-only storage with one or more wires Device (Read Only Memory;Hereinafter referred to as:ROM), erasable programmable read only memory (Erasable Programmable Read Only Memory;Hereinafter referred to as:EPROM) or flash memory, optical fiber, portable compact disc are read-only deposits Reservoir (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer Readable storage medium storing program for executing can be any includes or the tangible medium of storage program, the program can be commanded execution system, device Either device use or in connection.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium beyond computer-readable recording medium, the computer-readable medium can send, propagate or Transmit for by instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
Can with one or more programming languages or its combination come write for perform the application operation computer Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Also include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with Fully perform, partly perform on the user computer on the user computer, the software kit independent as one performs, portion Divide and partly perform or performed completely on remote computer or server on the remote computer on the user computer. It is related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (Local Area Network;Hereinafter referred to as:) or wide area network (Wide Area Network LAN;Hereinafter referred to as:WAN) it is connected to user Computer, or, it may be connected to outer computer (such as passing through Internet connection using ISP).
The embodiment of the present application also provides a kind of computer program product, when the instruction in above computer program product by When managing device execution, it is possible to achieve the defects of the embodiment of the present application provides restorative procedure.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the application.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize custom logic function or process Point, and the scope of the preferred embodiment of the application includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (Random Access Memory;Hereinafter referred to as:RAM), read-only storage (Read Only Memory;Hereinafter referred to as:ROM), erasable editable Read memory (Erasable Programmable Read Only Memory;Hereinafter referred to as:EPROM) or flash memory, Fiber device, and portable optic disk read-only storage (Compact Disc Read Only Memory;Hereinafter referred to as:CD- ROM).In addition, computer-readable medium, which can even is that, to print the paper or other suitable media of described program thereon, because Can then to enter edlin, interpretation or suitable with other if necessary for example by carrying out optical scanner to paper or other media Mode is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the application can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Logic circuit is dissipated, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (Programmable Gate Array;Hereinafter referred to as:PGA), field programmable gate array (Field Programmable Gate Array;Below Referred to as:FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the application can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the application System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of application Type.

Claims (10)

  1. A kind of 1. defect-restoration method therefor, it is characterised in that including:
    Automatic test is carried out to research and development fresh code, and obtains the test report of the automatic test;
    According to the defects of described test report, the class occurred in the research and development fresh code where the position of the defect is obtained Name;
    Class name according to where occurring the position of the defect in the research and development fresh code, it is determined that repairing the user of the defect;
    The test report is sent to the user, so that the user repairs to the defect.
  2. 2. according to the method for claim 1, it is characterised in that described that the defect occurs according in the research and development fresh code Position where class name, it is determined that repairing the user of the defect includes:
    Searched according to the class name in code library, the nearest of the research and development fresh code of the opening position of the defect occurs for acquisition Reviser once, the last reviser is determined to repair the user of the defect.
  3. 3. according to the method for claim 1, it is characterised in that described that the defect occurs according in the research and development fresh code Position where class name, it is determined that repairing the user of the defect includes:
    Class name according to where occurring the position of the defect in the research and development fresh code, obtains the opening position that the defect occurs Research and development fresh code corresponding to functional module;
    It is corresponding with user in functional module according to functional module corresponding to the research and development fresh code for the opening position that the defect occurs Searched in relation table, obtain the user for being responsible for the corresponding functional module, it is determined that being responsible for the corresponding functional module User to repair the user of the defect.
  4. 4. according to the method described in claim 1-3 any one, it is characterised in that the lacking in the test report Fall into, obtaining the class name where the position of the defect occurs in the research and development fresh code includes:
    According to the defects of described test report, the Java method where defect described in the research and development fresh code is obtained;
    According to the Java method where the defect, determine that the class where the position of the defect occurs in the research and development fresh code Name.
  5. A kind of 5. bug repairing apparatus, it is characterised in that including:
    Test module, for carrying out automatic test to research and development fresh code, and obtain the test report of the automatic test;
    Module is obtained, for according to the defects of described test report, obtaining in the research and development fresh code and the defect occurring Class name where position;
    Determining module, where the position of the defect occurs in the research and development fresh code according to the acquisition module acquisition Class name, it is determined that repairing the user of the defect;
    Sending module, the test report for the test module to be obtained are sent to the user, so that the user is to institute Defect is stated to be repaired.
  6. 6. device according to claim 5, it is characterised in that
    The determining module, specifically for being searched according to the class name in code library, obtain the position that the defect occurs The last reviser of the research and development fresh code at place is put, determines the last reviser to repair the use of the defect Family.
  7. 7. device according to claim 5, it is characterised in that the determining module includes:
    Submodule is obtained, for the class name according to where occurring the position of the defect in the research and development fresh code, is occurred Functional module corresponding to the research and development fresh code of the opening position of the defect;
    Submodule is searched, for the research and development fresh code pair of the opening position that the defect occurs obtained according to the acquisition submodule The functional module answered, searched in the mapping table of functional module and user, obtain and be responsible for the corresponding function mould The user of block, it is determined that the user for being responsible for the corresponding functional module is the user of the reparation defect.
  8. 8. a kind of computer equipment, it is characterised in that including memory, processor and be stored on the memory and can be in institute The computer program run on processor is stated, described in the computing device during computer program, is realized as in claim 1-4 Any described method.
  9. 9. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the calculating The method as described in any in claim 1-4 is realized when machine program is executed by processor.
  10. 10. a kind of computer program product, when the instruction in the computer program product is by computing device, realize as weighed Profit requires any described method in 1-4.
CN201710576521.5A 2017-07-14 2017-07-14 Defect-restoration method therefor, device and computer equipment Pending CN107480049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710576521.5A CN107480049A (en) 2017-07-14 2017-07-14 Defect-restoration method therefor, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710576521.5A CN107480049A (en) 2017-07-14 2017-07-14 Defect-restoration method therefor, device and computer equipment

Publications (1)

Publication Number Publication Date
CN107480049A true CN107480049A (en) 2017-12-15

Family

ID=60595834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710576521.5A Pending CN107480049A (en) 2017-07-14 2017-07-14 Defect-restoration method therefor, device and computer equipment

Country Status (1)

Country Link
CN (1) CN107480049A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648872A (en) * 2004-12-08 2005-08-03 上海科泰世纪科技有限公司 Automatic detection building method
US20120159420A1 (en) * 2010-12-16 2012-06-21 Sap Ag Quality on Submit Process
CN103530225A (en) * 2013-09-10 2014-01-22 武汉烽火网络有限责任公司 Automatic compilation testing method and automatic compilation testing platform for realizing same
CN105159822A (en) * 2015-08-12 2015-12-16 南京航空航天大学 Software defect positioning method based on text part of speech and program call relation
CN106155907A (en) * 2016-07-04 2016-11-23 厦门美图移动科技有限公司 A kind of automated testing method, device and computing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648872A (en) * 2004-12-08 2005-08-03 上海科泰世纪科技有限公司 Automatic detection building method
US20120159420A1 (en) * 2010-12-16 2012-06-21 Sap Ag Quality on Submit Process
CN103530225A (en) * 2013-09-10 2014-01-22 武汉烽火网络有限责任公司 Automatic compilation testing method and automatic compilation testing platform for realizing same
CN105159822A (en) * 2015-08-12 2015-12-16 南京航空航天大学 Software defect positioning method based on text part of speech and program call relation
CN106155907A (en) * 2016-07-04 2016-11-23 厦门美图移动科技有限公司 A kind of automated testing method, device and computing device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张万民,王振友: "《计算机导论》", 31 August 2016, 北京理工大学出版社 *
邢静宇: "《Java语言程序设计》", 31 January 2015, 吉林大学出版社 *

Similar Documents

Publication Publication Date Title
CN104346153B (en) Method and system for the text message of translation application
CN106547678B (en) Method and apparatus for white-box testing
CN107807881A (en) Method of testing, device and the computer equipment of code coverage
CN110191019A (en) Test method, device, computer equipment and the storage medium of vehicle CAN bus
CN109726136A (en) Test method, device, equipment and the storage medium of database
CN108874665A (en) A kind of test result method of calibration, device, equipment and medium
CN103713958B (en) Method and apparatus at the machinery compartment synchronizing pattern operating user interface of different language
US11232020B2 (en) Fault detection using breakpoint value-based fingerprints of failing regression test cases
CN107180117A (en) Chart recommends method, device and computer equipment
CN110263732A (en) Multiscale target detection method and device
US11055208B1 (en) Systems and methods for automatically assessing and conforming software development modules to accessibility guidelines in real-time
CN109978369A (en) Work order generation method, device, electronic equipment and storage medium
CN109522228A (en) Interface automatic test data configuration method, apparatus, platform and storage medium
CN107423894A (en) The task measures and procedures for the examination and approval, device and computer equipment
CN109815147A (en) Test cases generation method, device, server and medium
CN107193747A (en) Code testing method and device and computer equipment
WO2014048338A1 (en) Method for testing broadside path delay fault of digital combination integrated circuit
CN105629148B (en) The test method and test equipment of multiple modules in test circuit
CN115238740A (en) Fault diagnosis method and device based on time-frequency distribution and deep learning
CN104360946A (en) Defect-testing computer implementation method and computer
JP5785725B2 (en) Power estimation apparatus, power estimation method and program
CN107480049A (en) Defect-restoration method therefor, device and computer equipment
US10372849B2 (en) Performing and communicating sheet metal simulations employing a combination of factors
US10816600B1 (en) Protocol analysis and visualization during simulation
US7086017B1 (en) Method of post-implementation simulation of a HDL design

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171215

RJ01 Rejection of invention patent application after publication