CN106155884A - A kind of log analysis method and system - Google Patents
A kind of log analysis method and system Download PDFInfo
- Publication number
- CN106155884A CN106155884A CN201510149114.7A CN201510149114A CN106155884A CN 106155884 A CN106155884 A CN 106155884A CN 201510149114 A CN201510149114 A CN 201510149114A CN 106155884 A CN106155884 A CN 106155884A
- Authority
- CN
- China
- Prior art keywords
- test
- abnormal
- keyword message
- log
- class
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of log analysis method and system, belong to automatization testing technique field;Method includes: step S1, captures all journal files;Step S2, obtains including all log recordings of keyword message from capturing screening all journal files obtained;Step S3, all log recordings obtaining screening process, the test result abnormal to respectively obtain corresponding every class testing, integrate all test results to form a test report.System includes: placement unit;Screening unit;Processing unit.Technique scheme provides the benefit that: reduces complexity and the workload of log file analysis, promotes analysis efficiency and analysis precision, reduces unnecessary system resource and puts into, reduces the analysis cost of journal file.
Description
Technical field
The present invention relates to automatization testing technique field, particularly relate to a kind of log analysis method and system.
Background technology
Along with developing rapidly of mobile phone market, conventional mobile phone (feature phone) can not meet people
Demand, increasing smart mobile phone (smart phone) initially enters the life of people.Intelligence hands
Machine conventional mobile phone functionally add more powerful amusement, seek advice from, handle official business, the function such as social,
Through becoming the indispensable live element of vast majority of people.In particular by Android platform (Android)
Smart mobile phone, its utilization rate accounts for whole world cellphone subscriber's share and alreadys more than 1/4th.
Developing rapidly and developing the abundant profit that can bring of smart mobile phone market, causes increasing
Chip business and operator join the ranks of Android platform mobile terminal exploitation.At such keen competition ring
Under border, shortening production life cycle, version iteratively faster have just become the guarantee of competitiveness.Exploitation at product
In journey, test is requisite link, there will be various in extensive test process for a long time unavoidably
The problem of various kinds, such as mobile phone are shielded surely, blank screen etc..And analyze these problems set about a little tested exactly
The journal file (Log) produced in journey.
In prior art, the mobile terminal of batch is performed in automatic test course, analyzes what it produced
The mode of journal file predominantly manually searches corresponding information record from numerous journal files, or
The mode using some classes manual carries out record.Aforesaid way repeated work is bigger, deals with and compares
Loaded down with trivial details, it is not easy to journal file is accurately analyzed.
Summary of the invention
According to problems of the prior art, now provide the technical side of a kind of log analysis method and system
Case, it is intended to solve in prior art loaded down with trivial details for the com-parison and analysis of journal file in automatic test course,
The problem that analysis result is the distinctest.
Technique scheme specifically includes:
A kind of log analysis method;Wherein:
Being preset with multiple keyword message, each described keyword message correspondence represents that a class testing is abnormal;
The multiple mobile terminals being under same test environment generate corresponding day in automatic test course
Will file, each described journal file includes a plurality of log recording;
Described log analysis method specifically includes:
Step S1, captures all described journal files;
Step S2, obtains including that described keyword is believed from capturing screening all described journal file obtained
The all described log recording of breath;
Step S3, all described log recording obtaining screening processes, corresponding every to respectively obtain
Test abnormal test result described in class, integrate all described test results to form a test report.
Preferably, this log analysis method, wherein, described keyword message includes:
For representing the keyword message that application program does not responds;And/or
For representing the keyword message that application exception exits;And/or
For representing the keyword message that the service of Framework layer system is abnormal;And/or
For representing the keyword message that java layer application exception exits.
Preferably, this log analysis method, wherein, described step S3 specifically includes:
Step S31, described log recording screening obtained is carried out according to different described keyword messages
Classification;
Step S32, processes log recording described in every class respectively, to respectively obtain for every class institute
State the corresponding test result of log recording;
All described test results are integrated in a corresponding described test report by step S33.
Preferably, this log analysis method, wherein, in described step S3, the described test report of formation
Announcement includes:
There is the average in the moment of described test exception first;And/or
There is the intermediate value in the moment of described test exception first;And/or
There is the average in the moment of reboot event first;And/or
There is the intermediate value in the moment of reboot event first;And/or
There is the title of the corresponding functional module of test exception described in every class;And/or
There is to test described in every class abnormal number of times.
Preferably, this log analysis method, wherein, each described keyword message is associated with the most
Individual sub-keyword message, each described sub-keyword message correspondence represents that a described test is abnormal;
Extremely test described in every class is processed the described test result obtained include each described survey
Examination is abnormal to be carried out processing the test result obtained.
Preferably, this log analysis method, wherein, described test report include for represent one
The described test result of described test exception is associated with a corresponding described journal file.
Preferably, this log analysis method, wherein, in described step S3, form described test report
After, the different described test result included according to described test report, different to corresponding described test
Often process.
Preferably, this log analysis method, wherein, in described step S3, form described test report
After, show described test report to user.
A kind of Log Analysis System, wherein:
Being preset with multiple keyword message, each described keyword message correspondence represents that a class testing is abnormal;
The multiple mobile terminals being under same test environment generate corresponding day in automatic test course
Will file, each described journal file includes a plurality of log recording;
Described Log Analysis System specifically includes:
Placement unit, for capturing all described journal file that all described mobile terminals produce;
Screening unit, is wherein preset with multiple keyword message, and each described keyword message correspondence represents
One class testing is abnormal, and described screening unit connects described placement unit, for all institutes obtained from crawl
State screening in journal file and obtain including all described log recording of described keyword message;
Processing unit, connects described screening unit, enters for all described log recording obtaining screening
Row processes, and tests abnormal test result to respectively obtain, and integrate all described surveys described in corresponding every class
Test result is to form a test report.
Preferably, this Log Analysis System, wherein, described keyword message includes:
For representing the keyword message that application program does not responds;And/or
For representing the keyword message that application exception exits;And/or
For representing the keyword message that the service of Framework layer system is abnormal;And/or
For representing the keyword message that java layer application exception exits.
Preferably, this Log Analysis System, wherein, in the described test report that described processing unit is formed
Including:
There is the average in the moment of described test exception first;And/or
There is the intermediate value in the moment of described test exception first;And/or
There is the average in the moment of reboot event first;And/or
There is the intermediate value in the moment of reboot event first;And/or
There is the title of the corresponding functional module of test exception described in every class;And/or
There is to test described in every class abnormal number of times.
Preferably, this Log Analysis System, wherein, described processing unit includes:
Sort module, the described log recording being used for obtaining screening is according to different described keyword messages
Classify, and export corresponding classification results;
Processing module, connects described sort module, for according to described classification results, respectively to every class institute
State log recording to process, to respectively obtain the corresponding test result for log recording described in every class;
Integrate module, connect described processing module, corresponding for all described test results are integrated into one
Test report in and export.
Preferably, this Log Analysis System, wherein, also include:
Performance element, connects described processing unit, different for include according to described test report
Described test result, processes corresponding described test is abnormal.
Preferably, this Log Analysis System, wherein, also include:
Display unit, connects described processing unit, is used for showing described test report.
Technique scheme provides the benefit that: reduces complexity and the workload of log file analysis, carries
Rise analysis efficiency and analysis precision, reduce unnecessary system resource and put into, reduce the analysis of journal file
Cost.
Accompanying drawing explanation
Fig. 1 is in the preferred embodiment of the present invention, the overall procedure schematic diagram of a kind of log analysis method;
Fig. 2 is in the preferred embodiment of the present invention, the relation schematic diagram of keyword message classification;
Fig. 3 is in the preferred embodiment of the present invention, to the daily record note classified in log analysis method
Record carries out the schematic flow sheet processed;
Fig. 4 is in the preferred embodiment of the present invention, the structural representation of a kind of Log Analysis System.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and
It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making
The every other embodiment obtained on the premise of going out creative work, broadly falls into the scope of protection of the invention.
It should be noted that in the case of not conflicting, the embodiment in the present invention and the spy in embodiment
Levy and can be mutually combined.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as the present invention's
Limit.
Mobile terminal, in performing automatic test course, can produce corresponding journal file, and batch is to shifting
Dynamic terminal performs automatic test, can produce many journal files, and each journal file includes a plurality of day
Will record, can also include the content of many records in every log recording.Therefore, at batch to movement
When terminal carries out automatic test, the quantity of information that produced journal file includes is the hugest.
For the process of these journal files with analyze work and generally include two kinds of methods in prior art:
1) in journal file, manually search key message, and extract the record of key information match.
In said method, owing to needing user to manually perform the searching work of log recording so that search
Degree of accuracy and complexity be substantially increased, very labor intensive resource.
2) use some other instrument such as Utraedit etc., utilize matching regular expressions key message
And record.
In prior art, a kind of analytical tool is corresponding to a software version.In other words, corresponding one
Individual default software version, is only provided with fixing key message inside its analytical tool, hence in so that should
Analytical tool generally cannot be applicable to other software versions, and the most traditional analytical tool does not have general use
Property.
Therefore, in the preferred embodiment of the present invention, based on the above-mentioned problems in the prior art, existing
A kind of log analysis method is provided.This log analysis method is adapted for carrying out the mobile terminal of automatic test,
It is adapted for carrying out multiple mobile terminals (batch performs automatic test) of automatic test further.This
In the preferred embodiment of invention, same batch performs the test wrapper of the mobile terminal of automatic test
Border is identical, and such as its software version is identical, test platform is identical and other dependence test attributes are identical.
The most whether the purpose performing automatic test in the present invention is to check that certain software version is the most stable
There is failure problems, it is therefore desirable to each mobile whole in this batch unified before same batch is tested
The test environment of end, thus ensure the accuracy of test.
In the preferred embodiment of the present invention, when performing automatic test, mobile terminal can produce accordingly
Journal file.One mobile terminal produces a journal file in an automatic test course.?
This journal file includes a plurality of log recording.In the preferred embodiment of the present invention, every log recording
For the test action being shown in automatic test course, or a test mode.This test
Any fault message in action or test mode all can be recorded in this log recording.The present invention's
In preferred embodiment, a log recording occupies the full line in journal file.
In the preferred embodiment of the present invention, as it is shown in figure 1, above-mentioned log analysis method specifically includes:
Step S1, captures all journal files;
In the preferred embodiment of the present invention, above-mentioned all journal files, refer to that same batch is surveyed
All journal files that all mobile terminals of examination produce in this test process.
Step S2, obtains including all of keyword message from capturing screening all journal files obtained
Log recording;
In the preferred embodiment of the present invention, above-mentioned keyword message may include that
For representing the keyword message that application program does not responds: such as Anr (Application Not
Responding);In one preferred embodiment of the present invention, when Anr occurs in a log recording
Time, then it represents that in this log recording, record is that the test that application program does not responds is abnormal, then need this
Bar log recording whole piece extracts;And/or
For representing the keyword message that application exception exits: such as Crash;One of the present invention
In preferred embodiment, when there is Crash in a log recording, then it represents that in this log recording
Record is that the test that application exception exits is abnormal, then need to extract this log recording whole piece
Come;And/or
For representing the keyword message that the service of Framework layer system is abnormal: such as Watchdog;This
In one preferred embodiment of invention, when there is Watchdog in a log recording, then it represents that
In this log recording, record is that Framework layer occurs that Android (Andorid) services abnormal conditions, then
Need to extract this log recording whole piece;And/or
For representing the keyword message that java layer application exception exits: such as JavaCrash;This
In one preferred embodiment of invention, when there is JavaCrash in a log recording, then it represents that
In this log recording, record is Java layer program exception situation about exiting, then need to remember this daily record
Record whole piece extracts.
In the preferred embodiment of the present invention, except the above-mentioned keyword message enumerating out, also include using
In the keyword message of other abnormal informations of expression, such as FileNotFoundException (locating file
Extremely), java.io.IOException (java input and output are abnormal), Failed looking up window
(searching window abnormal) and InterReceiverLeaked (receiving leakage alternately).The present invention is relatively
In good embodiment, these information are classified as " other information (Others) " in final test report
Classification in.In other words, in the preferred embodiment of the present invention, hereinafter to log recording at
During reason, above-mentioned information is divided in the classification of " other information " and is uniformly processed.
In the preferred embodiment of the present invention, above-mentioned default keyword message can performed by user
Configure voluntarily before log analysis, it is also possible to by system according to the test environment of this mobile terminal tested
Automatically configure.So can extend the wide usage of whole log analysis method, solve in prior art
A kind of analytical tool is only capable of the problem narrower for the scope of application in the analysis method of a software version.
In the preferred embodiment of the present invention, above-mentioned each keyword message is used for representing that a kind of test is abnormal,
Being associated with multiple sub-keyword message under the most each keyword message, every sub-keyword message is for table
Show that a test is abnormal.As shown in Figure 2, it is provided that keyword message is associated with it as described above
The graph of a relation of sub-keyword message.Such as, for the log recording comprising Anr, in this daily record
The beginning note of record has Anr field, and potentially includes corresponding sub-keyword in the content comprised later
Information, such as record have the field of Binder bust this.Now this log recording is judged as by system
For representing the day that the test being specially " Binder bust this " being under " Anr " classification is abnormal
Will record.
In the preferred embodiment of the present invention, as shown in Figure 2, " low internal memory " represents currently available interior
Deposit relatively low;When " oom-killer " represents low internal memory, system is forced the process of killing;" there is assert in Modem "
Represent that the baseband processor (Modem) of mobile terminal occurs abnormal;" Watchdog enters journey and reminds "
Represent that Frame layer occurs that service is killed process and reminded time abnormal;" window leakage " represents that window is let out
Leakage.
In the preferred embodiment of the present invention, under each keyword message, the sub-keyword message of association is same
Can be pre-set before log analysis according to actual test case by user.
Step S3, all log recordings obtaining screening process, to respectively obtain corresponding every class survey
The test result that examination is abnormal, integrates all test results to form a test report.
In the preferred embodiment of the present invention, as it is shown on figure 3, above-mentioned steps S3 specifically includes:
Step S31, log recording screening obtained is classified according to different keyword messages;
In the preferred embodiment of the present invention, as mentioned above it is possible, the log recording of corresponding A nr is classified as
One class, the log recording corresponding to Crash is classified as a class, and the log recording corresponding to Watchdog is classified as
One class, the log recording corresponding to JavaCrash is classified as a class, and the daily record note corresponding to Others
Record is classified as a class.
In the preferred embodiment of the present invention, owing to keyword message can be tested according to reality by user
Situation sets itself, the most above-mentioned classification can also adjust accordingly according to the setting of keyword.
Step S32, processes every class log recording respectively, remembers for every class daily record to respectively obtain
The corresponding test result of record;
In the preferred embodiment of the present invention, according to the classification being outlined above, every class log recording is carried out
Process.In the preferred embodiment of the present invention, finally process the test result obtained and include that corresponding son closes
The test result of key word information.Such as, test result corresponds to Anr, and in automatic test course
Exist corresponding to the Binder bust this under Anr exception, then in the class testing result corresponding to Anr
Include a test result corresponding to Binder bust this.
All test results are integrated in a corresponding test report by step S33.
In the preferred embodiment of the present invention, the test report ultimately formed includes what all process obtained
Test result.The test report such as ultimately formed include corresponding respectively to Anr, Crash,
The test result of Watchdog, JavaCrash and Others.These test results independently show,
And show in same test report.
In the preferred embodiment of the present invention, above-mentioned test report specifically may include that
There is average and/or the intermediate value in the moment of test exception first;In the preferred embodiment of the present invention,
This test is abnormal for arbitrarily testing exception, the log recording pair with keyword message grabbed first
The moment answered;In the preferred embodiment of the present invention, so-called average and/or intermediate value, be for same batch
Multiple mobile terminals for, be i.e. calculated multiple mobile terminal being in same test environment and go out first
Now test abnormal average and/or intermediate value.And/or
There is average and/or the intermediate value in the moment of reboot event first;In the preferred embodiment of the present invention,
Reboot event for keyword message be Restart, user can according to actual test case will
Restart adds information abnormal as representing a class testing in above-mentioned keyword message;The present invention's is preferable
Embodiment in, above-mentioned average and/or intermediate value are similar with the above, do not repeat them here.With/
Or
There is the title of the corresponding functional module of every class testing exception;In the preferred embodiment of the present invention,
Called function module is actual for be in the module on software side;This essence is used for analyzing and drawing survey
Examination specifically by which module is produced extremely.And/or
There is the number of times that every class testing is abnormal.
In the preferred embodiment of the present invention, above-mentioned analysis occur first test abnormal/average restarted and/
Or intermediate value, can believe as the Primary Reference that the software version judging this testing needle pair is the most stable
Breath.
In one preferred embodiment of the present invention, can be according to the setting of user, at portion test report
Announcement only includes a class testing result, and all of test result is divided report display.Such as a test
Report only includes the abnormal corresponding test result of Anr, and as user shows that many parts of test report (are surveyed
Try the number of report corresponding to the test exception corresponding to keyword message of appearance in this test process
Kind quantity).
In the preferred embodiment of the present invention, test report include abnormal for representing each test
Corresponding test result be all associated with corresponding journal file, i.e. user can be according in test report
Content search be included in which journal file to test is abnormal, and then directly fixed according to this journal file
Position is to error codes, it is simple to code is safeguarded by user.
In the preferred embodiment of the present invention, technique scheme is not exclusively applicable for batch to mobile terminal
During carrying out automatic test, it is also possible to be applicable to single mobile terminal is performed automatic test
During.
In the preferred embodiment of the present invention, in above-mentioned steps S3, after forming test report, according to
The different test result that test report includes, processes corresponding test is abnormal.The present invention's
In preferred embodiment, first judge whether this automatic test course occurs survey according to test report
Examination is abnormal, processes corresponding test is abnormal the most again.In the preferred embodiment of the present invention, place
Reason manually can be carried out by user, it is also possible to presets corresponding program and is automatically carried out by system.
In the preferred embodiment of the present invention, in above-mentioned steps S3, after forming test report, to making
User shows test report.In one preferred embodiment of the present invention, as mentioned above it is possible, when using
When person needs manual handle test abnormal, need first to show this test report to user.
In sum, technical solution of the present invention is: by user keyword message set in advance
Mode, presets with above-mentioned in the journal file of the mobile terminal generation searching and extracting batch testing
All log recordings of keyword message.According to entrained keyword message, these log recordings are entered
Row classification processes and is formed respective test result.These test results are incorporated into a test report the most at last
In and show to user, thus manually search relative to traditional or use consolidating of corresponding software version
Analyzing for determining the mode that instrument makes a look up and process the in hgher efficiency of daily record, result is more accurate,
It is greatly saved system resource.
In the preferred embodiment of the present invention, based on above-mentioned log analysis method, a kind of daily record of existing offer divides
The technical scheme of analysis system.The structure of this Log Analysis System as shown in Figure 4, specifically includes:
Placement unit 1.In the preferred embodiment of the present invention, placement unit 1 is used for capturing all movements
All journal files that terminal produces.
In the preferred embodiment of the present invention, the mobile terminal of batch testing is performing automatic test course
Middle can produce more journal file.The analysis object being analyzed daily record is all journal files.
Therefore placement unit 1 captures all days produced in this test process after this automatic test terminates
Will file and as analyze object.
Screening unit 2, connects above-mentioned placement unit 1.In the preferred embodiment of the present invention, screening is single
Unit 2 is preset with corresponding multiple keyword message.In the preferred embodiment of the present invention, so-called crucial
Word information, as described above, the information preset for user, each keyword message corresponds to a class phase
The test answered is abnormal.
In the preferred embodiment of the present invention, screening unit 2 is from the institute extracting this test of correspondence obtained
Have in journal file, corresponding keyword message set in advance, search and extract all bags in journal file
Include the log recording of keyword message.Such as, as mentioned above it is possible, search include keyword message (Anr,
Other keyword messages that Crash, Watchdog, JavaCrash and Others include) daily record
Record.In the preferred embodiment of the present invention, if user has preset other keyword messages, then
Screening unit filters out corresponding log recording according to the keyword message that user sets.
Processing unit 3, connects above-mentioned screening unit 2.In the preferred embodiment of the present invention, process single
Unit 3 carries out classification process, and correspondence respectively according to the log recording that above-mentioned screening unit 2 is searched and extracted
Log recording is analyzed and processes by every class testing abnormal (the most each keyword message), is formed
Corresponding test result, the most all test results are integrated in a complete test report.
In the preferred embodiment of the present invention, above-mentioned processing unit 3 specifically includes:
Sort module 31.In the preferred embodiment of the present invention, sort module 31 is for obtaining screening
Log recording classify according to different keyword messages, and export corresponding classification results.This
It is in bright preferred embodiment, the biggest owing to extracting the log recording data volume obtained, it is therefore desirable to
It is carried out classification process.Such as, as mentioned above it is possible, according to keyword message (Anr, Crash,
Other keyword messages that Watchdog, JavaCrash and Others include) log recording is entered
Row classification.The log recording of each classification (a corresponding keyword message) is uniformly processed and divides
Analysis, the test result abnormal to obtain a class testing.In the preferred embodiment of the present invention, each key
Associating multiple sub-keyword message under word information, every corresponding test of sub-keyword message is abnormal.Change
Yan Zhi, the corresponding class testing of each keyword message is abnormal, every height of association under a keyword message
A test under keyword message this class testing corresponding is abnormal is abnormal.The survey of a corresponding keyword message
Test result includes the test result of corresponding each sub-keyword message come across in log recording.
Processing module 32, link sort module 31.In the preferred embodiment of the present invention, processing module
Every class log recording, for according to classification results, is processed, to respectively obtain for every class by 32 respectively
The corresponding test result of log recording.In the preferred embodiment of the present invention, according to as noted before
Classification results, processing module 32 is respectively processed.Such as the log recording that Anr is abnormal is entered
Row processes and analyzes, and finally draws the test result abnormal for Anr, can wrap in this test result
Include the abnormal number of times occurred of Anr, each Anr abnormal moment occurred, and other are for representing once
The specifying information that Anr is abnormal.In the preferred embodiment of the present invention, corresponding to a keyword message (example
Such as Anr) test result in can include under this keyword message the survey of associated sub-keyword message
Test result, such as corresponding to including the test result for Binder bust this under the test result of Anr,
For the test result that I/O operation is abnormal, and the test result etc. surprisingly terminated for process.
Integrate module 33, connect processing module 32.In the preferred embodiment of the present invention, integrate module
33 for being integrated into all test results in a corresponding test report and exporting.
In the preferred embodiment of the present invention, user can select all test results are incorporated into one
Test report shows, equally selects shown separately for each test result, i.e. one test result
(a corresponding class testing is abnormal) forms the mode of a test report and shows to user.User is permissible
Select above two display mode voluntarily, select other to be beneficial to the mode that user is checked the most voluntarily
Show above-mentioned test report.
In the preferred embodiment of the present invention, above-mentioned Log Analysis System also includes:
Performance element 4, connects processing unit 3.In the preferred embodiment of the present invention, performance element 4
For the different test result included according to test report, process corresponding test is abnormal.
In the preferred embodiment of the present invention, when system is set to carry out respective handling according to test is abnormal
And/or when repairing, performance element 4, according to above-mentioned test report, is analyzed test exception therein and navigates to
Corresponding code place, thus process accordingly test is abnormal and/or repairs.
Display unit 5, connects processing unit 3.In the preferred embodiment of the present invention, display unit 5
For showing above-mentioned test report to user.As mentioned above it is possible, the test report shown to user
Can be the test report integrating all test results, it is also possible to for the benefit of used by user sets itself
Other display formats that person observes, such as will be aobvious for each test result (a corresponding class testing is abnormal)
It is shown in a independent test report.
In the preferred embodiment of the present invention, as mentioned above it is possible, in above-mentioned test report, it is also possible to bag
Include:
There is average and/or the intermediate value in the moment of reboot event first;In the preferred embodiment of the present invention,
Reboot event for keyword message be Restart, user can according to actual test case will
Restart adds information abnormal as representing a class testing in above-mentioned keyword message;The present invention's is preferable
Embodiment in, above-mentioned average and/or intermediate value are similar with the above, do not repeat them here.With/
Or
There is the title of the corresponding functional module of every class testing exception;In the preferred embodiment of the present invention,
Called function module is actual for be in the module on software side;This essence is used for analyzing and drawing survey
Examination specifically by which module is produced extremely.And/or
There is the number of times that every class testing is abnormal.
In the preferred embodiment of the present invention, above-mentioned analysis occur first test abnormal/average restarted and/
Or intermediate value, can believe as the Primary Reference that the software version judging this testing needle pair is the most stable
Breath.
The foregoing is only preferred embodiment of the present invention, not thereby limit embodiments of the present invention and
Protection domain, to those skilled in the art, it should can appreciate that all utilization description of the invention
And the equivalent done by diagramatic content and the scheme obtained by obvious change, all should comprise
Within the scope of the present invention.
Claims (14)
1. a log analysis method;It is characterized in that:
Being preset with multiple keyword message, each described keyword message correspondence represents that a class testing is abnormal;
The multiple mobile terminals being under same test environment generate corresponding day in automatic test course
Will file, each described journal file includes a plurality of log recording;
Described log analysis method specifically includes:
Step S1, captures all described journal files;
Step S2, obtains including that described keyword is believed from capturing screening all described journal file obtained
The all described log recording of breath;
Step S3, all described log recording obtaining screening processes, corresponding every to respectively obtain
Test abnormal test result described in class, integrate all described test results to form a test report.
2. log analysis method as claimed in claim 1, it is characterised in that described keyword message bag
Include:
For representing the keyword message that application program does not responds;And/or
For representing the keyword message that application exception exits;And/or
For representing the keyword message that the service of Framework layer system is abnormal;And/or
For representing the keyword message that java layer application exception exits.
3. log analysis method as claimed in claim 1, it is characterised in that described step S3 is concrete
Including:
Step S31, described log recording screening obtained is carried out according to different described keyword messages
Classification;
Step S32, processes log recording described in every class respectively, to respectively obtain for every class institute
State the corresponding test result of log recording;
All described test results are integrated in a corresponding described test report by step S33.
4. log analysis method as claimed in claim 1, it is characterised in that in described step S3,
The described test report formed includes:
There is the average in the moment of described test exception first;And/or
There is the intermediate value in the moment of described test exception first;And/or
There is the average in the moment of reboot event first;And/or
There is the intermediate value in the moment of reboot event first;And/or
There is the title of the corresponding functional module of test exception described in every class;And/or
There is to test described in every class abnormal number of times.
5. log analysis method as claimed in claim 1, it is characterised in that each described keyword is believed
Breath is associated with corresponding many sub-keyword messages, and each described sub-keyword message correspondence represents an institute
State test abnormal;
Extremely test described in every class is processed the described test result obtained include each described survey
Examination is abnormal to be carried out processing the test result obtained.
6. log analysis method as claimed in claim 1, it is characterised in that wrap in described test report
The described test result abnormal for the described test of expression one included is associated with a corresponding described daily record
File.
7. log analysis method as claimed in claim 1, it is characterised in that in described step S3,
After forming described test report, the different described test result included according to described test report is right
Corresponding described test is abnormal to be processed.
8. log analysis method as claimed in claim 1, it is characterised in that in described step S3,
After forming described test report, show described test report to user.
9. a Log Analysis System, it is characterised in that:
Being preset with multiple keyword message, each described keyword message correspondence represents that a class testing is abnormal;
The multiple mobile terminals being under same test environment generate corresponding day in automatic test course
Will file, each described journal file includes a plurality of log recording;
Described Log Analysis System specifically includes:
Placement unit, for capturing all described journal file that all described mobile terminals produce;
Screening unit, is wherein preset with multiple keyword message, and each described keyword message correspondence represents
One class testing is abnormal, and described screening unit connects described placement unit, for all institutes obtained from crawl
State screening in journal file and obtain including all described log recording of described keyword message;
Processing unit, connects described screening unit, enters for all described log recording obtaining screening
Row processes, and tests abnormal test result to respectively obtain, and integrate all described surveys described in corresponding every class
Test result is to form a test report.
10. Log Analysis System as claimed in claim 9, it is characterised in that described keyword message
Including:
For representing the keyword message that application program does not responds;And/or
For representing the keyword message that application exception exits;And/or
For representing the keyword message that the service of Framework layer system is abnormal;And/or
For representing the keyword message that java layer application exception exits.
11. Log Analysis Systems as claimed in claim 9, it is characterised in that described processing unit shape
The described test report become includes:
There is the average in the moment of described test exception first;And/or
There is the intermediate value in the moment of described test exception first;And/or
There is the average in the moment of reboot event first;And/or
There is the intermediate value in the moment of reboot event first;And/or
There is the title of the corresponding functional module of test exception described in every class;And/or
There is to test described in every class abnormal number of times.
12. Log Analysis Systems as claimed in claim 9, it is characterised in that in described processing unit
Including:
Sort module, the described log recording being used for obtaining screening is according to different described keyword messages
Classify, and export corresponding classification results;
Processing module, connects described sort module, for according to described classification results, respectively to every class institute
State log recording to process, to respectively obtain the corresponding test result for log recording described in every class;
Integrate module, connect described processing module, corresponding for all described test results are integrated into one
Test report in and export.
13. Log Analysis Systems as claimed in claim 9, it is characterised in that also include:
Performance element, connects described processing unit, different for include according to described test report
Described test result, processes corresponding described test is abnormal.
14. Log Analysis Systems as claimed in claim 9, it is characterised in that also include:
Display unit, connects described processing unit, is used for showing described test report.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510149114.7A CN106155884A (en) | 2015-03-31 | 2015-03-31 | A kind of log analysis method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510149114.7A CN106155884A (en) | 2015-03-31 | 2015-03-31 | A kind of log analysis method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106155884A true CN106155884A (en) | 2016-11-23 |
Family
ID=57338191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510149114.7A Pending CN106155884A (en) | 2015-03-31 | 2015-03-31 | A kind of log analysis method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106155884A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106681930A (en) * | 2017-01-23 | 2017-05-17 | 北京思特奇信息技术股份有限公司 | Distributed automatic application operation abnormity detecting method and system |
CN106844139A (en) * | 2016-12-19 | 2017-06-13 | 广州视源电子科技股份有限公司 | A kind of log file analysis method and device |
CN106959911A (en) * | 2017-02-24 | 2017-07-18 | 上海与德信息技术有限公司 | The automatic generation method and device of terminal equipment failure |
CN107291571A (en) * | 2017-06-27 | 2017-10-24 | 歌尔科技有限公司 | The adjustment method and device of VR all-in-ones |
CN107483238A (en) * | 2017-08-04 | 2017-12-15 | 郑州云海信息技术有限公司 | A kind of blog management method, cluster management node and system |
CN107783880A (en) * | 2017-09-01 | 2018-03-09 | 郑州云海信息技术有限公司 | A kind of log analysis method of server system, device and server system |
CN108108284A (en) * | 2017-12-26 | 2018-06-01 | 广东欧珀移动通信有限公司 | Log processing method, device, terminal device and storage medium |
CN108595332A (en) * | 2018-04-25 | 2018-09-28 | 北京车和家信息技术有限公司 | Method for testing software and device |
CN109284269A (en) * | 2018-10-17 | 2019-01-29 | Oppo广东移动通信有限公司 | Abnormal log analysis method, device, storage medium and server |
CN109783370A (en) * | 2018-12-25 | 2019-05-21 | 努比亚技术有限公司 | A kind of log grasping means, terminal and computer readable storage medium |
CN110968518A (en) * | 2019-12-21 | 2020-04-07 | 锐捷网络股份有限公司 | Analysis method and device for automatic test log file |
CN112131374A (en) * | 2020-08-25 | 2020-12-25 | 北京达佳互联信息技术有限公司 | Text recognition method and device and server |
CN113568829A (en) * | 2021-07-05 | 2021-10-29 | Oppo广东移动通信有限公司 | External field test method and device and storage medium |
CN113626227A (en) * | 2020-05-06 | 2021-11-09 | 深圳Tcl新技术有限公司 | Abnormal log information reporting method, intelligent terminal and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080168032A1 (en) * | 2007-01-05 | 2008-07-10 | Google Inc. | Keyword-based content suggestions |
CN103634441A (en) * | 2012-08-24 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Method and device for testing mobile terminal |
CN103678096A (en) * | 2012-09-03 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Adaptation testing method and device of client side application |
CN104301136A (en) * | 2014-09-11 | 2015-01-21 | 青岛海信电器股份有限公司 | Method and equipment for reporting and processing fault information |
CN104424094A (en) * | 2013-08-26 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Method and device for obtaining abnormal information and intelligent terminal device |
-
2015
- 2015-03-31 CN CN201510149114.7A patent/CN106155884A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080168032A1 (en) * | 2007-01-05 | 2008-07-10 | Google Inc. | Keyword-based content suggestions |
CN103634441A (en) * | 2012-08-24 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Method and device for testing mobile terminal |
CN103678096A (en) * | 2012-09-03 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Adaptation testing method and device of client side application |
CN104424094A (en) * | 2013-08-26 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Method and device for obtaining abnormal information and intelligent terminal device |
CN104301136A (en) * | 2014-09-11 | 2015-01-21 | 青岛海信电器股份有限公司 | Method and equipment for reporting and processing fault information |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106844139A (en) * | 2016-12-19 | 2017-06-13 | 广州视源电子科技股份有限公司 | A kind of log file analysis method and device |
CN106681930B (en) * | 2017-01-23 | 2021-05-04 | 北京思特奇信息技术股份有限公司 | Distributed automatic detection method and system for abnormal operation of application |
CN106681930A (en) * | 2017-01-23 | 2017-05-17 | 北京思特奇信息技术股份有限公司 | Distributed automatic application operation abnormity detecting method and system |
CN106959911A (en) * | 2017-02-24 | 2017-07-18 | 上海与德信息技术有限公司 | The automatic generation method and device of terminal equipment failure |
CN107291571A (en) * | 2017-06-27 | 2017-10-24 | 歌尔科技有限公司 | The adjustment method and device of VR all-in-ones |
CN107483238A (en) * | 2017-08-04 | 2017-12-15 | 郑州云海信息技术有限公司 | A kind of blog management method, cluster management node and system |
CN107783880A (en) * | 2017-09-01 | 2018-03-09 | 郑州云海信息技术有限公司 | A kind of log analysis method of server system, device and server system |
CN108108284A (en) * | 2017-12-26 | 2018-06-01 | 广东欧珀移动通信有限公司 | Log processing method, device, terminal device and storage medium |
CN108595332A (en) * | 2018-04-25 | 2018-09-28 | 北京车和家信息技术有限公司 | Method for testing software and device |
CN108595332B (en) * | 2018-04-25 | 2022-01-11 | 北京车和家信息技术有限公司 | Software testing method and device |
CN109284269A (en) * | 2018-10-17 | 2019-01-29 | Oppo广东移动通信有限公司 | Abnormal log analysis method, device, storage medium and server |
CN109783370A (en) * | 2018-12-25 | 2019-05-21 | 努比亚技术有限公司 | A kind of log grasping means, terminal and computer readable storage medium |
CN110968518A (en) * | 2019-12-21 | 2020-04-07 | 锐捷网络股份有限公司 | Analysis method and device for automatic test log file |
CN113626227A (en) * | 2020-05-06 | 2021-11-09 | 深圳Tcl新技术有限公司 | Abnormal log information reporting method, intelligent terminal and storage medium |
CN112131374A (en) * | 2020-08-25 | 2020-12-25 | 北京达佳互联信息技术有限公司 | Text recognition method and device and server |
CN112131374B (en) * | 2020-08-25 | 2023-12-19 | 北京达佳互联信息技术有限公司 | Text recognition method, device and server |
CN113568829A (en) * | 2021-07-05 | 2021-10-29 | Oppo广东移动通信有限公司 | External field test method and device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106155884A (en) | A kind of log analysis method and system | |
CN107943694B (en) | Test data generation method and device | |
CN107861876A (en) | Method of testing, device, computer equipment and readable storage medium storing program for executing | |
CN111209185B (en) | Keyword-based automated testing method and computer-readable storage medium | |
CN109344053B (en) | Interface coverage test method, system, computer device and storage medium | |
CN110334021A (en) | Generation method, device, equipment and the storage medium of interface testing case | |
CN110750458A (en) | Big data platform testing method and device, readable storage medium and electronic equipment | |
CN110297760A (en) | Building method, device, equipment and the computer readable storage medium of test data | |
CN111309581B (en) | Application performance detection method and device in database upgrading scene | |
CN110032597A (en) | The visible processing method and device of application program operation behavior | |
CN110059002A (en) | Generation method, test equipment, storage medium and the device of test data | |
CN112612813A (en) | Test data generation method and device | |
CN105786679B (en) | A kind of automatic test monitoring system and method and mobile terminal | |
CN112416800B (en) | Intelligent contract testing method, device, equipment and storage medium | |
CN112671878B (en) | Block chain information subscription method, device, server and storage medium | |
CN113672674A (en) | Method, electronic device and storage medium for automatically arranging service flow | |
CN107368500A (en) | Data pick-up method and system | |
CN117370203A (en) | Automatic test method, system, electronic equipment and storage medium | |
CN116701406A (en) | Data comparison method and device, computer equipment and storage medium | |
CN115357625A (en) | Structured data comparison method and device, electronic equipment and storage medium | |
CN114880239A (en) | Interface automation testing framework and method based on data driving | |
CN108932195A (en) | A kind of method and system of cell phone application interface testing | |
CN113176914A (en) | Modularized testing tool based on automatic Web end | |
CN112860456A (en) | Log processing method and device | |
CN112256978A (en) | Data processing method, device and medium based on data model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161123 |