CN108920364A - Software defect positioning method, device, terminal and computer readable storage medium - Google Patents
Software defect positioning method, device, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108920364A CN108920364A CN201810643667.1A CN201810643667A CN108920364A CN 108920364 A CN108920364 A CN 108920364A CN 201810643667 A CN201810643667 A CN 201810643667A CN 108920364 A CN108920364 A CN 108920364A
- Authority
- CN
- China
- Prior art keywords
- error
- log
- type
- query word
- mistake
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000007547 defect Effects 0.000 title claims abstract description 40
- 239000010410 layer Substances 0.000 claims description 9
- 239000012792 core layer Substances 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 3
- 238000000605 extraction Methods 0.000 claims description 3
- 238000012360 testing method Methods 0.000 description 35
- 238000004891 communication Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000246 remedial effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 229940110128 macrobid Drugs 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- NXFQHRVNIOXGAQ-YCRREMRBSA-N nitrofurantoin Chemical compound O1C([N+](=O)[O-])=CC=C1\C=N\N1C(=O)NC(=O)C1 NXFQHRVNIOXGAQ-YCRREMRBSA-N 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
- G06F11/3608—Software analysis for verifying properties of programs using formal methods, e.g. model checking, abstract interpretation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of software defect positioning method, device, terminal and computer readable storage medium.Software defect positioning method includes:Obtain the miscue information exported when tested software is tested;Query word is extracted from miscue information according to default extracting rule;Inquiry includes the error log of query word from error message log library, and the error log according to the first classifying rules and the classification of the second classifying rules is stored in error message log library;Target paragraph is positioned in the error log inquired, wherein includes in target paragraph and the matched field of the query word;Export target paragraph.The present invention can be automatically matched to log relevant to the mistake currently occurred from a large amount of logs, and the relevant paragraph in log is quickly navigated to based on the query word extracted from miscue information, filter out the irrelevant contents in log, where helping tester's quick positioning question, the efficiency of positioning software defect greatly improved.
Description
Technical field
The present invention relates to software testing technology fields, specifically, the present invention relates to a kind of software defect positioning methods, dress
It sets, terminal and computer readable storage medium.
Background technique
For internet industry, update iteration, the update efficiency of product are an important factor for getting the upper hand of, to open product forever
Hair, test, the requirement of O&M links are also higher and higher.In particular, when quality problems occurs in product, how precisely
Positioning is quickly repaired, and cost is preferably minimized, is every Internet enterprises urgent problem to be solved.
In the prior art, tester generally can encounter some problems, conventional processing method in the test software stage
It is tester by checking log, log information is analyzed, find corresponding fault message, the failure for solving to occur is asked
Topic.But it is this manually check that the mode treatment effeciency of log is low, cause problem repairing efficiency long, and due to manually limiting, lead
Often there is the case where position inaccurate in cause.
Summary of the invention
The purpose of the present invention is intended at least can solve above-mentioned one of technological deficiency.
In a first aspect, the present invention provides a kind of software defect positioning method, include the following steps:
Obtain the miscue information exported when tested software is tested;
Query word is extracted from miscue information according to default extracting rule;
Inquiry includes the error log of query word from error message log library, be stored in error message log library according to
The error log of first classifying rules and the classification of the second classifying rules;
Target paragraph is positioned in the error log inquired, wherein includes in target paragraph and the query word
The field matched;
Export target paragraph.
Before obtaining the miscue information exported when tested software is tested in one of the embodiments, this implementation
Example method further include:
The error log that tested software is exported according to preset format is received, includes type of error, mistake class in error log
Type includes the corresponding type of error of the first classifying rules and the corresponding type of error of the second classifying rules;
Error log is carried out according to the first classifying rules and the second classifying rules according to the type of error of error log
Storage is into error message log library after classification.
Further include in error log in one of the embodiments, the print time, class, method, code line, exception information,
At least one of interface name, task names.
Target paragraph is exported in one of the embodiments, is specifically included:
Target paragraph is pushed to the terminal of the related personnel to match with the type of error recorded in the target paragraph
Equipment.
Miscue information includes type of error in one of the embodiments,.
Type of error includes the corresponding lateral type of error of the first classifying rules and second point in one of the embodiments,
The corresponding longitudinal type of error of rule-like;
Lateral type of error includes:Service error, Database error, network error, customized mistake;
Longitudinal type of error includes:Gateway fault mistake, Agent layer mistake, operation layer mistake, core layer mistake.
It in one of the embodiments, further include exception information, the interface name that mistake occurs, hair in miscue information
At least one of the task names of raw mistake.
Second aspect, the present invention also provides a kind of software defect positioning devices, including:
Receiving unit, for obtaining the miscue information exported when tested software is tested;
Query word extraction unit, for extracting query word from miscue information according to default extracting rule;
Query unit, for error log of the inquiry comprising query word, error message log from error message log library
The error log according to the first classifying rules and the classification of the second classifying rules is stored in library;
Positioning unit, for positioning target paragraph in the error log inquired, wherein include in target paragraph with
The matched field of query word;
Output unit, for exporting target paragraph.
The third aspect, the present invention also provides a kind of software defect positioning terminals comprising:
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and quilt
It is configured to be executed by one or more of processors, one or more of programs are configured to:It executes in first aspect and appoints
Software defect positioning method described in one embodiment.
Fourth aspect, the present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, should
Software defect positioning method described in any embodiment in first aspect is realized when program is executed by processor.
Above-mentioned software defect positioning method, device, terminal and computer readable storage medium, can be from a large amount of logs
It is automatically matched to log relevant to the mistake currently occurred, and quickly fixed based on the query word extracted from miscue information
Relevant paragraph of the position into log, filters out the irrelevant contents in log, where helping tester's quick positioning question, so as to
Carry out targetedly remedial measure in time, greatly improve under line, on line positioning software defect efficiency, promote the work of tester
Make efficiency, shortens software version iteration cycle.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, wherein:
Fig. 1 is the software defect positioning method flow chart of one embodiment;
Fig. 2 is the software defect positioning method flow chart of another embodiment;
Fig. 3 is the structural block diagram of the software defect positioning device of another embodiment;
Fig. 4 is the schematic diagram of internal structure of software defect positioning terminal in one embodiment.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware
Equipment, have on both-way communication chain road, can execute both-way communication reception and emit hardware equipment.This equipment
May include:Honeycomb or other communication apparatus are shown with single line display or multi-line display or without multi-line
The honeycomb of device or other communication apparatus;PCS (Personal Communications Service, person communication system), can
With combine voice, data processing, fax and/or data communication capabilities;PDA (Personal Digital Assistant, it is personal
Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communicating terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
Those skilled in the art of the present technique are appreciated that remote network devices used herein above comprising but be not limited to count
The cloud that calculation machine, network host, single network server, multiple network server collection or multiple servers are constituted.Here, Yun Youji
It is constituted in a large number of computers or network servers of cloud computing (Cloud Computing), wherein cloud computing is distributed computing
One kind, a super virtual computer consisting of a loosely coupled set of computers.In the embodiment of the present invention, distal end
It can be realized and be communicated by any communication modes between the network equipment, terminal device and WNS server, including but not limited to, is based on
The mobile communication of 3GPP, LTE, WIMAX, based on TCP/IP, the computer network communication of udp protocol and based on bluetooth, infrared
The low coverage wireless transmission method of transmission standard.
A kind of software defect positioning method provided in this embodiment is introduced below, shown in Figure 1, the present embodiment
Method include:
Step S101, the miscue information exported when tested software is tested is obtained.
Wherein, miscue information is that the prompt information that exports when mistake occurs for tested software, one in miscue information
As the error type that occurs comprising software or the information such as error code.
Step S102, query word is extracted from miscue information according to default extracting rule.
Wherein, default extracting rule includes preset multiple keywords, these keywords are the mistakes from a large amount of tested softwares
Miss what statistics in prompt information obtained, for example, all comprising crucial in all exception informations generated using the software of Java exploitation
Word " Exception ", error code " 401 " etc., above-mentioned " Exception ", " 401 " etc. all can serve as preset key
Word.Miscue information is matched with preset keyword, some or multiple passes present in the miscue information
Keyword, the one or more keyword are query word.
Step S103, from error message log library, inquiry includes the error log of query word, in error message log library
It is stored with the error log according to the first classifying rules and the classification of the second classifying rules.
Wherein, the error log that tested software generates in the process of running is all stored in error message log library, for correlation
Personnel inquiry, reference.Error log in error message log library is according to preset first classifying rules and the second classifying rules
Classify, quickly to be positioned according to classification.
Step S104, target paragraph is positioned in the error log inquired, wherein include in target paragraph and inquire
The matched field of word.
Step S105, target paragraph is exported.
In the present embodiment, test macro accesses end to be tested by the interface that end to be tested provides, real-time by test macro
Monitoring is stored in by the operation conditions of software under testing in end to be tested, and by the error log generated in tested software operational process
In error message log library.Wherein, when testing under line, end to be tested can be the terminal for being mounted with tested software, pass through physics
Interface realizes the connection of end to be tested and test macro;When testing on line, end to be tested can be the service of operation software under testing
Device provides API (Application Programming Interface, the application program of access from server to test macro
Programming interface).Mistake has occurred when tested software is in test, tested software will export relevant miscue information.
The specific implementation procedure of software defect positioning method includes:Test macro receives the mistake of the output of the tested software in end to be tested
Prompt information extracts query word from miscue information according to default extracting rule, inquires from error message log library
Error log comprising the query word carries out context positioning by query word in the error log filtered out, navigates to packet
Target paragraph containing the query word directly exports the target paragraph navigated to.The mesh that tester exports according to test macro
Bid section is fallen can fast accurate ground orientation problem.
For example, tested software outputs miscue information when testing, it include " miscue in the miscue information:
Gateway fault is missed ", being somebody's turn to do " gateway fault mistake " is preset keyword.Test macro receives the miscue of tested software output
After information, recognize in miscue letter comprising keyword " gateway fault mistake ", by keyword " the gateway fault mistake " conduct
Query word, inquiry includes the error log of the query word " gateway fault mistake " from error message log library, passes through query word " net
Fault is closed to miss " context positioning is carried out in the error log filtered out, navigating to includes the query word " gateway fault mistake "
Target paragraph, directly export the target paragraph navigated to.
Therefore, software defect positioning method provided in this embodiment, can be automatically matched to from a large amount of logs with currently
The relevant log of mistake of generation, and quickly navigate to based on the query word extracted from miscue information the correlation in log
Paragraph filters out the irrelevant contents in log, where helping tester's quick positioning question, to carry out in time targetedly
Remedial measure, greatly improve under line, on line positioning software defect efficiency, promote the working efficiency of tester, shorten software
The version iteration period.
Certainly, while exporting target paragraph, can also export together the corresponding error log of the target paragraph and
Miscue information, for related personnel's reference.
Further, as shown in Fig. 2, before step S101, the software defect positioning method in the present embodiment further includes
Step S100:The error log that tested software is exported according to preset format is received, includes type of error, mistake class in error log
Type includes the corresponding type of error of the first classifying rules and the corresponding type of error of the second classifying rules, according to the mistake of error log
Accidentally type, according to the first classifying rules and the second classifying rules, error message log is arrived in storage after classifying to error log
In library.
Wherein, the corresponding type of error of the first classifying rules is lateral type of error, the corresponding mistake of the second classifying rules
Type is longitudinal type of error.Lateral type of error includes:Service error, Database error, network error, customized mistake,
Can more accurately be positioned by lateral type of error be which kind of classification mistake, to be matched to corresponding project team or exploitation
Personnel.Longitudinal type of error includes:Gateway fault mistake, Agent layer mistake, operation layer mistake, core layer mistake, pass through longitudinal mistake
Accidentally type can be determined quickly the problem of being which component in software code, which module, be imitated with improving positioning accuracy and positioning
Rate.
Wherein, type of error can be replaced with corresponding error code in miscue information and log, to facilitate machine
It is compared and inquires.Such as:Error code " 100 " represents gateway fault mistake, and error code " 200 " represents Agent layer mistake.
In the present embodiment, the error log generated in software under testing operational process can be stored in the storage unit of test macro
In, it can also be stored in the server independently of test macro, not limit specifically herein.
When storing the error log generated in software under testing operational process by independent server, server is connect with http
The form of mouth provides log query service.When needing to test software under testing, test macro is provided by server
The error log of http interface polls software under testing.At this point, detailed process is as follows for software defect positioning:Test macro receive to
The miscue information of test lead output, extracts query word from miscue information, generates the inquiry comprising query word and believes
Breath, sends server for query information by http interface;Server receives query information, from the wrong day of the software under testing
Filtered out in will include the query word log, context positioning is carried out in the error log filtered out based on query word,
Navigate to include the query word target paragraph, the target paragraph navigated to is fed back into test terminal;Tester according to
The target paragraph that receives of test terminal can fast accurate positioning software the problem of where.Wherein, server can be used
The included log filter command filtering log of linux system, positioning software defective locations.Pass through the service independently of test macro
Device store log, the amount of storage and load of test macro can be reduced, in addition, different test assignments can common server mention
The resource and service of confession help to reduce test investment.
Further, software under testing generate log in further include the print time, class, method, code line, exception information,
At least one of interface name and task names.
Wherein, the print time refers to the time for generating the log.In software, class refers to one group of identical attribute and function
An abstraction set, be referred to as member, the enclosed inside of class method, for operating itself member;Method is a tool
The implementation procedure of body, it can be understood as execute the functional module of a certain function;Code line refers to the software code institute that mistake occurs
Line number;Tester can be more convenient to quickly determine the specific of mistake generation according to contents such as class, method, code lines
Position.Corresponding interface name, task names and type of error when mistake occur for the relevant position record in log, convenient
The subsequent interface name according in miscue information, task names and type of error, carry out defect location in log.It is different
Normal information is exactly captured exception in code operational process, and the type of exception information has very much, including the various standards in the library sdk
Abnormal, third party library exception, customized exception.
Wherein, the specified setting to log output format, example can be realized by the log component of mainstream (such as log4j)
Such as, it specifies in the log of output comprising in print time, class, method, code line, exception information, interface name, task names etc.
Hold.When tested software calls in the process of running arrives log print code, the output format that tested software presses setting immediately is defeated
Log out, and by log deposit test macro or independently of the server of test macro.
Tester can by print time for being added in log, class, method, code line, interface name, task names,
The contents such as exception information, type of error quickly navigate to the location of problem code, and improve log can be readability,
Improve the working efficiency of tester.
Further, the miscue information in step S101 includes type of error, exception information, the interface that mistake occurs
Title and at least one of the task names that mistake occurs.
For example, test macro can extract in miscue information when in miscue information including type of error
Type of error inquires correlation log as query word, by type of error, and the section in log is navigated to by type of error
It falls.Based on type of error filtering log, helps tester quickly to navigate to the target paragraph in log, reduce artificial Jie
Enter, improves defect location precision and testing efficiency.
For another example, the software write by same development language, there are common features in the exception information of generation, can benefit
Keyword is set with the common feature in exception information, e.g., in all exception informations generated using the software of Java exploitation all
Comprising keyword " Exception ", " Exception " is set as keyword.When in miscue information including exception information,
The keyword " Exception " extracted in exception information is used as query word, searches the log comprising " Exception ", and position
Target paragraph comprising " Exception ".
It, can be comprising the above-mentioned much information enumerated (such as mistake in the miscue information that tested software generates in practical application
Accidentally type, exception information, the interface name that mistake occurs, task names that mistake occurs etc.), it can be extracted from this much information
To multiple queries word, to further increase positioning accuracy.
Further, step S105 is specifically included:Target paragraph is pushed to and the type of error that records in target paragraph
The terminal device of the related personnel to match.Especially when the tested software scale of construction is larger or is related to multiple project team, it is based on
The type of error of gridding classification, feeds back to corresponding tester for the target paragraph relevant to type of error inquired automatically
Member, helps to improve the working efficiency of tester.
Based on inventive concept identical with above-mentioned software defect positioning method, the embodiment of the invention also provides a kind of softwares
Defect positioning device 30, as shown in figure 3, including:
Receiving unit 301, for obtaining the miscue information exported when tested software is tested;
Query word extraction unit 302, for extracting query word from miscue information according to default extracting rule;
Query unit 303, for error log of the inquiry comprising query word, error message day from error message log library
The error log according to the first classifying rules and the classification of the second classifying rules is stored in will library;
Positioning unit 304, for positioning target paragraph in the error log inquired, wherein include in target paragraph
Have and the matched field of query word;
Output unit 305, for exporting target paragraph.
Further, the software defect positioning device of the present embodiment further includes log storage unit, for receive be tested it is soft
The error log that part is exported according to preset format, wherein include type of error in error log, type of error includes the first classification
The corresponding type of error of rule and the corresponding type of error of the second classifying rules;According to the type of error of error log, according to
One classifying rules and the second classifying rules, storage is into error message log library after classifying to error log.
Further, further include in error log the print time, class, method, code line, exception information, interface name and
At least one of task names.
Further, output unit 305 is specifically used for the mistake for being pushed to target paragraph with recording in the target paragraph
The terminal device for the related personnel that type matches.
Further, type of error includes that the corresponding lateral type of error of the first classifying rules and the second classifying rules are corresponding
Longitudinal type of error.
Wherein, lateral type of error includes:Service error, Database error, network error, customized mistake;It is longitudinal wrong
Accidentally type includes:Gateway fault mistake, Agent layer mistake, operation layer mistake, core layer mistake.
Further, further include exception information in miscue information, the interface name of mistake occurs and mistake occurs
At least one of task names.
Software defect positioning device provided in an embodiment of the present invention uses identical with above-mentioned software defect positioning method
Inventive concept, beneficial effect having the same, details are not described herein.
Based on inventive concept identical with above-mentioned software defect positioning method, the embodiment of the invention also provides a kind of softwares
Defect location terminal comprising:One or more processors;Memory;One or more application program, wherein it is one or
Multiple application programs are stored in the memory and are configured as being executed by one or more of processors, one
Or multiple programs are configured to:Execute the software defect positioning method in any of the above-described embodiment.
Fig. 4 is the schematic diagram of internal structure of terminal in one embodiment.As shown in figure 4, the terminal includes total by system
Processor, non-volatile memory medium, memory and the network interface of line connection.Wherein, the computer equipment is non-volatile
Storage medium is stored with operating system, database and computer-readable instruction, can be stored with control information sequence in database, should
When computer-readable instruction is executed by processor, processor may make to realize a kind of software defect positioning method.The computer is set
Standby processor supports the operation of entire computer equipment for providing calculating and control ability.The storage of the computer equipment
It can be stored with computer-readable instruction in device, when which is executed by processor, processor may make to execute one
Kind software defect positioning method.The network interface of the computer equipment is used for and terminal connection communication.Those skilled in the art can
To understand, structure shown in Fig. 4, only the block diagram of part-structure relevant to application scheme, is not constituted to this Shen
Please the restriction of computer equipment that is applied thereon of scheme, specific computer equipment may include than as shown in the figure more or
Less component perhaps combines certain components or with different component layouts.
Based on inventive concept identical with above-mentioned software defect positioning method, the embodiment of the invention also provides a kind of calculating
Machine readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the program realizes above-mentioned when being executed by processor
The software defect positioning method of one embodiment.
Storage medium mentioned above can be read-only memory, disk or CD etc..
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of software defect positioning method, which is characterized in that include the following steps:
Obtain the miscue information exported when tested software is tested;
Query word is extracted from the miscue information according to default extracting rule;
Inquiry includes the error log of the query word from error message log library, and the error message log is stored in library
The error log classified according to the first classifying rules and the second classifying rules;
Target paragraph is positioned in the error log inquired, wherein includes in the target paragraph and the query word
The field matched;
Export the target paragraph.
2. the method according to claim 1, wherein the mistake exported when tested software is tested that obtains mentions
Before showing information, the method also includes:
The error log that the tested software is exported according to preset format is received, includes type of error, institute in the error log
Stating type of error includes the corresponding type of error of first classifying rules and the corresponding type of error of second classifying rules;
According to the type of error of the error log, according to first classifying rules and second classifying rules, to described
Storage is into error message log library after error log is classified.
3. according to the method described in claim 2, it is characterized in that, further including print time, class, side in the error log
At least one of method, code line, exception information, interface name and task names.
4. according to the method in claim 2 or 3, which is characterized in that the output target paragraph includes:
The target paragraph is pushed to the terminal of the related personnel to match with the type of error recorded in the target paragraph
Equipment.
5. the method according to claim 1, wherein the miscue information includes type of error.
6. according to the method described in claim 5, it is characterized in that, the type of error includes that first classifying rules is corresponding
Lateral type of error and the corresponding longitudinal type of error of second classifying rules;
It is described transverse direction type of error include:Service error, Database error, network error, customized mistake;
It is described longitudinal direction type of error include:Gateway fault mistake, Agent layer mistake, operation layer mistake, core layer mistake.
7. according to the method described in claim 5, it is characterized in that, further including exception information, hair in the miscue information
The interface name of raw mistake and at least one of the task names that mistake occurs.
8. a kind of software defect positioning device, which is characterized in that including:
Receiving unit, for obtaining the miscue information exported when tested software is tested;
Query word extraction unit, for extracting query word from the miscue information according to default extracting rule;
Query unit, for error log of the inquiry comprising the query word, the error message from error message log library
The error log according to the first classifying rules and the classification of the second classifying rules is stored in log library;
Positioning unit, for positioning target paragraph in the error log inquired, wherein include in the target paragraph with
The matched field of query word;
Output unit, for exporting the target paragraph.
9. a kind of software defect positioning terminal, which is characterized in that it includes:
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured
To be executed by one or more of processors, one or more of programs are configured to:It executes according to claim 1 to 7
Described in any item methods.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Claim 1 to 7 described in any item methods are realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810643667.1A CN108920364A (en) | 2018-06-21 | 2018-06-21 | Software defect positioning method, device, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810643667.1A CN108920364A (en) | 2018-06-21 | 2018-06-21 | Software defect positioning method, device, terminal and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108920364A true CN108920364A (en) | 2018-11-30 |
Family
ID=64419829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810643667.1A Pending CN108920364A (en) | 2018-06-21 | 2018-06-21 | Software defect positioning method, device, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108920364A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109726186A (en) * | 2018-12-29 | 2019-05-07 | 咪咕文化科技有限公司 | Method and device for retrieving error log and computer readable storage medium |
CN110162420A (en) * | 2019-04-26 | 2019-08-23 | 平安科技(深圳)有限公司 | Data assisted location method, device, computer equipment and storage medium |
CN110188044A (en) * | 2019-05-30 | 2019-08-30 | 腾讯科技(深圳)有限公司 | Processing method, device, storage medium and the equipment of software error |
CN110347560A (en) * | 2019-07-19 | 2019-10-18 | 深圳前海微众银行股份有限公司 | Abnormal prompt method, apparatus, system, equipment and the medium of big data product |
CN110674038A (en) * | 2019-09-20 | 2020-01-10 | 杭州迪普信息技术有限公司 | Method and device for classifying error information in software test |
CN111177098A (en) * | 2019-12-27 | 2020-05-19 | 中信百信银行股份有限公司 | Method and system for checking system log context |
CN111597093A (en) * | 2019-02-20 | 2020-08-28 | 阿里巴巴集团控股有限公司 | Exception handling method, device and equipment |
CN111782526A (en) * | 2020-06-30 | 2020-10-16 | 北京同邦卓益科技有限公司 | Interface testing method and device, electronic equipment and storage medium |
CN112035341A (en) * | 2020-08-11 | 2020-12-04 | 北京三快在线科技有限公司 | Automatic testing method and device |
CN112035311A (en) * | 2019-06-04 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Program logic monitoring method and device |
CN113010383A (en) * | 2021-03-16 | 2021-06-22 | 北京百度网讯科技有限公司 | Error log filtering method and device, electronic equipment and readable medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140365828A1 (en) * | 2013-06-07 | 2014-12-11 | Successfactors, Inc. | Analysis engine for automatically analyzing and linking error logs |
CN105550113A (en) * | 2015-12-18 | 2016-05-04 | 网易(杭州)网络有限公司 | Web test method and test machine |
CN105740121A (en) * | 2016-01-26 | 2016-07-06 | 中国银行股份有限公司 | Log text monitoring and early-warning method and apparatus |
CN107239403A (en) * | 2017-07-27 | 2017-10-10 | 广州云测信息技术有限公司 | A kind of positioning problems method and apparatus |
-
2018
- 2018-06-21 CN CN201810643667.1A patent/CN108920364A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140365828A1 (en) * | 2013-06-07 | 2014-12-11 | Successfactors, Inc. | Analysis engine for automatically analyzing and linking error logs |
CN105550113A (en) * | 2015-12-18 | 2016-05-04 | 网易(杭州)网络有限公司 | Web test method and test machine |
CN105740121A (en) * | 2016-01-26 | 2016-07-06 | 中国银行股份有限公司 | Log text monitoring and early-warning method and apparatus |
CN107239403A (en) * | 2017-07-27 | 2017-10-10 | 广州云测信息技术有限公司 | A kind of positioning problems method and apparatus |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109726186A (en) * | 2018-12-29 | 2019-05-07 | 咪咕文化科技有限公司 | Method and device for retrieving error log and computer readable storage medium |
CN111597093B (en) * | 2019-02-20 | 2024-04-16 | 阿里巴巴集团控股有限公司 | Exception handling method, device and equipment thereof |
CN111597093A (en) * | 2019-02-20 | 2020-08-28 | 阿里巴巴集团控股有限公司 | Exception handling method, device and equipment |
CN110162420A (en) * | 2019-04-26 | 2019-08-23 | 平安科技(深圳)有限公司 | Data assisted location method, device, computer equipment and storage medium |
CN110162420B (en) * | 2019-04-26 | 2022-10-11 | 平安科技(深圳)有限公司 | Data auxiliary positioning method and device, computer equipment and storage medium |
CN110188044A (en) * | 2019-05-30 | 2019-08-30 | 腾讯科技(深圳)有限公司 | Processing method, device, storage medium and the equipment of software error |
CN112035311A (en) * | 2019-06-04 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Program logic monitoring method and device |
CN110347560A (en) * | 2019-07-19 | 2019-10-18 | 深圳前海微众银行股份有限公司 | Abnormal prompt method, apparatus, system, equipment and the medium of big data product |
CN110347560B (en) * | 2019-07-19 | 2022-04-26 | 深圳前海微众银行股份有限公司 | Method, device, system, equipment and medium for prompting abnormity of big data product |
CN110674038A (en) * | 2019-09-20 | 2020-01-10 | 杭州迪普信息技术有限公司 | Method and device for classifying error information in software test |
CN111177098B (en) * | 2019-12-27 | 2023-09-22 | 中信百信银行股份有限公司 | Method and system for checking system log context |
CN111177098A (en) * | 2019-12-27 | 2020-05-19 | 中信百信银行股份有限公司 | Method and system for checking system log context |
CN111782526A (en) * | 2020-06-30 | 2020-10-16 | 北京同邦卓益科技有限公司 | Interface testing method and device, electronic equipment and storage medium |
CN112035341A (en) * | 2020-08-11 | 2020-12-04 | 北京三快在线科技有限公司 | Automatic testing method and device |
CN113010383A (en) * | 2021-03-16 | 2021-06-22 | 北京百度网讯科技有限公司 | Error log filtering method and device, electronic equipment and readable medium |
CN113010383B (en) * | 2021-03-16 | 2023-08-01 | 北京百度网讯科技有限公司 | Error log filtering method, device, electronic equipment and readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108920364A (en) | Software defect positioning method, device, terminal and computer readable storage medium | |
CN106656536B (en) | Method and equipment for processing service calling information | |
US11409645B1 (en) | Intermittent failure metrics in technological processes | |
US20170109676A1 (en) | Generation of Candidate Sequences Using Links Between Nonconsecutively Performed Steps of a Business Process | |
US20170109668A1 (en) | Model for Linking Between Nonconsecutively Performed Steps in a Business Process | |
CN107506451A (en) | abnormal information monitoring method and device for data interaction | |
US20170109667A1 (en) | Automaton-Based Identification of Executions of a Business Process | |
US20170085458A1 (en) | Real-Time Monitoring of Computer System Processor and Transaction Performance During an Ongoing Performance Test | |
US20170109636A1 (en) | Crowd-Based Model for Identifying Executions of a Business Process | |
US20170109639A1 (en) | General Model for Linking Between Nonconsecutively Performed Steps in Business Processes | |
US10534700B2 (en) | Separating test verifications from test executions | |
CN103577310A (en) | Method and device for recording software debugging logs | |
CN111522728A (en) | Method for generating automatic test case, electronic device and readable storage medium | |
US20170109638A1 (en) | Ensemble-Based Identification of Executions of a Business Process | |
CN108848276A (en) | Telephone number method for detecting availability, system, equipment and storage medium | |
CN109408361A (en) | Monkey tests restored method, device, electronic equipment and computer readable storage medium | |
WO2014070824A2 (en) | Use of video to manage process quality | |
CN114745295A (en) | Data acquisition method, device, equipment and readable storage medium | |
CN106713011A (en) | Method and system for obtaining test data | |
US20170109640A1 (en) | Generation of Candidate Sequences Using Crowd-Based Seeds of Commonly-Performed Steps of a Business Process | |
CN109634838A (en) | Position method, apparatus, storage medium and the electronic equipment of application failure | |
CN107451056B (en) | Method and device for monitoring interface test result | |
US20170109637A1 (en) | Crowd-Based Model for Identifying Nonconsecutive Executions of a Business Process | |
US20170109670A1 (en) | Crowd-Based Patterns for Identifying Executions of Business Processes | |
CN116662204A (en) | Method, device, system and storage medium for generating code-free test cases |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181130 |